News for hackers. Stuff that matters.

timb

Re:What No One Told You About Z-Index on Wednesday January 16, 2013 @02:01PM (#5068384)
It's still not precisely centered. Check out this version using a table.

http://jsfiddle.net/nJy8t/

I added a background image with a grid that extends 80px from top and bottom. There's also a small margin/padding/border reset and doctype just to make sure defaults and quirks aren't messing with anything.

Re:What No One Told You About Z-Index on Tuesday January 15, 2013 @11:12PM (#5065208)
"It's easy to idiomatically achieve vertical centering. http://jsfiddle.net/aMMxj/10/ "

that solution

1. only works for text, which is part of eranation's rant.

2. only works if you know the exact height of the container.

3. isn't even centered: http://i.imgur.com/lz8Mq.png

Re:Cuddle Mattress on Friday November 30, 2012 @09:06AM (#4853253)
indiegogo existed as a fundraising platform before kickstarter (but it was originally only for filmmakers).
Re:Cross-platform emoji solution on Saturday November 03, 2012 @03:43PM (#4737652)
seems like that issue is being worked on: http://code.google.com/p/chromium/issues/detail?id=62435

Chrome has similar problems on Windows. For example, the Mathematical Alphanumeric Symbols work in Firefox, Internet Explorer, and even Notepad, but not in Chrome. http://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbo... http://code.google.com/p/chromium/issues/detail?id=109844

Re:Animated GIFs the Hard Way on Monday September 17, 2012 @11:13AM (#4532912)
Echoing what dflock said in the Apple thread, it would be great if webkit (and IE) added animated PNG support: http://caniuse.com/apng

Also, it's interesting to note that out of 31,000 open issues on the chromium site, APNG support is at #9 counting by user votes. http://code.google.com/p/chromium/issues/list?sort=-stars...

Re:FLAC.js, Aurora, and the Future of Web Audio on Saturday June 16, 2012 @12:37AM (#4119887)
try adding tsched=0 to one of the lines in /etc/pulse/default.pa so it becomes

load-module module-udev-detect tsched=0

this fixed my chrome ubuntu audio problems. (source: links at bottom of http://code.google.com/p/chromium/issues/detail?id=110375 )

Re:Walled Gardens are Driving me to JavaScript on Sunday May 27, 2012 @07:40PM (#4031368)
in the html of http://16s.us/sha1_pass/js/ add <!doctype html> to the top. this will prevent "quirks mode" in IE and String.prototype.trim will reappear.

if you want to support IE 8 and lower you'll have to add a shim for String.prototype.trim. (see http://kangax.github.com/es5-compat-table/ )

Re:Visualizing Galois Fields on Sunday May 20, 2012 @04:18AM (#3998278)
that first image looks like the old munching square effect http://en.wikipedia.org/wiki/Munching_square
the editor could turn down samples for lights while dragging, and turn samples back up when dragging is finished.
Re:An Introduction to HTML 5 Web Workers on Monday March 05, 2012 @08:54AM (#3666480)
the newest chrome has support for transferable objects that can be sent directly to a worker without being copied. this works with ArrayBuffer now, not sure if ImageData is transferable yet, but it should be eventually.

demo: http://html5-demos.appspot.com/static/workers/transferables/...

Re:Parsing Techniques - A Practical Guide on Monday February 20, 2012 @04:23AM (#3611847)
There is a little bit of information in the 2nd edition. Parser combinators get a few pages in "17.4.2 Functional Programming". PEGs and packrat parsing are briefly covered in "15.7 Recognition Systems".
The dev version has autocomplete http://www.sublimetext.com/dev
Re:Taking C Seriously on Wednesday November 02, 2011 @08:35PM (#3189585)
Quake, Quake II and Quake III are C.
Re:WebGL Path Tracing on Wednesday August 10, 2011 @10:07AM (#2868232)
Beautiful... the fading grain as it renders is extremely pleasing.
Re:Building a pure CSS 3D City on Tuesday July 12, 2011 @01:07PM (#2755473)
There already is a hardware accelerated 3D context that uses the canvas element... WebGL!
Re:Breaking the web with hash-bangs on Wednesday February 09, 2011 @12:04AM (#2196431)
Newer browsers ( http://caniuse.com/#search=history ) can manipulate the url without needing the #! hack.
Re:The "Machiavellian Reality" -- speech by Robert Greene on Wednesday January 12, 2011 @02:28AM (#2095339)
"The other thing that primates have that is so bizarre and interesting is that they are the only animal we know that practice deception and games of manipulation among each other. There is no other animal on the planet that we can say that about."

Some male cuttlefish will pretend to be female in order to sneak past the alpha male and mate with the female he is guarding. I am sure there are many, many other examples of non-primates using deception/manipulation.

Re:Real world analysis of google's webp format versus jpg on Friday October 01, 2010 @03:09PM (#1748201)
compare his horrendous 33kb jpg: http://i.imgur.com/djmBv.png to the 33kb jpg i made in photoshop: http://i.imgur.com/02E6e.jpg
Re:Dear Adobe on Thursday April 29, 2010 @01:06PM (#1305127)

  #quicklinks { position: absolute; }
if you just want to turn off the toolbar stickiness.
Re:Subscriptions are the New Black on Monday February 01, 2010 @12:27PM (#1092833)
I think Dave's unique formatting is an essential part of the experience of reading his posts. Filtering it through the Readability tool is similar to listening to MIDI file versions of your favourite songs.
there's ~45 snatches from that user
Re:What boyfriends and girlfriends search for on Google on Monday January 11, 2010 @04:32AM (#1044759)
Because OS X tries to compress letter spacing before cutting the line off.

http://imgur.com/cyTjS.png

See what happens when I resize this window? The text gets squished before it gives up and shows the "..."

Re:Ask HN: Please Review My Project (JS Game Engine) on Wednesday December 09, 2009 @04:09PM (#986585)
The engine should load assets in the background. For example, in the mario game, when I descend into a pipe, it pauses while it loads the level. Likewise, the Crystal Galaxy game should load assets while I am on the menu screen, rather than waiting for me to press Start.
Re:World Statistics in Real Time on Thursday December 03, 2009 @12:00PM (#974632)
unobfuscated source: http://pastebin.com/m3e39a034
Re:Typekit launches on Tuesday November 10, 2009 @01:08PM (#933556)
On that site I can see a sort-of flash of unstyled content as the font loads, but that doesn't seem to happen on Typekit's own pages.

Older »