HNHacker News
TopNewBestAskShowJobs

LiveTheDream

7,980 karma · joined May 6, 2009

twitter.com/tobym

software developer, architect, leader, and educator

scala, python, go

hn @ mail.pritama.com

submissionscomments
LiveTheDream··on Declassified photos from Tinian Island as the B-29 “Enola Gay” was being loaded
Cache that has most of the images:

http://web.archive.org/web/20140930151228/http://www.alterna...

(Original site exceeded its traffic quota and was suspended)

LiveTheDream··on Useful Unix commands for exploring data
I use this command very frequently to check how often an event occurs in a log file over time (specifically in 10-minute buckets), assuming the file is formatting like "INFO - [2014-08-27 16:16:29,578] Something something something"

    cat /path/to/logfile | grep PATTERN | sed 's/.*\(2014-..-..\) \(..\):\(.\).*/\1 \2:\3x/' | uniq -c
results in:

    273 2014-08-27 14:5x
    222 2014-08-27 15:0x
    201 2014-08-27 15:1x
    171 2014-08-27 15:2x
    349 2014-08-27 15:3x
    230 2014-08-27 15:4x
    236 2014-08-27 15:5x
    339 2014-08-27 16:0x
    330 2014-08-27 16:1x
This can subsequently be visualized with a tool like gnuplot or Excel.
LiveTheDream··on Cron commands to plain English
I've been using http://cronwtf.github.io/ for years to double-check cron expressions.
LiveTheDream··on HN. Let's share Twitter accounts
https://twitter.com/tobym tweeting primarily about programming, scala, internet, startups
LiveTheDream··on Facts About the Military Empire of Switzerland
Fact 3 is not accurate as of several years ago. Most Swiss soldiers no longer keep ammunition in their homes. These days only a few thousand do so.
LiveTheDream··on Pirate Bay Releases ‘Pirate Browser’ to Thwart Censorship
Potentially stupid question – how is this different from the Tor browser bundle?
LiveTheDream··on A Hacker's Replacement for Gmail
Hushmail and Lavabit sort of do this. They encrypt emails before storing them. However, as far as I can tell they handle the public/private keypair on their own, so the security only goes as far as you trust them.
LiveTheDream··on Workflow in tmux
That works beautifully! Thank you.
LiveTheDream··on Workflow in tmux
Is there a way (short of writing a script) that will allow me to shuffle windows left and right, and/or move a window and slide the rest down?

Imagine having windows A, B, C, and D respectively in positions 0, 1, 2, and 3. I'd like to move D into position 1 so they end up in this order: A, D, B, C.

Haven't figured out how to pull this off yet.

LiveTheDream··on Unix tricks
That approach is insecure, however, because anyone with the private key now has access. When running ssh-keygen, you should add a passphrase to the key, then add the key to ssh-agent so you don't need a password for the account, nor do you need to type the key's passphrase constantly.
LiveTheDream··on Ask HN: Who is hiring? (March 2013)
Tapad, NYC. (Software engineers: primarily scala, javascript)

We're pushing the envelope on writing high-performance and pragmatic software in Scala. We're in the real-time ad-tech space, which means that we make decisions on lots of data, very quickly (95th percentile latency ranges between 5-15ms on 100k qps for one of our main services, and we can maintain the same stats if we take down half of our servers). We also are rebuilding our analytics platform to provide ever-richer insights into this aggregate data.

If you're a front-end wizard{,ess}, we also have interesting and challenging work for you! Create intuitive visualizations of key performance metrics. Make it simple for account managers to tweak dozens (hundreds?) of possible settings in our backoffice app. You will be instrumental in driving design decisions.

tl;dr -> engineering-driven organization with fantastic people and growth.

Say hello -> toby at tapad dot com

LiveTheDream··on "Website like Amazon"
These are not serious bidders. They are robo-applications or blindly copy/pasted applications by cut-rate shops that are mind-numbingly bad at development.
LiveTheDream··on Play framework 2.10 released
Mods, can you fix the title please? It's "2.1.0", not "2.10" (it runs on Scala 2.10, but the version is 2.1.0).
LiveTheDream··on Iceland Kicked Out FBI Agents Who Flew in Unannounced to Investigate WikiLeaks
> Resist complaining about being downmodded. It never does any good, and it makes boring reading.

> Please don't bait other users by inviting them to downmod you.

http://ycombinator.com/newsguidelines.html

