HNHacker News
TopNewBestAskShowJobs

meese_

288 karma · joined January 24, 2009

submissionscomments
meese_··on Ask HN: Rate my site - delishbits.com
Well, admittedly I made it partly for my own personal use and partly for fun. I just thought that most of the sites that did this weren't very well done, or didn't achieve what I was looking for completely.

It is a little discouraging to have your work dismissed in a couple sentences though. I put an awful lot of time into it.

meese_··on Every programmer has a variable naming philosophy
This reminded me of a previous comment (and discussion) on HN: http://news.ycombinator.com/item?id=840331

"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."

meese_··on Every programmer has a variable naming philosophy
> I haven't seen anyone else using anything like it.

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.

meese_··on Ask HN: Rate my essay, please: On thinking
Interesting essay. Kind of distracting how every sentence is followed by two spaces, though.

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).

meese_··on Show HN: My latest pet project, pydroid
Cool :)

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)
meese_··on Show HN: My latest pet project, pydroid
Yes, it should. HN won't let me do that any longer though.
meese_··on Show HN: My latest pet project, pydroid
Yes, that removes the libpng and zlib dependencies. Those should be statically compiled in on Windows though.

Unfortunately, I don't have a Vista installation to test this on, which makes it a bit difficult for me to debug.

meese_··on Show HN: My latest pet project, pydroid
Very cool!
meese_··on Show HN: My latest pet project, pydroid
> On a side-note, the name sounds a little inapropriate in Russian.

What does it mean?

meese_··on Show HN: My latest pet project, pydroid
Done.

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:

http://github.com/msanders/autopy

meese_··on Show HN: My latest pet project, pydroid
What OS?
meese_··on Show HN: My latest pet project, pydroid
"The prize is the pleasure of finding the thing out, the kick in the discovery, the observation that other people use it. Those are the real things." — Richard Feynman

:)

meese_··on Ask HN: What's in your .vimrc file?
Here's a function I wrote to get rid of trailing white space:

    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>
meese_··on Ask HN: What's in your .vimrc file?
http://github.com/msanders/vim-files/blob/master/.vimrc

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.

meese_··on Ask HN: Rate my app: PNGSquash
If you scroll down there's an executable download, description and screenshots. Kind of counter-intuitive I know (although there is at least one other app doing it http://github.com/rentzsch/clicktoflash), but there isn't really any other way to do it on github. It is Mac-only but I don't think that disqualifies it from being an app.

I have registered a domain name (http://pngsquash.com), but it currently just redirects to the github page because I thought that was adequate.

meese_··on Ask HN: Rate my app: PNGSquash
Well I mainly made this to get myself comfortable with Cocoa. Maybe once I'm finished I can try learning something like Qt.
meese_··on Ask HN: Rate my app: PNGSquash
I'm doing this now, thanks for the suggestion.
meese_··on Ask HN: Rate my app: PNGSquash
The processing time was around 4m20s on a MacBook Pro with 3GB RAM.

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 :\.

meese_··on Ask HN: Rate my app: PNGSquash
Feature suggestion: Tell me which of the 4 compressors gave the best result.

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!

meese_··on A long time between Macs
Actually now that I look at it it appears that Leopard does this now with ssh-add -K.
meese_··on A long time between Macs
> A bash script is not an "icon".

At least on my machine, executables without an extension turn into icons that are run in Terminal.

meese_··on A long time between Macs
"Lots of keyboard/keystroke mapping differences. Home/End do what they're suppose to instead of what everyother computer platform I've ever used does. Page up / Page down, seriously WTF! Why would anyone ever want them to work that way. Various other oddities like ctrl arrow"

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/
meese_··on A long time between Macs
You may like Mega Zoomer http://ianhenderson.org/megazoomer.html

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.

meese_··on Ask HN: Rate my Vim Script: snipMate.vim
I think I've fixed this, can you try the latest release and see if you encounter the same problems?
meese_··on Ask HN: Rate my Vim Script: snipMate.vim
The features listed on that page are not, to my knowledge, supported on snippetsEmu.vim:

"- 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' ;)

meese_··on How to customize OS X KeyBindings (e.g. C-e, C-a, etc.)
Just discovered this; it's nice to have things like C-w (delete last word) in all (Cocoa) apps, as well as the ability to jump between words without using option+an arrow key. There's even marks, although they aren't as useful as in vim or emacs as the text field doesn't seem to automatically scroll back up...

Here's my DefaultKeyBinding.dict (it goes in ~/Library/KeyBindings): http://sporkage.com/DefaultKeyBinding.dict

← PreviousPage 2 of 2