Better HN
topnewbestaskshowjobs
Log inSign up

program

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

Submissions

comment 12y ago · link · parent

I don't think that such list could contain websites under reverse proxies.

comment 12y ago · link · parent

jsFiddle is the biggest according to myip.ms

http://myip.ms/view/web_hosting/38903/Digital_Ocean_Inc.html

comment 12y ago · link · parent

In fact Wordpress shake the form on /wp-admin/ if the login failed.

comment 12y ago · link · parent

On revision 2.0 and later Apple has included a lot of modern stuff like: ARC, properties, literals, blocks, fast enumeration, etc.

comment 12y ago · link · parent

OS X is an Open Brand UNIX 03 Registered Product since Leopard and given this it can be considered "complete." It isn't shipped with a compiler but your can install the cmdline tools (without all the XCode bundle) typing:

   xcode-select --install
on (Mavericks) Terminal.

comment 12y ago · link · parent

As a side note: is it a good thing that a window obtained through a Window.open() inherits the parent window's permissions?

Right now in Chrome permissions are enabled or disabled globally with exceptions based on hostname patterns. Adding a new option like "Allow popup window to inherit permissions" will solve the issue.

A well-hidden popup window can track your position all day using the geolocation API?

comment 12y ago · link · parent

Let's read the spec: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.htm...

"To minimize the chance of users unwittingly allowing web pages to record speech without their knowledge, implementations must abort an active speech input session if the web page lost input focus to another window or to another tab within the same user agent."

Given this the actual Chrome implementation is wrong.

comment 12y ago · link · parent

Enable modules and use them to import system frameworks:

   // #import <Cocoa/Cocoa.h>
   @import Cocoa;
Use literals and subscripting methods:

   NSNumber *yes = @YES;
   NSNumber *number = @42;
   NSArray *array = @[@"Hello", @"World"];
   NSDictionary *dictionary = @{ @"name" : NSUserName() };
Learn about "instancetype": http://clang.llvm.org/docs/LanguageExtensions.html#objective...

Always use NS_ENUM and NS_OPTIONS to declare enum types:

   typedef NS_ENUM(NSInteger, HNExample) {
      HNExampleDefault,
      HNExample1,
      HNExample2
   };

comment 12y ago · link · parent

This article from devhumor: http://devhumor.com/193/

The assembly panel is very funny.

100.

Show HN: GDrive Permalink Generator(gdriveurl.com ↗)

2 points · by program · 12y ago · discuss

comment 12y ago · link · parent

In my opinion the confusing part is not about SEGFAULT or NullPointerException. Let's make and example:

   NSArray *obj = nil;
   [obj count]; // return 0
In theory a nil object can hide in your code for a long time if you only use methods that can return 0.

comment 12y ago · link · parent

As you can clearly see from the code it's perfectly acceptable in Objective-C to send a message to nil. This is a powerful feature that prevents the program from crashing but it is confusing for beginners.

comment 12y ago · link · parent

This is very sad, my country is very sad. The law states that "if you sell something in Italy then you are a permanent establishment on the Italian territory." Someone can say that if a server isn't hosted on the italian territory than the company that uses it can't be an "establishment" in Italy. It's not the case. According to the law if you use the italian network to communicate to italian IPs than you must pay.

comment 13y ago · link · parent

Reproduced from Italy just a couple of minutes ago.

comment 13y ago · link · parent

I've noticed that is doesn't work if you aren't connected with your google account.

comment 13y ago · link · parent

Safari on iOS 6 crashes every time I add a solid to the scene; which is kind of fascinating.

comment 13y ago · link · parent

I find the Eigengrau to be a very relaxing color and I use it as the background of my desktop. It always puzzled me that it's not a pure grey but it has a little blue. I thought he had more sense that there was a little red because of the minimal amount of light that passes through the capillaries of the eyelids.

I suffer from epilepsy and often I see scintillating scotoma, visual snow and other strange light phenomena. Given this I came to the conclusion that my brain associate this color to a quiet mental state.

comment 13y ago · link · parent

Unfortunately this approach does not work in HTTPS world. See https://tools.ietf.org/html/rfc2616#section-15.1.3

    Clients SHOULD NOT include a Referer header field
    in a (non-secure) HTTP request if the referring page
    was transferred with a secure protocol.

comment 13y ago · link · parent

   All users are affected, as our approach
   requires neither a jailbroken device nor
   user interaction
According to this article a user interaction is needed. You have to attach your phone to a third party charger in order to be infected. It will be more interesting if they can upload a real virus which then can affect other phones without user interaction.

comment 13y ago · link · parent

I wonder how they deal with ironic statements. It seems that they merely extract words out of the context.

comment 13y ago · link · parent

It's the URI behind the File API:

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

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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

...

comment 13y ago · link · parent

Confirmed that the bug doesn't affect Lion.

comment 13y ago · link · parent

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

comment 13y ago · link · parent

As a side note: who is sick of the Bootstrap #0088CC color?

comment 13y ago · link · parent

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

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

No. It's sold only at Element14, RS Components and Allied Electronics.
12345
8