News for hackers. Stuff that matters.

KevBurnsJr

Re:Bloom filters are good for search that does not scale on Tuesday November 04, 2025 @12:35PM (#45813639)
Reminds me of @danthegoodman's project: bloomsearch [1]

[1] https://github.com/danthegoodman1/bloomsearch

Build it in Lisp and name it Hacker News.
Re:Varnish in Five Acts on Monday May 06, 2013 @06:50AM (#5661718)
It's nice to see x-invalidates in the wild!

Do you have just 1 varnish instance or two?

I never did fully solve the ban propagation problem when running multiple redundant varnish instances.

Re:Internap evacuates LGA datacenter on Tuesday October 30, 2012 @12:19PM (#4718013)
Internap's cloud service taken down by Sandy's cloud service.
Re:PhalconPHP - High Perf PHP Framework as a C Extension on Saturday August 25, 2012 @10:11AM (#4432076)
You might want to read up on HPHP. I've found that it doesn't offer the level of performance benefits most people expect.

Also there are a number of framework features you can't use with HPHP, like autoloaders.

Re:A social network for programmers on Saturday August 18, 2012 @08:57AM (#4401011)
That cross-eyed nitwit on the logged out homepage is an insulting stereotype of geek culture.

http://programming.com/static/img/bg.jpg

This website can go fuck itself.

Re:Headphones for Hackers on Saturday February 25, 2012 @11:11PM (#3634785)
IEM vs OEM?
Re:Ask HN: Is this a shady recruiter? on Saturday September 24, 2011 @02:04PM (#3033879)
good for you
Re:Ask HN: Is this a shady recruiter? on Saturday September 24, 2011 @07:25AM (#3033019)
More than likely, the business is unhappy with the terms of the recruiter's agreement. These guys will do all sorts of things with contractors like add a 30% commission on top of your hourly fee and bake in a clause entitling the recuiter to a bonus equal to 20% of your salary if the company decides to hire you full time.

You will probably not be offered this position any way except through the recruiter.

My advice is to continue your search, and only work with embedded recruiters who are paid hourly or salary for their services. These recruiters will have corporate email addresses matching the companies they represent.

Re:Parse Releases Their REST API on Monday August 22, 2011 @07:40PM (#2914653)
"There is no "correct" separate from usefulness in communication."

I think you may have misunderstood your source. Subjective truth is only half of the equation. The other half is testing rational models against experience. If you understand the constraints of REST, you understand that it has implications not met by the API in question and thus claims to be something which it clearly is not.

Just because I tell you I'm a duck doesn't mean I'm a duck.

Re:Parse Releases Their REST API on Monday August 22, 2011 @07:36PM (#2914638)
Your argument appears to be unconcerned with truth, wisdom or understanding.
Re:Parse Releases Their REST API on Monday August 22, 2011 @07:16PM (#2914570)
Saw Subbu speak at RestFest on Saturday. His talk seemed to promote REST as a set of constraints which produces a set of benefits. He argues that choosing a subset of constraints to achieve a subset of benefits is perfectly valid.

I would add that you must first have a deep understanding of the constraints and their associated benefits in order to make those types of informed decisions about your system's architecture. In my experience, the constraints are so orthogonal that a great number of the benefits of a system created using the REST architectural style only become evident in the overlap as the constraints empower each other.

Combining these constraints can elicit new benefits.

Re:Parse Releases Their REST API on Monday August 22, 2011 @03:11PM (#2913676)
Re:Underscore.php on Tuesday August 09, 2011 @09:29PM (#2866314)
This is terribly misguided.

You do know that PHP has built-in min and max functions, right?

  And array_map. 
  And array_walk. 
  And array_filter. 
  And array_reduce. 
  And array_slice. 
  And array_unique. 
  And array_search. 
  And range. 
  And empty. 
  And is_object. 
  And is_array.
Re:Some People Understand REST and HTTP on Sunday August 07, 2011 @06:31PM (#2857982)
There are 3 ways to use media types in web APIs. http://blog.kevburnsjr.com/domain-specific-media-types-and-r...

  0 domain specific media types    (application/json)
  1 domain specific media type     (application/vnd.github+json)
  many domain specific media types (application/vnd.github-issue.text+json, ...)
GitHub's v3 API uses the latter.
Re:Some People Understand REST and HTTP on Sunday August 07, 2011 @06:23PM (#2857956)
If you accept those constraints which you readily understand and discard those which require great discipline to master, you are unlikely to make informed decisions about your software's architecture.
Re:Some People Understand REST and HTTP on Sunday August 07, 2011 @05:38PM (#2857819)
REST is a style, not a pattern. The application of this manner of classification to application architectures on the web was the broader goal of Fielding's dissertation, titled "Architectural Styles and the Design of Network-based Software Architectures".

See chapter 1 http://www.ics.uci.edu/~fielding/pubs/dissertation/software_...

Re:Some People Understand REST and HTTP on Sunday August 07, 2011 @05:25PM (#2857782)
It tells you it's not HTML. That's useful if you hope to parse the message body.
Re:30/10/10 on Sunday July 31, 2011 @03:16AM (#2827841)
Yoda concludes bloated these numbers are.
Re:Home server build, part one - specifications on Sunday July 31, 2011 @02:27AM (#2827781)
also i don't have health insurance.
Re:Home server build, part one - specifications on Wednesday July 27, 2011 @12:38AM (#2810794)
That's way more CPU & RAM than you're going to need. 850W is A LOT for an idle machine. Fortunately, you won't draw anywhere near that without a graphics card.

Let's do some math.

Say your machine draws 250 Watts (~2 Amps). That's 6 KilowattHours(kwh) per day.

The US. national average for electricity is $0.112/kwh (as high as $0.31 in Hawaii) http://www.eia.gov/cneaf/electricity/epm/table5_6_a.html

Electricity for your machine will cost 6 * $0.112 = $0.67/day (on average)

That's $245.28/yr

These days you can get integrated Atom boards with up to 8 SATA ports.

Less power, less heat, less space. http://www.mini-itx.com/store/?c=2

Re:Home server build, part one - specifications on Wednesday July 27, 2011 @12:19AM (#2810747)
I've got an Alix parked under my router and it uses about 0.07A http://cgi.ebay.com/270782068385
What about

  /buckets/loot/index/category_bin,armor/price_int,300,500
Looks a lot like link walk syntax, don't it?
Here are two (minor) considerations

1) If you want to be pedantic about HTTP, RFC 2616 states with respect to responses from URIs containing query strings that "caches MUST NOT treat responses to such URIs as fresh unless the server provides an explicit expiration time." Although this clause is broadly ignored by the vast majority of middleware, it could be argued that slashes are more correct. http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13...

2) Middleware like Squid comes with strip_query_terms on by default so if you put Squid in front of a Riak cluster and you wanted to see what was actually being run you'd have to make changes to the config file. Otherwise the request uri in the logs just reads "/buckets/loot/index?"

Older »