Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bodhi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
61.
▲
by
bodhi
14y ago
According to Wikipedia[1]: > Under New Zealand copyright law, DVD region codes and the mechanisms in DVD players to enforce them have no legal protection I have a vague recollection of it not being possible to buy region locked DVD pl
62.
▲
by
bodhi
14y ago
Right, and they could give you a dongle that had a proper RJ45 jack on the other end! Er... hang on...
63.
▲
by
bodhi
14y ago
Hah, I was in a very similar situation to you last week, wanting to start a Photoshop subscription. My first issue was that there were two descriptions of what happens when you cancel an annual subscription early. I thought about calling
64.
▲
by
bodhi
14y ago
> Default arguments in Ruby are not mutable in any kind of function object Maybe I misunderstood you, but they are perfectly mutable: class A attr_accessor :a def initialize @a = [] end def b x = a
65.
▲
by
bodhi
14y ago
I'm not sure if it's what Udo meant, but the date/time widgets are in this vein. Actually, a knob that functioned like those widgets would be quite interesting.
66.
▲
by
bodhi
14y ago
This is the crucial annoyance with knobs in a lot of synthesisers (real and virtual). Another problem with them is that it's not obvious how you change the value. Do you drag to the angle you want? Do you drag vertically? Horizontally Whi
67.
▲
by
bodhi
15y ago
I was going to write a big screed about how adding traffic lights and all the associated equipment would be much more expensive, then I realised you were talking about stop signs! Intersections don't really have to be much bigger, and at
68.
▲
by
bodhi
15y ago
I had the same initial feeling as you, along with "why does only 'REST' get scare-quotes?". Then I thought that the article is referring to "REST", meaning an-API-that-is-vaguely-HTTPish-but-not-actually-RESTful.
69.
▲
by
bodhi
15y ago
Probably about half of them would be illegal under current rules I think. Horse-collars, leading with your head and helmet to helmet contact have been outlawed, but generally all you'll get during the game is a 15 yard penalty, and maybe a
70.
▲
by
bodhi
15y ago
The web is basically a REST API, no? (I'm being a bit facetious.)
71.
▲
by
bodhi
15y ago
You can do it with AJAX requests, but not with links or regular forms (as far as I am aware... I'd love to hear otherwise)
72.
▲
by
bodhi
15y ago
There is actually a HTTP header (Range) that can be used for this. Works well in APIs but you can't do it with browsers, which is unfortunate.
73.
▲
How Closures Behave In Ruby (2009)
(blog.marcchung.com)
1 points
by
bodhi
15y ago
|
0 comments
74.
▲
by
bodhi
15y ago
It's described briefly in R. D. Tennent's Book Principles of Programming Languages , but it doesn't really go into much depth about the ramifications. Did Tennent write a paper with more discussion of the principle? (I got a hold of a copy
75.
▲
by
bodhi
15y ago
I was going to complain about the tagline > The missing Markdown editor for web developers given that there are many, many markdown editors on OSX. But after seeing the vertical Chinese layout, I'm really impressed! That's cool.
76.
▲
by
bodhi
15y ago
In case you were wondering why, it is most likely* because `#join` is appending to a single string, whereas the `#reduce` call is creating intermediate strings for each step of the fold. * I'd have to check the implementation of `#join` to
77.
▲
by
bodhi
15y ago
Sorry to be slightly off-topic, but who would you recommend for Australian hosting, in place of EC2 US-west?
78.
▲
by
bodhi
15y ago
I recall that this was the default action of Smalltalk? I can't find a reference though, so I am very likely incorrect. In Objective-C nil will absorb any messages too, see the section "Sending Messages to nil" in http://developer.apple.co
79.
▲
by
bodhi
15y ago
> I kept going exactly in the reverse direction I "knew" I should go I had exactly the same problem when moving from Australia to Japan, and it didn't go away after 4 years living there! I always wondered whether it was to do with the
80.
▲
by
bodhi
15y ago
For the sake of debate: > REST is not suited to complex multi-variable queries or transactions Would it not be possible to represent a query or transaction as a resource, that you could GET/PUT like any other? > REST should be a sta
81.
▲
by
bodhi
15y ago
> Have you considered some of the hacks that we have to use to make HTTP do what we want? Right, but this sounds like blaming a nail for permanently attaching something when velcro would have been more suitable. Granted, we haven't had
82.
▲
by
bodhi
15y ago
Exactly, it depends on the semantics. For example, if I'm exposing a salon's schedule as a resource, perhaps when a booking is cancelled it is thrown away (or otherwise made inaccessible). But in your case, you would still want make the can
83.
▲
by
bodhi
15y ago
> [HTTP is] a mind-bendingly terrible protocol in its own right Could you detail your thoughts on this? The more I work with HTTP, the more I get impressed with how usable it is. Granted, it's not suited for some domains...
84.
▲
by
bodhi
15y ago
It would really depend on the semantics of the booking and the system. Another alternative would be DELETE /booking/:id Which is basically a more correct HTTP version of your last option. Otherwise, I would lean towards your second
85.
▲
by
bodhi
15y ago
Cool, thanks. I haven't looked deeply into it, but from a quick glance it seems to want to transform the input. For my use case I need a parse tree, with specific byte (well, character really) offsets. For example, I need to know where th
86.
▲
by
bodhi
15y ago
> The internals of the app uses NSRegularExpression I tried to implement my version of this idea[1] with regular expressions too, using OgreKit. I ran into all sorts of problems with corner cases, especially with nesting of block-level
87.
▲
by
bodhi
15y ago
Hey cool. Someone else actually knows about My Markdown Editor! I wrote #2. It's got some issues, and according to some feedback, it doesn't work on Lion (I haven't updated yet, so I can't test.) As for licence, I should really add a note t
88.
▲
by
bodhi
15y ago
"BOOT.INI" was actually introduced in Windows NT: http://en.wikipedia.org/wiki/NTLDR#boot.ini I'm planning to upgrade this weekend, hope I don't have a similar issue!
89.
▲
by
bodhi
15y ago
I don't have much empirical evidence one way or the other, but we went with it basically to reduce the number of moving parts. Although it could be argued that Passenger is only one moving part anyway, with its ability to install Nginx for
90.
▲
by
bodhi
15y ago
In case you weren't joking, it seems the bug only affected the new version: > reported what they believed to be a zero-day vulnerability in Skype for Mac 5.x Of course, that doesn't rule out other security holes in 2.8.x.
More ›