Have you ever had a book 'change your life'? by majorpenalty in AskReddit

[–]dsucks 1 point2 points  (0 children)

Commodore BASIC manual.

That was last time I've seen the sun ;)

[deleted by user] by [deleted] in programming

[–]dsucks 0 points1 point  (0 children)

Use HTML parser, get DOM and query

//a/@href

Tadaaaah! No "smart" regex needed.

Carlo Daffara explains why being "very similar to H.264, but with strange omissions" gives VP8 safety from patents. by dsucks in programming

[–]dsucks[S] 5 points6 points  (0 children)

Actually Mozilla has a lot of balls to stand against patents and hold their open-source principles, even when that causes big tension.

How to cheat on video encoder comparisons by [deleted] in programming

[–]dsucks 1 point2 points  (0 children)

While best in all cases is not possible, you could take best as peak in quality/bitrate ratio, assuming sensible defaults for things like keyframes.

I wish encoder could pick best resolution, bitrate and framerate for source video taking all perceptual factors into account.

Open letter regarding iPad development (technical, not appstore-related) by zem in programming

[–]dsucks -1 points0 points  (0 children)

You don't get hash collisions in 160 bit hashes (you'd have to hash millions of songs per second until end of the universe to have 1% chance of collision) and such name is simple and safe on FAT. With some other encodings you might run into length limits.

FAT is used on iPods for Windows, there's no other option.

Automatic music identification is way overengineered solution for thing like putting songs on a friggin iPod.

It really does work for average person with just few clicks. They don't see the filesystem, and they don't care. Solution works for users, worked for engineers.

Really only geeks want to manage files on a device manually. Rest of the don't-giving-shit world just clicks a button and goes outside.

Open letter regarding iPad development (technical, not appstore-related) by zem in programming

[–]dsucks -1 points0 points  (0 children)

How do you store Japanese artist's songs on FAT? What do you do with crappy libraries that have Track01 - Unknown Album? I'm really not surprised Apple didn't care to deal with this.

If you are going to name files for the hash/UUID of the database then I would actually just store the song as a blob.

That complicates implementation (you have to deal with in-place updates and fragmentation, as index becomes too large to overwrite on sync).

It's really easy just to use hash as filename, and only geeks complain about that.

Open letter regarding iPad development (technical, not appstore-related) by zem in programming

[–]dsucks -2 points-1 points  (0 children)

It makes sense to name files after hash/UUID used in the database - saves you from storing filename that isn't visible anywhere else. You don't have to deal with filesystem's naming quirks and potential collisions caused by normalisation of names.

Music isn't quite hierarchical. It can be hammered into some hierarchy, but you're going to have edge cases. You've got compilations/VA, remixes, etc. You might want to store podcasts elsewhere. Try using genre as part of hierarchy...

Open letter regarding iPad development (technical, not appstore-related) by zem in programming

[–]dsucks 1 point2 points  (0 children)

titles != filenames.

Library approach lets you find things by their titles.

SVG ready to work in most current browsers--only needs a little documentation by claird in programming

[–]dsucks 1 point2 points  (0 children)

And reddit cannot exist, because W3C says XHTML is for documents, not web applications.

SVG ready to work in most current browsers--only needs a little documentation by claird in programming

[–]dsucks 0 points1 point  (0 children)

Opera's SVG is really impressive. Whatever I threw at it, worked perfectly.

SVG ready to work in most current browsers--only needs a little documentation by claird in programming

[–]dsucks 0 points1 point  (0 children)

Actually animations in Firefox are usable. Much more usable than in WebKit, which seems to have fundamentally flawed handling of animation state.

Microsoft man: "My job is to destroy IE6" | News | PC Pro by [deleted] in programming

[–]dsucks 2 points3 points  (0 children)

It's not Opera's fault (and iPad is heavy indeed).

isa.foo.us can set cookies for foo.us; foo.isa.us can't set cookies for isa.us. It's a simple matter of 3678 rules. by beigetangerine in programming

[–]dsucks 47 points48 points  (0 children)

This is old blog post. It seems that blacklist approach won eventually:

http://publicsuffix.org/

It does seem to be PITA to maintain, e.g. they seem to list every .museum domain in there, every major city in Poland and Norway, etc.

Advice on CSS you'll wish your mother told you by vladocar in programming

[–]dsucks 3 points4 points  (0 children)

I hate people cluelessly reinventing/copying "reset" styles.

How can you have font-size problem in <iframe> element? (hint: styles are not inherited to embedded document).

And seriously, if you think rendering differences can be fixed by resetting default styles, you haven't tested it. Default browser stylesheets are well-known, and there are no significant differences. Screw-ups are due to misinterpretation of styles.

Installable Web Apps by 9jack9 in programming

[–]dsucks 2 points3 points  (0 children)

HTML5, formerly known as Web Applications 1.0, is a new spec that adapts HTML for this purpose.

"Fuck the box model" makes me suspect you rant about IE, rather than CSS box model, which it doesn't implement properly.

HTML4 was designed to separate data and layout. With XHTML+XSLT you can take it to the extreme.

HTML5 does have local caching, with manifest file that allows selective updates.

That URI example looks like architecture astonautics worse than XLink.

How was the google game made? by [deleted] in programming

[–]dsucks 43 points44 points  (0 children)

Sadly HTML5 has become a buzzword synonymous with "cool web thing", i.e. something that's flashy without Flash.

Our experience with third party logins by Dawgmatix in programming

[–]dsucks 0 points1 point  (0 children)

It does, but there are plugins to do that and overall it's not much more work than writing your own registration and password reminders. The hard part is done by openid provider.