Liam Goodacre

I enjoy functional programming and cookies.
8bitfuture:

‘Invisible’ helmet is like an air bag for your bike.
Swedish design firm Hövding have created a motion sensor activated ‘airbag bicycle helmet’.
In an accident an array of motion sensors detect abnormal motion and inflate the air bag from a collar worn around the neck. The microcontroller used in the device is programmed with information from a database of simulated accidents and normal cycling movements, so the device shouldn’t activate in the wrong situation.
The device conforms to EU safety regulations and are CE marked, so if you’re tired of getting helmet hair head over to their website and pick one up for yourself - the complete set of a collar and a shell (cover) is around US$550.

8bitfuture:

‘Invisible’ helmet is like an air bag for your bike.

Swedish design firm Hövding have created a motion sensor activated ‘airbag bicycle helmet’.

In an accident an array of motion sensors detect abnormal motion and inflate the air bag from a collar worn around the neck. The microcontroller used in the device is programmed with information from a database of simulated accidents and normal cycling movements, so the device shouldn’t activate in the wrong situation.

The device conforms to EU safety regulations and are CE marked, so if you’re tired of getting helmet hair head over to their website and pick one up for yourself - the complete set of a collar and a shell (cover) is around US$550.

(Source: eetimes.com)

jtotheizzoe:

Out of This World Physics Demos

Don Pettit has been producing regular science education videos while stationed on the International Space Station as part of his Science Off The Sphere series. They are fantastic! I think science lessons would be much more fun if we got to do them all in microgravity.

In the video above, he demonstrates wave oscillations on water droplets using a laptop speaker. More great videos can be found here, including antibubbles and dancing droplets.

(via MetaFilter)

[Flash 10 is required to watch video]

dumbledoctor:

nerdsareuswhoareyou:

disconnor:

I want this so bad!

… this is more than want… This is NEED! 

(Source: videohall, via seanianjones)

Haskell: Project Euler - Problem 1 Extension

My solution to problem 1 was a function that accepted two multiplier values and a limit. I decided to write an extension that allowed a list of multiplier values. The following is the result (and is still pretty short!):

--  Function Solution
euler1x l = sum . foldl (\x y->union x [y,y+y..l-1]) []

--  Example:
euler1x 1000 [3,5]

Yay Haskell!

Haskell: Project Euler - Problem 2

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

--  Original approach
euler2 m = let fib x y = x:fib y (x+y) in
  sum $ takeWhile (< m) $ filter even $ fib 1 1

--  Secondary approach (not generating odd values)
euler2b m = let gen x y = (x+y):gen (x + 2*y) (2*x + 3*y) in
  sum $ takeWhile (< m) $ gen 1 1

Haskell: Project Euler - Problem 1

I’ve decided to go through Project Euler in an attempt to learn Haskell. (Yay Haskell*)

I’m also setting out to attempt interesting, short, or efficient approaches to the problems - depending on my mood and interest.


Problem: Add all the natural numbers below one thousand that are multiples of 3 or 5.

--  Include the union function
import Data.List (union)

--  Function for computation
euler1 a b l = sum $ union [a,a+a..l-1] [b,b+b..l-1]

--  Application example
euler1 3 5 1000
--  result => 233168

*Yay Haskell!

jtotheizzoe:

FUTURE SELF

Interactive light sculpture, combining human movement with responsive illumination. Man can finally dance with machine, in a striking way.

Is the sculpture’s algorithm studying us, or are we studying the sculpture? 

More photos here.

(by MADE Blog)

Wtf, in JavaScript, the numbers: 9999999999999999, 10000000000000000, and 10000000000000001, are exactly equal to 10000000000000000.

10000000000000000 - 1 === 10000000000000000

10000000000000000 - 2 !== 10000000000000000

10000000000000000 - 1 - 1 === 10000000000000000

10000000000000000 + 2 - 1 === 10000000000000000

As are the negations:

-9999999999999999 === -10000000000000001

Say what?

Angular Javascript

lucascobbdesign:

AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop. AngularJS is a toolset for building the framework most suited to your application development. It is fully extensible and works well with other libraries. Every feature can be modified or replaced to suit your unique development workflow and feature needs