Tag: Programming (17)

Blog (14)

Personal backup strategy

2013-02-08 — Article of 800 words Programming Git Unison mr Robocopy TrueCrypt Backup

The problem

I use a Windows desktop at work, another one at home, and a Linux laptop during commuting. The laptop is for personal projects and the home desktop is for photo management and retouching. Many of the files are shared, so I have to synchronize them among computers. Moreover I want to have an up-to-date copy of the files in my home NAS, from where I can make a backup.

Read more...

Trying out Shake library

2012-05-18 — Article of 700 words Programming Haskell

I had a little repetitive task to automate in my mt-euler project: creating a pdf from a series of Literate Haskell files using lhs2TeX and xelatex.

Looking for something like make or rake, but written in Haskell, I found Shake.

I used it and I was well pleased with the result.

Read more...

Project Euler in Haskell #4

2012-04-20 — Article of 700 words Programming Haskell Project Euler

Problem Description

Link to Project Euler problem 4

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is $9009=91\times99$.

Find the largest palindrome made from the product of two 3-digit numbers.

WARNING Solution ahead. Don’t read more if you want to enjoy the benefits of Project Euler and you haven’t already solved the problem.

Read more...

Project Euler in Haskell #2

2012-04-10 — Article of 200 words Programming Haskell Project Euler

Problem Description

Link to Project Euler problem 2

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1,2,3,5,8,13,21,34,55,89, …

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

WARNING Solution ahead. Don’t read more if you want to enjoy the benefits of Project Euler and you haven’t already solved the problem.

Read more...

What if you want to learn the way of the analyst...

2011-10-18 — Quote Quote Programming

What if you want to learn the way of the analyst, anyway? Remember, a skilled analyst is not an expert in a specific domain (although he tends to grow into an expert in several domains). He’s not the person you pay to get answers. He’s the person you pay to get better questions (and so, indirectly, better answers). The skilled analyst will ask different questions, explore different avenues, and find out different facts. So the essential skills would be observation, knowledge of large class of problems, classification, and description.

The irony of our fixation on artificially created crises...

2011-06-28 — Quote Quote Programming

The irony of our fixation on artificially created crises is that deep, long-term problems – which arguably should be considered crises – are ignored. The most important of these surely relates to security — too much of our software is susceptible to attack, and too few users understand how to use software in a way that minimises security risks.

Researchers have shown it takes about ten years...

2011-04-30 — Quote Quote Learning Programming

Researchers have shown it takes about ten years to develop expertise in any of a wide variety of areas, including chess playing, music composition, telegraph operation, painting, piano playing, swimming, tennis, and research in neuropsychology and topology. The key is deliberative practice: not just doing it again and again, but challenging yourself with a task that is just beyond your current ability, trying it, analyzing your performance while and after doing it, and correcting any mistakes. Then repeat. And repeat again.

Projects (3)

HaskDeep

Programming Haskell

HaskDeep is a command line tool, written in Haskell, that computes file hashes traversing recursively through a directory structure. Known hashes are saved to file and they can be used to verify the original files or a copy of them.

Read more...