Derek J Bender

How Not to Sort by Average Rating

How Not To Sort By Average Rating

PROBLEM: You are a web programmer. You have users. Your users rate stuff on your site. You want to put the highest-rated stuff at the top and lowest-rated at the bottom. You need some sort of “score” to sort by.

The solution:

Silvrback blog image
lolmath

Algorithm . . .

Read More

April 03, 2012

Unsecured Mass Assignment Is Bad

A slew of github gists. I don’t understand why people don’t make these blog posts, I can only imagine the traffic they’re getting. Embedding gists is easy.

Read More

March 07, 2012

The 10 Rules of a Zen Programmer

Seriously Zen. Topics include:

  1. Focus
  2. Keep your mind clean
  3. Beginners mind
  4. No ego
  5. There is no career goal
  6. Shut up
  7. Mindfulness. Care. Awareness
  8. There is no boss
  9. Do something else
  10. There is nothing special

I already see myself improving from some of these values.

. . .

Read More

March 02, 2012

Links #1

Read More

February 24, 2012

Mou

Side-by-Side Markdown Editor and Previewer

Silvrback blog image

If you use Markdown, stop what you’re doing and check out Mou.

Biggest features is as you type preview window, but it’s full of awesome features like custom color themes, fullscreen mode, and exporting to html.

Read More

November 08, 2011

Converting flac to alac using ffmpeg

In my last post I showed how to convert flac to mp3 using the lame encoder. In this post, I’ll show how to convert your flac audio files to ALAC (Apple Lossless Audio Codec). The main reason to convert flac to alac is to preserve lossless audio files in iTunes and even play them on your iPod/iPhone, natively. All that you need is to install . . .

Read More

November 07, 2011

Bash one-liner to convert a directory of flac audio files to mp3 V0

$ for file in *.flac; do flac -cd "$file" | lame -h -V0 - "${file%.flac}.mp3"; done

V0 just because -b 320 can be rather silly.

On a Mac using Homebrew, just do the following:

$ brew install lame flac

Read More

October 26, 2011

Archive

This update link alerts you to new Silvrback admin blog posts. A green bubble beside the link indicates a new post. Click the link to the admin blog and the bubble disappears.

Got It!