skysight-inc/HackerNews huggingface dataset:
That's as true lossy as JPEG, which first "blindly" applies quantization in pre-processing step before doing RLE and Huffman compression.

From the example you can see it's not a simple blur, it's side-effect of lossy application of PNG filter.
>A function that does one thing and one thing only is:
>- generally short
>- testable
> ...

This is true only if the function decomposition is intelligently done. The problem is that with callbacks, the function decomposition is forced on you based on what needs to be done asynchronously (i.e., mostly I/O). As a result, it breaks apart the flow of control into little tiny pieces that may be only loosely coupled with the most logical way to decompose functionality.

So your statement may be true in general, but it may not be applicable when it comes to how to best handle callback functions.
Haha, right on. Thanks for adding lots of good stuff btw.

I see what you mean - in the meantime you can click the 'favorites' link at the top right (instead of your name) and that will skip the profile section, unless you have a huge monitor that is.
http://developer.klout.com/io-docs
Everything seems great when you compare it to some place worse. That's why you won't find many transplants from big cities in SF, but instead lots of people from tiny Midwestern and Southern towns that moved to SF for work. So of course everyone in SF thinks the city is amazing; for most people there, it's the best place they've ever lived.

Try living in New York or LA, or even a smaller city like Boston/Seattle/Portland/Austin, and suddenly SF seems like an over-hyped bubble full of insecure people.

Regarding the "maker culture," I feel like I heard this myth a lot. In my view, SF's culture is becoming the boring valley office park culture. SF is packed with 20-30 y.o. single white and Asian males. Not the cool, eclectic city it was once know for, SF now feels awkward and boring. And again the most frustrating part of that is everyone is convinced they're living in Paris, but better cause "we're all entrepreneurs!! Looks how smart we all are!"

The comments about public transportation are laughable. SF is a joke. Even if you include the whole Bay Area's mediocre train systems, SF is a poor example of public transportation, even for the US. The BART makes one pass through a single corridor of the city and stops running at midnight.

Other cities around the size of SF: Indianapolis, IN. Fort Worth, TX. Columbus, OH. Charlotte, NC. And a lot of these cities have comparable (i.e. not very good) public transit systems.
>they do not in any way inhibit the ability to analyse or prove correct a program, and all alternatives to callbacks amount to incredibly fancy syntax sugar for hiding what is really happening behind the scenes anyway.

1) EVERYTHING is 'syntax sugar'.

2) There's nothing intrinsically wrong with gotos, they just aren't very well suited for human brains. Computers can execute goto statements very efficiently.

Callback-hell smells very much like gotos to me. It's very easy to do the wrong thing and easy to create very hard to read, hard to understand, and hard to maintain code.
Are We Private Yet?
Do you know what a strawman argument is?
http://www.techrepublic.com/blog/windows-and-office/check-ou...

This one will also output in XML. The APIs should be there in Windows 7, too.
Area mapping certainly makes better images, but it's slower. These "horrible results" actually remind me of older games and some pc demos.
Plus as with monetary wealth "fuck you" wealth has a point were happiness from it plateaus. Like a 10 billion dollars compared to 1 billion isn't going to increase your happiness much.
this way they would all be lost at the end of each session, and would not be shared across concurrent sessions, no?
The unmentioned publication behind this method is: "A Fast Algorithm for General Raster Rotation" by Alan W. Paeth. A copy of which can be obtained here:

http://www.cipprs.org/papers/VI/VI1986/pp077-081-Paeth-1986....

While most explanations of the algorithm follow this blog post and imply that it is a three pass algorithm, if one carefully reads Paeth's paper, one realizes that the algorithm can be implemented as a one pass algorithm.
I'm not sure WikiLeaks would find that to be a problem. Isn't the whole goal to eventually convince governments to release things themselves?
I had to modify Jeroen's code to get the `marks` shortcut working under Mac OS 10.8:

export MARKPATH=$HOME/.marks
function jump {
cd -P $MARKPATH/$1 2> /dev/null || echo "No such mark: $1"
}
function mark {
mkdir -p $MARKPATH; ln -s $(pwd) $MARKPATH/$1
}
function unmark {
rm -i $MARKPATH/$1
}
function marks {
ls -l $MARKPATH | sed 's/ / /g' | cut -d' ' -f9- && echo
}
You're looking in the wrong places. Nobody thinks we're close to building a computer you mom can talk to, but we are getting closer to understanding what computer languages are and their properties. On that end research is blistering and exciting.

But the industry has no need for that stuff.
Because MLK was targeted by the FBI, not by NSA. The reason why NSA failed to "help" the Boston Bombing attacks for instance, is because the Boston Bombers were American People. (ie: American citizens, or people on American Soil).

