Better HN
topnewbestaskshowjobs
Log inSign up

program

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

Submissions

comment 15y ago · link · parent

ObjC isn't statically-typed. Static typing informations only allows the compiler to warn the programmer about type mismatch. From the official docs:

"Statically typed objects have the same internal data structures as objects declared to be of type id. The type doesn't affect the object; it affects only the amount of information given to the compiler about the object and the amount of information available to those reading the source code."

comment 15y ago · link · parent

Model View Controller is an odd mental model? It's quite popular right now and I think that it's the best pattern for decoupling user interfaces from the underlying code.

comment 15y ago · link · parent

XCode 3 has been updated as well (3.2.6), it includes SDK 4.3 and it's free. You can use it for shipping new apps.

comment 15y ago · link · parent

strlcpy -> 1063

comment 15y ago · link · parent

Quick grep on linux-2.6.37.3:

strcpy -> 2864

strncpy -> 894

comment 15y ago · link · parent

I have tried different .fla and if there is a line of actionscript (even if not used) the conversion fails.

http://blogs.adobe.com/jnack/2011/03/wallaby-flash-to-html5-...

comment 15y ago · link · parent

I'm playing with the tool and it seems that actionscript 3 isn't supported.

comment 15y ago · link · parent

"No interest categories are associated with your ads preferences so far."

Thanks to adblock, noscript, greasemonkey and Google history deactivated.

comment 15y ago · link · parent

The TIOBE index is very biased (the famous "__language__ programming") and in my opinion can't be used as a reliable source for declaring the death or the raise of a language.

comment 15y ago · link · parent

"Nokia's content store will be integrated into (read: assimilated by) Microsoft's Marketplace"

This is the (only) good news. Less problems for those developers that fight everyday with N different stores (read: policies) in order to bring their programs to embedded devices.

comment 15y ago · link · parent

It's not true cause Apple encrypt the keychain entries with Triple-DES (which isn't modern crypto but it's better than nothing.)

If you get the file you can't read it unless you have the password. The "attackers" do load the code in the phone and then they got the entries using the system API which is very (very) different from having only the file and/or only a not jailbroken phone.

I repeat, !news.

comment 15y ago · link · parent

This is not actually a "news". Every piece of tecnology can be cracked/hacked if you have physical possession. The "Fraunhofer Institute Secure Information Technology" used an iPhone only cause the device attract more attentions than others.

The PDF remote exploit that forced Apple to release iOS 4.0.2 was a news.

comment 15y ago · link · parent

Strings are big-endian UTF-16 by default even in Cocoa (stored in an array of unsigned shorts). Worst of all GCC define the wchar_t as a 4 byte int unless you specify -fshort-wchar.

comment 15y ago · link · parent

UTF-16 was never intended to be a fixed-width encoding and has been created in order to support characters outside the BMP which aren't covered by UCS-2.

comment 15y ago · link · parent

The lot of icons are pixelated (upscaled maybe) and not very good to see. Take a look at the Angry Bird one for example:

http://dl.dropbox.com/u/15741404/ab-as.jpg

comment 15y ago · link · parent

A Power User that doesn't replace "Archive Utility.app" with The Unarchiver?

http://wakaba.c3.cx/s/apps/unarchiver.html

comment 15y ago · link · parent

1) Hide your mouse

2) Hide the other editors

3) Hide the toolbar (if you aren't using the ncurses interface)

4) Always look at the minibuffer every time you "M-x command". Emacs tells you if there is a shortcut that does the same thing

5) "C-h a command" is your friend

6) If you are on Mac OS X use the emacs-style shortcuts in other editors too (C-a, C-b, C-d, C-e, C-f, C-h, C-k, C-n, C-p, C-u, C-v)

comment 16y ago · link · parent

why not just let the user run cssess only on the actual URL? If you run cssess on a big page you will obtain a long list of URLs and you need to deselect them by hand (leave all checkboxes unchecked and put a "select all" button on top.)

Also you need to filter away "mailto:" links (and all other protocols that don't use CSS.)

Anyway keep up the good job. I've added the bookmarklet on my personal list of day-by-day programming tools.

comment 16y ago · link · parent

Where is GNU/Emacs?

comment 16y ago · link · parent

This isn't a "news." That article is dated aug 12th 2010.

comment 16y ago · link · parent

I don't think so. Right now you can write universal applications for iPhone/iPad changing the view controllers, resources (textures) with the same underlying core code. I think that Apple next big step will be an unified architecture which will allow developers to build cross-platform applications that will run on iPhone/iPad/Mac using an hybrid UIKit/AppKit. Maybe in OS X 10.8, time will tell.

comment 16y ago · link · parent

Emacs can't run itself.

$ emacs

M-x shell

$ emacs

I love recoursive jokes.

comment 16y ago · link · parent

The heapsort. It sounds very strange.

http://www.youtube.com/watch?v=iXAjiDQbPSw

comment 16y ago · link · parent

I am very happy. I was very pleased when back in may 20 2010 they announced that clang passed its first fully-successful Boost regression test run. But this is another big step ahead.

The clang static analyzer is now part of my everyday life as a programmer and everytime I read "did you mean..." on the console I am amazed as the first time. It saves me a lot of time (even compile time.)

comment 16y ago · link · parent

The C standard library is very clean. gets is left in the C89 and C99 standards for backward compatibility an deprecated right now. Nobody uses gets nowadays.

comment 16y ago · link · parent

It's well known. An extract from Wikipedia:

"Apple is now the biggest client for WebObjects, relying on it to power its online Apple Store, MobileMe online services, and the iTunes Store."

1
45678