February 2012
8 posts
3 tags
Rising →
This is why Lisp is better, compare.
CLISP:
(setq tuples ())
(do ((n (read *standard-input* nil) (read *standard-input* nil))
(k (read *standard-input* nil) (read *standard-input* nil))) ((null n))
(setq tuples (append tuples (cons (list n k) nil))))
(sort tuples #'<...
3 tags
Paul Graham's LISP Code →
Love reading different people write LISP, since the language really tailors to the person everybody has significantly different LISP code - it’s a window into the mind of another person.
Rising →
This contest is open to all. This is the warm up problem.
http://www.csupomona.edu/~carich/programming_contests/
please feel free to participate
instructions
2 tags
Airplanes are Coded in Fortran IV
if you weren’t afraid of flying before..
when the plane goes down, what are they gonna do?
“Hold on while I put in these punch cards- oh no!I dropped them, we’re all gonna die” lol
http://en.wikipedia.org/wiki/USAF_Digital_DATCOM
3 tags
Markets are efficient if and only if P = NP →
http://arxiv.org/pdf/1002.2284v2
this is why it is important to be a theoretical computer scientist, cuz then you can apply it to shit like this.
2 tags
3 tags
What - the - fuck ?
2 tags
Walk the Line Problem →
(defun factorial (n)
(cond ((> n 1) (* n (factorial (- n 1))))
(t 1)))
(defun combination (n k) (/ (factorial n) (* (factorial k) (factorial (- n k)))))
(do ((n (read *standard-input* nil) (read *standard-input*...
January 2012
13 posts
3 tags
Currying →
Up until now, I was under the impression that Currying in anything other than Haskell or Lisp was a pain in the ass. I’m impressed.
3 tags
Everything should just be under the GPL →
1 tag
2 tags
Lack of Functionality
you know I really wish there was a heart or comment button for some of the comments you guys leave.
Honest, so I can be like - YES this is the mentally the world needs.
The problem is, Tumblr would become a bbs and would no longer be interesting. Like the one that got away, tumblr leaves you wanting…it’ll keep you here forever.
1 tag
Linux from Scratch →
This should be your new bible.
In all seriousness this is probably one of those most complete and useful (and actually understandable) knowledge-base for this kind of stuff that I have seen in a very very long time.
3 tags
Well, I mean, if there was a Computer Science emergency….
5 tags
justasmalltownteen asked: I have the 4s, and the 5.1B sucks balls. You think when the final release is out the battery problems are gonna be fixed? cause as far as im concerned iphone 4 battery> iphone 4sbattery
2 tags
Shades Problem →
#!/usr/bin/perl
@data=<STDIN>;
@translucentFactor;
@opaqueFactor;
@lightFactor;
for ($i = 0; $i < 10; $i++)
{
$lightFactor[$i]=100;
$translucentFactor[$i]=0;
$opaqueFactor[$i]=0;
}
foreach (@data)
{
chomp ($_);
@process=split(/ /, $_);
&processInput($process[0], $process[1], $process[2]);
&calculateTotalLight;
}
sub processInput
{
my $shade = $_[0];
my...
2 tags
Bar Code Problem →
import java.util.Scanner; class Barcode { public static void main (String [] args) { Scanner sc = new Scanner (System.in); int x = sc.nextInt(); int [] inventory = new int[x]; int [] cost = new int [x]; for (int i = 0; i < x; i++) { inventory[i] = sc.nextInt(); cost[i] = sc.nextInt(); } int total = 0; int...
2 tags
Change Coin Problem →
(do ((n (read *standard-input* nil) (read *standard-input* nil))) ((null n))
(format t "~A cents:~%" n) (mapcar #'(lambda (x) (let ((cents (floor (/ n x))))
(cond ((> cents 0) (format t "~A x ~A cents~%" cents x) (setf n (- n (* cents x))))))) '(25 10 5 1)) (format t "~%"))
1 tag
Normalcy
This blog will continue business as usual.
December 2011
9 posts
1 tag
Tumblr needs a hover text option for posted photos
reblog/like if you agree, if enough people do it maybe NY headquarters will see it and get off their lazy asses and write the ALL OF TWO lines it takes to do hover-text.
2 tags
3 tags
Edison Shooting →
Words cannot describe how hard my day at work was today.
Even worse, words cannot console my co-worker/friend.
3 tags
Quantum computing device hints at powerful future... →
scinerds:
It uses the strange “quantum states” of matter to perform calculations in a way that, if scaled up, could vastly outperform conventional computers.
The 6mm-by-6mm chip holds nine quantum devices, among them four “quantum bits” that do the calculations.
The team said further scaling up to 10 qubits should be possible this year.
Rather than the ones and zeroes of digital...
4 tags
3 tags
update
if you’ve been wondering where the posts have been, I’ve been busy constructing a framework for SOAP integration on an iOS application. It’s the reason stuff like wsdl2objc exists, SOAP is essentially completely unsupported by Cocoa or Objective-C. You need to either generate it or write it yourself, depends on the project spec.
And even if you generate it, you still have to...
3 tags
November 2011
25 posts
2 tags
Come on!
The higgs-bugson, that’s fucking funny! Fuck you you didn’t come up with it.
3 notes, tough crowd.
edit*
lol, this isnt a whine and bitch post, I legitimately thought it was funny.
1 tag
new programming jargon →
heisenbug is my favorite one xD that should’ve totally been #1
edit*
nvm it’s actually the Higgs-Bugson lol
4 tags
Google's Python Class →
2 tags
1 tag
Perl is worse than Python because people wanted it that way.
– Larry Wall
2 tags
2 tags
3 tags
Nvidia Drivers
Nvidia’s relationship with Linux is like my relationship with Mac users that iOS is actually a superior OS, I’ll do something for you but I’m gonna make it difficult and annoying every step of the way because I don’t like interfacing with you.
At any rate KDE is now running smoothly, except the refresh rate needs tweaking, it’s supposedly clocking in 60 hz (59.95 to...
2 tags
Free Lisp Book →
Paul Graham’s - On Lisp
1 tag
Segment: Linux for Poets
“Rogue Fox” kill `ps -ef | grep -i firefox | awk -F” ” ‘{ print $1 }’`
1 tag
Segment
I should start a segment called, Professor or Bum.
4 tags
1 tag
Whut..the…fuck…
Am I doing it wrong? lol
1 tag
Genetic Algoritms
can’t come to a conclusion as to whether or not my GA is poorly implemented, it converges at around 30 seconds for n-queens w/ a real solution which I’m sure is slow…but it is written in CLISP…
Anonymous asked: Install Gentoo. You know It be true. You can feel It in your heart. You can use genkernel If you're really pressed for time.