HNHacker News
TopNewBestAskShowJobs

j-kidd

221 karma · joined June 21, 2011

submissionscomments
j-kidd··on Plug: the brain of your devices
I went through a similar phase trying to use an OpenWRT router plus external hard drives for file sharing. The main problems are performance and reliability. I can only get 20 MB/s read and 10 MB/s write using a decent router with a decent processor (MIPS 74Kc). Plus, USB connection is much less reliable and sometimes the drives would get disconnected.

From the kickstarter page, Plug can only do 30 Mb/s, which is ~4 MB/s and likely not enough to stream Bluray ISO. A fast enough processor is essential for NAS.

j-kidd··on Amazon Drops Price Of EC2 Dedicated Instances By Up To 80%
The "buydown" option provides a nice alternative between colocation and dedicated server. With initial setup fee of $1300, you can get a server with similar specs to m2.2xlarge + 4000 IOPS for just $139 a month, while not having to worry about replacing failed hardware parts and resource contention. Sweet.
j-kidd··on Cloud server showdown: Amazon AWS EC2 vs. Linode vs. DigitalOcean
http://blog.sciencelogic.com/netflix-steals-time-in-the-clou...

tl;dr: Netflix kills slow performing AWS machines due to resource contention

j-kidd··on Let's deploy via Git
On one end, you have stone age developers who need Visual Studio on production systems because that's the only tool they know.

On the other end, you have hipster developers who need Git on production systems because that's the only tool they know.

j-kidd··on I Can Haz Init Script
> Wanna have multiple memcache buckets, ... [snip]

On Gentoo, you would just create /etc/conf.d/memcached.xxx and then symlink /etc/init.d/memcached.xxx to /etc/init.d/memcached.

