Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bazzargh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
631.
▲
by
bazzargh
14y ago
I'd be interested if one of these articles on modularity also addressed testability. For example, the IIFE pattern in the article: (function(window, $, undefined){ //do some work }(window, jQuery)); If instead of immediately executing thi
632.
▲
by
bazzargh
14y ago
No, I mean, with twitter you have ids and you can map those to real people. You often won't have a name other than the id, and the id won't normally be in wikipedia. For example, '@antanddec' is the twitter account for two UK tv presenters,
633.
▲
by
bazzargh
14y ago
Nice idea. I guess you could still do something similar by looking for verified accounts tweeting with your campaign hashtag(s). Or accounts that are otherwise 'known' to be a celeb - there must be a directory out there.
634.
▲
by
bazzargh
14y ago
I've only filed a couple (against Quartz), and had a similar experience. They'd maybe ask for a reduced test case, then nothing happens for 3 months; the latest patch of the OS comes out and the next day the bug is closed. I don't mind if t
635.
▲
by
bazzargh
14y ago
That site got a fair bit of press (and not in a good way) after they set up one of those bots pretending to be the author Jon Ronson. Jon interviewed the people behind it, judge them for yourself: http://www.guardian.co.uk/commentisfree/vi
636.
▲
by
bazzargh
14y ago
Yes - in fact there are several. You can even do it with external apps ( http://chpwn.com/apps/maximizer.html ). But meh, this ancient macbook runs hot if you even ask it to show a flash video, I'm not going to set it on fire by asking it t
637.
▲
by
bazzargh
14y ago
Another alternative approach - fullscreen. Gives me more room on the 13" Macbook, and as the article says, you can just cmd-tab. This works fine for browsers, terminals, but afaik the OSX builds of emacs don't ship with a fullscreen mode; s
638.
▲
by
bazzargh
14y ago
Doh, of course you're right. The mass of water displaced is only greater if the ice is submerged.
639.
▲
by
bazzargh
14y ago
Replacing water with ice at the poles would mean more mass at the poles, not less, since ice is displacing water and is less dense. So he may have a plausible argument that it's the other way round, but I haven't done the calculations.
640.
▲
by
bazzargh
14y ago
Mozilla's Robert O'Callahan blogged back in 2007 on reasons why you'd want a parallel browser, and how C++ as an implementation language was a barrier to progress: http://robert.ocallahan.org/2007/09/parallel-browsing_13.htm... That's kin
641.
▲
The State of Servo, Mozilla's parallelized Rust browser
(groups.google.com)
114 points
by
bazzargh
14y ago
|
39 comments
642.
▲
by
bazzargh
14y ago
At least some databases I've used have parsed out constants in the client library code and submitted prepared statements to the server, passing those constants in. That meant that the server got better use out of its query cache; on the ser
643.
▲
by
bazzargh
14y ago
I'm hoping sourcemaps come to the rescue. We already have this for JS, but the support isn't deep enough. We need support for sourcemaps for templates and css (and even sprites!). There's some thought been given to multi-level sourcemaps, w
644.
▲
by
bazzargh
14y ago
But this sounds more like 'no optimisation', and a lot of complexity to maintain. I'm scratching my head over the toolchain chosen. The output is PNG, EPS, PDF, SVG, but you're using Inkscape and Ghostscript? Something seems off there. Ca
645.
▲
Jsfunfuzz has found 1500+ javascript bugs in Firefox
(blog.regehr.org)
2 points
by
bazzargh
14y ago
|
2 comments
646.
▲
by
bazzargh
14y ago
39. If you create two date objects right beside each other, they'll represent the same time. (a fantastic Heisenbug generator) 40. You can wait for the clock to reach exactly HH:MM:SS by sampling once a second.
647.
▲
by
bazzargh
14y ago
I also hacked up a tool for structural search. I'd noticed intellij's built-in structural search has a very simple pattern language - you just type the code you're searching for and insert a wildcard like $x$ or $foo$ where an expression ca
648.
▲
by
bazzargh
14y ago
How about binary search? "When Jon Bentley assigned it as a problem in a course for professional programmers, he found that an astounding ninety percent failed to code a binary search correctly after several hours of working on it,[7] and a
649.
▲
by
bazzargh
14y ago
That one always bites me at other people's desks; I'd figure out how to reconfigure it if it was mine. But there's always something jarring like that when you switch between similar-but-not-quite-the-same environments.
650.
▲
by
bazzargh
14y ago
Obvious joke is obvious, but he could have called it the Unno Fish Shell? Looks interesting. I expect my fingers will be even more confused than ever switching machines now (they've never learned that Alt-3 isn't # on linux or that middle-c
651.
▲
by
bazzargh
14y ago
I have a couple of Microsoft Trackballs; I found that the constant moving back and forth with the mouse was a disaster for me. Unfortunately, I bought the second because the first was so good and I'd heard MS were withdrawing them from the
652.
▲
by
bazzargh
14y ago
Yes, there is other work on this problem. My google-fu is strong. http://archive.org/details/minimumareacircu00agga "We show that the smallest k-gon circumscribing a convex n-gon can be computed in O(n^2 log n log k) time" This is elabora
653.
▲
by
bazzargh
14y ago
This doesn't work. Consider a polygon with all points on the unit circle - your transformation is the identity (both before and after Visvalingam's algorithm is applied).
654.
▲
by
bazzargh
14y ago
Given segments AB BC CD such that the angle between AC and CD is less than 180 degrees, add the candidate point E where AB CD meet when extended. This is always outside a convex polygon. Choose the next candidate to minimize the area of BEC
655.
▲
by
bazzargh
14y ago
Hmm, I did that without looking and it seems the RSS urls aren't complicated any more. They used to need your uid not your screen name, which is why that tool exists.
656.
▲
by
bazzargh
14y ago
There's an account on twitter called @hackernewsbot that tweets the highest rated stories. Twitter accounts have RSS feeds, which are a bit awkward to find, but it's been automated, just type the username in here: http://charlieharvey.org.
657.
▲
by
bazzargh
14y ago
I parse this question differently. Most commenters seem to be answering 'can ALL priors be objective' when the question is only asking if any exist. For people not sitting this exam, the probability of passing it is zero.
658.
▲
by
bazzargh
14y ago
The 'knife crime capital of Europe' thing is largely an invention of the tabloids. There have been a lot of posession offences reported, but in large part this is because of more police stop&search. What's more interesting is the violen
659.
▲
by
bazzargh
14y ago
Yup, was going to order one as well. What I wanted was one GNU Emacs one for the office, and one GNU Screen one for working from home!
660.
▲
by
bazzargh
14y ago
Here's the explanation: http://en.wikipedia.org/wiki/Post_horn The post horn...used to signal the arrival or departure of a post rider or mail coach. It was used especially by postilions of the 18th and 19th centuries...The instrument is
More ›