VirtualTam's bookmarks

  1. "Sauf que y a tj un mec dans la boîte qui vient faire chier à demander un environnement Java (sous couvert de Big data tout ça...) je suis d'accord il faudrait le licencier immédiatement mais en attendant c'est la fête du Swap..."

  2. Ode to Spot 2016-11-16

    Felix Catus is your taxonomic nomenclature, An endothermic quadroped, carnivorous by nature. Your visual, olfactory, and auditory senses Contribute to your hunting skills and natural defenses. I find myself intrigued by your sub-vocal oscillations, A singular development of cat communications That obviates your basic hedonistic predelection For a rhythmic stroking of your fur to demonstrate affection. A tail is quite essential for your acrobatic talents: You would not be so agile if you lacked its counterbalance; And when not being utilitized to aid in locomotion, It often serves to illustrate the state of your emotion. Oh Spot, the complex levels of behavior you display Connote a fairly well-developed cognitive array. And though you are not sentient, Spot, and do not comprehend, I nonetheless consider you a true and valued friend. -- Lt. Cmdr. Data, "An Ode to Spot"

  3. 1for i in $(find /usr/lib -type f -name '*.so.*'); do
    2      nm -D $i | grep MY_SYMBOL;
    3      [[ $? -eq 0 ]] && echo $i;
    4done
    

    adapted from http://narkive.com/a1rT9Efg.8

  4. "Human collective behavior can vary from calm to panicked depending on social context. Using videos publicly available online, we study the highly energized collective motion of attendees at heavy metal concerts. We find these extreme social gatherings generate similarly extreme behaviors: a disordered gas-like state called a mosh pit and an ordered vortex-like state called a circle pit. Both phenomena are reproduced in flocking simulations demonstrating that human collective behavior is consistent with the predictions of simplified models."

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

  6. TL;DR: you won't.

    This website is rather a good memo regarding each language's foundations:

    • what's its general purpose?
    • how to write core instructions, such as functions, loops, conditional structures?

    I find this kind of reminder quite useful when it comes to documentation languages (e.g. TeX, Markdown)