HNHacker News
TopNewBestAskShowJobs

timmy-turner

219 karma · joined April 1, 2010

submissionscomments
timmy-turner··on Autodesk's Idea to Knit the Hyperloop Out of Carbon Fiber
Also, railways are not really meant to be safe against attackers with physical access to it (so basically anyone). For example, the sensors/switches on a railway that cause a train to perform an emergency halt if the train driver misses a stop signal can be modified by anyone near it - no encryption, no locks (source: https://www.youtube.com/watch?v=xwaKYZfgY8k - only in German though).

You don't even need explosives, a simple wedge welded on a rail would be enough. In the end, I don't think it is economically feasible to secure a railway against that (as well as any other kind of track). You have to make sure that nobody does stupid things like these.

timmy-turner··on Why does Angular.js rock?
Just reinventing the wheel to not having to use Powerbuiler makes a lot of sense to me. Even if it takes 20 years. Even if it only covers the trivial features. 5 years ago, I used to work on two huge Powerbuilder projects. I don't remember having real models or support for them in Powerbuilder and these projects. Everything was just datawindows, embedded SQL and stored procedures. I'm really glad that I'm now working on a web application at a different company.
timmy-turner··on Updated Facebook for Android requires "Retrieve Running Apps" permission
There could also be an option to provide the app with fake data instead of telling it to not have any permissions, e.g. an empty address book, empty list of currently running apps, a fake network access which actually routes the data through a proxy and so on.
timmy-turner··on Secure Shell chrome (killer) app
Shameless self plug: https://github.com/hoeck/schirm. It does exactly that, rendering arbitary html (inside iframes) between lines of a vt100 compatible terminal emulator, using escape-sequences to denote document data and images. Works quite well as a proof of concept. What annoys me so far is that its relatively slow (running find on a large dir may take ~20 times longer than on gnome-terminal) and the headaches around (automatically) resizing iframes.
timmy-turner··on Light Table - a new IDE concept
No you're not the only one. I've been working on pretty printers for SQL and Clojure, to render their textual representation using html elements other than <pre> so that they keep their indentation, regardless of font style or size (example: http://pastehtml.com/view/bun1zr4o7.html).
timmy-turner··on Light Table - a new IDE concept
Great to see another clojure tool heading away from the old traditional and largely text based environments to something new and better. Anyhow, looks a lot like Code-Bubbles to me (http://www.andrewbragdon.com/codebubbles_site.asp). As he was talking about how other engineers work, on big tables where they place and organize all their current notes, items, documents - in the future, I'd like to have a large epaper covered, touch and object sensitive desk and couple of light epaper devices to take down and organize notes and code. Software will become more complicated in the future, so I think at some day we will need to adapt and use more powerful tools than the ones we currently have.
timmy-turner··on Cursor:none abuse (trick users into clicking Facebook 'like')
Isn't this the fault of a bad UI mixed with bad defaults? I'm using the Cookieculler FF addon (https://addons.mozilla.org/en-US/firefox/addon/cookieculler/) to manage them. Instead of torturing me with a modal popup for every new site I visit, it keeps a list of hosts and cookies and trust status in the background. Using that list to protect important but delete/block all other cookies is quite convenient.
timmy-turner··on Pretty Lisp
> Consider the transformations you might do on a piece of source code while you're playing around. A lot of these (for me, anyway) are things which change not just position or name, but the part-of-speech of words, or temporarily make a nonsensical expression. (I do it in my shell a lot, too.) Rigid structure-enforcing editors hinder this.

I hope that this can be mitigated by using an incremental parser (pretty easy to write for a lisp), which gracefully switches to a plaintext representation if the underlying code cannot be parsed anymore. The advantages of an editor which understands the code (both, syntax and simple semantics) you are writing or reading are just too promising.

timmy-turner··on Tty.js - a terminal for your browser using socket.io
Had exactly the same idea a few months ago, which resulted in 'Schirm': https://bitbucket.org/hoeck/schirm, screenshots: http://imgur.com/a/N84aw.

Its a VT100 (+colors) compatible terminal emulator (pyte) hacked to render into an HTML document, displayed using Webkit (pywebkitgtk). Currently requires python2.7, gtk, webkitgtk (only tested on Ubuntu 11.04 so far). Html output is done by using escape sequences to mark beginning and end of html strings or base64 encoded resources (js, images ...). You can even use js frameworks (used jQuery + d3.js to generate the circular tree in the 2nd screenshot). Communication between the terminal emulator and the client can be achieved by using console.log messages or some kind of HTTP (over stdin/stdout). Would love to get some feedback.

timmy-turner··on Google is working on integrating terminal emulator into Chrome
For those that can't wait for google, there are already some pretty mature browser-based terminals out there. For example shellinabox (https://code.google.com/p/shellinabox/) which is a full javascript implementation of a vt100 compatible terminal plus a server written in C providing pty streams over http. Web shell (http://code.google.com/p/web-shell/) is another one, doing all the terminal emulation on the server written in python and transferring full lines to the browser.

If you're interested to write your own terminal emulator, have look at pyte (https://github.com/selectel/pyte), a very clean and beautiful python library to write vtxxx compatible terminal emulators.

timmy-turner··on 28C3 agenda published
I never take vacation between christmas and new years eve. Its usually a quiet week anyway and I get to watch all the c3 livestreams and enjoy some unwound coding. Especially the lightning talks had been very entertaining last year.
timmy-turner··on The price of a messy codebase: No LaTeX on the iPad
A current tablet device, even a cheap one, has about 256Mb of main memory. Android (at least the cyanogen mod kernel) has also the ability to use a part of the main memory to store compressed swap partition data. That leaves about 80 Megabytes to userspace programs (on Android). About the amount a normal desktop computer had in 1998.

LaTex dates back to the beginning of the 80s. Given that it has the ability to create large documents, I doubt that the required amount of main memory scales linearly with the size of the document.

Also, when you use subprocesses, besides checking their return value, you have some sort of interprocess communication which should detect when one process failed to finish his job.

It looks more like the smartphone runtimes and their sandboxes just don't support it at all, because modern GUI applications rarely build upon multiple executables in the background.

timmy-turner··on Run, Python, Run
RunSnakeRun is a nice tool to view the pstats data the python profiler generates. But for me, the squaremap is hard to read and does not really add any value. Also there is no way to 'watch' a pstats file, or combine many files into one. Generally I prefer working with the commandline, even for starting gui applications.

My current setup to profile a python cgi application consists of a set of scripts to mock the cgi runtime, invoke the application with cprofile and accumulate profiling data in a single pstats file. To get a grasp of the hot spots, I'm using the magnificent gprof2dot script (http://code.google.com/p/jrfonseca/wiki/Gprof2Dot) to generate a callgraph with profiling data (example: http://wiki.jrfonseca.googlecode.com/git/gprof2dot.png). Gprof2dot hides all unimportant (by default less than 1% runtime) calls and colors functions according to the time spend executing them. To view absolute numbers, I wrote a small python script to print the first view entries of a pstats file to the terminal and use that with watch (http://linux.die.net/man/1/watch) to keep an eye on absolute runtimes.

Overall this is a nice setup and I'm very impressed by the rich amount tools available for python, though sometimes the APIs are kind of strange to me (for example cProfile, pstats).

timmy-turner··on Life on the Command Line
Same for me. For example, I like using git gui or tortoisehg when doing complex commits as those tools enable me to find, inspect and select all necessary files faster than typing a command for each file/task. For examining recent log entries or switching branches, pushing etc., I prefer the cli. For complex file tasks I use mc, which is a nice hybrid solution between a gui and a bare cli.
timmy-turner··on What everyone should know about the human eye
The fact that humans like to look at faces and are pretty good at identifying differences between them has been exploited in http://en.wikipedia.org/wiki/Chernoff_face.
timmy-turner··on Erlang inventor: Why do we need modules and files?
Even for lisp, you would have to define an extended syntax for it and modify the parser to additionally read and store whitespaces, comments and newlines. This way you will be able to serialize your source to plaintext without loosing the original format. Non text sourcecode also allows for way smarter tooling, tree diffs on the AST, graphical repls and improved rendering of sourcecode.
timmy-turner··on Ask HN: What's your favorite window manager for X11?
Xmonad works so well that I even rejected to work with a second monitor. At least for me its currently faster switching to another desktop using capslock-<0-9> than physically adjusting my eyes to another display.
← PreviousPage 2 of 2