MtL's comments

MtL | 14 years ago | on: Mixins in Backbone.js

Great article!

Do you find that you are able to reuse your mixins easily, or do they evolve slowly to become general and reusable components?

MtL | 14 years ago | on: Aligning your Git logs

I usually want to pass arguments to git log, not to less. This is not possible with the default piped alias. This is remedied by wrapping it in a function, and pasting the arguments explicitly to git log using the bash shorthand $@. Here is an updated version of your l80 that supports passing parameters to git log:

l = "!f() { git log $@ --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{79}).{2,}/, \"\\\\1\",\"g\",$4), $5, $6 }' | less -R ; } ; f"

MtL | 15 years ago | on: SBCL quicker than C?

There is no difference at all, since the latter takes precedence (read the man pages):

$ gcc -c -Q -Os -O3 --help=optimizers > Os-O3-opts

$ gcc -c -Q -O3 --help=optimizers > O3-opts

$ diff Os-O3-opts O3-opts

$

MtL | 15 years ago | on: Ask HN: How do I give my son a head start?

I have three pieces of advice I wish every parent in the world could see:

1. Always give your son a new healthy challenge. Let him develop as fast as he can while he is in his prime. If school has a fixed tempo of learning, challenge him in other areas; sports, music, critical thinking, computers, social skills, moral values and ethics, practical skills, helping others, etc.

2. Read "Outliers" by Malcolm Gladwell. He has a few points that made me realize just how much it means to come from a good background, with parents that realize how their kid should be raised to become a independent and successful person.

3. Realize that your son will never become exactly what you wanted him to be. You can introduce him to the world of IT, and you can show him how it is fun to produce your own programs or web pages, but he has to take the choice to pursue an IT career by himself.

MtL | 15 years ago | on: The reverse job applicant

I wouldn't hire the guy. He does not communicate well what he does and what kind of position he is looking for, he spends a couple of paragraphs telling the world how useless he is, and he did not show any initiative to start something himself while he was unemployed. Nice try, but it's not sufficient to convince me.

MtL | 15 years ago | on: programming challenge

We have 5 from the start.

Start producing 4 more (2 jars) at timestep 1.

Start producing 4 more at timestep 6.

Start producing 22 more at timestep 12.

22 + 4 + 4 + 5 = 35

MtL | 15 years ago | on: Scott Adams: Your Next Gym

You make a valid point, that the use of this fancy-schmancy technology is optional. The reason I am still worried, and the reason why I hold on tight to my old-fashioned principles, is that most gyms nowadays are very poor for serious training;

There is a ton of machines that are of no use to people that want to use the gym to actually make progress, to stay healthy and get strong/fast/lean/whatever-floats-your-boat. All these machines take up the space of the barbells, dumbbells and racks, and they steal the attention away from those things as well. The end result is that the average people in a gym in 2010 are in worse shape than the average people in a gym in 1970. I hope this trend is not allowed to continue.

PS: Let me tell you a fun, competitive game that require little modern technology (just some creativity and a barbell and a rack); bring your friends to spot you in the gym, and have a competition in the squat rack ("who does the most reps with 225lb in one set?").

MtL | 15 years ago | on: Scott Adams: Your Next Gym

We do not need all these gimmicks. We need people to know what is good for themselves, and start doing something about it. Call me oldfashioned, but I am of the impression that:

+ No RFID chip in my backpack will make a mountain hike with 50lb weight added any more fun, any more useful, any more easy or anything else.

+ No RFID chips in the my plates will make my sets of squats or deadlifts any more fun or easy.

+ No RFID chip in my pants will make my hill sprints any more fun, easy or anything else.

+ No RFID chips in my food or fridge will make eating fruits, veggies, meat, eggs, fish, berries and dairy any more fun than it already is.

MtL | 15 years ago | on: Vitamin D deficiency is a widespread problem

Try one with added lemon aroma, they should be relatively easy to get hold of. Concentrated fish oil capsules give me a more nasty aftertaste than the real liquid oil.

MtL | 16 years ago | on: They Make Apps

Oh my god what a horrible design, and total lack of usability.
page 1