HNHacker News
TopNewBestAskShowJobs

adamzochowski

651 karma · joined November 19, 2009

submissionscomments
adamzochowski··on Infrastructure Mistakes Companies Should Avoid
Parent spoke about 'sensible goal' that is needed by business. If engineer delivers something that is not sensible but overengineered, then maybe it could be called fraudulent.

Business needs wheelbarrow, receives a tesla instead.

adamzochowski··on Diet Advice That Ignores Hunger
Assuming your body, with your lifestyle, requires on average 3500 kcal a day to sustain itself, and if your body can extract 3500 kcal out of the sand you produce, then yes, you won't lose weight.

There are multiple factors that change:

1) intestines+stomach can have different absorption rates

2) food preparation can change amount of calories (cooked food simplifies calorie extraction)

3) glycemic index affects how readily cell absorb calories

4) body can only release a limited amount of energy out of fat cells per day (study seems to suggest 22kcal per day per pound of fat). Deficit beyond starts burning through other tissues than fat

5) Base metabolic rate - different weight and different lifestyle will have people have different amount of daily required calories

There are many things that are affected, and it is best to calculate out yourself. How efficient is your body in absorbing calories, and how efficient is it in burning them, and then ensure you absorb less than you need to burn.

adamzochowski··on Important Notice Regarding Public Availability of Stable Patches
I think "spendy" is his irc nick. And "spender" is his grsec machine nick https://www.grsecurity.net/~spender/
adamzochowski··on MapQuest still exists
In classic mode, you can do street view half of the screen, and map/earth view the other half of the screen. This is amazing if you are travelling to a new area and want to learn map quickly (as you see street view and map view at the same time, in as much detail).

The new street view hides the map in bottom corner, it now is a small thumbnail travesty with no way to to make it larger. And the thumbnail map cannot be made into satellite/earth view.

adamzochowski··on Lily – Drone camera
http does. https doesn't.
adamzochowski··on PHP: md5('240610708') == md5('QNKCDZO')
Yes, JavaScript will convert strings into numbers

    console.log(5*"12");
    60
    console.log(5*"0x0C");
    60
adamzochowski··on Why Are Geospatial Databases So Hard to Build?
One GIS user/developer I spoke with mentioned a project they had: Find best place in town to build a mall.

This included information such as land elevation, floods areas, soil types, distances to roads and their importance (highway, major motorway, how many lanes), distance to facilities (electricity / gas / water / sewer), population demographics (wealth, buses) etc.

So beyond just measuring distances and polygon coverage, your GIS will have a lot of layers of data. Each layer either representing different data in itself, or just more detail. The query then is to find best matches knowing data, criteria, and rankings.

adamzochowski··on Wikipedia in unseen UI
'Space' key doesn't go to next page.

'ctrl-pgup'/'ctrl-pgdown' - when switching browser tab the content page also switches.

scrollwheel doesn't advance to next page

can't select text for copy / paste.

on a small resolution the right hand side doesn't scroll with main content.

middle click doesn't open a new tab (if the mouse doesn't have middle button, the scroll wheel often is clickable and performs the middle click). In same vein, ctrl-click doesn't work (I think in IE world, shift-click also is used to open in a new window).

search for text is broken. For example: on the opened up starwars page I want to search for 'Boba Fett'. I press ctrl-f, type in 'Boba fett', and I get nothing.

I do miss the buttons for: edit/view history/view discussion/other languages. I don't need new functionality behind the buttons, just a way to see them, they can be linking to the real wikipedia for that.

adamzochowski··on BEP 30: Merkle hash torrent extension
edonkey has two methods of file verification. The ED2K hash as you have mentioned. However, around 2004, edonkey world also received nicer AICH hashes. People that generate ed2k style links are encouraged to make include the

To recap:

ICH : inteligent corruption hash : also known as the old original ed2k method. Root hash is md4 and is generated from a series of md4 hashes generated for 9.5mb chunks. If a file is below 9.5mb then ed2k root hash is just the real md4 hash.

