Why not using HTTP headers for Retina Display detection? [closed] - http-headers

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am the developer of the WordPress plugin called WP Retina 2x. It works really well - worked a lot on it - but something bothers me.
The well-known trick to detect the Retina Displays on the server-side is to use a cookie based on the window.devicePixelRatio value. It works perfectly but I consider it to be a workaround. More annoying, you cannot know whether the display is retina or not BEFORE generating the HTML (on the first visit).
We have many HTTP headers available so why the browsers just don't simply add a new one? We could have a Accept DevicePixelRatio (with such values as "2;1" or "1" by default - we could even have a "4" in the future just to contradict Steve Jobs :p) and we wouldn't need a cookie anymore. The whole workflow would be much cleaner. I also believe the server should know the technical details about the client and let the user identity or preferences to the cookies.
I have no idea how to promote this idea at this point, but first would you tell me if this is a good idea? If yes, how could we have the browsers implementing it? (I guess it wouldn't that easy but we need a starting point). Or maybe... would you have a different idea completely?

Related

How to permanently save heavy data in the client-side in a Vuejs app [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 12 months ago.
Improve this question
I have a heavy data in my vuex store that I need to keep even after a refresh for performance purposes.
Are there any proposals except LocalStorage ?
Storing "heavy data" is possible up to 1GB within browsers.
Possible through https://developer.mozilla.org/de/docs/Web/API/IndexedDB_API
Maybe this article is interesting for you. It implements a vuex solution with indexedDB https://netterminalmachine.com/blog/2018/persisting-a-vuex-store-to-indexed-db
I figured this max space limit of 1GB out the hard way myself. Browsers like Chrome or Firefox will ask you to increase space limit when you need more than 1GB.
Safari does not. Its hard capped at ~1024MB storage.
If you need more than that you need a native app solution. (Hint: "Chrome" on MacOS devices like iPad, iPhone use Safari under the hood)

How to start into Thunderbird Addon Development [closed]

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
I want to implement a Thunderbird-Addon and already found information on the mozilla web pages regarding Addon Development. However, some of the information is rather confusing, and thus I have some more specific questions:
1) Are Firefox Addon development and Thunderbird Addon development related? Some links may suggest so, others are indicated as "outdated"...
2) On the Mozilla web pages there are infos related to addons for Thunderbird 2,3, or 5. Isn't Thunderbird at version 31 currently? Probably I missed something here.
3) I want to extend the tagging mechanics in thunderbird, e.g. allowing relationships between tags, tag hierarchies etc. For that I would have to extend the existing data model. Can I do so?
4) Is there a good overview of the actual data model? Before I start programming something, I'd like to see which parts I have to touch and which I can leave alone.

How to prove that images were stolen? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How can I prove that images were stolen from a website?
Is there any way to check from when an another website have the same images? I have no any access to the server.
Thanks for any idea!
UPDATE:
No, I'm not the one who forgot watermark. An old client of mine just found me with this question. Actually found Google cached page which we can use, but still interested if any other solution is exist. Like any image format contains any date attribute in it?
If you're using a Unix-based operating system, you might have access to cURL. Try running
curl --remote-time --remote-name http://url-to-your-image/
and see if you get a timestamp that is different from the exact time you downloaded the file. Not all servers respond with the time, but it might be worth an attempt.
But generally, if it's your original work, then you should have a copy of the image with higher resolution and/or lower compression rate, right? That should be enough to prove which of the images is the stolen one. Intellectual property rights on the Internet is a mess, though, for several reasons. But even if you can't take legal actions, you might have better luck convincing an administrator to remove the content.

How difficult would it be to build a Chat/IM Client for an office network? [closed]

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 7 years ago.
Improve this question
First and foremost, I would like to say I am very, /very/ new to programming and the like. If I decide to build this, this would probably be my first "large" project i've ever done myself.
What I am looking to build is a very simple Chat/IM client to use for the users in our office network. It would just call us their Windows logon name and use that to IM and the like. I'm talking a very simple client, with a list of names of people who are logged into the network, and option to IM them and an option to do a multiple user chat. It doesn't have to be visually stunning.
How difficult would this honestly be? Is it possible for me, someone who has very little knowledge when it comes to programming to teach myself how to build it?
If not, can you explain why this would be very difficult and what already built clients would work well for what I am using?
This is a big application. Your first parts will suck and refactoring it later will suck even more. I suggest building something small in the first place and then step from one bigger project to another.
XMPP/Jabber is IMHO the best solution for office IM. Most clients like Pidgin, Adium etc can connect to it. Every bigger company I worked for in the last years used it. Take a look at Openfire - A free open source XMPP server that you can directly connect on and which is easy to set up: http://www.igniterealtime.org/projects/openfire/

What documentation is helpful when supporting an application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am going to be taking over from a developer here at work soon. Hence, I'll be supporting all the applications that he has written over the last few years.
My question is, when supporting an application that you probably don't know much about, what kind of documentation is most helpful to get a handle on how to fix problems, extend functionality, modify functionality, etc? I'm thinking it would need to give you an overview of what the software does, what interfaces it has to other software, what databases it uses, usernames, passwords, and so on.
Is there such a thing as a software support document? Referrals to any templates would be most helpful.
BTW, unfortunately, there are no requirements documents, specs, etc! So, really my question is, if my colleague had a day to write a single document for each application so that I could (more easily) support it, what would that document be and/or what would it look like?
I would ask for primarily some sort of flow chart/schema of the way the app functions.
I would want to be able to know how each file interacts with other files (and the database). So this way, you'd know where to start to fix a bug or add a new feature, etc.
So to do a quick, text mockup of it:
Index.php -> Login.php -> Dashboard.php
Index.php:
Has login box. Submits login into to login.php
Login.php:
Verifies data with database entries, shows error on fail or sends to Dashboard.php
Dashboard.php:
Once logged in this acts as a main menu
Something along these lines? For basic documentation I'd think this is the way to go.
Hope this helps. Good luck!