wollw's comments

wollw | 13 years ago | on: Vim Git Gutter

I had the same problem at first. Try putting it after wherever you're loading the plugin itself.

edit: Also, thanks airblade. I think I'm going to keep using this.

wollw | 13 years ago | on: Use long flags when scripting

It's probably safer to use:

    #!/usr/bin/env bash
Assuming env is installed (I believe I had to install a package on OpenBSD to use it) this will find the first instance of bash in the PATH.

wollw | 13 years ago | on: How one woman got 50% female speakers at a tech conference

If the review process was blind and the proposals were evaluated on their merits alone then in the selection process would have removed the author's demographic as a discriminating factor. The sample itself would likely be skewed (as in the discussed example), but as long as the speakers gave interesting, relevant presentations I don't see the issue.

I'll agree that there was obvious discrimination in who she personally sought out as speakers, but when it came time to select speakers for the event she didn't turn men away for being men or select women because they were women. She didn't sacrifice the quality of her conference to showcase women speakers, and each candidate that did apply had a fair shot as becoming a speaker. Personally, as it was her conference I don't see a problem with her seeking out the people she wanted to hear from for submissions; it appears it was discrimination based on the quality of the submissions that was the deciding factor, and for me that's what really matters.

wollw | 13 years ago | on: How one woman got 50% female speakers at a tech conference

The most interesting part of the article for me was this:

    To keep the selection process fair, Courtney chose applicants
    based on their pitches only, without looking at the speaker’s identity or gender.
Based on this it doesn't look like she was discriminating.

wollw | 13 years ago | on: Show HN: I Built An App to Teach Mind Control

While relying on something like this for you meditation may not be ideal, what harm does this do? If this helps some number of people begin to regularly meditate isn't that a net gain?

wollw | 13 years ago | on: GIMP 2.9/2.10 Feature Preview

MyPaint and Krita are actually both great programs for digital painting. David Revoy is an artist who uses both (and also created one of the brush sets for MyPaint) and his work is worth looking at: http://www.davidrevoy.com/2-portfolio.html

He has a number of tutorials available on his site too: http://www.davidrevoy.com/4-tutorials.html

I believe he also uses Gimp with the Gimp Paint Studio presets for some things: http://code.google.com/p/gps-gimp-paint-studio/

wollw | 13 years ago | on: What Is The One True Android & How “Open” Is It?

If you're talking about the Verizon Galaxy Nexus being dropped from the AOSP you should know it was brought back into it. Personally I use a custom rom anyway but the Galaxy Nexus is on Verizon and you can download the latest builds from Google.

https://developers.google.com/android/nexus/drivers#torojro0...

edit: I mistakenly linked to the binary drivers there and I seems you might need to build AOSP yourself if you want to use it straight from Google. I guess you're taking issue to the Verizon Galaxy Nexus being sold through Verizon instead of via Google's store. Verizon's full retail price is pretty ridiculous compared to Google's price but in terms of support the Verizon Galaxy Nexus seems to be getting just as much from Google as the other variants.

wollw | 13 years ago | on: Girls Need Math

The Arduino is based around Atmel's 8 bit AVR architecture which really doesn't have what it takes to run a JVM. The ATmega328P which the Arduino Uno board uses has 32KB of code space and 2KB of SRAM which isn't really enough for something like Java. The normal way Arduino projects are built is by defining a "setup" function and a "loop" function which, when compiled, are actually just called by a hidden C++ file with a main function that essentially does this:

    int main(void) {
        setup();
        for (;;)
            loop();
    }
The actual file does a bit more and can be found in their git repository here: https://github.com/arduino/Arduino/blob/master/hardware/ardu...

wollw | 13 years ago | on: Girls Need Math

Arduino is C/C++. It's mostly a C++ abstraction built on top of the avr-libc library. The Arduino IDE is written in Java though.

wollw | 13 years ago | on: A Gentle Introduction to Algorithm Complexity Analysis

The classic CLRS Algorithms book actually starts out with a five chapter "Foundations" part that goes over computational complexity in a good amount of detail. It goes over theta, big and small O, and big and small omega notations and their properties similarly to how this article seems to. It has an entire chapter on determining the computational complexity of recurrences and another on randomized algorithms. The five chapters together are about 130 pages and probably not what I would call gentle but I found it surprisingly approachable.

wollw | 14 years ago | on: A Readable Conway's Game of Life

I've been working on a sculpture project[1] based on cellular automaton for the past two semesters. It's not exactly conway's game of life as I'm mostly focused on polygonal cells. Hardware wise it's mostly just LEDs with shift registers and an ATtiny85 but the code[2] might be interesting to some, in particular dealing with figuring out what cells are and aren't neighbors when you have an ambiguous layout. I've also put together an Android simulator[3] I use for exploring ideas that defines designs using JSON but I've put a lot less work into it.

[1] http://wollw.github.com/automaton-avr/

[2] https://github.com/Wollw/Cellular-Polymaton

[3] https://github.com/Wollw/Polymaton

wollw | 14 years ago | on: C Finally Gets A New Standard

C++ doesn't coerce the void* malloc returns into an int* , C does. You have to write

    int* foo = (int*)malloc(sizeof(int));
in C++ or the compiler gives a type error.

wollw | 14 years ago | on: The Go Programming Language, or: Why all C-like languages except one suck.

Agreed completely. I'm doing a decent amount of development with MCUs these days and really like having a minimal abstraction. It's easier to think about what the hardware is doing when you're only slightly removed from the assembly; what would be a convenient abstraction for most application development quickly becomes a liability as knowing the implementation details can be pretty important (due to limited resources).

As for an implicit "this" for function pointers, I've had the same wish myself. I've settled for just a function namespace (ie: myListPush(myList,foo);) due to the verbosity of your example but it's not quite the same. At this point I'm pretty happy without it, and even think it might be hiding too much information, but it makes a nice piece of syntactic sugar for sure. My current unneeded-but-desired change to C would be the addition of lambdas like in C++11.

page 2