HNHacker News
TopNewBestAskShowJobs

_ck_

209 karma · joined September 5, 2009

submissionscomments
_ck_··on Build a Better Bulb for a $10 Million Prize
http://news.ycombinator.com/item?id=842723
_ck_··on Is This the Light Bulb of the Future?
I can think of a few more tests they need to do, like turn it on and off 365x10 times in a row and see if it can handle it (most of my LED 110VAC have not survived more than a year).

Also dimmer capable electronics.

But mass-made mercury-free option would be very nice, I don't use CFLs for that very reason.

Next they need to do this kind of prize for LiFePo4 batteries, and start using the huge lithium deposits that are in the USA (owned by Canadian mining corporations that refuse to mine them until the price is lithium is double what it is today).

_ck_··on Study Gives High Marks To Retailers' Clinics
Given the trend and lack of care about suffering in this country, in a decade all we'll be able to afford is health care "vending machines".

Instead of talking to people, you'll stick your arm in one machine socket and spit into another and it will take your blood and analyze your fluids for the flu, a dozen diseases and genetic defects. Then it will print out a prescription with a credit for the store it's located in.

You'll be force-fed advertising while the process happens and then they will sell the results to various other corporations which will then market you cures. They'll be able to do this because they will flash an EULA on the screen waving all your rights, which you have to agree to so you can get help.

Then the medical vending machine corporations will have a massive lobby for their rights in Congress which cannot be defeated because they will get the loons on their side to defend their massive profits as "American Values".

_ck_··on JSNES: A Javascript NES emulator
I sure hope flashblock comes up with an optional canvas block because it all starts with fun and games until advertisers realize "ooh hey we can skip flash and write the content anywhere without filtering" and then you've got "hit the monkey" all over again.
_ck_··on Online PHP Emulator
It's not just an emulator, it's running real, full PHP (try PHPINFO).

Not in safe-mode, also running eaccelerator. It will be cracked within a week, I am sure.

  $handle = opendir('.');   
  while (false !== ($file = readdir($handle))) {echo "$file\n";}
_ck_··on Google Chrome 3.0
D'oh! You are absolutely right. Somehow I've missed that little sub-menu all this time.
_ck_··on Have a Nice Day
I don't think the article is about solar panels, not really.

It's how America doesn't produce anything anymore.

The USA is "Consumers 1.0" but 2.0 is taking over elsewhere.

The next leap in solar might not even be invented in the USA, it certainly won't be produced here.

_ck_··on Google Chrome 3.0
You know what's still missing and I'm surprised...

there's no way to see raw headers sent/received in the dev tools!

_ck_··on A developer’s look at Opera Mini 5 beta
You can try it live here: http://demo.opera-mini.net/demo.html

(make sure you have java enabled in your browser)

Sadly it does not seem to render exactly like Opera 9 or 10.

