It is a little discouraging to have your work dismissed in a couple sentences though. I put an awful lot of time into it.
288 karma · joined January 24, 2009
It is a little discouraging to have your work dismissed in a couple sentences though. I put an awful lot of time into it.
"Another way to look at this: The first time you meet someone, you learn their full name. When discussing them with someone else who knows them, you use just a single name. If they're standing right there, you don't bother using their name, but just make eye contact, and maybe a "Hey". Should be the same way with variables."
Isn't the point of adhering to a style so that others will already be familiar with it?
I have seen the kVariable style, and of course the iterator convention. I have never seen the other two, however; usually globals are denoted with all-caps and locals are just assumed (xVariable seems annoyingly superfluous). That's just my opinion, though — if I were coding in a language where your style was the most common, I would use that instead.
Should listening to music necessarily be considered "consuming"? I go running all the time while listening to instrumentals, and it helps me concentrate.
I too have a significant portion of my epiphanies while running or biking, or just walking away from what I was doing, staring at the ceiling, and thinking it over. Gazing into a computer screen seems to promote the narrowing down of ideas rather than the conception of new ones (if that).
Also, has anyone else found showers extraordinarily easy to concentrate in? I'm not sure what it is (white noise?), but I often find that when I take a shower my stresses fade away and whatever problem I was having folds out with an obvious-in-hindsight solution. (I also take notoriously long showers, for this reason.) I really wish I could replicate this experience somewhere else; the only other time I've had it is occasionally when falling asleep (which also, incidentally, causes me to take much too long to fall asleep — not exactly an ideal combination).
Just a minor nitpick: you may want to try the library method bmp.find_color() instead of your find_init_color() (http://msanders.github.com/autopy/documentation/api-referenc...), it should be significantly faster.
Also, instead of iterating through the width & height manually, autopy offers this shortcut:
for x, y in bitmap:
do_something(bitmap, x, y)Unfortunately, I don't have a Vista installation to test this on, which makes it a bit difficult for me to debug.
What does it mean?
Rather messy since github doesn't do redirects, but I suppose it's worth it.
By the way, to uninstall the apparently poorly-named pydroid:
cd ${PYTHON_DIR}/site-packages/
rm -r pydroid pydroid-0.42-*.egg-info
where ${PYTHON_DIR} is "/Library/Python/2.6" on OS X, "C:\Python26\" on Windows, etc...Then just run the new installer shown on the script page (or install from source), now at:
:)
fun! s:RemoveWhitespace()
if &bin | return | endif
if search('\s\+$', 'n')
let line = line('.')
let col = col('.')
sil %s/\s\+$//ge
call cursor(line, col)
echo 'Removed trailing whitespace.'
else
echo 'No trailing whitespace found.'
endif
endf
You can map it with: nn <silent> ,R :cal<SID>RemoveWhitespace()<cr>Most of it's just my quirks but I think there's some useful bits in there. My vim setup is _heavily_ customized, for better or for worse.
I have registered a domain name (http://pngsquash.com), but it currently just redirects to the github page because I thought that was adequate.
Is this good or bad? One possible speedup I could use is to compress more than one image at a time, although the progress indicator would probably have to become asynchronous.
Just curious about PNGOUT - did you get permission to bundle it with your app? Their license http://www.advsys.net/ken/utils.htm#pngoutkziplicense seems pretty restrictive: "Redistributing, repackaging, or reusing the PNGOUT or KZIP executable is prohibited without the express consent of Ardfry Imaging, LLC, and a formal business agreement.
No I didn't, thanks for pointing this out. I'll remove it for now; didn't realize their license had that restriction. That's pretty lame :\.
This is a good idea, but I can't technically do this currently. The compressors are run one after another (it's essentially like "pngcrush infile outfile && optipng outfile && advpng outfile && pngout outfile"), so there is no real "best result", it just gets a bit smaller each time.
Also, since the point of testing 4 png compressors is to get the smallest size possible, why not use "smallest" as the default setting?
That's a good point, I've just committed the change :)
Thanks for the suggestions!
At least on my machine, executables without an extension turn into icons that are run in Terminal.
You can customize this if you like. See: http://news.ycombinator.com/item?id=448218
"Half the typical ctrl bindings are Apple key which is in the alt-key position."
You get used to it eventually. I've come to like this more than what having only the control key for most mappings because it allows for more consistent shortcuts (e.g.:, ⌘ is normally used for App/OS shortcuts, while Ctrl is used for Emacs/text-editing shortcuts in all apps)
"No consistent focus follows mouse. No raise on hover"
You can use this command to enable it for Terminal:
defaults write com.apple.Terminal FocusFollowsMouse -string YES
For other apps, I found this with a quick Google search http://atomicbird.com/mondomouse (haven't tried it myself so I can't say how good it is)."Can't for the life of me figure out how to get an icon that will open term and ssh into a particular box."
Try this:
vim logmein
i#!/bin/bash
ssh my-box
<esc>ZZ
chmod a+x logmein
Speaking of that, here's a nice app for automatically inputting passphrases for ssh: http://www.sshkeychain.org/Personally though I agree with most of the comments you quoted. I've only found fullscreen mode useful for cutting out distractions in apps like Terminal.
"- The syntax of snippets is very similar to TextMate's, allowing easy conversion.
- The position of the snippet is kept transparently (i.e. it does not use marks/placeholders inserted in the buffer), which allows you to escape out of an incomplete snippet, something particularly useful in Vim.
- Variables in snippets are updated as-you-type
- Snippets can have multiple matches
- Snippets can be out of order. For instance, in a do...while loop, the condition can be added before the code."
There are also more snippets for more filetypes enabled by default with snipMate.vim, partly because of the features it supports. I also managed to get it to around half the code, which pleases me but I doubt anyone else would consider it a 'feature' ;)
Here's my DefaultKeyBinding.dict (it goes in ~/Library/KeyBindings): http://sporkage.com/DefaultKeyBinding.dict