All this hub-bub about domestic surveillance, and people don't even get the right _AGENCY_ who is authorized to target Americans. The amount of ignorance on Hacker News is outstanding.

For crying out loud, if you're going to use historical examples, at least get it right damn it. You're _trying_ to cite project COINTELPRO as a reason to fear the government, sure, whatever. Get the names right, get the agencies right, and get your history right before you post!

Else you would look pretty damn ignorant to those who know history and understand politics. You do know at least the different agencies that the US Government law enforcement / intelligence community are composed of, right?

Anyway, FBI keeps files on Americans, because that is their damn job! NSA cannot, and not only are they legally not allowed to, they do not have the infrastructure to actually keep individual tabs on Americans. The FBI is in charge of the fingerprint database. The FBI is in charge of the genetic database. The FBI _authorized_ the domestic surveillance FISA court order (Read the leaked documents from Snowden himself: FBI approval is on the papers for a reason).
Area 51 officially acknowledged by CIA
Could you tell us what that extension does, iPad users visiting the link just get an OS not supported error.
Go get 'em tiger!
There are countries in the world where this would rightly trigger a bomb scare. It's nothing to do with paranoia - in some places mail bombs are a reality.
Are you aware of http://en.wikipedia.org/wiki/Rubberhose_(file_system)?
10 Keys to Managing the Business After the Startup
Not sure what the objective is, but using the "before" example 475kb lena pic, a subsequent jpg at 61k looks very close to the original, and much better than the 61k blurred png.

There is a reason why jpg has survived the test of time. It delivers a good balance of quality, performance, and is well supported. Challengers like JPEG 2000 have not gained much traction because jpg gets the job done.
http://en.wikipedia.org/wiki/JPEG_2000
A handy alias I use:

alias ..='cd ..'

Moving up the file tree has never been easier!
Apple iOS Security Defeated By Sneaky App
I made it in my final year of Secondary School.

I was hesitant to share because the target auidence isn't exactly HN, but I imagine that they're lots of clever people here who'd be able to emphasize anyways.

I know that it's not the best example of responsive design and that it's basically a sandcaste* so I was hoping for some general design mistakes that I can learn from before I rebuild the site. Particularly things that're unintuitive or out of place.

Thanks,
Jean-Le

*I needed to complete a prototype for a competition so I ended up building a sandcaste out of javascript-- Should've used wordpress for the demo... but in the heat of everything and with writing my own final exams, I just kept building it was a single page monster with ALL of the notes being stored in the javascript file >.< Seriously... when you click a new note, it just replaces the contents of an <article>... my logic being that all the extra text in the javascript cost less bandwith than a picture.

I plan to build most of the backend stuff in Clojure, so if anyone has any advice on that it's very welcome.
RedHat reaches 20 in a year and nine months.
Guilty, but I make up for it in another article on JPEG :)
http://www.datagenetics.com/blog/november32012/index.html
brew install fasd

Thank me later
If only it was something you either "got" or "didn't". I think it really depends on your personality and what you're working on. I find that it works best for long, drawn-out projects where each single task can take hours (so I used it a lot during school). Now, sometimes a task will take 10 minutes, others 45 minutes, others 3 hours, and so I find that it's much more difficult to break down work into Pomodoros.
Google Is Now 40% Of The Internet
Most users don't realize they are being tracked, and it's not trivial to opt out of it in any case.
It needs to store rows in order to support indexes, so that a row could be found without having to scan the whole table, and that's exactly what B-Trees let you do, and also add or remove rows without having to rewrite the whole table, but only affected blocks.
Surely you're not suggesting that the government and corporate interests are completely unrelated, and no money ever goes back and forth for good or services?

Wasn't it Google that optimized the NSA datacenters as early as 2005? I think its safe to assume that many of Google analytics' bigger customers are not corporate. Not to mention, of course, Google Earth which was developed with CIA money... but also needed some optimization (read, better developers). I am pretty sure that Google Earth was not a loss leader for the company ;)

I think that, amazingly in these times, you're sucking down your naivety cool aid a little too plaicidly to think that advertising cookies are not the optimal tracking method for both corp and govt.
Forces the browser to use https version (i.e. the encrypted version) of site you're trying to access instead of http wherever possible.
Isn't that the definition of a lossy format?

I mean, you are right that it's not a feature of PNG, rather a side effect of some clever preprocessing but that's just semantics.
It's my opinion that people live the life they choose. No one is tricking you into it. Who's to say which way of life is right?