_ck_··on A guide to preventing SQL injection
Someday every xkcd strip will have its own website.

  (that wouldn't be so bad actually)
_ck_··on IE6 Cheatsheet: How To Fix Internet Explorer 6 Bugs
Best single IE6 CSS cheat for 90% of my problems:

  zoom:1
Learn it, love it, use it.

It makes IE use its old renderer calculations (hasLayout) for whatever element you put it on, so it often fixes disappearing items, incorrect overflow, floats, padding/spacing etc. If your style looks correct in other browsers, give zoom:1 a shot on IE6 and see if it fixes things before wasting another minute.

ps. For those that are validation crazy, there are other triggers for hasLayout that will validate (certain padding, margins, etc.) but they vary from element to element, whether they have ancestors, etc. and you'll waste a great deal of time figuring them out.

_ck_··on Let's make the web faster
Great collection in one place! I use about half of them, going to explore the other half...
_ck_··on America can't be the world's tech leader without immigration reform.
I guess I am stumbling on the "worker" part of "skilled workers" needed. We're not importing inventors or CEOs (or "Albert Einsteins"), we're importing labor, people who know already how to create (technical) widgets from items A+B+C and there aren't enough of thees knowledgeable people already in the USA who know how to make A+B+C into widgets?

So these people are skilled in that they learned how to make these widgets in another country outside the USA, but they want to create the widgets here instead? Did they stop making the widgets in the other country? Does it pay more to make widgets here? Why the USA specifically?

(What exactly does the USA produce anymore anyway? Nothing is made here so what are they making?)

Again, I'm not against immigration, but somehow I think this is a smokescreen. If someone wants to come to the USA to go to school, to live, I say welcome, we've got plenty of room, plenty of food, and we need the taxes paid. But let's not make up reasons to come here?

There are thousands of college students graduating in the USA each year who are unemployed. If they don't have the exact skills needed I dare say a 4 year degree proves they can learn the skill rather quickly?

I guess I need real-world examples to understand this better. I still don't understand why college students aren't being trained for these critical jobs, especially if they are in a tech sector which is always attractive.

_ck_··on Learning Advanced JavaScript
I found where it's from: Web 2.0 Expo in NYC (9/2008) - maybe someone has the audio?

http://ejohn.org/blog/adv-javascript-and-processingjs/

He also has it as a download: http://ejohn.org/files/learn.zip

Definitely going to look at his books now...

Oh his work here looks good too: http://jspro.org/code/

_ck_··on Learning Advanced JavaScript
Not only is this a great read, it's easy on the eyes, excellent contrast and font size.
_ck_··on America can't be the world's tech leader without immigration reform.
I won't even pretend to begin to understand the politics behind all this but I am confused - in a nation of over 300 MILLION people, we don't have enough skilled workers? Seriously? I'm not against immigration at all if people want a better life and they somehow believe it's here, but we also have double digit unemployment. I'm definitely missing part of the picture.
_ck_··on John Carmack's Armadillo Aerospace "wins" Lunar Lander Challenge [video]
How about the nerves of steel on someone running up to seven foot high flames right next to a fuel tank?
_ck_··on John Carmack's Armadillo Aerospace "wins" Lunar Lander Challenge [video]
It's almost like playing "Lunar Lander" in real life!
_ck_··on Critical: Vulnerabilities in Windows TCP/IP Could Allow Remote Code Execution
They rewrote it so carefully that they duplicated the same teardrop bug they created back in windows 3.1/95 and didn't fix for half a decade.
_ck_··on One reason I wish JS had goto
Yeah but then you'd have to deal with raptor attacks http://xkcd.com/292
_ck_··on Google's Javascript PDF Viewer is Embeddable
Here is a bookmarklet I just wrote to look at all the links on a page and open any ending in ".pdf" in google's viewer. (if you have firefox set to open tabs for windows, it will open them in new tabs) Feel free to share and improve.

- - - (select entire text and make into a link) - - -

  javascript:(function(){dl=document.links;for(i=0;i<dl.length;++i){if(dl[i].href.substr(-4)==".pdf"){window.open("http://docs.google.com/gview?embedded=true&url="+dl[i].href);}}})()

- - -
_ck_··on US Government To Embrace OpenID, Courtesy Of Google, Yahoo, PayPal Et Al.
PayPal uses OpenID? That's actually a little scary.
_ck_··on Think Drupal was FLOSS and non-profit? Think again.
This is nothing new. WordPress is trademarked too, Matt is just more laid back about it, up to a point:

http://wordpress.org/about/domains/

http://andywibbels.com/2006/10/wordpress-is-a-registered-tra...

_ck_··on WordPress Just Made Millions of Blogs Real-Time With RSSCloud
Ah, I was correct to theorize the sheer number of connections would be a huge problem:

http://workbench.cadenhead.org/news/3555/theres-reason-rsscl...

_ck_··on WordPress Just Made Millions of Blogs Real-Time With RSSCloud
So it's like a IM chat client where you have to announce to a central server your IP and who you are and what you'll accept.

I sense security issues in the making.

_ck_··on WordPress Just Made Millions of Blogs Real-Time With RSSCloud
So in plain english without all the hype, it's RSS pushed from the server instead of pulled by the client.

How are they doing it over http without thousands of connections being open and closed constantly on the server per second? Are they just announcing to a central server and the client only polls the one server for any one of thousands of blogs they could be subscribed to?

I guess I'll look at the code tomorrow.

_ck_··on How to Keep WordPress Secure
People don't upgrade because they break some plugin compatibility with virtually every release, sometimes even cookie compatibility with every other release (seriously).

The upgrade process may be simplified but who wants to spend hours trying to fix compatibility every time they discover a bug they introduced with the last patch because they've broken backwards compatibility yet again.

What they should be doing is a general upgrade release for non-technical users and a technical bulletin about what exactly was wrong so technical users can manage older versions as desired. Instead you have to dig for an hour in trac notes to find what the heck they changed and why.

I have version 2.3 & 2.5 installs running safe because I've manually patched them and locked down the server. Delete any XMLRPC interface which is where half the bugs are introduced. The other half is the open ended admin interface which even regular users are allowed into to escalate privileges, which is asinine - you can even run PHPINFO through the admin panel as a regular member on many WP installs.

_ck_··on Security Threat: WordPress Under Attack
Part of the attack is via XSS using $_GET queries that are very long. Apache defaults to accepting URLS up to 4K long which is insane and allows such attacks to happen. 255 characters is a far better lockdown with very few if any false positives.
_ck_··on Security Threat: WordPress Under Attack
Install this simple plugin on any version of WordPress to block bad queries like that:

http://pastebin.com/f6697b79

It could easily be expanded to also look at $_POST data which is another form of attack you'll never see in your logs.

← PreviousPage 2 of 2