HNHacker News
TopNewBestAskShowJobs

program

992 karma · joined October 22, 2010

submissionscomments
program··on Google provides the addresses of 35,513,445 Google Profiles. (May crash Chrome.)
This isn't a news. Google profiles can be indexed by search engines since 2008. See the google robots.txt file:

http://www.google.com/robots.txt

program··on How to cause utter chaos on Facebook
It all began when a user pasted the value of the jsText variable in the address bar. The script create a new script DOM element and append it to head injecting the malicious links (so that there is no more need to run the bookmarklet-like link.)

The problem here is that the (old) Facebook prompt_page.php page:

http://www.facebook.com/connect/prompt_feed.php

doesn't sanitize feed_info[action_links][0][href] allowing javascript: links.

program··on What led you to TeX and LaTeX
I started using LaTeX after I adopted Emacs as my default text editor. This was my research path: info -> Texinfo -> LaTeX -> XeLaTeX.

Now I use the swiss-knife Memoir class for nearly everything and I have understood the importance of beautiful typesetting.

Worth reading:

http://www.ctan.org/tex-archive/info/memdesign (the memoir manual of style)

The Elements of Typographic Style, Robert Bringhurst (the bible)

program··on ASCII Pronunciation Rules for Programmers [2008]
In a standard italian keyboard layout the '\' is placed between TAB and ESC, and '/' is shift+7.

A lot of people think that '\' is the slash and '/' the backslash leading to some confusion among non-programmers (and some escaped characters here and there.)

program··on Concepts The Emacs Newbie Should Master
Missing examples:

C-x z, the command that repeat the last command for every 'z' you type. This is in my opinion one of the most important feature of Emacs

M-s o, the 'occur' command that show all the lines that match a specified regexp

File variables: http://www.gnu.org/software/emacs/manual/html_node/emacs/Spe...

program··on IE9 has been released
At least now IE supports border-radius.
program··on Apple sold nearly 1 mln iPad 2s in debut weekend: analysts
From TUAW and AppleInsider citing a poll made by Piper Jaffray.

http://www.tuaw.com/2011/03/14/70-percent-of-ipad-2-buyers-a...

http://www.appleinsider.com/articles/11/03/13/apple_attracts...

program··on Why is TeX still used? What are some good, modern alternatives?
I have used LaTeX, TeX and ConTeX for years as my only programming language for writing beautiful docs and I think that nowadays there isn't a good alternative if you write technical documents that have math inside.

Today I use XeTeX together with the swiss-knife memoir class and a huge preamble that I have built over the years. XeTeX is modern and lets you write your docs in UTF8 with ease. I have stopped writing a lot of commands by hand cause there are a lot of modern editors out there (TeXShop on the Mac, TeXworks/TeXnicCenter on Windows, Kile and a bunch of others in Linux.)

When you enter the TeX world you cannot go back cause you start to see typographical errors everywhere: wrong kerning, missing ligatures, wrong align in formulas, wrong page dimensions and others. As Don Knuth says: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu."

The beauty of LaTeX (XeLaTeX in this case): http://nitens.org/taraborelli/latex

program··on Apple sold nearly 1 mln iPad 2s in debut weekend: analysts
The most interesting thing is that 70% customers purchasing the iPad 2 are first-time iPad buyers.
program··on Why did OKCupid write their own web server?
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."

program··on The Complete Guide for Starting iPhone and iOS Development
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.
program··on Xcode 4 - review
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.
program··on Gain control of a Linux System via an USB-Device due to strcpy
strlcpy -> 1063
program··on Gain control of a Linux System via an USB-Device due to strcpy
Quick grep on linux-2.6.37.3:

strcpy -> 2864

strncpy -> 894

program··on Adobe releases Flash to HTML5 converter
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-...

program··on Adobe releases Flash to HTML5 converter
I'm playing with the tool and it seems that actionscript 3 isn't supported.
program··on What Google knows about you
"No interest categories are associated with your ads preferences so far."

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

program··on Forrester, Java ain't dead - it's still #1
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.
program··on Nokia marries Microsoft
"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.

program··on IPhone Attack Reveals Passwords in Six Minutes
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.

program··on IPhone Attack Reveals Passwords in Six Minutes
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.

program··on UTF-8 good, UTF-16 bad
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.
program··on UTF-8 good, UTF-16 bad
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.
program··on Android Market Web Store just Launched
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

program··on Power user replacements for OS X default apps
A Power User that doesn't replace "Archive Utility.app" with The Unarchiver?

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

program··on Ask HN: How to force myself to learn emacs?
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)

program··on Cssess - The Bookmarklet That Finds Unused CSS Selectors
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.

program··on Looking at Different Writing Tools for Macs
Where is GNU/Emacs?
program··on Rage for iPhone
This isn't a "news." That article is dated aug 12th 2010.
program··on Daring Fireball: Regarding the Idea of iPad Apps Running on Mac OS X
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.
← PreviousPage 6 of 7Next →