HNHacker News
TopNewBestAskShowJobs

wting

2,962 karma · joined June 20, 2012

io at williamting.com

https://github.com/wting

[ my public key: https://keybase.io/wting; my proof: https://keybase.io/wting/sigs/yTnPQ0DZR5vV9WRhYq8SP7V56pyKc3Z8fMQQE9cADBQ ]

submissionscomments
wting··on Two Jokers Social Engineer their way into the Superbowl [video]
This starts going down the rabbit hole, but you can misrepresent yourself as shooting for <small newspaper / blog / group> and say there were communication problems.

Other times there are multiple entrances and if security doesn't communicate with each other you can try again.

It all depends on how willing you are to push the boundaries.

wting··on Two Jokers Social Engineer their way into the Superbowl [video]
I do this all the time with my camera stuff.

I'm an amateur photographer (did weddings part-time), but bring my camera bag everywhere. I'll walk up to a security guard and ask him for directions to the press area, making sure that my camera is decked out (DSLR with battery grip, flash, and huge lens).

I haven't had the balls to try at the NFL level, but it works fine at the collegiate / city level depending on the size of the game.

This form of social engineering is acting like you belong and that you know what you're doing.

wting··on Why I Like Go
Yes, if you want to get pedantic about it languages are separate from implementation. For example there's CPython, Cython, PyPy, Jython, IronPython.

However, reality is that most languages' ecosystems and performances are tightly connected to one or two implementations.

wting··on Why I Like Go
"Fast" and "close" are subjective terms. That's a 50% increase for a few thousand function calls.

PyPy uses JIT to improve Python run time speeds but it's still magnitudes slower than statically typed languages.

I've upped n to 40 and rerun with the following languages:

    C:         0.38s
    Java:      0.55s
    Go:        0.90s
    Rust:      1.29s
    LuaJit:    2.19s
    Haskell:   8.97s
    PyPy:     10.06s
    Lua:      22.87s
    Ruby:     22.13s
    Python2:  43.88s
    Python3:  66.28s
All code is available in the previous mentioned gist:

https://gist.github.com/wting/77c9742fa1169179235f

wting··on Why I Like Go
No citation needed as long as you understand both languages' runtime stack.

Python is an interpreted language that runs on top of a virtual machine (usually CPython). Types are determined at run time.

  .py -> .pyo* (bytecode) -> VM -> OS
On the other hand, Go (and other C languages) have a different runtime stack:

  .go -> binary* -> OS
Between source and binary are a bunch of compiler steps[0], but * is where both binaries are executed. Statically compiled languages do not have to determine types at runtime and therefore are able to optimize code paths much better.

Still don't believe me? Here's a Fibonacci calculation micro benchmark[1] I ran:

    ╭─ting@noa /tmp/fib ‹python-2.7.3› ‹ruby-1.9.3›
    ╰─➤  time ./go
    1346269

    real	0.02s
    user	0.01s
    sys	        0.00s
    ╭─ting@noa /tmp/fib ‹python-2.7.3› ‹ruby-1.9.3›
    ╰─➤  time python3 ./fib.py
    1346269

    real	0.61s
    user	0.60s
    sys	        0.00s
Sidenote:

Java runs on a virtual machine (JVM) but it's performance comes very close to C languages due to static typing, JIT compilation, and heavy investment in the JVM from many companies.

[0]: For C, compilation goes through these steps:

  hello.c
  (preprocessor)
  hello.tmp
  (compiler)
  hello.s
  (assembler)
  hello.o
  (linker)
  hello <-- binary to run
[1]: https://gist.github.com/wting/77c9742fa1169179235f
wting··on Why I Like Go
That's one of the reasons Rust appealed to me more than Go.

Go has a global mark and sweep GC. OTOH Rust has a thread local, optional GC.

wting··on Allow “Phone a Friend” during Technical Interviews?
A balanced approach is use trial work as a level 2 filter and pay the applicant contract rates for a day / week.

If the person turns out to be a no hire, you managed to avoid an expensive false positive.

wting··on How SublimeText Bodybags vim+Terminator
I think trying to convert vim users is pretty futile. /r/vim/ brought up a lot of issues with Sublime's vintage mode:

http://www.reddit.com/r/vim/comments/17i5ps/from_a_vim_persp...

wting··on Introducing Apk2Gold, an easy and comprehensive Android APK decompiler
I'll definitely check this out, thanks lxdvs! I've been doing some research into Android apps and agree that the jumping through all the hoops with dex2jar, jd-gui (which fails to work for me on Linux), etc manually has been a pain.

Another similar tool you might want to look into is Androguard: https://code.google.com/p/androguard/

wting··on Programmer Interrupted
I find intra-organization chat rooms useful. Developers on their down time can answer questions while busy devs can minimize the window and focus.
wting··on The Headphones Rule
This may seem absurd, but I actually do use two sets of headphones for maximum noise protection. Why go through all this trouble? Sometimes you're forced to work in a noisy environment and there's no way around it. As a bonus, it's great for sleeping or watching movies on a plane.

I got the idea from this HN discussion:

https://news.ycombinator.com/item?id=4802118

Things I've tried:

- earphones (J2)

- inner ear phones (X10, e2c)

- noise canceling over ear headphones (QC2)

- earphones / earplug + ear muff (J2 + H10A)

The last option gives the best noise protection. I've experimented a bit, but J2 buds[0] or regular ear plugs are most comfortable with noise protection earmuffs[1] on the outside. The inner ear phones are not comfortable with an additional over ear headphone.

For $30 I can achieve a level of noise isolation where I can't hear myself typing, or someone speaking directly at me 12" away.

[0] J2 ear buds ($8): http://goo.gl/vQZb4

[1] 3M Peltor H10A 105 dBA ear muff($22): http://goo.gl/6P24g

wting··on Follow up to "The Unreasonable Effectiveness of C"
- optional gc

- thread local gc vs Go's global gc

- memory protection: Go has shareable mutable state

- better functional programming support

wting··on Naked-Image Scanners to Be Removed From U.S. Airports
Some of us who travel between continents don't have that luxury.

TSA already monitors Amtrack:

http://www.cnn.com/2012/02/06/opinion/don-phillips-tsa-vipr-...

Due to the broad description of the organization's purpose, it gives them overreaching powers allowing them to secure any mode of transportation. This has led to the TSA expanding its presence and showing up at NFL games:

http://www.huffingtonpost.com/christopher-elliott/the-tsa-wa...

Edit: For those commenting about NFL game presence without reading the linked article...

  > Few people know that $105 million of their taxpayer dollars are going to fund
  > 37 VIPR teams in 2012, whose purpose is to "augment" the security of any mode
  > of transportation. They don't realize that these VIPR teams can show up
  > virtually anytime, anywhere and without warning, subjecting you to a search
  > of your vehicle or person.
wting··on Kid Sends Blunt Cover Letter and Now People are Trying to Hire Him
No, the models are already built. However they need someone to comb through a company's financial records and plug the appropriate numbers into an Excel spreadsheet.

It's a glorified data entry position, but interns will gain knowledge and experience.

wting··on Interest in "software consulting" down by 80% since 2004 in Google Trends
Interest in software consulting has not gone down 80% overall, it has gone down 80% relative to total search volume over time.

Here's the same graph with "linux" and "news" added: http://www.google.com/trends/explore#q=software%20consulting...

Linux has gone down over time, while a generic term like "news" has gone up. I find it implausible that interest in Linux has decreased, but rather the internet is being adopted by more of the general population.

wting··on JavaScript is the future...maybe
If the world standardized on English, it would help improve global efficiency and communication. As it is, English is the lingua franca of business and software.

However a large part of culture is language, and countries are always trying to maintain their own.

We're also all pretty biased since this discussion occurs in an English-based community. If Chinese were to become the dominant world language, I bet there would be more resistance. The imperial system is a prime example where Americans are a stubborn cultural holdout.

Another concern is that language helps shape one's beliefs. Multilinguals understand that there are certain cultural concepts in native languages that are difficult to translate. Likewise, being a single language developer--whether it's Javascript or Lisp--influences how a developer approaches problems.

wting··on An iPhone lover’s confession: I switched to the Nexus 4
Can the iPad Mini make phone calls? Can it fit in my pocket? The Mini's surface is 23 in^2 larger.
wting··on Why Facebook Makes Us Depressed
Svbtle uses Freight Sans for the headings and Proxima Nova for body.

In contrast, OP's blog uses sans-serif for everything which is why most users probably see it with Arial or Helvetica.

Proxima Sans is a great font, but not free. The most similar free fonts would probably be either Lato or Open Sans.

wting··on Is it worth selling software on Ubuntu Software Centre?
With aptitude you would use the description flag (~d) like so:

    $ aptitude search '~dautojump'
    p   autojump                                 - shell extension to jump to frequently used directories                          
    p   jumpapplet                               - autojump notification icon, to jump to frequently used directories
wting··on Is it worth selling software on Ubuntu Software Centre?
As a side note, aptitude is a superior package management tool to apt-get. The syntax is the same, but aptitude has 3 main advantages:

1) Keeps track of system state. Tracks packages installed as dependencies, and remove them when necessary meaning no orphaned packages.

