Posts

Electric shocks wherever you go? Try these

Solving unintended static discharges is a tricky question. You can build up a respectable amount of charge on your body if one of the following applies to you: Either the flooring, your chair, clothes or shoes are made of non-conducting, synthetic fabrics You rub the said fabrics a lot by walk or moving You touch grounded surfaces rarely Your skin is poorly conductive (dry) The air is low in humidity (the last two can be exaggerated by HVAC operation) Here are some things to try: Replace clothes or shoes Ground yourself through your shoes (wires and aluminium foil come to mind) Make the flooring or furniture more conductive Moisturize your skin Increase air humidity Wear uncoated conductive accessories (like a cold necklace or bracelets) Wear uncoated conductive accessories having (lots of)  pointy ends - tips may or may not be needed, but they can be made safer by wrapping in small tubes, it's the sharp air contact that matters. ...

Funny BASH snippets

echo howdy /bin/echo howdy /bin/../bin/echo howdy /bin/echo* howdy cd /bin echo* howdy *echo howdy ec*ho howdy ech? howdy ??h? howdy ech[o] howdy cd /tmp ec${howdy}ho howdy echo$howdy howdy ec''ho howdy ec""ho howdy 'ec'ho howdy "ec"ho howdy 'echo' howdy "echo" howdy ech\o howdy ec``ho howdy ec$()ho howdy ec`true`ho howdy ec$(true)ho howdy $yay echo howdy `` echo howdy `true` echo howdy `echo echo` howdy :&echo howdy if echo howdy;then :;else echo howdy;fi ! echo howdy { echo howdy ;} (echo howdy) eval echo howdy xargs echo howdy < /dev/null sh -c 'echo howdy' bash -c 'echo howdy' ssh localhost 'echo howdy' cd /tmp printf "all:\n\techo howdy" > Makefile make cd /tmp echo echo howdy > bash chmod +x bash ./bash cd /tmp cp /bin/bash bash echo echo howdy > bash ./bash . ./bash bash bash PATH=. bash alias howdy='echo howdy...

Faster horses

This is the problem with gossip . Lack of a web of trust signature scheme  or a CRC  allows information distortion at each hop. Stemming from the clever analogy in 1999: "if Henry Ford canvassed people on whether or not he should build a motor car, they’d probably tell him what they really wanted was a faster horse." many people nowadays tell the story as if Ford really said that. https://en.wikiquote.org/wiki/Talk:Henry_Ford#.22If_I.E2.80.99d_asked_people_what_they_wanted.2C_they_would_have_asked_for_a_better_horse.22 http://quoteinvestigator.com/2011/07/28/ford-faster-horse/

Sticky note - almost thrown away bad glue, reused by accident

I heard somebody starting to spread the rumor that sticky note was invented by accident. The anecdote went on to say that they'd first invented a bad glue, almost threw it away, but then found a use for it after somebody accidentally applied it on the back side of a small piece of paper. This is plain simply false . This invention has seen an exhaustive proof of concept phase by an individual, being demoed in a trade show, and then being blatantly copied and entering mass production after a slow and difficult start. [Alan]  Amron said his idea in 1973 came about with chewing gum. He was looking for a way to stick a note on his refrigerator for his wife and used gum, providing inspiration for the adhesive he would use on his Press-on Memo. That year he took the sticky notes to a New York trade show and met briefly with two 3M executives, Amron said, but nothing came of the meeting. Fry and Silver [from 3M] came up with what 3M originally called the Press ‘n’ Peel memo pad in 19...

The Computer Language Benchmarks Game

= The Computer Language Benchmarks Game The Computer Language Benchmarks Game is a free software project for comparing how a given subset of simple algorithms can be implemented in various popular programming languages. The project consists of: * A set of very simple algorithmic problems * Various implementations to the above problems in various programming languages * A set of unit tests to verify that the submitted implementations solve the problem statement * A framework for running and timing the implementations * A website to facilitate the interactive comparison of the results = Supported languages Due to resource constraints, only a small subset of common programming languages are supported, up to the discretion of the game's operator. https://benchmarksgame.alioth.debian.org/ * Ada * C * Chapel * Clojure * C# * C++ * Dart * Erlang * F# * Fortran * Go * Hack * Haskell * Java * JavaScript * Lisp * Lua * OCaml * Pascal * Perl * PHP * Python ...

The Unreasonable Effectiveness of Recurrent Neural Networks

Generating music, a novel or program source code character by character, simulating a photo sphere by interpolating between still photos, single frame superresolution: http://fastml.com/deep-nets-generating-stuff/ Illustrating what happens inside the mind of deep networks by depicting what it is dreaming about. Nice art. https://karpathy.github.io/2015/05/21/rnn-effectiveness/

Random promotion may be as good as conventional strategies

Another common mistake made by the wrong HR/corporate mindset. http://www.theguardian.com/education/2010/nov/01/random-promotion-research Promotion Systems and Organizational Performance: A Contingency Model, STEVEN E. PHELAN AND ZHIANG LIN, 2001 They've benchmarked the following strategies: up or out absolute & relative performance seniority random And found that random promotion could be just as good for the corporation, or sometimes even better compared to other conventions.