January 2012
75 posts
Clients from hell.
clientsfromhell:
Me: Would you like it to be done the A way or the B way?
Client: Yes.
5 tags
LastCalc
Today I discovered something called LastCalc. It’s very early stages, but it’s a kind of pattern matching, logic programming, functional programming system.
I’ve been experimenting with it for a few hours, you can fork my results here: http://www.lastcalc.com/z6S1svwW
To start a new sheet, just go to http://www.lastcalc.com/
The following is my declarations list so...
fuckyeahterminals:
Temporally Quaquaversal Virtual Nanomachine Programming In Multiple Topologically…
edit*
Someone took my two loves and married them.
clientsfromhell:
Me: Did you want the font in cursive or something more simple?
Client: I want it in English.
Me: English is a language - cursive is a type of font we use. Did you want it to be fancy, or simple?
Client: No! In English!
Me: English it is then.
6 tags
Euler #4 - Times
The following are timings for my solution to Euler #4, with varying number of digits: (go digit-count).
user=> (time (go 1))
"Elapsed time: 0.605 msecs"
9
user=> (time (go 2))
"Elapsed time: 0.469 msecs"
9009
user=> (time (go 3))
"Elapsed time: 26.935 msecs"
906609
user=> (time (go 4))
"Elapsed time: 27.673 msecs"
99000099
user=> (time (go 5))
"Elapsed time: 329.71...
10 tags
Euler #4 - Redo
Since realising my solution to Euler 4 was flawed, I started again!
I worked out a method of generating value pairs in order of their product:
[999 999] [999 998] [998 998] [999 997] [998 997]
[999 996] [997 997] [998 996] [999 995] [997 996] etc...
This way, the very first palindrome I come across, will most certainly be the largest!
The following is my new code (no comments yet). The...
Woah Crazy
Sick problem solving going on here.
((Sign this....ACTA goes live tonight)) →
cloversfield:
marcelinedrawsooo:
please, everybody take a moment to sign this!
10000 away gogogogo
3 tags
youranonnews:
A must watch: PIPA and SOPA in 14 minutes
2 tags
Poppycock
Realised my Euler 4 is wrong. Working on a fix!
thedistanceinsidious asked: Second thought: sorry, breezed over it and read the time for a larger number. Carry on!
thedistanceinsidious asked: Your solution to that problem is rather brilliant and remarkably fast. I'm quite impressed.
4 tags
Thomas Biddle | Personal Blog: In case anyone is... →
thomasbiddle:
thedistanceinsidious:
The smallest number evenly divisible by the numbers 1 through 20 is 232792560. There’s a cleverer way to find that than what I just went through, but for the life of me, all of the factoring knowledge that I have doesn’t help me under these circumstances.
…
This following is my attempt using Clojure. It’s pretty blitzing quick.
;...
I find it amazing just how many people mistake, or have been miseducated about, closures, lambdas, and anonymous functions.
Simply amazing.
6 tags
Haskell v Clojure v Ruby - Euler#25 →
6 tags
HTML5 Please →
Use the new and shiny responsibly.
Look up HTML5, CSS3, etc features, know if they are ready for use, and if so find out how you should use them – with polyfills, fallbacks or as they are.
5 tags
Project Euler: Problem 4 (Efficiently) - Clojure
Problem 4 is as such:
A palindromic number reads the same both ways.
The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 * 99.
Find the largest palindrome made from the product of two 3-digit numbers.
So naturally I decided to write a function which accepts a number of digits. To get the answer to problem 4, I would simply send the number 3 to my...
Progress
I’ve made some progress with a small section of my dissertation project in the previous few hours.
I found a few references for building the infix expression to s-expression translator part of my project, and implemented the operator database and definition sections.
Having to read through loads of CLISP with imperative assignments :( - attempting to convert it into Clojure code, then...
6 tags
resumable.js →
7 tags
Extracting a Domain name
A friend queried me about extracting the domain name from a url string using JavaScript, as such:
domain "http://www.google.com/blah" -> "www.google.com"
I came up with the following regular expression to accomplish the job:
^(?:http://)?([^/?#]+)
It ignores the ‘http://’ segment if it exists, and ignores anything after & including: ‘/’, ‘?’, and...
Whoa, guys, they just shut down Megaupload and... →
mrlinux:
shortformblog:
The Federal Bureau of Investigation moved against a group of suspected online pirates Thursday, targeting the popular file-sharing website megaupload.com a day after Washington lawmakers were besieged by complaints about legislation designed to crack down on the online sharing of pirated copies of music, movies and other material, people familiar with the matter said.
...
contemplatingstardust:
ephan331:
jimmynle:
Lol!
LOOOOOOOOOOOOOOL HOLYSHITHAHHAH
Ahaa, that was awesome.
1 tag
4 tags
How to add Google Fonts in the Wordpress post... →