HNHacker News
TopNewBestAskShowJobs

ks

1,192 karma · joined May 4, 2007

submissionscomments
ks··on Stupid solutions: Live server push without JS
A company I worked for in 2001 used chucked streaming to provide search results. The search results were collected by performing live searches in parallel (server side) with multiple partners and then aggregated into a single stream of chunked content. Basically the HTTP connection was kept open until all searches were complete, which would take a few minutes. The results were pushed incrementally to the browser as soon as they were available

This worked surprisingly well. They started with almost pure HTML with the results split into multiple tables to produce what looked like a single table of results. The only drawback was that the columns needed fixed width so that they would align properly.

After a while they switched to a Javascript based solution with dynamic filters. They used the same backend streaming engine to output chunks of Javascript code inside <script>-tags, which called a global "addResult(...)" method to update the state. If the search was cached, it would first render HTML code server side, which was then "hydrated" by the javascript code if needed.

Later it was replaced with a standard XHR polling mechanism.

It is interesting to look back at what we had to do that is trivial with today's technology.

ks··on Show HN: Make your site’s pages instant in one minute
According to the page, it was Amazon that made the original claim, so they would have the necessary sample size.

But there's no guarantee that it will apply for all pages.

ks··on Tabs or Spaces? The Top Starred Repositories in GitHub Analysed
Wouldn't this feature be similar to how Git converts line endings?

https://help.github.com/articles/dealing-with-line-endings/

It would probably have to be configured per repo so that it doesn't mess with tab delimited files etc.

ks··on How ARM got so successful without the public really noticing
Actually ARM also has an office in Trondheim, Norway that is behind the Mali GPU (700 million processors sold in a single year)
ks··on Java: Missing Features
> If you use their vals IntelliJ will syntax highlight it as an error in red for the simple reason that it's non-compliant with the Java language spec.

There's a free plugin that adds Lombok support to Intellij. You will be able to use getters/setters/builders etc. as if they were compiled.

ks··on Java for Everything
> Map<String,User> userIdMap = new HashMap<String,User>();

1.7 introduced a simplified version:

Map<String,User> userIdMap = new HashMap<>();

ks··on Yahoo stopping all new development of YUI
You recommended a Javascript library that was maintained for 8 years. I consider that a good recommendation. Backbone and Angular have only been around for half that (yet)
ks··on Show HN: Slippery Chicken Algorithmic Composition – Open Source Lisp
Or the web server could be configured to return text/plain for *.lsp files
ks··on Only 90s Web Developers Remember This
* Navigation menu using GIF buttons. Often animated, including the rotating "@" symbol for sending mails

* Creating gradient text using one <font color="..."> for each letter. http://jsfiddle.net/A2VCE/

* Putting text in <noscript> and <noframes> tags to support old browsers

* Add "lowsrc" attribute to <img> because the larger image would take too long to load.

* List detailed hardware specs for the web server on the "about us" page.

ks··on Dark lands: the grim truth behind the 'Scandinavian miracle'
To put things in context. The oil industry is producing 20% of the total GDP of Norway and 50% of all exports. It's very important and it will be painful when it ends, but Norway will not be much worse than other European countries when the oil runs out.
ks··on What It's Like to Fail
From the article:

"Sir, are you sure you want stack loaves of bread here at Trader Joe’s? Yes, I really do. Well, we’ve decided to hire the 24 year-old woman with purple hair and nose piercings instead."

He tried to get more traditional jobs, but they don't want him.

ks··on Comcast launching broadband bundle with HBO
I use HBO Nordic and can confirm that all of the content is in the original language (usually English) with optional subtitles.
ks··on Ask HN: Should I get mentored by this guy?
If you have a flat structure (similar to rows in a database table) nothing is simpler and faster to process than a tab delimited file (or CSV).
ks··on Ask HN: Dealing with a huge MySQL database - help
You should look into caching. If you are talking about webvet.com it looks like a perfect site for using something like Varnish. Most of the content probably doesn't change often so you should be able to have a long TTL.
ks··on Babylon.js: JS framework for building 3D games with HTML5 and WebGL
It is open sourced under Microsoft Public License: https://github.com/BabylonJS/Babylon.js

According to the Free Software Foundation, it is a free software license but not compatible with the GNU GPL.

