Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jeltz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
1245 ms
·
3541.
▲
by
jeltz
15y ago
At least in GNOME and XFCE you can decrease the default font size, which is what I did right after installing Debian with XFCE. XFCE also has really slim buttons and borders. Sadly the file manager, Thunar, is not slim at all. So if you hav
3542.
▲
by
jeltz
15y ago
Hmm, from reading the thread it does not appear to have been solved, at least not the underlying problems. What was solved was the removal of a couple of synchronous calls. The fact that there are slow queries on some profiles seems to have
3543.
▲
by
jeltz
15y ago
Indeed they do not translate into the same thing. But neither makes your program more or less portable in itself. It all depends on what you want to use it for. Some files and protocols should always have \n some always \r\n while in some c
3544.
▲
by
jeltz
15y ago
I actually believe the &:symbol syntax was added in 1.8.7 since I am 100% positive we use that in our codebase which still has not been ported to 1.9. $ ruby -e 'puts VERSION; p ["10", "2", "3"].sort_by(&:to_i)' 1.8.7 ["2",
3545.
▲
by
jeltz
15y ago
Ruby tip: Instead of .sort you can use .sort_by. grains.select{|g| g.is_a?(Salt) && g.value.nil? }.sort_by(&:irrelevance).first Edit: Changed from blank? to nil? since that is probably closer to nothing in C#.
3546.
▲
by
jeltz
15y ago
I believe this interpolation difference in Ruby originates from Perl which in turn got it from bash and other UNIX shells. I actually like the fact that Ruby and Perl have so many way to quote a string a lot since I have always hated excess
3547.
▲
by
jeltz
15y ago
Implementing HTTP long polling, which can be used to implement for example instant messaging. At redbet.com we used streaming in thin to implement the odds updates in our live betting.
3548.
▲
by
jeltz
15y ago
Not really. There are plenty of private organisations that produce no value while consuming funds. There are no major differences between large corporations and the the government in this aspect.
3549.
▲
by
jeltz
15y ago
Yeah, but letting users specify if views are MERGE or TEMPTABLE seems quite pointless. Why not always use UNDEFINED and let the planner chose. The planner knows which tables are large.
3550.
▲
by
jeltz
15y ago
I do not see why views need to be so complex in MySQL. Why not do like in PostgreSQL where they are almost just subqueries saved within the database.
3551.
▲
by
jeltz
15y ago
Inserts are not at all necessarily optimal in ORMs. Inserts can be just as complex as select queries, since they can include arbitrary select queries. A trivial case of that being. INSERT INTO a SELECT * FROM b; I personally have not felt t
3552.
▲
by
jeltz
15y ago
If I remember correctly it is only with MyISAM you get instant count(*) while InnoDB, just like PostgreSQL, has to look at every row of the table (or every row of the index since InnoDB also supports index only scans). This is due to both P
3553.
▲
by
jeltz
15y ago
Yes, but I if I remember correctly it does not happen if you run the PC version in wine on Linux.
3554.
▲
by
jeltz
16y ago
Some examples: Skype uses PostgreSQL for their VOIP services. Yahoo! has a customized PostgeSQL for their data warehousing storing a couple of petabytes of data. I believe IMDB is another quite prominent user.
3555.
▲
by
jeltz
16y ago
You are correct about Slony but if you do not care about doing any reads at the slave in pre-9.0 you had log shipping and warm standby. Warm standby is perfect for using the slave for failover in case the master crashes or the HDDs break. W
3556.
▲
by
jeltz
16y ago
Just want to note that Redmine runs just fine with PostgreSQL. We do the same at my work too, but we have less third party apps that require MySQL.