634 reputation
1617
bio website stevenlu.net
location
age 25
visits member for 2 years, 10 months
seen 2 days ago

Jul
25
comment Copying files: Do any of the mainstream operating systems (excluding e.g. 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. 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. 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.
Jan
20
comment Lift Vim undo-tree file size limit?
@KyleStrand Yeah, couldn't use git there, though. Codebase too large to fit in git. And I can't really branch with perforce. Maybe make a few shelvelists. But that sucks and is not as nice as a git branch. My actual solution to things like that was to run git on top of p4.
Aug
30
comment Lift Vim undo-tree file size limit?
yep that's gotta be it, on account of 2776 and 1774 (i must have made 2 phantom edits). Thanks for the tip! comments need a "make this an answer" button.
Aug
29
comment Lift Vim undo-tree file size limit?
Yes. I have been retroactively loading up the vim revisions and inserting them into a git repo. We use p4 because the codebase is too big and interconnected for git to deal with it effectively, but tracking individual files manually using git works very well
Aug
29
comment Is it possible to change safari scrollbar behavior?
Will it let me hide them always and forever? Doesnt look like it
Aug
8
comment Is there a way to yank the selected text into the search field in Chrome?
Ah. I see. Thanks for explaining! Btw unfortunately I wasnt able to get your userscript working when I tried it.
Aug
7
comment Is there a way to yank the selected text into the search field in Chrome?
Fantastic!! Any chance you can provide functionality to search across tabs? That would be ordinarily for another question but this seems like a prime opportunity. (It would surely be a pretty heavyweight task but I have been known to keep 100+ tabs open and it would be much appreciated for users like me)
Aug
5
comment Is there a way to yank the selected text into the search field in Chrome?
Ah! right, F3 is usually the counterpart to Cmd+G. It's a good one and I usually forget about it. Well, I'll make do with this, at least c, f, and v are close together.