AICH : Advanced inteligent corruption hash : is a full Merkle tree using SHA1, where chunks are 180kb (with exception of a chunk on the 9.5MiB boundary). This weird part/chunking allows to map 53 of these AICH chunks perfectly into the ed2k chunks.

More on this available at :

http://www.emule-project.net/home/perl/help.cgi?l=1&rm=show_...

http://en.wikipedia.org/wiki/EMule#Basic_concepts

http://wiki.amule.org/t/index.php?title=AICH_Hashset

adamzochowski··on My Quest to Build the Ultimate Music Player
There are many issues with tags:

- multi language - id3v2 tags support having multiple title tags. Yet software will assume there is only one, and won't show alternative titles. This becomes problem when exactly same song has multiple names, one in original script, one transliterated, one English translation.

- old international tags - most software can't deal with Russian KOI8 and Polish Mazovia at the same time

- multiple artists - there are songs that are collaborations of multiple artists. For example: 'Will.I.Am & Brittney Spears' gets treated as own artist, as opposed to collaboration. Music Brainz and Discogs handles this in their data.

- alternative artist names - Some artists produce under alternative names. Most tags assume that 'Norman Cook' and 'FatBoy Slim' are two different artists. Same with 'Richard James' and 'Aphex Twin'. Discogs handles this

- hierarchical, multiple genre tags - Most software supports simple genre tags. Few applications can handle multiple genre tags. What about tag hierarchy (ie: Rock -> Symphonic Rock -> Kraut Rock?).

- Extended info tags: mood, style, bpm, key - Sometimes when I am melancholy I care for love songs, I don't care for genre, it can be jazz, or death metal (last.fm data contains enough to map mood/style/decades). When I DJ, I need info on BPM and Key (ie: A Minor), so that one song fits the next. (from Echonest / Beatport support this)

- composer vs performer - for classical music it is as important to know who composed a piece (ie: Chopin - Funeral March) as who was the perfomer (was it Rubenstein or Padarewski)

- spoken word - music listening is quite different from spoken word, like audiobooks. Most software sees just a music file and doesn't handle proper spoken word distinction, while use case is very different

- tag sources - while writting tags, there should be additional tag saying where it came from. Foobar's Foo_discogs and Foo_musicBrainz plugins will write source ID, so that at a later time songs can be updated to online db (assuming discogs/musicbrains has updated their db entry)

- song popularity - there are tags to track song popularity and ratings, yet most software ignores it, or does this badly themselves

- stand alone songs vs mixed songs - some albums / artists have stand alone songs. These can be listened to randomly. Other albums will have songs flow one into another (listen to any Jean Michelle Jarre album, or live dance music split into tracks). There is no proper handling of how these flow

- replay gain - most software is not smart to handle album vs song replay gain properly. Not to mention that there are two types of replay gain for mp3s alone. One will change quantization values, one will write tags.

- images - APIC tag adds image support, yet most software barely reads cover APIC, and ignores remaining APIC (like label logos). Not to mention that this is lost space as each song in album will contain own APIC, making a duplicate of images.

- label tags - Some people like to listen music based on the label that published it. UKF Dubstep, Monstercat, or Ninja Tune are just some labels that people keep track of.

- alternative versions - some songs will have alternative versions, I don't mean remixes or covers by someone else, but main artist will often release few copies of the song. Sometimes the difference is in swear words (explicit vs censored), othertimes it is matter of length (original 7 minute mix vs radio 3 minute mix), other times it is matter of single having vocal vs instrumental versions. Sometimes it is a matter of live recording (ie: mtv unplugged). Most software will either assume songs are different because title tag is different, or will assume they are exactly same.

- sort tag - artists have one name they are to be displayed while should be sorted differently. For example: The Beatles should be under letter 'B'. Most software sucks at this, even though we have the tags, they are not there.

- album subtitle - some albums will have CD1 and CD2 with a subname. For example two cd album 'Destination Lounge: New York City', has CD1 subtitled 'Relax' and CD2 'Revive'. Most software either will need to drop the per cd subtitle, or will split and consider CD1 as separate album from CD2. http://musicbrainz.org/release/cec1efa8-6541-4f9c-8f55-c86b1...