Relevant ChangeLog entry:

  14 Jan 2005; Lisa Seelye <lisa@gentoo.org>

  +metadata.xml, +files/1.1.12/conf, +files/1.1.12/init, +memcached-1.1.12_rc1.ebuild:

  Add 1.1.12-rc1 and retool the conf/init scripts to take advantage of the new
  -P (pidfile) option. The default behavior is to save the pidfile in
  /var/run/memcached/memcached-PORT.pid. This, it seems would make it easier
  for people to have multiple instances of memcached running (simply rename
  /etc/init.d/memcached to /etc/init.d/memcached.instance and the conf.d file
  accordingly.
j-kidd··on Python Headless Web Browser Scraping on Amazon Linux
Off topic: it is perfectly fine to install things like PyQt / PySide on a headless server. I suppose the problem is because the distro doesn't provide these packages?

Also, PhantomJS works fine in this case because the binary in the tarball is statically compiled. You can find a whole lot of qt stuffs inside PhantomJS source repository. There ain't no such thing as "truly headless".

j-kidd··on Retiring Chrome Frame
That's the beauty of Chrome Frame. In most cases, it gets "deployed" without needing any approval from IT.

Chrome for Business looks like a solid and proper upgrade path, but it does require a semi-progressive IT team.

j-kidd··on The Code You Don't Write
Those are certainly valid points, but I can't help but feel like the OP is going down a slippery slope, and will soon start contracting out coding work to 3rd party, which would then comes back full of bugs and doesn't mesh nicely with existing architecture, thus requiring full-time maintenance from internal staffs anyway.
j-kidd··on GitHub was down
That sounds a lot like Linux kernel development.
j-kidd··on IBM to Acquire SoftLayer
That bit is definitely wrong for EC2, which is notoriously slow in dropping the prices.

The web hosting business has always been cut-throat, where price cutting and overselling are the norm. And since we started to have fast enough CPUs several years ago, the price has been dropping ever faster, as the CPUs continue to work after the initial costs have been recouped. For example, nowadays there are a lot of deals for dedicated servers with Xeon L5420, a quad core 2.5Ghz processor released in Q1 2008, before EC2 went public.

The sad part about EC2 is that it doesn't shy away from overselling while keeping the same high price. The micro instance with its meager CPU allocation would be the poster child of overselling. There are some naive crowds here who believe EC2 doesn't oversell. Well, just ask Netflix: http://blog.sciencelogic.com/netflix-steals-time-in-the-clou...

j-kidd··on Why I Dislike EC2
You are making it sounds like EC2 versus dedicated hosting. There are other cloud hosting providers such as Joyent who offer much better performance and reliability at lower price. In Joyent case, they even have experts of the whole stack (Illumos, ZFS, DTrace, KVM) working internally.
j-kidd··on Why I Dislike EC2
The hybrid technology you mentioned came from Voxel, which was looking really good before the company was acquired by Internap. Now, it seems like the service has gone downhill: http://www.webhostingtalk.com/showthread.php?t=1213599
j-kidd··on Our SQL interview questions
For interview question, the keyword I like best would be EXISTS. Sadly, many developers write SQL for years without knowing its existence. If I am not mistaken, the propel ORM of symfony doesn't even have native support for it.

As shown by codegeek, the 6 questions here can be answered without needing sub-query. Maybe we can add something like "List employees who are not working alone in their department"

j-kidd··on Leaving Google’s silo: Alternatives to Gmail, Talk, Calendar, and more
I am pretty sure ownCloud web client does have timezone support, but he didn't change the setting.

From http://owncloud.org/support/calendars/

> The calendar needs your current position for detecting your timezone. Without the correct timezone there will be a time offset between the events in owncloud and your desktop calendar you synchronise with owncloud. You can also set the timezone manually in the personal settings.

After reading the article, it seems like the author hasn't looked too hard into self-hosted solutions.

j-kidd··on Why MongoDB is a bad choice for storing our scraped data
Perhaps they did their research on MongoDB and knew all the limitations, but thought to themselves "meh, I can solve all that in the application code", and eventually found out it wasn't so easy to handle transactions and joins in the code?

After all, developers are rather susceptible to the "don't tell me I can't do that" behavior.

j-kidd··on Python's sad, unimaginative Enum
If we go with your way, then we would have problem like this:

http://stackoverflow.com/questions/630803/associating-enums-...

The new enum library does more without introducing new syntax, and I think that's a good thing.

j-kidd··on Bug 698544 – Background configuration is missing in terminal profile editor
That's the problem with self-proclaimed usability experts. They see the word "consistency" and think to themselves "Oooooh, I shall make everything consistent".

This is why in Gnome, all tab bars are on top, including in the terminal. Consistency for the sake of consistency.

j-kidd··on Bug 698544 – Background configuration is missing in terminal profile editor
The craziness started more than 10 years ago when Havoc Pennington declared himself as the "usability expert" by writing this article:

http://www106.pair.com/rhp/free-software-ui.html

Excerpt:

> On hearing that preferences have a cost, some people get upset that we're going to remove every preference, or that their favorite one is gone, or whatever.

Sometimes I think the problem with Gnome is that the cost for them to do anything is just too high, due to bad architecture. Thus they always opt to do less. This is in contrast with KDE's approach, where they strive to improve the architecture, so that it is easier to do more.

j-kidd··on Obsession
I am sure there are many Grade A students who never went on to do amazing things, simply because there are many aspects in life that cannot be controlled. Many things one does in life end up being meaningless, and that's life. Your grudge against Grade A students is unjustifiable.

You may want to check out this movie: http://www.imdb.com/title/tt2036416/

It is a story about Giddens Ko, who grew up despising Grade A students, then became somewhat of a Grade A student himself. He went on to become the most successful Chinese author / director.

j-kidd··on Lessons learned defying Joel Spolsky with Django
> I've always found it kind of odd how there are some people who despise SQL merely for its syntax, yet they'll turn around and advocate the use of libraries which mimic a SQL-like syntax in some other programming language (but do an absolutely terrible job at it).

No, I use ORM because I love SQL. ORM doesn't replace SQL. ORM helps to generate the exact SQL I want with much less code.

I have seen application with thousands of stored procedures, most of them boilerplates, and only supports one particular flavor of RDBMS. I have seen too much hand-crafted SQL in the form of "@param_xxx IS NULL OR field_xxx = @param_xxx".

I used to think that Tom Kyte was right, that everything should be in stored procedures. Now, I am thankful for ORM (more specifically, SQLAlchemy).

j-kidd··on I Knew a Programmer Who Went Completely Insane
All football fans in the world agree with Albert Einstein :)
j-kidd··on I Knew a Programmer Who Went Completely Insane
I am not sure if the "just coast" advice would work. The source of stress is still there, still sapping away all the mental power, still occupying your brain during shower.
j-kidd··on Schrödinger's 😻 and outside-the-box naming
Handling of special character is usually a bigger problem than unicode. Just today, I tried to name a file with both a single quote and an exclamation point from bash shell. Ended up doing that with a GUI file manager.
j-kidd··on Be More Productive: Avoid Task Switching
Or put on your sysadmin hat and ssh into your Gentoo machines and do some maintenance works. Soon you will have more screens to stare at.
j-kidd··on Git koans
Let's say I modified an existing file (not staged) and then git add a new file. It is a work in progress, and the two changes are not supposed to be in the same commit.

