Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Services like AddThis go into superficial detail about how their services work, but I would be really grateful to hear some insight into how this is actually working.
If this is an inappropriate forum to ask this question in, feel free to yell at me - I'm trying to get a handle on how to detect when users are interacting with their address bar, but am hitting a solid brick wall. Thanks for your time!
When the page loads without a hash "tag" appended to the URL, the AddThis code generates a new, unique one and appends it to the URL. If the user, then cuts and pastes the URL, sharing it manually in some other forum - like Twitter, the unique tag specifically identifies which user (assuming he/she can be detected on the first page load) shared the article this way whenever that particular link is used by someone else. The normal AddThis sharing does not include the hash "tag" and thus the manual sharing is distinguishable from the user clicking on the share button.
While I haven't looked at their implementation in detail (debugging in the web browser would probably produce a lot of insight), I suspect that they obtain the unique id from their servers to guarantee uniqueness and tie it in with their other analytic data.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to make a website which will serve as news aggregator site. This will be my learning project but I don't know from where to start. Should I build the front end first, or the back end first. Further I will need a database to store the jobs. Should I design my database schema before everything else. A guidance in this regard will be appreciated. For technology I will use bootstrap, laravel and mysql
Database schema is a good place to start. Once you have something in place which you think houses all of the data you will need to display everything, do some reading about database normalization and think very carefully about what you have.
Once you have a solid database design, you can start working on the code. Instead of breaking the project into frontend and backend, try to break it into features. Focus on as small a thing as you can which can function on it's own and work on the backend and front end for that feature. Initially that might be getting information about a site from which you will be aggregating news into your database. Do you have a database for those? If you, start with a form where you can submit the name and url. Once that is working, work on a page to see a list of those you have submit. Then you can start to layer in new features. Add other fields to the form for the sites. Edit them. Delete them. etc.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Last year I started to develop a small "program" (not sure how this is called) in Access to help the family shop with the stock list and product prices, etc.
A few months ago, a client of the company started to ask for my Access's program because he needed one for its stock and they haven't found one yet. I was a bit scared of giving them the program because they could copy and steal my work.
Finally, my family suggested me to encrypt it in order to not be able to open its code, but I don't know how to do it.
So my questions are:
Is there a way to block the access to my VBA code in each Form? Through MS Access config or with more code, for me, it's the same.
Is there a way to block the duplication of its Forms or the whole file?
How can I secure my code?
I'm using MS Access 2016.
Edit: I've already got 2 downvotes and close flags, if you could explain to me in comments which thing do you think it's wrong I could try to fix it.
Access 2016 allows you to save as .accde format which is in effect an executable file. It seems that is what you need
Heres's how
you can also hide most of the Access environment so users can't really tell its Access
like so
Saving as an executable file as SEarl1986 said may be your best bet. I am unsure what happens to their database if you need to update your code tho.
Another way is to open Visual Basic, go to Tools, and "yourfilenames" properties, then under the protection tab you can "lock the project for viewing" and add a password.
It isn't foolproof as their is a method to break the password by editing the file with a hex editing tool, but it's a good lock that will deter most people. It will protect your code from prying eyes.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a website where I put music, but I do not want anyone downloading it, or it gets harder and just listening online, like YouTube.
Unfortunately, no. It is a bit like trying to prevent someone from recording an on-air broadcast. When you send video data over the internet to someone's player, they can simply store the information being sent to the player unless you obfuscate it and make it so that the player will only work under certain circumstances and will not share the data. This, by definition, is DRM.
What DRM attempts to do is control the reading of the data entirely, so that it can not be copied. This has varying degrees of success and rarely, if ever, works particularly well. It may keep honest people honest, but if you are sending someone data in a way that they can access it, measures to try to stop them from copying it are... difficult. The most advanced systems use special display drivers and encrypt the data right up to the point it is being displayed on the screen (HDCP), that way other software on the computer can't directly pull the information off the frame buffer being prepared for the screen.
There may be some ways you can mildly obfuscate the access to your video, but ultimately, if you send it in the clear, it is trivial for a knowledgeable viewer to store the datastream. If you use DRM, it is substantially harder, but still likely to be able to be worked around by a dedicated attacker.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Instead of the the location presented is based on the user I want it to update automatically based on where I am.
I could obviously hard-code it but I want it to be automated. I travel quite a bit: when I am in Egypt I want it to say something like "working in Egypt" or when I am home in NYC "working at homebase" etc.
I am not sure how to go about this, I am assuming it can be done with HTML5 and some more but I may be wrong any suggestions welcome.
There are a lot of ways, but they all have in common you have to send your location to somewhere, and that somewhere has to inform that location to your website visitors (or the place where you want to display it).
You can use HTML5 location api to determine your approximate location. For example, you set up a page (not the index page, but one you can authenticate to) that whenever you visit it, you inform your location to it. That's done with a simple
navigator.geolocation.getCurrentPosition(function (location) {
console.log(location);
});
For the second step, you have several ways to go:
Use a backend server to persist that data in somewhere that's not just your notebook. That server can, in turn, store that location in a Database. Then, anyone visiting your website public page could see from where did you updated your location the last time.
Instead of Databases, you can also use websockets to just relay your updates to whomever is visiting your website at a given moment. But that might be just too far fetched for what you need to do.
Use a webservice API to inform others about your location. Automated foursquare checkins? Tweets, Facebook statuses? All of those approaches is unique to the given API, but most social networks allow you to build simple apps to do that.
TL / DR
Yes, you can use HTML5 to guess your approximate location. Nope, with HTML5 alone you can't tell other people where you are.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm creating a mobile app to access journal articles.
They are organized by Volume -> Issue -> Section -> Article. This means that I will have 13 * 4 * 10 * 3 = 1560 articles. What is a good way to implement a database to host these articles (including their images, resources, etc) on a web server? Each article is currently marked up in HTML. I believe this is nice, because in my apps I will display the content in a web view. However, I'll need to query the articles for search functions, saving locally to the device, etc.
I'd prefer it to be open source, and as I'm new to databases (but fairly proficient in app development), I'd appreciate if you could point me toward the best way of learning.
I'm not sure if you are looking for advice concerning the structure but this might help you as an approach for further thinking:
create a table in which you write all the data
You have one column with a unique ID for each article
one column for each field of Volume, issue etc.
Then you have one column that contains a huge string in which you put the html data as a string. (There might be a better way especially concerning a search function)
You can also save it as a BLOB but this makes indexing a lot harder.
I would probably save the resources separated from the database. Then you just name them after the article id. For example resource number 10 in article 5 would be 5.10.pdf or whatever format. This depends on your html format of course. And whether you want to rename all your files (might be A LOT of work for 1500 articles)