Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
j4_james
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
j4_james
10y ago
Interestingly the text is garbled after it's loaded. So if you view the page with JavaScript disabled, the original text is completely readable (no blur effect either). I assume this is an attempt to make the page accessible to robots
32.
▲
by
j4_james
10y ago
This technique may not work if you've got a weird DPI that's causing scaling to something like 150%. In that case you'd need to set your browser's zoom level to 66.666% which is probably not one of the levels it supports
33.
▲
by
j4_james
10y ago
I had the same problem on my laptop which, like many phones, has a high density display. When a website hasn't explicitly provided support for high DPI displays, the browser is forced to scale up the source image (typically by 200%). T
34.
▲
by
j4_james
10y ago
HTML5 does actually support an XHTML serialisation[1] if you need your content to be easily parsed with XML tools. [1] https://www.w3.org/TR/html5/the-xhtml-syntax.html
35.
▲
by
j4_james
10y ago
The real benefit is not just being able to develop Linux software, but the ability to work on cross-platform code. I do most of my coding and debugging in Visual Studio, but when I want to test the changes on Linux I now simply alt-tab to t
36.
▲
by
j4_james
10y ago
This reminds me of my attempt to reproduce the Donkey Kong handheld video game using just HTML and CSS. http://kong.詹姆斯.com/ I also wrote a short blog post describing some of the mechanics of the build for those that find t
37.
▲
by
j4_james
10y ago
I've had an international domain since 2006, and the sad truth is they still aren't widely supported 10 years later (the fuckyeahmarkdown website being a case in point). I don't think people are deliberately filtering out tho
38.
▲
by
j4_james
10y ago
This is probably not the kind of answer you were looking for, but for me the number one criteria is location. If it's going to take me 2 hours each way to commute to a job, I'm not even considering it. So I find it frustrating how
39.
▲
by
j4_james
10y ago
> If they released streaming alongside movie theater releases I would imagine you'd knock out 90%+ of the piracy out there. That's the problem that Sean Parker is hoping to address with his proposed streaming service[1]. At $5
40.
▲
by
j4_james
10y ago
That's disappointing, because CSS wouldn't be a viable replacement in this case - it can't animate XML attributes like seed. Or is that something they plan to support one day?
41.
▲
by
j4_james
10y ago
I was curious if this could be achieved without the need for JavaScript, and I see there is an SVG animate element that looks like it ought to do the trick. In theory you should be able to get the turbulence seed to cycle from 0 to 500 by a
42.
▲
by
j4_james
10y ago
On IE and Edge, every sentence becomes prefixed with the string "null". This appears to be caused by the code that clears the element content with: el.innerHTML = null; Changing that to a blank string fixes the issue for me
43.
▲
by
j4_james
10y ago
LLD is really three different linkers combined. You specify which type you want with the "flavor" command line option [1], but there are also versions of the linker with the flavor hard-coded (these vary depending on the platform)
44.
▲
by
j4_james
10y ago
According to Wikipedia it's Google, Facebook, Amazon and Apple [1]. But I have also seen Microsoft substituted for Apple in other references. [1] https://en.wikipedia.org/wiki/Big_Four
45.
▲
by
j4_james
10y ago
Would this not still be vulnerable to a kind of man-in-the-middle attack though? I don't know much about the workings of bluetooth, so maybe this just isn't possible, but I was envisioning a kind of relay device that could capture
46.
▲
by
j4_james
10y ago
FWIW, you can do content negotiation on the client side with the HTML5 picture element: http://www.html5rocks.com/en/tutorials/responsive/picture-el... If a browser doesn't support that, it's probab
47.
▲
by
j4_james
10y ago
One of the comments on that twitter thread: "Very glad it’s fixed. Not so great for users of other browsers though. God knows how long they’ll take to correct it." Except none of the other browsers have that bug. Somehow Chrome is
48.
▲
by
j4_james
10y ago
Is it really any better for other browsers though? I know I've encountered a fair share of webkit bugs that have been confirmed yet still left unresolved for years on end. And they also aren't above closing bugs as wontfix that cl
49.
▲
by
j4_james
10y ago
His previous hack relied on browsers rounding the result of an opacity calculation in order to force a binary outcome (i.e. one of two colours rather than multiple shades). Once they improved the accuracy of those calculations this trick wa
50.
▲
by
j4_james
10y ago
It's a configurable option in Firefox, and on Windows at least it defaults to navigating backwards. http://kb.mozillazine.org/Browser.backspace_action
51.
▲
by
j4_james
10y ago
That's good to know - I think that's a sensible move, and I agree with those that think Apple's change is a bit silly. However, my point still stands that emoji have always been a source of miscommunication [1] and will conti
52.
▲
by
j4_james
10y ago
I'm not sure this is that big a deal considering the default Windows representation of the pistol emoji has always been a toy gun rather than a realistic depiction of a firearm. It looks more like a ray-gun to me rather than a water pi
53.
▲
by
j4_james
10y ago
> I particularly like how URIs are sometimes encoded as attributes and sometimes as child text elements. I think the distinction here is that the one is an identifier which is not intended to be dereferencable, and the other is a link to
54.
▲
by
j4_james
10y ago
It may interest you to know that some older programming languages didn't originally support recursion, although they did support function calls (early FORTRAN being one example). The return address for a function call was typically sto
55.
▲
by
j4_james
10y ago
That looks like your browser is somehow misinterpreting the character set of the page. What you're seeing appears to be something like code page 437 ( https://en.wikipedia.org/wiki/Code_page_437 ) rather than unicod
56.
▲
by
j4_james
10y ago
Yeah, the parent comment was oversimplifying things. That particular solution only works for values of n != 3λ+1 (λ = 0,1,2,...). If you read the paper, they provide a number of different constructions, each one covering a different subset
57.
▲
by
j4_james
10y ago
FWIW, it works for me in Firefox on Windows 10. Click and drag with the mouse, clicking on the arrows, or swiping on a touchscreen all work fine.
58.
▲
by
j4_james
12y ago
As others have mentioned, most of these don't work on Firefox. For the few that I looked at, the only problem seemed to be a missing unit identifier on the animation delay. For a zero _length_ the unit is optional, but not for a time t
59.
▲
by
j4_james
13y ago
And yet that's very much how object-oriented languages are typically structured. object.method() "hello world".print() If you're used to speaking a language like English where the word order is subject-verb-object, you'd probably
60.
▲
by
j4_james
13y ago
Lets say the whole file is 1000 bytes and each of the five chunks is 200 bytes. If 2 and 4 have failed, then the HEAD would return with a Range header like this: Range: bytes=0-199,400-599,800-999 The client would then know it had to
More ›