Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
byroot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
421.
▲
by
byroot
11y ago
That's not an operator, it's just precedence rules. while ((x--) > 0)
422.
▲
by
byroot
11y ago
It actually depends of the locale of the system. If you are on a French windows, it will use semi-colons as separators, encode in window cp1252 (close to latin1 but not exactly) and use CRLF (\r\n) as line returns. But then if you use Excel
423.
▲
Rails Got 99 Problems (But These Ain't Them)
(chriskottom.com)
4 points
by
byroot
11y ago
|
0 comments
424.
▲
by
byroot
11y ago
> That's really messed up... No, it's a brilliant use of polymorphism. "null" in Ruby is not a value, it's like everything else an object. So it have methods. Just because you are not used to it doesn't make
425.
▲
Introducing Shipit – Shopify's deployment tool
(shopify.com)
21 points
by
byroot
11y ago
|
0 comments
426.
▲
by
byroot
11y ago
American Civil War: Total estimated between 625,000 and 850,000 dead World War 1: 8,528,831 killed. I know we could account for relative population, but in absolute there is just no possible comparison. Relevant source: https://w
427.
▲
by
byroot
11y ago
> All those bundles of icons in fonts and sprites can be loaded in parallel going forward The protocol offers to push files indeed, but AFAIK we're yet to see any application side support for that. So I doubt it will matter anytime
428.
▲
by
byroot
12y ago
Well, to rubygems's credit they know post install scripts are a bad idea and they don't support it. The only way to do that in a gem is a hack based on extconf.rb (the original intent of this file being to compile native extension
429.
▲
by
byroot
12y ago
It's what power the coffeescript and uglifier support in Rails. You may not have heard of it, but you likely used it.
430.
▲
by
byroot
12y ago
It's already done often, especially for frontend gems. See execjs [0]. [0] https://github.com/sstephenson/execjs
431.
▲
Rails 4.2.0-rc1
(github.com)
2 points
by
byroot
12y ago
|
0 comments
432.
▲
by
byroot
12y ago
> & is syntactic sugar for .to_proc, but only within function calls It's not exactly that. & is the syntax to pass a variable as a block to a method. And ruby will implicitly call to_proc on the object it receive as a block.
433.
▲
by
byroot
12y ago
> Real, per-person voting (there's probably a term for that?) I suppose you mean direct election[0] http://en.wikipedia.org/wiki/Direct_election
434.
▲
by
byroot
12y ago
It might be true for some of it, but all these companies are well known for using european tax codes loopholes[0] and pay little to no tax on this money [0] http://en.wikipedia.org/wiki/Double_Irish_arrangement
435.
▲
by
byroot
12y ago
You can add caching to it pretty easily. If you cache the objects independently and leverage memcache multiget you can get some very nice speedups. AMS have unfortunately no caching by default, and the development was stale for almost a yea
436.
▲
by
byroot
12y ago
As usual, truncated title for sensationalism. Also it's 5 years old.
437.
▲
by
byroot
12y ago
Depends. I remember having an issue with an apache/mod_php app that was using way too much memory. The app was doing polling every 10 seconds and apache had a 15 seconds keep alive. So each user of the app was maintaining an apache pro
438.
▲
by
byroot
12y ago
> Are you sure Activerecord uses YAML in the DB ActiveRecord use YAML (by default) to serialize non scalar values like hashes and arrays.
439.
▲
by
byroot
12y ago
It just has nothing to do with cron. Cron is a POSIX task scheduler, this is a Ruby normalized API for background job systems.
440.
▲
by
byroot
12y ago
You don't really need the adapters to be bundled. The queue libraries can easily bundle their adapters in their gem or in 3rd party gems like sidekiq-rails etc
441.
▲
by
byroot
12y ago
I'm pretty sure this change was initiated by Debian. I recall it was already the case on Debian stable circa 2008.
442.
▲
by
byroot
12y ago
My bad. So OpenBSD included Apache will still be 1.3 even in the upcoming 5.5. (along a more modern nginx) Thanks for the info.
443.
▲
by
byroot
12y ago
I don't know much about OpenBSD but I know that they upgraded to Apache 2.X only very recently (1 year max IIRC) and it seems that they still maintain the 1.x version: http://openports.se/www/apache-httpd-openbsd
444.
▲
by
byroot
12y ago
That depends. New hires go through a probation period up to 4 months renewable (almost always renewed in practice) were you can be fired in a couple days without justification. I find that pretty favorable to the employers.
445.
▲
by
byroot
13y ago
Does it mean that your Redis server is accessible from the outside? Can you even tunnel that in TLS?
446.
▲
by
byroot
13y ago
Actually, as stupid as it sounds, we do start to run out of sand to make concrete in some areas. A quick search about "sand shortage" will show you.
447.
▲
by
byroot
13y ago
They are very easy to shim with polling though.
448.
▲
by
byroot
13y ago
That's why rails do no use source locale as translation keys but a dot notation e.g. "homepage.posts.title"
449.
▲
by
byroot
13y ago
Funny how her screenshot is cleared of ads.
450.
▲
by
byroot
13y ago
I don't know much about Rust, but AFAIK it's mostly static linking like Go. So 2 Rust applications won't have to share anything, so developments packages do not have to be converted into deb packages. Unlike ruby or python pa
More ›