ks··on Latvia blocking extradition of Gozi writer due to disproportionate US sentencing
I imagine that it's still a very threatening experience for teller. Much worse than logging on to a computer and discovering that there are money missing.
ks··on Latvia blocking extradition of Gozi writer due to disproportionate US sentencing
Robbing a bank in person is a completely different crime. Many victims suffer mentally for years afterwards with PTSD and other issues
ks··on Meet Paulo Machado, the man who has lived in hospital for 45 years
According to Wikipedia it seems that Brazil has universal free health care http://en.wikipedia.org/wiki/Health_in_Brazil
ks··on Ask HN: I'm a chronic procrastinator – how do I break it?
Interesting image. I just made a quick tool for generating it here: http://lifeboxes.neocities.org/
ks··on Why can't women time travel?
It seems it's more common in TV-series. Examples are Continuum, Doctor Who and Primeval. Star Trek Voyager probably also had some time travel :-)
ks··on Aircraft Carriers in Space
A missile would probably be seen long before it reaches its destination and could be shot down. There's no way of hiding in space unless you develop some sort of cloaking device.

"Aircraft carriers in space" makes sense to me. I assume that warping space requires a lot of energy that requires huge reactors that don't fit in small fighters. They would depend on a "mothership" for long range travel.

ks··on Water Light Graffiti
Link to video in case the site goes down: http://vimeo.com/47095462
ks··on Electronic Arts Sues Zynga, Says The Ville Is An “Unmistakable Copy” Of The Sims
I made a mistake when answering. I should have written "The Sims Social". It was released a year ago and is the one EA claims Zynga copied.
ks··on Did Bill Gates Steal the Heart of DOS?
"And that is that. Every lead brought me not to Bill Gates but to a dead end. QDOS was absolutely not copied from CP/M, and MS-DOS showed no signs of copying either. Kildall’s accusations about Bill Gates were totally groundless."

This article has a refreshing view of the story with lots of details. Instead of the classic "Bill Gates took advantage of Kildall" story that is often repeated, this is more about the many poor business decisions on Kildall's part. If this story is accurate, it would seem that Microsoft saw an opening when Kildall couldn't close the deal with IBM and took it. I don't see anything wrong with that.

ks··on Electronic Arts Sues Zynga, Says The Ville Is An “Unmistakable Copy” Of The Sims
SimCity Social was released almost a year before Zynga's game.
ks··on Kate Middleton’s Wedding Gown Demonstrates Wikipedia’s Woman Problem
"to be honest I'm not particularly surprised that what was, on 29 April 2011[2] a stub on a wedding dress was nominated for merging."

The article was flagged only 16 minutes after it was created, so it didn't have time to evolve.

ks··on Valve hands over its own movie-making tools to gamers
I have always hoped that marketplaces such as iTunes, Google Play, Steam etc. are something that will only be necessary until consumers get used to buying stuff online.

A better future is one where each content producer would just publish meta data in an open format that others could redistribute. In the meta data there would be a link to a web service using a standard format for buying/downloading the content.

Publishers could provide affiliate programs as an incentive for creating innovative ways of distributing the content. There would still be room for iTunes as an aggregator or a service for payment/downloading, but we would not rely on a few gatekeepers for our content. By providing the meta data in an open format it will enable anyone to distribute content. We could have a "Hacker Movies" where people submit movies and vote them up or other possibilities that would be up to others to imagine.

ks··on Facebook To Buy Opera? Maybe.
> Do you have a source for that?

The article I linked says the following:

"The study, which was conducted between November 2010 and November 2011, found that globally, 56% of Opera users and 43% of those who use another browser only access the Internet via their mobile devices. In some countries, including Egypt (72%), Bangladesh (69%), Brazil (65%) and South Africa (61%), these numbers for Opera users are significantly higher."

> Granted, I'm in the US, which is probably very different from the demographics in Opera Mini's user base.

I can only speculate to why they prefer using a mobile, but I think that the infrastructure is so different from our countries that we shouldn't necessarily base our assumptions on what we would have done.

ks··on Facebook To Buy Opera? Maybe.
According to this article Opera Mini has 169 million users.

http://techcrunch.com/2012/04/29/opera-mini-now-has-169-mill...

Considering that many of the users only access the Internet via their mobile devices I think Facebook would care about them.

ks··on Why NoSQL Equals NoSecurity
I haven't tried it myself, but Redis has support for simple authentication at least. http://redis.io/topics/security
Page 1 of 8Next →