2) Handles recommends well. apt-get fails to handle recommends, which many packages depend on to pull in dependencies.

3) Searching. More intuitive and better formatted than apt-cache search. There is also the text UI when running aptitude directly. For example, how do I find all installed python packages?

    $ apt-cache search python
    Returns all packages with python in title or description.
vs

    $ aptitude search '~ipython'
or

    $ aptitude search python | grep ^i # installed packages are flagged with i on the first line
wting··on Why men love breasts
Science sets out to answer the "why's" of the world. Why is there lightning? Why does a fungus grow a certain way? (http://www.sciencedaily.com/releases/2010/01/100121141051.ht...)

Sometimes answering these seemingly innocuous questions leads to deep insights into natural behaviors.

“I have a friend who's an artist and has sometimes taken a view which I don't agree with very well. He'll hold up a flower and say "look how beautiful it is," and I'll agree. Then he says "I as an artist can see how beautiful this is but you as a scientist take this all apart and it becomes a dull thing," and I think that he's kind of nutty. First of all, the beauty that he sees is available to other people and to me too, I believe. Although I may not be quite as refined aesthetically as he is ... I can appreciate the beauty of a flower. At the same time, I see much more about the flower than he sees. I could imagine the cells in there, the complicated actions inside, which also have a beauty. I mean it's not just beauty at this dimension, at one centimeter; there's also beauty at smaller dimensions, the inner structure, also the processes. The fact that the colors in the flower evolved in order to attract insects to pollinate it is interesting; it means that insects can see the color. It adds a question: does this aesthetic sense also exist in the lower forms? Why is it aesthetic? All kinds of interesting questions which the science knowledge only adds to the excitement, the mystery and the awe of a flower. It only adds. I don't understand how it subtracts.”

-- Richard Feynman

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

wting··on The Flat Sink
Proxima Nova Soft.

In the future check out this extension as it allows you to hover over elements to quickly find the font: https://chrome.google.com/webstore/detail/whatfont/jabopobgc...

wting··on Learn Linux The Hard Way (β version)
I'm biased in favor or Arch Linux. It's fairly similar in spirit with Gentoo, but offers binaries rather than forcing users to build everything from scratch.

AUR packages usually require compiling from source code though.

wting··on Apple kills a Kickstarter project
Thinkpad fans are probably the only other group that likes a product line based on hardware. They may be smaller and/or less vocal group, but they're out there.
wting··on Why You Should Want to Pay for Software, Instagram Edition
I think you mean control of your data, rather than open protocols. For example, you can still access your Gmail via IMAP.

It would be great if users could have a decentralized store of the private data, and merely gave websites or applications access to the data. Unfortunately this is a privacy geek's pipe dream, as data hosting costs and complexity would result in low adoption rates (e.g. setting up your own OAuth server).

On a side note, this is a another area where Google+ falls behind Facebook. Facebook is a platform for other apps. Sometimes this results in stuff like Zynga spam, but there are good use cases such as allowing Twitter / Instagram apps to post in more than one location. Vic Gundotra has stated in interviews that Google wants a single conversation thread rather than have it fractured across different platforms, but that strategy is an all or nothing approach and they're late to the social networking game.

wting··on 4Chan Accepts Bitcoin
Internet porn was an industry leader in offering streaming video, online payment processing, one to one video conferencing, and geolocation advertising.

Just because a technology is affiliated with a morally grey industry doesn't discount the value of the technology itself.

wting··on What are the Hidden Communities of Reddit?
Took me a while to find it:

http://www.reddit.com/r/redditdev/comments/dtg4j/want_to_hel...

Here's another version:

https://archive.org/details/2010-reddit-research

wting··on FedEx Overcharged Customers for Years, Sealed E-Mail Says
The presence of competition does not imply a fairly priced market, e.g. US telecom companies.
wting··on Welcome Guido
Don't know, I saw them in September.
wting··on Welcome Guido
I don't work at Google, but toured their Austin office during a hackathon. A friend confirmed that they did as well for their Mountain View campus.
← PreviousPage 9 of 10Next →