7,416 karma · joined Oct 23, 2009 (17y ago) · 1,582 submissions
Email: charles@codemix.com
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
My point is, all this requires me to think. But before I could just swing my mouse into the top left corner, click "Gmail" and always end up at my inbox, no matter where I was in the application. This consistency has gone.
I should have phrased my question: "What possible advantage does this offer, to the user?"
1393.
"White hat" Facebook hacker gets 8 months in jail(bbc.co.uk ↗)
158 points · by phpnode · 14y ago · 118 comments
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
$("a").bind("mousedown", function(e) {
$(this).data("href", $(this).attr("href"));
$(this).attr("href","http://example.com/redirect?url=" + $(this).attr("href"));
});
$("a").bind("mouseup",function(e) {
var el = $(this);
setTimeout(function() {
el.attr("href", el.data("href"));
},10);
});
This works by switching the url when a user clicks a link to your redirect url, then switching it back a fraction of a second after they mouse up. This means that your redirect works even if the user right clicks and opens in a new window / tab and when a user hovers over a link, they still see the normal URL in the status bar.On the /redirect url just log any data you need and send a 301 or 302 redirect. The destination site will see your original page as a referrer, not your redirect url.
comment 14y ago · link · parent
Bootstrap gives you a lot more than foundation does, but I find it very restrictive, it's hard to make a bootstrap site not look like bootstrap (if anyone can point me to some counter examples I'd be interested). This is unsurprising since bootstrap was designed by twitter for a consistent look across their internal tools.
So my verdict is, for internal tools / quick hacks, use bootstrap. For mockups and real products, use foundation.
comment 14y ago · link · parent
Regarding MVC frameworks, try Yii - http://www.yiiframework.com
comment 14y ago · link · parent
If they can, then they must be doing image recognition in some way. Perhaps someone who has more time / energy than me could try this by creating a new account and uploading some photos of recognisable objects (but without exif geo data).
comment 14y ago · link · parent
comment 14y ago · link · parent
Redditor has facebook app installed on their smartphone (or just uses the website), sets status to "OMG wife is going into labour, at the hospital now". Facebook now knows roughly where redditor was at the specified time based on the ip, they can narrow this down further by looking at keywords in the status message and check it against a list of addresses in the local area and select the best match.
When the redditor comes to upload their photos days or weeks later, facebook just checks the photo timestamp against the user's location +/- X hours and makes a guess at where the photos were taken.