LiveTheDream··on One fundamental difference between ElasticSearch and Solr
Alex mentions that blog post in his second sentence, and suggests that it was a poor comparison because of bad configuration for both Solr (calling commit too often) and for ElasticSearch (using 5 shard index setting). Granted, the point of this comparison was to be against the default settings for each.
LiveTheDream··on U.S. Senator Questions Attorney General about Aaron Swartz
This seems like a good thing, no? A Senator listening to his constituents.
LiveTheDream··on My Top Sublime Text 2 Plugins
Macros are the way I solve this as well. A little practice, and you won't even notice the difference. Just hit `Esc j` before ending the macro recording and moving down a line is no longer a problem :)
LiveTheDream··on Rep. Zoe Lofgren Introduces Aaron's Law [pdf]
> There is no federal law against cyber-bullying, so the prosecution in that case used these same computer and wire fraud laws to go after Drew for her role in Megan's suicide.

This is the thing that's strange to me. Seems as though existing laws against harassment would apply. What is so different about this activity online than offline?

LiveTheDream··on Rails has Two Default Stacks
Consider "Rails for Zombies"[0].

[0] I teach/tutor Rails, and my students have found this resource particularly helpful.

LiveTheDream··on Rails has Two Default Stacks
Consider "Rails for Zombies"[0].

[0] I teach/tutor Rails programming, and my students have found this resource particularly helpful.

LiveTheDream··on Lego Mindstorms EV3: The Better, Faster, Stronger Generation Of Robotics
A much better article was previously posted: https://news.ycombinator.com/item?id=5019835
LiveTheDream··on μLithp - a Lisp in 27 lines of Ruby
It's just supposed to be fun, challenging, and a learning experience.
LiveTheDream··on Scala 2.10 now available
Actually, the IntelliJ team does not use Zinc. Their compilation subsystem is basically an equivalent re-implementation of Zinc.

The reason they built their own is because they need more data about the compilation process than Zinc provides.

LiveTheDream··on Scala 2.10 now available
Here are some pointers about writing code that works well with SBT incremental compiler: http://www.scala-sbt.org/release/docs/Detailed-Topics/Unders...

Following that advice will drastically speed up your compile time while working (obviously, a clean compile will take as long as ever).

LiveTheDream··on View of Scala from Java
From the article:

    val x = new Array[Integer](3)  //type inferred for x
    x(0) = 1
    x(1) = 2
    x(2) = 3
    
    for (y <- x if y > 2)
        println(y)
The idiomatic way to do this is:

    val x = Array(1, 2, 3)
That infers the type and sets values in one shot, with fewer characters. Also, using Integer (that's the java.lang.Integer) has been deprecated since 2.8.1 I believe. `Int` is preferred unless you really mean to use `Integer` (e.g. you're using a native Java library).
LiveTheDream··on America's Real Criminal Element: Lead
I didn't get that sense at all. The article acknowledges multiple times that this is not a new breakthrough. The point is that the danger of lead is so well known that it's strange criminologists don't make a bigger deal of the lead/crime correlation. More recent studies show the lead is even more dangerous than previously thought.
LiveTheDream··on New Year’s Resolutions for the Java Developer
As a Scala developer I'm obviously biased, but I would add "try out scala" to this list.

Why? Because learning new programming paradigms is beneficial whether you stick with them or not. And Scala is easier for a Java developer to start with than Lisp or Haskell or Z or anything so foreign.

It is simple to get into because you can start basically like "java without semicolons", and IntelliJ community edition has excellent Scala support.

LiveTheDream··on Receiveee.com - disposable email address
Why should a potential customer be willing to trust you with their email address? Perhaps you are very respectful of their privacy, but already their trust has been violated plenty of times by other, less honest companies. "One bitten, twice shy" and all that.
LiveTheDream··on Receiveee.com - disposable email address
Then just give the freebies to non-throwaway accounts. Now your users still have a choice, and you don't lose any goodwill (obviously, explain that throwaway accounts don't qualify).

This is on the same level as adding a CAPCHA if someone comment looks like spam.

LiveTheDream··on Receiveee.com - disposable email address
By removing customer's choice to use a blackhole email, I suspect you are much more likely to lose them as a customer, rather than gain a happy customer with a valid email.

If they do go the latter route and give you a real email address, it is really so valuable to you? More likely, your interesting offers will get tagged with the "spam" flag, or auto-deleted by a filter.

← PreviousPage 2 of 17Next →