Better HN
topnewbestaskshowjobs
Log inSign up

program

998 karma · joined Oct 22, 2010 (16y ago) · 236 submissions

Submissions

comment 13y ago · link · parent

The are 30 images so there is a 3.3% success rate using a random pick approach. Which is enough.

comment 13y ago · link · parent

Where is Movable Type?

comment 14y ago · link · parent

I can't find the differences between the 9$/mo Beta Subscription Plan and the Free Plan.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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."

comment 14y ago · link · parent

   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.

comment 14y ago · link · parent

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

comment 14y ago · link · parent

RS specs page has been updated:

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

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

comment 14y ago · link · parent

This is well known. This "news" is very old. http://www.broadcom.com/products/BCM2835

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

Why does a story like this hits HN front-page?

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

I haven't received mine. Ordered 17 July 2012, despatch expected within 11 weeks but still no feedback from RS.

comment 14y ago · link · parent

I've tried all the UDIDs of the Provisioning Portal of my Company and I didn't find any.

comment 14y ago · link · parent

It's more popular also according to Google http://www.google.com/trends/?q=vim,+emacs but the word "vim" has various meanings.

comment 14y ago · link · parent

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

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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));

comment 14y ago · link · parent

Collections subscripting operator [] and boxed C strings are life-savers. Instantiating obj-c object is always a pain cause the syntax is very verbose, expecially for NSString:

  NSString *s = [NSString stringWithCString:"hello" encoding:NSUTF8StringEncoding];
  NSString *s = @("hello");
it's 11 characters vs 67. Now what I really, really miss is the implementation of the NSString concatenation operator. stringWithFormat isn't always the answer nor appendString. Please forgive me if you find that my idea is silly:

  // String concatenation
  NSString *s = @+(@"hello ", @"world");
Or maybe some concise dictionary operators.

  NSDictionary *d1 = @{ @"first":@"Hello", @("second"):@"World" };
  NSDictionary *d2 = @{ @"third":@"Greetings" };
  
  NSDictionary *cd = @|(d1, d2); // Dictionary merge
  NSDictionary *id = @&(d1, d2); // Dictionary intersect
  NSDictionary *dd = @^(d1, d2); // Dictionary difference

comment 14y ago · link · parent

I know that it's a fallacious statistic but here is the VLC all time OS market share (rounded):

Windows: 89.38%

OS X: 10.27%

Other: 0.35%

comment 14y ago · link · parent

Put on:

1) support for characters outside ASCII (at least latin1, accented letters do appear as a space)

2) better copy/paste. Right now it has problems (FF12)

3) Custom page size

and it will be an excellent tool. Keep up the good work.

comment 14y ago · link · parent

I see a bunch of CPUs. I predict some upgrades on the iMac line.

Also Rounded Rects are everywhere, http://www.folklore.org/StoryView.py?story=Round_Rects_Are_E...

comment 14y ago · link · parent

This is the same approach used by Apple. If you go on apple.com and you run:

  AC.Retina._devicePixelRatio = 2
  new AC.Retina
you will see several requests such as:

  HEAD http://www.apple.com/home/images/ipad_title_2x.png

comment 14y ago · link · parent

1990 C90

2000 C99

2011 C11

so, if this is the trend expect a new C standard in 2022.

comment 14y ago · link · parent

IE6 (and XP) still dominate in China and there are approximately 420 million Internet users. Over 90% of software is pirated, most Chinese users never connect to Windows Update or even upgrading their web browser. Also a lot of Chinese websites have been built to work with IE6 only (e.g. banks).

http://www.ie6countdown.com/

comment 14y ago · link · parent

In Italy the .doc/.docx format (and all othe Office formats) is widely used. At my IT company the file format used in the CV is the starting point for the selection of a candidate. .doc/.docx is the worst choice. We prefer a .pdf file and as an addition we look at the "producer" metadata (just in case).

comment 14y ago · link · parent

WebKit is open source and is developed by Apple and other companies such as KDE, Google, Nokia, Samsung and others.

comment 14y ago · link · parent

the perl script is broken in all other sites as well. E.g. http://imac.com/init

comment 14y ago · link · parent

This article remind me of my first days of C coding and the problems generated with escaped "c:\haracters in strings".

After years I still think that the use of forward slash is the worst decision ever. At least Apple chose ":" on Mac OS classic.

1
45678