Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ramen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
ramen
16y ago
Another great tool for movement is next-error, bound to C-x ` by default, though I bind it to M-` for convenience. Despite its name, it's not just useful for jumping to error locations in source code. It also jumps to matches from M-x occur
32.
▲
by
ramen
16y ago
I worked at Borders after the dot-bomb, since my car was broken down and it was the only job I could find that I could ride my bike to. I bought a bunch of programming books with my employee discount and then realized what a complete chump
33.
▲
Can Sitting Too Much Kill You?
(blogs.plos.org)
3 points
by
ramen
16y ago
|
0 comments
34.
▲
Using SLIME with Chicken Scheme
(doof.me.uk)
1 points
by
ramen
16y ago
|
0 comments
35.
▲
WordPress plugin: PHP Floating Point DoS Attack Workaround
(wordpress.org)
2 points
by
ramen
16y ago
|
0 comments
36.
▲
by
ramen
16y ago
That page would look nicer if the text were vertically centered. I know a really easy way to do that using tables.
37.
▲
by
ramen
16y ago
I doubt I'll ever be a heavy vim user because it just doesn't fit my brain well, but this video is an example of why I have great respect for people who have truly mastered vim and can use it quickly and effectively. The rapid click-clack o
38.
▲
by
ramen
16y ago
"I once asked Ivan, 'How is it possible for you to have invented computer graphics, done the first object oriented software system and the first real time constraint solver all by yourself in one year?" And he said "I didn't know it was har
39.
▲
Internet Explorer 9 to require Windows 7 users to install SP1
(arstechnica.com)
1 points
by
ramen
16y ago
|
0 comments
40.
▲
Gmail promo for Priority Inbox creeps out Chrome users
(computerworld.com)
10 points
by
ramen
16y ago
|
7 comments
41.
▲
by
ramen
16y ago
XHTML is proper HTML5.
42.
▲
by
ramen
16y ago
I prefer Python.
43.
▲
Ted Stevens in plane crash
(nytimes.com)
3 points
by
ramen
16y ago
|
0 comments
44.
▲
by
ramen
16y ago
If you use transient-mark-mode (which is on by default these days), you can mark a region and then use replacement commands like query-replace (M-%) that affect just that region.
45.
▲
by
ramen
16y ago
I wrote something like this a few years ago. It's hard to get all the edge cases right, but it works well enough for my purposes. I still use it occasionally as a format string generator - I paste the format strings into my code rather than
46.
▲
by
ramen
16y ago
The idempotency of PUT is supposedly useful with caching web proxies, but I don't know of any caching web proxies that support PUT. Are there any?
47.
▲
by
ramen
16y ago
Until I read this comment, I didn't realize it was a Zed Shaw post. I must have skimmed right past the byline. I read the whole article without even knowing it was written by a famous programmer.
48.
▲
by
ramen
17y ago
The existence of "hooks" further complicates things. WordPress themes are essentially collections of event handler scripts, and those scripts can register callbacks such that when core WordPress functions are called, those callbacks are exe
49.
▲
by
ramen
17y ago
Possible, but exceedingly rare. For a theme to provide a top-level script, it would be referenced with a URL like mysite.com/wp-content/themes/mytheme/scriptname.php, which would be ugly, brittle, and contrary to the clean-URL style that Wo
50.
▲
by
ramen
17y ago
That article is a nice find. Thanks!
51.
▲
by
ramen
17y ago
He didn't. He used <abbr title="for example">f.ex.</abbr>. You know, an abbreviation.
52.
▲
by
ramen
17y ago
You have. Thank you.
53.
▲
by
ramen
17y ago
I hope I'm not beating up a straw man here, but I have seen many claim that REST is a good solution that scales well because the web is built on the REST philosophy. The principles of REST are why the web is a success, and so if we use REST
54.
▲
by
ramen
17y ago
XML-RPC is still supported by more languages, and doesn't require third-party libraries for Python or Ruby users. But this looks interesting, thanks for mentioning it.
55.
▲
by
ramen
17y ago
This is why some of us still prefer to use XML-RPC. We just want to make an API, and don't need any of the other baggage, especially if we can no longer map our existing software design to a REST approach. At least with real object-oriented
56.
▲
by
ramen
17y ago
PUT is used when you know the URL you are creating and you can send a whole resource. This, by convention, has been interpreted by many to mean updates, but not everyone agrees. The Basecamp API for instance uses "PUT /todo_items/#{id}/comp
57.
▲
by
ramen
17y ago
HTTP and REST give you several ways to make requests (PUT vs. POST? Fall back on POST for clients that don't support PUT? How?), several ways to specify parameters (URL path fragments, query strings, headers, or POST data?), and a set of st
58.
▲
by
ramen
17y ago
Indeed. The parameter-passing mechanism is something XML-RPC decides for you, rather than leaving the task of string concatenation (or XML message-building) to you. One might even call this "opinionated".
59.
▲
by
ramen
17y ago
So then, sending a 302 redirect in this case would be incorrect? That is how most web forms operate, and the web is RESTful by definition.
60.
▲
by
ramen
17y ago
The difference is that your example uses a URL as input and outputs a JSON blob. The URLs still need to be constructed somehow and the output needs to be parsed if you want to do anything useful with this service. To compare apples-to-apple
More ›