Merry Christmas

Merry Christmas everyone.

You’re One of the Worst

So Engadget had a post about all the “e-waste” going to Ching-Chang-Land, and from the comments there was a post to this eye opening video.

http://current.com/items/76355482_toxic_villages

After watching a few minutes, it shows a mountain of old stereos and I thought to myself “Oh, I should buy a new Reciever. My old denon ain’t cuttin it anymore.”

In with: Onkyo SR876
Sending to China Landfill: Denon AVR-3803

Project Euler: Problem 1

***Disclaimer: If you don’t care a bit about programming, stop reading now. This blog entry is pointless and will not appeal to you***

From Lifehacker, I found out about Project Euler. It’s a collection of problems that require a combination of Math and Programming to solve.

So I’m going to solve them while teaching myself F# in the process.

F# is a product of Microsoft Research, bringing purely functional programming language to .NET.

The problems vary in complexity, and apparently should only take less than a minute for runtime.

This is my first F# program, so forgive any blatant errors.

Problem Page: http://projecteuler.net/index.php?section=problems&id=1

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.

Solution Code:

let filter x = x % 3 = 0 || x % 5 = 0

let numbers = [1 .. 999]

let filtered = List.filter filter numbers

let final = List.sum filtered

printfn “Answer: %A”final

Naw, Not in our House

Well this is the first season, in 41 years that Seattle doesn’t have a basketball team.

I don’t have much to say other than:

David Stern: Fuck you.

Howard Schultz: Fuck you.

Clay Bennett: Fuck you. You’re the scum of the earth, and I will kick your ass next time you’re in seattle. Plz believe it.

Randoms

Watching ironmang on bluray.