These are just some off top of my head.

adamzochowski··on Developer and Power Users Tool List for Windows
The only time I had Total Commander stop a copy like that was with bad usb hubs/drives that can't sustain fast writes and need to be down throttled. This is the reason why tcmd has option to change how it handles drives, the size of the chunks it reads and writes, and the speed at which it does it.
adamzochowski··on Want to Win a Political Debate? Try Making a Weaker Argument
Looks like a variant of Poe's Law.

> without a clear indication of the author's intent, it is difficult or impossible to tell the difference between an expression of sincere extremism and a parody of extremism

http://en.wikipedia.org/wiki/Poe's_law

adamzochowski··on WebKit has implemented srcset
JPEG2000 had awesome option of having progressive quality. During compression user could specify number of quality years, with each layer having specific compression ratios. Browser could download a chunk of JPEG2000 and render it, and depending on bandwidth available the browser would keep downloading and improving image quality.

Both Jasper support this (ilyrrates) and OpenJpeg (-r and -q) support this functionality.

adamzochowski··on WebKit has implemented srcset
lowsrc was awesome. To conserve bandwidth I would often switch to lowsrc.

The new solution seem to be geared towards people running retina displays, without doing anything about progressive quality for people with low bandwidth.

adamzochowski··on Leaked Samsung exFat driver relicensed as GPL
Actually it matters.

Original code is GPL. I make modifications. These modifications are mine. Someone stealing my modifications is performing IP theft.

Now, GPL stipulates when I have to release my modifications. I only have to release my patches when GPLv2: I distribute software to clients/users. In GPLv3 it is when clients/users use my software (aka: webservices).

adamzochowski··on Falsehoods programmers believe about addresses
A friend just moved to a house number 1 on the street. Left of him is the typical number 3. To the right, someone added duplex, which provides two units: 1A and 1B.
adamzochowski··on Stop Validating Email Addresses With Your Complex Regex
Domains without MX record can be valid, as mail servers, upon lack of MX record, will query for A record.
adamzochowski··on Collection of the best fonts for programming
Column mode becomes helpful any time you have a few lines of code that look and operate very close to each other.

For example https://github.com/torvalds/linux/blob/master/security/commo...

you are writing "cap_capget", you could write three lines,

     effective
     inheritable
     permitted
And now, select in block mode the text you typed, click copy. Then select blank column to the right of any of the text, and type

     = cred->cap_
once you finished typing that (since you typed in block mode, it typed that across all 3 lines at once), now press your ctrl-v . and then type semicolon. Done.

        *effective   = cred->cap_effective;
	*inheritable = cred->cap_inheritable;
	*permitted   = cred->cap_permitted;
Here is some quick example of how you could use column mode during programming.

http://www.youtube.com/watch?v=yeYmPV3DpG8

adamzochowski··on A 29-year-old on the difficulties of landing a first job
Lone Person in Toronto has median of 22k http://www.statcan.gc.ca/tables-tableaux/sum-som/l01/cst01/f...

Lone Person in Toronto treated as Family (single parent) has median of 39k http://www.statcan.gc.ca/tables-tableaux/sum-som/l01/cst01/f...

I noticed that you put down 300$ into savings, but later, at end of month, you claim that there 0$ left, as if savings evaporated. Other numbers

As per housing / condo market I totally agree. Toronto and Vancouver are way overpriced. To anyone interested on Canadian housing market I recommend checking out http://www.greaterfool.ca/

adamzochowski··on How much does it cost to be an audiophile?
http://www.engadget.com/2008/03/03/audiophiles-cant-tell-the...
adamzochowski··on Marissa Mayer Makes First Yahoo Acquisition: Stamped
Cronyism is when one hires useless people just because they are beneficial for your own sake, not for the collective good. Wikipedia agrees "" The practice of favoritism based on relationships and connections - rather than someone who demonstrates top credentials and well-suited experience "".

The main question then becomes, were they hired more for relationship and connection or because of their credentials and experience?

