Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
electrum
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
181.
▲
The world's largest open-source company doesn't sell software
(techrepublic.com)
3 points
by
electrum
12y ago
|
0 comments
182.
▲
by
electrum
12y ago
The wines were the same: "He presented the same Bordeaux superior wine"
183.
▲
by
electrum
12y ago
In Presto, we support the popular but non-standard IF construct as a shorthand for CASE, so you can do this: sum(if(bar, foo)) We also have a count_if() function: count_if(bar) http://prestodb.io/docs/current/funct
184.
▲
by
electrum
12y ago
The screenshot shows it crashing on a method named "semaphore_wait_trap", so that does indeed seem to be an intentional trap for calls that can block the main thread.
185.
▲
by
electrum
12y ago
The Frontier gate check fee seems to only apply to items that are not eligible to be carry-on. It would not make sense to charge to gate check a carry-on item (as you are often required to do when the overhead bins are full). http:/&#
186.
▲
by
electrum
12y ago
The Java platform has built in support for debuggers: https://docs.oracle.com/javase/jp/8/technotes/guides/jpda/
187.
▲
by
electrum
12y ago
Facebook has released designs for everything from servers and racks to entire data centers as part of the Open Compute Project (which has many more member organizations than just Facebook): http://www.opencompute.org/ A des
188.
▲
by
electrum
12y ago
Amazon VPC is far more complex: https://www.youtube.com/watch?v=Zd5hsL-JNY4 (excellent talk from one of the creators of VPC)
189.
▲
by
electrum
12y ago
IntelliJ has code folding that can display things using a less verbose syntax. For example, folding of closures (pre-Java 8): http://blog.jetbrains.com/idea/2009/03/closure-folding-in-in...
190.
▲
by
electrum
12y ago
This talk explains why: https://www.youtube.com/watch?v=MLksirK9nnE
191.
▲
by
electrum
12y ago
This uses SQLite virtual tables with a substantial amount of native code, so I imagine getting the existing SQLite JDBC drivers that rely on JNI would be a lot of work. Using a client/server model would probably be easier, though I hav
192.
▲
by
electrum
12y ago
That is a great idea, but unfortunately triggers are not supported for SQLite virtual tables. You could achieve the same thing by periodically running a query to check for such conditions. This is a common way to build alerting systems.
193.
▲
by
electrum
12y ago
This is built on SQLite virtual tables, so it didn't require writing a new SQL engine (which is a monumental task): http://www.sqlite.org/vtab.html
194.
▲
by
electrum
12y ago
At the end of the day, almost everyone queries those HDFS files with query language using Pig, Hive, Presto, etc.
195.
▲
by
electrum
12y ago
You handle this by modeling the account as a ledger with immutable entries containing unique identifiers rather than a single mutable balance. The ledger entries are facts. The balance is a derived computation. Only store facts, not derived
196.
▲
by
electrum
12y ago
Presto is a fully distributed (MPP) SQL query engine that supports Cassandra: http://prestodb.io/docs/current/connector/cassandra.html You can even join together data from Hive, Cassandra, MySQL, PostgreSQL,
197.
▲
by
electrum
12y ago
Very cool! This needs Java support and integration with IntelliJ IDEA.
198.
▲
by
electrum
12y ago
Azul's garbage collector is patented and until recently required specialized hardware: http://www.azulsystems.com/products/vega/processor Recent advances in Intel CPUs have allowed them to run on commodity ha
199.
▲
by
electrum
12y ago
Facebook, Google, LinkedIn, and Twitter making MySQL better: http://webscalesql.org/
200.
▲
by
electrum
12y ago
Using async to avoid race conditions due to multiple threads was great 15-20 years ago when single CPU machines ruled, but now you need multiple threads or processes for concurrency. Using multiple processes is usually not an option due to
201.
▲
by
electrum
12y ago
I sent patches in for curl about 10 years ago to switch from select to poll to get around the 1024 FD limit (which was a problem for multi-threaded servers that handled many sockets).
202.
▲
by
electrum
12y ago
Put another way, that is two city blocks, which is a very reasonable distance to walk after finding parking in any major city.
203.
▲
by
electrum
12y ago
The generated Java code is just bad. You can simplify it by adding imports and removing the redundant variable: https://gist.github.com/electrum/d2f7668f2a7eb95420a9 Of course, as others have mentioned, it is validatin
204.
▲
by
electrum
12y ago
Do you have any examples of awesome restaurants that have poor ratings on Yelp? Assuming a sufficient number of reviews, Yelp ratings are at least "directionally accurate". In my experience, a place with four stars is decent and t
205.
▲
Aspen to Students: Your Property Book is Not Your Property
(eff.org)
13 points
by
electrum
12y ago
|
2 comments
206.
▲
by
electrum
12y ago
> For Linux and Mac (command-line only) I've gotten into the habit wrapping up a JAR in a shell script There is a Maven plugin to do this: https://github.com/brianm/really-executable-jars-maven-plugi... We use
207.
▲
by
electrum
12y ago
Symlinks work for gh-pages. We use it for linking to the current version of the docs: https://github.com/facebook/presto/tree/gh-pages/docs http://prestodb.io/docs/current/
208.
▲
by
electrum
13y ago
Please note that warning in the manual that TRUNCATE is not MVCC safe. You might want to use a normal "DELETE FROM namesummary" instead.
209.
▲
by
electrum
13y ago
This is a bit easier to read if you ignore whitespace (add ?ws=1 to the end): https://github.com/boto/boto/commit/95939debc3813468264159d5...
210.
▲
by
electrum
13y ago
System Preferences -> Keyboard -> Use all F1, ... as standard function keys
More ›