Now, what can I do to see all changes I have made so far?

I have done this many times with subversion (svn diff) and mercurial (hg diff). Git's index just get in the way.

j-kidd··on Git koans
Retroactively justifying things is what we always do. Here's an excerpt from Dan Ariely's "The (Honest) Truth About Dishonesty":

> The experience taught me that sometimes (perhaps often) we don't make choices based on our explicit preferences. Instead, we have a gut feeling about what we want, and we go through a process of mental gymnastics, applying all kinds of justifications to manipulate the criteria. That ways, we can get what we really want, but at the same time keep up the appearance -- to ourselves and to others -- that we are acting in accordance with our rational and well-reasoned preferences.

Simply replace all occurrence of "we" with "mercurial/git fanboys" based on your own preferences ;)

j-kidd··on Answering your questions about Heroku routing and web performance
Sorry about the accusation. I read the Bamboo's issue wrongly. The article from Feb 2013 seems to imply that the slow degradation happened from 2011 to 2013. It starts with "Over the past couple of years", I guess that's what got me confused. The FAQ clarifies that the slow degradation happened from 2009 to 2011.
j-kidd··on Answering your questions about Heroku routing and web performance
From the article:

> Q. Did the Bamboo router degrade?

> A. Yes. Our older router was built and designed during the early years of Heroku to support the Aspen and later the Bamboo stack. These stacks did not support concurrent backends, and thus the router was designed with a per-app global request queue. This worked as designed originally, but then degraded slowly over the course of the next two years.

From Adam's message on Feb 17th, 2011 (https://groups.google.com/forum/?fromgroups=#!topic/heroku/8...):

> You're correct, the routing mesh does not behave in quite the way described by the docs. We're working on evolving away from the global backlog concept in order to provide better support for different concurrency models, and the docs are no longer accurate. The current behavior is not ideal, but we're on our way to a new model which we'll document fully once it's done.

It looks like random load balancing was already the expected behavior 2 years ago? The "slow degradation" part seems a bit dishonest to me.

j-kidd··on How much sleep do we really need to work productively?
http://en.wikipedia.org/wiki/List_of_Chinese_discoveries

Scroll down and look for Circadian rhythm.

j-kidd··on How much sleep do we really need to work productively?
The article is about how little study has been done about sleep:

> One of the biggest problems I’ve discovered is that sleep is such an over talked topic. We get the general idea that we know all about it: how much we need of it, how it impacts us and why this or that happens when we sleep. Once I took a step back to really think about where our knowledge about sleep comes from, I realized that nearly all of it is based on hear-say or what my mom told me when I was in elementary school.

I was merely quoting some well-known wisdom (among Chinese) (but not well-followed) from an old book [1] written based on actual clinical experiences. And it also happens to support fakeer's suggestion. If that's not up to some scientific standards, at least it is one step above "hear-say" and "what my mom told me", don't you think?

This is such a complicated subject, and I doubt there has been any concrete study that can conclusively prove anything. For me, the point of the article is to provoke exactly this kind of discussion.

[1] That's what the wikipedia article is about.

← PreviousPage 2 of 7Next →