adamzochowski··on Smart license plate frame that prevents you from getting a ticket
Why is the hate for cameras justified? There are two proper solutions:

1. if road is unsafe beyond certain speed, then better drive safe at the prescribed limit

2. if road has artificially lowered speed, then just get the legal speed increased

These license plate hiding technologies are a poor solution to real problem: people driving recklessly, and laws being too strict.

adamzochowski··on Use What Works: Prefixing Database Tables With 'tbl'
1) you can use plurals, so "select from orders"

2) typically there is no single order table. Most systems will have order_summary / order_details / order_items / order_packages . Think of handling a single order that has multiple products each of multiple quantities. And to complicate, fulfillment of product quantity requires multiple warehouses / shipments.

3) you can have a table called order, you just have to ensure to escape it properly, either double quotes or square brackets. Similarly table names can have spaces in them.

adamzochowski··on Small but significant usability sins that websites should never commit
Cards usually have the numbers in a groups of 4 digits. When typing into a field let me type in same groups of 4 digits. It is easier to see that there are 4 groups of 4 digits each, as opposed to counting a blur of 16 digits.
adamzochowski··on Hacking WinRAR for fun and profit
ZIP contains full listing at the end of the file. Saying this, ZIP also prefixes file data with file header information, allowing to decompress partial zips. ZIP recovery software will use this to recover broken zips.
adamzochowski··on Animated GIFs the Hard Way
GIFs standard is awesome, it is that most of the software does them wrong. To recap:

You can update multiple rectangles each with 0ms delay. Issue is that most browsers don't like dealing with 0ms updates, and will consider rectangle update a frame update. Some browsers will silently increase delays. [1]

You can pause once all necessary rectangles for frame have been updated. [2]

You can have full colour image provided that it is built from multiple rectangle updates, where each rectangle contains its own colour map. [3]

[1] : Browsers not respecting GIF rectangle update delays : http://nullsleep.tumblr.com/post/16524517190/animated-gif-mi...

[2] : gifsicle [image] --delay [delaytime] #[start]-[end] : http://linux.die.net/man/1/gifsicle

[3] : True Colour GIF : http://phil.ipal.org/tc.html

adamzochowski··on John Carmack on Static Code Analysis
For PHP: Facebook's PHP compiler, HipHop, comes with static code analysis. Rasmus Lerdorf himself recommends it.
adamzochowski··on John Carmack on Static Code Analysis
How does it compare to fxCop?
adamzochowski··on Fresco - A Beautiful Responsive Lightbox
Good: Escape key works to exit.

Missing: Doesn't respond to space / pgdown / left-right arrows.

Missing: Can't drag the image with mouse to flip to next image.

General page design issue: Page has style disabling outline on all anchors, making keyboard navigation (tab / shift tab) navigation downright impossible. Please make sure I can use tab / shift tab to browse the site.

General page design issue: Disabling the style rule 'outline-style:none' does make site usable with keyboard. But only somewhat, because you still can't tab onto the demonstrations.

adamzochowski··on The music classifying nightmare
I guess I enjoy putting more tags into collection. I try to fit few from last.fm , and few that came with the tagging. So a single track can have multiple tags (I think I average 10 tags per track). It is normal to have things like like 'Symphonic' and 'Rock' and '80s' and 'Krautrock' as separate tags on one song. Or in case of some electronica (like ones found at http://ektoplasm.com ): 'IDM', 'downtempo', 'goa', 'psy-dub'.

For compilations I try to keep track of who made compilation, especially if it is a mix by a DJ. I do have many that are just VAs too.

In the end, I have three types of music plays:

- everything by an artist -- this is why I keep CDS / CDM / EP to have remixes, and to track them with covers, etc

- specific album -- this works great for movie scores, or albums that have songs tailored to go one to another (Jean Michelle Jarre work from 70s and 80s is awesome in this)

- party mode -- something like pandora -- last.fm is queried about tracks similar to current one (and past one), and sets up playlist of similar songs to play. See http://forum.xbmc.org/showthread.php?tid=83915

← PreviousPage 5 of 8Next →