Some people enjoy the pleasures of material things and stability. Some enjoy risk and experiences. People always are a bit jealous of the other side but probably are happier with the road they chose.
By attempting to prosecute the instructors, federal officials are adopting a controversial legal stance that sharing such information should be treated as a crime and isn’t protected under the First Amendment in some circumstances.

“Most certainly our nation’s security will be enhanced.”

“There are a lot of bad people out there. . . . This will help us remove some of those pests from society,”

We're letting this happen. I am so sad.
Put the following in your .bashrc instead:

shopt -s autocd

If you type a directory in the command-line, it’ll cd into it, e.g.:

$ .. # cd ..
$ ~ # cd ~
$ foo # cd foo

I can’t live without this.
You can also use ranger [1] to change directories, especially if you want to explore the directory tree quickly when you don't know exactly where to jump to. Install it and add the following to ~/.bashrc:

function ranger-cd {
tempfile='/tmp/chosendir'
/usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
test -f "$tempfile" &&
if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
cd -- "$(cat "$tempfile")"
fi
rm -f -- "$tempfile"
}

# This binds Ctrl-O to ranger-cd:
bind '"\C-o":"ranger-cd\C-m"'

(This script comes from the man page for ranger(1).)

Edit: Modified the above script for use with zsh (and multiple users):

ranger-cd() {
tempfile=$(mktemp)
ranger --choosedir="$tempfile" "${@:-$(pwd)}" < $TTY
test -f "$tempfile" &&
if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
cd -- "$(cat "$tempfile")"
fi
rm -f -- "$tempfile"
}

# This binds Ctrl-O to ranger-cd:
zle -N ranger-cd
bindkey '^o' ranger-cd

[1] http://ranger.nongnu.org/.
And why is that, exactly?
When I try installing it off the eff website, I get this message in Chrome: "Apps, extensions, and user scripts cannot be added from this website." No option to override or ignore the message :-/
Interesting idea. I've the bash built-in "pushd" and "popd" for a long time for similar reasons, but those effectively limit you to treating the history as a stack rather than an arbitrary list.
Turn any surface into multi-touch screen
UK MP's won't read your internet censorship letters
Atlassian does similar a thing every quarterly-ish, called Ship-It days (used to be called Fedex, because, you deliver overnight...but the real Fedex don't like it, so we don't call it that anymore), where you ship something over 24 hours (or 48, if you cheat a little and start early...), either by yourself, or convince other people to team up with you. Criteria is that you must have something that can be demo'ed, or better, shippable (or close to shippable). There's also prizes and presentations, then food/beer bonanza. Sure people put in extra hours, but i think they are willingly doing it because its also fun and quite a social activity, all whilst generating innovation and allow experimentation.
CSS 101: Every element tag already has CSS applied
Cloudflare Gmail MX Records: The Easy Way
doesn't do much for your ability to assess an opportunity

This is YOUR responsibility as an investor, not the governments'. I'd rather not have a government limiting my freedom in the name of protecting me for my own good.
Getty images was started by Mark Getty, grandson of J. Paul Getty who started the art museum. So, not the same member of the family.
Same here. The teacher thought I was the Second Coming because I pointed out that the response involved a strawman (the bit about "people won't think our books are soda!"). Nowadays that's a trivial thing to notice.
What Does It Really Matter If Companies Are Tracking Us Online?
Be patient, the web is still too much of a moving target, on average people aren't saavy enough to even not fear computer interactions. I've seen people resorting to printing large spreadsheets on A3 paper and then scan through with a ruler, pencil and sticky notes. All day long (treehugger nightmare) since they're all updating the same "database" and need constant refreshed~ printed data to work on. And arguably they're 10x more productive this way than their current usage (copy/paste is jeet kune do to them) and understanding of the messy[1] computer world.

When the time is right, printing will shrink to it's minimum needed size.

[1] the computer world is a gigantic mess of papercuts, for the average human, nothing makes sense, the few time it did, it changed before they could rip the benefit.
He's finessing png's lossless compression by removing detail from the source image. So it's lossy compression using a lossless file format (just like you can reduce the palette of an image and the dithering algorithm to reduce gif file sizes).
Paying Speakers is Better for Everybody
There were 61 Linux users listed

http://usesthis.com/interviews/linux/

which gives about 1/6 of those interviewed. Some of the interviewees don't give an OS, e.g., Dave Jones

http://dave.jones.usesthis.com/

who I think uses Windows and Linux.
The bomb detectors (if it passed through any) were more likely trying to detect actual chemical signatures of explosives rather than just a bunch of wires that might be a detonator. So something like this would pass fine, as it should.
I think you may need to recalibrate your idea of failure. I own a car specifically so I can load it up with gear at the weekends and go diving or camping. I know a few people who are rabidly anti-car and ride fixies. They spend their weekends bar-hopping and nursing hangovers. Fair enough, but that's not the lifestyle that particularly interests me.

