745 reputation
1719
bio website stevenlu.net/tm.html
location
age 25
visits member for 3 years, 4 months
seen 4 hours ago

Play a multitouch HTML5 Tetris clone -- don't worry, keyboard will also work great: http://htmltetris.com

A huge fan of tmux, and I use Sublime Text and (more often) the indomitable Vim.

I have some special experience with:

  • too much JavaScript
  • too much CSS
  • OpenGL
  • topics related to animation via simulation, primarily in 2D (rigid/soft-body physics, kinematically-enhanced shader techniques)
  • low-level application security (the stuff that nobody ever has time to dedicate to finding their app's vulns)
  • HTML5 gamedev (It's ready for tech demos, not all that ready yet for important products, but hopefully will be quite soon, and failing that, eventually)
  • C++ template metaprogramming, and clang c++ metaprogramming (hint: one of these will erode your sanity)

2d
comment Vim: Show the index of tabs in the tabline
Yeah, I've been using the tabline from the airline plugin, but to be honest, this old tabline that I came up with is a lot more functional...
Dec
27
comment How to disable the skype ads (advertisement)?
Nice. I need this for my Macbook because constant 30% CPU usage courtesy of Flash via Skype Ad is simply criminal... Skype times out for about 30sec on startup desperately trying to phone up its ad. Then gives up. Yeah, that's what I thought.
Dec
16
comment Is it possible to differentiate between a scratch buffer and a new [no name] buffer?
I found that bufhidden is set to wipe for the particular "scratch buffers" that I'm interested in. I was also thinking maybe there would be something that sets (that I could retrieve and test) the word Scratch as it does show that as the name of the window in its statusbar. But I guess I'll just have to check the source of the plugin for that. Meanwhile I'll just make my code test for wipe.
Dec
10
comment How to bind a key to issue two commands in visual mode?
This works well. I didn't mention... I can't actually even type "+y in visual mode, because my " is bound to surround.vim to surround selection with double-quotes.
Dec
10
comment How to bind a key to issue two commands in visual mode?
Yeah i wanted to only have visual mode y to yank to system clipboard so that i wont end up with a ton of useless entries. I guess you brought up a really good point at the end there, which is... all yanks always go into " so I really didnt need to even find or write a way to bind two actions to the key.
Oct
12
comment Good on-screen ruler application for Windows?
Oh that's brilliant. Yes I do like this one because it has transparency and is not bright yellow. Though, now that i test it, you didn't actually fix the root bug, you just made a workaround to lock the size...it helps but the bug is still present, most noticeably where if you drag it from a spot near the edge, if you go fast in that direction, it will simply "drop" it. While it is an improvement in a certain sense it does require an extra step to lock after editing the size...
Oct
10
comment Good on-screen ruler application for Windows?
This app is buggy because if you move it around quickly it handles the mouse events erroneously and either "lets go" or starts resizing itself. Aggravating! Otherwise very neat. Due to this, JR ruler is more functional
Jul
25
comment Copying files: Do any of the mainstream operating systems (excluding e.g. BSD/Linux with ZFS) hash files when moving them?
I found this which is a start.
Jul
25
comment Copying files: Do any of the mainstream operating systems (excluding e.g. BSD/Linux with ZFS) hash files when moving them?
Theres probably some applescript way to do this that's dead simple. Anyone know applescript?
Jul
25
comment Copying files: Do any of the mainstream operating systems (excluding e.g. BSD/Linux with ZFS) hash files when moving them?
Yeah like its all conceptually pretty damn simple (I would use SHA-1 or SHA-256 though, or possibly something that can leverage the native instructions on recent Intel CPUs, for speed, if nothing other than to keep laptop cool), and I'm honestly very comfortable on the command line and with shell scripting also, but there is simply nothing appealing about copying a bunch of directories on the command line (even when I use a nice shell like zsh for the completions). It's just shitty. There's got to be an app that adds a Finder hook for doing this. (And on Windows, an Explorer shell extension)
Jul
21
comment Is it possible to control the CAPS LOCK LED on OS X?
I use Seil (formerly PCKeyboardHack) to not only disable Caps Lock's default functionality (which is useless) but also to set it to another key, and in turn I use this key heavily in the command line as a generic command key (a sort of overloaded context switching functionality). It's really useful. 2 years later, I started wondering how to control this green LED light that's also on this key that I had forgotten about.
Jul
16
comment SSH: The authenticity of host <host> can't be established
I don't think that really changes anything. The warning is shown when the server itself has changed. For example if you provision a new virtual machine that you're connecting to for the first time. Whether or not you have a known_hosts file (with the correct permissions) doesn't stop it from asking you about the authenticity of the new server... Unless you have somehow already fetched the pub key signature for this server and put it into your known_hosts, which is the one normal way to skip the check (though just saying "yes" to the check is often faster to achieve the same)
May
30
comment How do I keep a MacBook battery charged to only 70%?
@DanielBeck The reasoning is essentially that we would prefer, on extended desk-bound sessions, to keep the charge constantly at, say, 60%, which is in the long run less detrimental than keeping it constantly at 100%, all else being equal (a power adapter ready and willing to supply juice). Just before a trip or any normal portable usage session, the battery is to be topped off to 100%. I do believe that for most of us, myself included, the benefit of always being at the ready with battery fully charged outweighs that benefit. I think it's legit to want a way to keep a specified charge level.
May
12
comment Properly aligning partitions for Linux on a 1536KiB Erase Block SSD
Looks like Windows' C:/, which is /dev/sda2, is at sector 206848 which is on a 1MiB boundary. This is perhaps not ideal. I'll want to customize the install next time to adjust it, I think. Anyway this all probably doesn't matter too much, it's a pretty modern SSD...
May
11
comment Properly aligning partitions for Linux on a 1536KiB Erase Block SSD
Thanks for clarifying! If you (or anyone else!) has more information and references/links, please post them.
Apr
28
comment Bash: Spaces in alias name
How does this handle if I want ls -lat to be excluded from this treatment? I would need to put a case to handle it above the -la* entry, yes?
Feb
23
comment How to achieve inverted color in Windows 7 (like Compiz Negative)?
A lot of the modes are seriously painful on the eyes when ClearType is enabled, but a few of them do work well. Nice little app. Particularly dig the smooth transitions
Jan
25
comment Is it possible to connect to the local Windows shell with PuTTY?
I actually need to use PuTTY itself. I have a special fork of it I compiled. With hardcoded keybindings and stuff in it. Thanks for the comment though.
Jan
21
comment Lift Vim undo-tree file size limit?
As for Git having no file size limits, the fact that hashing >1GB of code takes a few minutes makes it impractical. It's not impractical if the codebase is separated sanely, but that ship obviously had sailed. Perforce's new stuff that incorporates Git into the system sounds like a promising direction for them.
Jan
21
comment Lift Vim undo-tree file size limit?
Well that wasn't a workflow that existed at our operation, so I couldn't do that. Merging and branching on centralized VCS's are never worth the trouble for local changes of this sort, in my experience. But you are right at the end of the day, relying on Vim to track history is not a good way to go. However, surely you must agree that it being capable of doing it is an admirable property for an editor to have.