HNHacker News
TopNewBestAskShowJobs

program

992 karma · joined October 22, 2010

submissionscomments
program··on Daily happiness averages using Twitter
I wonder how they deal with ironic statements. It seems that they merely extract words out of the context.
program··on Geometee
It's the URI behind the File API:

http://www.w3.org/TR/FileAPI/#url

program··on Show HN: Tweetspiration – let Twitter brainstorm ideas for you
On the $(document).ready call change:

   var d = new Date(element.name);
to

   var d = Date.parse(element.name);
This will solve the "undefined NaN, NaN:aN PM" issue.
program··on 1% of CMS-Powered Sites Expose Their Database Passwords (2011)
As a side note a lot of Wordpress sites do expose the wp-config-sample.php file. See for example the official Yahoo! Blog, The Wall Street Journal, Sony Blog, etc...:

http://ycorpblog.com/wp-config-sample.php

http://blogs.wsj.com/law/wp-config-sample.php

http://blog.us.playstation.com/wp-config-sample.php

...

program··on Do Not Type "File:///" in OS X
Confirmed that the bug doesn't affect Lion.
program··on LLVM Tutorial
Making my first toy language is one of the most interesting advertures as a programmer. LLVM is quite complex and the documentation is far from stellar but it's usable for teaching how a compiler works.

Also I like the restyling. LLVM landing page is so 90'.

program··on Show HN: Never wait for Paypal again
As a side note: who is sick of the Bootstrap #0088CC color?
program··on Regexper: Beautiful regexp visualizations
I tried the most complicated regular expression in the world:

http://ex-parrot.com/~pdw/Mail-RFC822-Address.html

and the server 500'd. Just joking, it's a very good tool.

P.S. it crashed with three nested groups (((a*)))

program··on Typing "Sell" in Google Finance redirected to Apple Inc.
They own duck.com cause it was the old site name of the "The Duck Corporation" (now On2 Technologies) acquired on 2010 (the VP8 Codec.)

I see no evil here, only an unfortunate coincidence.

program··on Full list of new gTLDs
Prepare for:

1) Much more complicated URL recognition regexp

2) Much more big Ablock Plus filter lists

3) ftnn2lhnosm.youtube

4) www.apple

I'm joking. I really don't like the new gTLD thing.

program··on Raspberry Pi Foundation launches the Raspberry Pi Store
No. It's sold only at Element14, RS Components and Allied Electronics.
program··on Typing Free Captcha
The are 30 images so there is a 3.3% success rate using a random pick approach. Which is enough.
program··on Poll: What's your favorite static site generator?
Where is Movable Type?
program··on Divshot – Interface Builder for Web Apps
I can't find the differences between the 9$/mo Beta Subscription Plan and the Free Plan.
program··on Show HN: garlic.js - don't let your users lose their form data
As a side note do not use the Bootstrap class .well together with .row cause it overflow because of padding. Create this structure: div.row > div.well > the content.
program··on Apple says no Java for you, removes plugin from browsers on OS X 10.7 and up
There's no need to install XCode in order to have GCC/LLVM and satellite programs. Go to connect.apple.com, authenticate and download the "Command Line Tools (OS X version) for XCode."
program··on PHP Performance Benchmarks

   My conclusion: count() is horribly slow. Always precalculate it, if possible.
https://github.com/php/php-src/blob/master/ext/standard/arra...

In PHP they actually check the length of an array at every invocation of count(). As far as I can see the numeric value for length isn't stored anywhere.

program··on Why is C# suddenly so popular?
It often puzzled my mind how a story like this can jump on HN first page. The world has changed a lot in the last 3 years.

http://www.tiobe.com/index.php/content/paperinfo/tpci/index....

http://lang-index.sourceforge.net/

P.S. I know that TIOBE isn't a reliable source of informations but it's somewhat interesting to take a look that the statistics

program··on Raspberry Pi now with 512MB RAM
RS specs page has been updated:

http://raspberrypi.rsdelivers.com/product/raspberry-pi/raspb...

I'm very happy that my order has been delayed.

program··on Raspberry Pi runs XBMC; reliably decodes 1080p (January)
This is well known. This "news" is very old. http://www.broadcom.com/products/BCM2835
program··on iOS 6 App Store is a disaster for developers
The 3 and 1/4 icons displayed on a single row is a bad idea. Not because it's bad UX but because it seems that the application doesn't cache any hidden icons. Every time I scroll the list that's a (very) small loading time that block the natural scroll.

Anyway I like the "See all" view (but I haven't used it from day one, I don't know way but it didn't catch my attention). Finally Apple has implemented infinite scroll. I found myself more inclined to continue to scroll the list part application #20.

On the old App Store you had to tap the "show 20 more" cell. For me It's a sort of psychological barrier. It's like saying "there are more apps, I don't show them to you cause they are not very good". I don't know if I explained it well.

program··on Google search for "tilt"
Why does a story like this hits HN front-page?
program··on HTML5 webcam to canvas stream (Demo + annotated code)
I got nice quality on Chrome 21. Substitute the window.requestAnimationFrame directive with:

  window.requestAnimationFrame = (function() {
    return window.requestAnimationFrame || window.webkitRequestAnimationFrame ||
    window.mozRequestAnimationFrame || window.oRequestAnimationFrame ||
    window.msRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 60); };
  })();
and it will work in Opera 12 too.
program··on WhatsApp is using your IMEI number as password
This is well-known. I'm curious to know how they get the IMEI on iOS cause there isn't a public API but only an undocumented method on the CoreTelephony.framework. Using a private method is one of the easiest ways to be banned from the App Store. BTW on January 13, 2012, Whatsapp was pulled from the iOS App Store for 4 days. I think they were pardoned by Apple because of the popularity of the application.
program··on Raspberry Pi - Upcoming board revision
I haven't received mine. Ordered 17 July 2012, despatch expected within 11 weeks but still no feedback from RS.
program··on AntiSec leaks 1,000,001 Apple UDIDs, Device Names/Types
I've tried all the UDIDs of the Provisioning Portal of my Company and I didn't find any.
program··on Vim is now a more popular topic than emacs on HN
It's more popular also according to Google http://www.google.com/trends/?q=vim,+emacs but the word "vim" has various meanings.
program··on A Starter Theme for WordPress by Automattic
I think that Toolbox (also from Automattic) is the best minimalist theme that you can use for building a theme from scratch.

http://wordpress.org/extend/themes/toolbox

program··on Calling PHP functions with named parameters
WordPress has a similar approach. The wp_parse_args function which accept an array or a URL-like string. You can also pass default values (and extract() them if you want.)

http://codex.wordpress.org/Function_Reference/wp_parse_args

You can pass the arguments as an array or as a URL-like ampersand separed string.

program··on Experimental support for ECMAScript 6 Map and Set objects in Firefox 13
I really hope that Map and Set will be iterable as described here: http://wiki.ecmascript.org/doku.php?id=harmony:iterators otherwise, in my opinion, they will be pretty useless.

As an addendum it looks like that 'undefined' is a valid key:

   var m = new Map;
   m.set(undefined, 1);
   console.log(m.get(undefined));
← PreviousPage 3 of 7Next →