Productivity: know your tools!

Written on 4 December 2014, 11:38pm

Tagged with: ,

I’m always surprised by the fact that a considerable number of people in our field don’t really know how to make the best use of their tools. I’ll try to put together a set of good practices and possible improvements.

1. Hardware

Display: Know what type of monitor is better for your job (designer vs developer). Know the difference between IPS and TN panels, between fps and refresh rate, between LCD and LED technologies. If you are using a dual monitor configuration, know what is the set up that works best for your workflow. On the same page, you need to know how to sit correctly (or maybe stand?) and about the…
Ambient light: know what temperature of light is fit for what purpose (TL;DR: warm white for relaxation, cool white for work). Use f.lux to automatically adjust the screen color temperature according to the time of the day. Know that a dark color scheme is easier on the eyes compared to a light one.
Keyboard: Here the most important part is not the keyboard itself, but the way you type. Touch typing is mandatory at this level. If you don’t master it yet, get on it now.
I personally prefer this keyboard because it’s classic, it has a great touch feeling and – as a bonus – has separate multimedia keys that work with Spotify 🙂
Mouse/trackpad: no matter which one you use, it should allow you to be fast. In my experience the mouse is always faster on a day-to-day use, but if you are mostly browsing/reading and you need less pointing precision then the trackpad is probably enough. Just know how to use 2-fingers scroll and stuff like that. I personally use this mouse, after using 3 or 4 pieces from the older generation. After 8 years of using them I settled for the following configuration:
– button next to the wheel – middle click (=closing tabs)
– left/right wheel buttons – volume down/up
– left button 1 – minimize window
– left button 2 – mute toggle

Almost 2 years later, the mapping changed:
– button next to the wheel – middle click (=closing tabs)
– left/right wheel buttons – ctrl+shift+tab/ctrl+tab (switching tabs)
– left button 1 – ctrl+t (new tab)
– left button 2 – minimize window

Headphones (for music or conference): Ideally you would like to have some headphones with noise cancellation, but if you are video-conferencing a lot then you need to have some headphones with a good microphone.

2. Software

Here the motto is Learn the shortcuts. Since I am mostly using Windows, the tips below concern that operating system, but some of them are more general.

(more…)

Cryptography basics

Written on 3 December 2014, 11:07pm

Tagged with: , ,

1. Steganography

The science of hiding the existence of a message, as opposed to cryptography. A type of security through obscurity.
Ex. message written on the head of a messenger and sent only when it’s covered by the messenger growing hair; microdots; physical templates applied to a long text to highlight only some of the words.
http://en.wikipedia.org/wiki/Steganography

2. Cryptography

The practice of secured communication. The science of encrypting a message, or concealing the meaning of a message.

  • Transposition ciphers – letters do not change, but move position
  • Substitution ciphers – letters change, but keep position
    1. Caesar shift: all the letters of the alphabet shift a number of positions (from 1 to 26)
    2. Simple monoalphabetic substitution: substituting a different letter for every letter. The cipher alphabet is fixed throughout the encryption. Both methods fail to basic frequency analysis
    3. Monoalphabetic with Homophones: a plaintext letter can be enciphered in many ways (typically numbers or symbols) – making the encryption resistant to a basic frequency analysis
    4. Polyalphabetic substitution – alphabet matrix + password repeated until it has the same length as the plain text message (Vigenère cypher). The cipher alphabet changes during the encryption; the change is defined by a key. The longer the key, the more secure; but less practical for everyday use.
  • A mix between transposition and substitution: ADFGVX (used to send Morse code messages)
  • One time pad – the only form of encryption that is unbreakable, relying on a random key that is the same length as the message. Each key can be used only once. Impractical for extended use.

3. Cryptanalysis

The science of deducting the plain text from a cyphertext, without knowledge of the key.
One of the most used methods at the beginning: frequency analysis
http://en.wikipedia.org/wiki/Cryptanalysis

substitution cipher

basic cryptanalisis

Web performance

Written on 3 December 2014, 10:16pm

Tagged with: ,

It’s the speed geek’s favorite time of the year – so I am bookmarking some links for later use 🙂

Starting from the 2014 performance calendar and jumping from link to link:
1. HTTPS and web performance: SSL server test, HSTS header, cache, keep alive, etc…
2. Is it fast yet?

TLS has exactly one performance problem: it is not used widely enough.
Everything else can be optimized.

3. High Performance Browser Networking by Ilya Grigorik – made available by O’Reilly for free.
4. High Performance Web Sites and Even Faster Web Sites by Steve Souders
5. Improving Smashing Magazine’s Performance: A Case Study

And some names in the web performance field:
Tim Kadlec
Ilya Grigorik
Steve Souders
Stoyan Stefanov