Having to wear a nice suit is not failure either. Both cars and suits are just tools. It's what you use a tool for that matters. Also I'll note if you resent wearing a suit, you have never actually worn a nice one...
John Resig: http://john.resig.usesthis.com/

Matt Might: http://matt.might.usesthis.com/

Selena Deckelmann: http://selena.deckelmann.usesthis.com/

Robert Love: http://robert.love.usesthis.com/

Zed Shaw: http://zed.shaw.usesthis.com/

Benjamin Mako Hill: http://benjamin.mako.hill.usesthis.com/

Greg Koah-Hartman: http://greg.kh.usesthis.com/

Brent Simmons: http://brent.simmons.usesthis.com/

Chad Fowler: http://chad.fowler.usesthis.com/
Have you done it? Because I have and it's a right palava and then if, like me, you actually have 4 or 5 different machines good luck on keeping them in sync.

And with the release cycle on VS & MVC being as it is you have to redo them every year.

And I start maybe 4 projects a year... Really, really not worth it. Ofc, excluding the 150 console apps I make a year.

They only thing I do actually do is switch the console apps from client profile back to the full framework, that was another strange decision given how most people use console apps to test snippets of code due to the lack of a REPL.

In practical terms you learn to stop mucking around and just live with the defaults if you use a lot of different machines.
That looks extremely interesting! The idea of amortizing the cost of inserts is fascinating. Looking at the design you sketched a few questions come to mind:

1) Multi-threading: suppose I seek down the B-tree for key K. Most B-tree implementations use the latch on the node containing K as the final arbiter of concurrency. For example, if I'm looking at K and then I want the next row (perhaps because I'm using the new Index Condition Pushdown optimization in MySQL 5.6, or I'm doing an online index build and need to scan all the rows) then I can simply look at the next row on the page I currently have (read) latched. With a fractal tree it looks like I have to worry about someone inserting a row immediately after the current row because that insert could have been cached at a higher level. Does this mean I need to keep some sort of latch/lock on the entire b-tree path down to the page I'm reading, instead of using latch coupling to work my way down? Alternatively do I have to work my way down from the top of the tree every time I want the next key?

2) How can you check for uniqueness? Suppose I create a table like this:

CREATE TABLE t1 (id NUMBER PRIMARY KEY, val1 VARCHAR2(30));

Amortizing the inserts seems to imply that primary key uniqueness violations can't be discovered until the inserts are pushed all the way down to the leaf?! In general uniqueness is an important part of data normalization, a good input for query optimization and normally required for foreign key constraints...
Footage Shows a Perseid Meteor Exploding [video]
I'm too lazy to type "jump" so I've modified it to automatically add a Bash alias for each one as well.

https://github.com/davejamesmiller/dotfiles/blob/master/.bas...
go to Tools->Extensions first
But the empty one has nothing in it. I want the happy middle, not EVERYTHING or NOTHING.

So not my ignorance as you delightfully say to a person with probably vastly more experience than you, but my frustration. I would actually like to see the way they think you should do things with each new version.
Very cool, thanks! Although:

On OS X: "-bash: shopt: autocd: invalid shell option name"

Apple and their outdated tools... It gets annoying after a while.
You have to download the extension file and drag it into your extensions list.
I found this is a useful addition to his scripts... I can't live without my tab completion!

_jump()
{
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -W "$( ls $MARKPATH )" -- $cur) )
}
complete -F _jump jump
Most of the time people do and the mods change it to the original title.
Interesting but misleading. The author applied a blur filter which allowed the non-lossy PNG format to compress better. That's not lossy PNG.

The information is lost in the blur (or other pre-process) before PNG gets ahold of it.

As I understood it, I think that's opposite of what he's saying. He's saying blur helps restore info.

From the description, I understood the information is lost by deliberately omitting certain pixels that PNG rendering will try to restore from adjacent pixel data, and that he did a diagonal blur to influence the adjacent pixels to contribute better data to the missing ones. Blurring spread info into diagonally adjacent pixels improving results of using them to reconstruct missing ones.

// source is invoking three png utils, so didn't dig into what it's really doing, just saying I think the explanation is that reconstructing pixels saves space and reconstruction is improved by letting diagonal neighbors contain more info on reconstructed pixel through blur.
Rotation clockwise by 27°

http://i.imgur.com/itniCWR.png

Left is my area mapping algorithm and right is adobe photoshop bilinear rotation.