VirtualTam's bookmarks

  1. 1import calendar
    2import time
    3
    4calendar.timegm(time.gmtime())
    
  2. "The price for securing your network is eternal vigilance and also your soul." "Whose soul? We're sysadmins." "Oh, right. End users. Hang on, I have a jar of them under my desk. Let me get one out for you."

  3. 2015-08-14
  4. 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:

  5. 18i8 ALSA driver:

    Scarlett Mixer GUIs:

    ALSA mixer:

    Combo patch:

    ALSA/Linux support (kernel mainline):

    ALSA/Linux support (experimental):

    PulseAudio issues:

    Jack latency tuning:

  6. Plenty of fun tasks, riddles and puzzles to solve altogether with learning Python!

    Get ready for:

    • basic Python exercises (data structures, language features, common libraries)
    • a handful exercises on string and data processing
    • algorithmics! pathfinding, map exploration, optimization...
  7.  1# setup a transifex virtualenv
     2virtualenv2 VENV; source VENV/bin/activate; pip install transifex-client
     3
     4# global config: ~/.transifexrc
     5# this step can be omitted, as 'tx init' will create the file if it doesn't exist
     6[https://www.transifex.com]
     7username = User
     8token =
     9password = un54f3_p4ssw0rd!
    10hostname = https://www.transifex.com
    11
    12# setup example project
    13mkdir example; cd example
    14tx init
    15tx set --auto-remote https://www.transifex.com/projects/p/my-project/
    16
    17# get the files
    18tx pull -l pt_BR
    19
    20# edit things
    21poedit / linguist-qt4
    22
    23# push to transifex
    24tx push -t
    
  8. 2014-08-29
  9. Change install dir:

    • get the EarSketch installer,
    • launch it, install Reaper and EarSketch to the default location => C:\Program Files{EarSketch, REAPER (x64)},
    • install the other softs (Python 2.7 and its extensions, Kommodo) where they belong,
    • move the REAPER (x64) folder to a new location,
    • edit the registry value [HKEY\LOCAL MACHINE\SOFTWARE\REAPER] to reflect this new location,
    • edit the Actions menu file to reflect the new Plugins folder locations [%appdata%\REAPER\reaper-kb.ini],
    • (restart Reaper),
    • clean the cache.