VirtualTam's bookmarks

  1. Python's built-in unittest module is quite cool, but a bit limited and way too verbose (read: it's quite not easy to incite developers to write unit tests)

    I'm currently looking for more dev-friendly solutions, the key points being:

    • writing test code should be easy and straight-forward -keep the focus on "what to test" instead of "how to transcribe a process to a test"
    • parallelization! -we, spoiled developers, should make good use of our way-too-many-cores build machines...
    • complete feature set!
      • we don't want to just run tests...
      • coverage reports (find dead/weak/untested code sections)
      • output formatting (JUnit-XML seems to be quite a common format out there)

    There seem to be 3 solutions in Python:

    • stock unittest + project-dependent customizations / test helpers
    • nosetests
    • py.test

    And 2 ways of gettings things done:

    • keeping things stock: no external dependency, project-specific implementation...
    • using a test framework: one more module in your (test) virtualenv, more concise tests, more features (// run, code coverage, etc.)

    Some links:

  2. Reddit Playlister 2015-02-02

    Website generating a playlist / web player from YouTube and SoundCloud links from music subreddits (or, basically, any subreddit containing media stuff).

    Sadly, it doesn't seem to be Open Source, so you won't be able to host you own instance :-(

    http://www.reddit.com/user/RPlaylister

  3. # /etc/modprobe.d/snd_usb_audio.conf
    options snd_usb_audio vid=<vid1>,<vid2> pid=<pid1>,<pid2> index=<index1>,<index2> enable=1,1
    

    example:

    # 5: M-Audio Fast Track Pro 
    # 6: Focusrite Scarlett 6i6
    options snd_usb_audio vid=0x763,0x1235 pid=0x2012,0x8012 index=5,6 enable=1,1
    

    See also: http://alsa.opensrc.org/MultipleCards

  4. To increase the memory allocated and available:

    # /etc/default/jenkins
    JAVA_ARGS=&quot;-Xms4G -Xmx16G -Djava.awt.headless=true&quot;
    

    See also

  5. Includes support for Coverage, Xunit and other cool stuff ;-) Oh, and there is parallel testing, too \o/

    nosetests --with-coverage --cover-erase --cover-tests --cover-html --cover-html-dir=htmlcov --with-xunit --xunit-file=unit.xml

    via http://www.alexconrad.org/2011/10/jenkins-and-python.html

  6. 18i8 ALSA driver:

    Scarlett Mixer GUIs:

    ALSA mixer:

    Combo patch:

    ALSA/Linux support (kernel mainline):

    ALSA/Linux support (experimental):

    PulseAudio issues:

    Jack latency tuning: