Homework
1
Name:
Anonymous
2009-04-06 11:31
Output ``Sussman'' to a PNG file, using PHP. Typographic choices are up to each student.
2
Name:
Anonymous
2009-04-06 11:32
PHP? the sussman would not approve
3
Name:
Anonymous
2009-04-06 11:37
PHP is a Scheme dialect, right?
4
Name:
Anonymous
2009-04-06 11:37
<?php
$img = imagecreatetruecolor(40, 12);
imagefill($img, 0, 0, imagecolorallocate($img, 255, 255, 255));
imagestring($img, 1, 3, 2, 'Sussman', imagecolorallocate($img, 0, 0, 0));
imagepng($img, 'cdr.png', 9);
5
Name:
Anonymous
2009-04-06 11:38
7
Name:
Anonymous
2009-04-06 15:24
<?php print "sussman"; ?> <- Screenshot, crop, save as png
8
Name:
Anonymous
2009-04-06 15:33
File.open("sussman.png", "w"){|f| f.write("Sussman")}
# Please read the PNG in a text editor
9
Name:
Anonymous
2009-04-06 19:58
>>7
<?php print "sussman"; ?> ← Screenshot, crop, save as png .
I have improved your miserable abortion of a post, but I'm afraid I haven't been able to salvage it completely.
10
Name:
Anonymous
2009-04-06 20:50
<?php print "<span style='font-family: \"Comic Sans\";'>sussman</span>"; ?> ← Use the Adbuction! Firefox Extension to crop and save as PNG
Now we're getting somewhere!
11
Name:
Anonymous
2009-04-07 2:49
<?php print "<span style='font-family: \"Lucida Grande\";'>sussman</span>"; ?>
↳ Press ⇧⌘4 to save a picture of the selected area as a Portable Network Graphics image.
12
Name:
Anonymous
2009-04-07 4:13
it's ⌘⇧4 not ⇧⌘4, you FUCKING IDIOT!!!!!!!!!!!!!!
13
Name:
Anonymous
2009-04-07 4:20
>>12
While that is a more natural way to say it, the standard display order is ⌃⌥⇧⌘.
14
Name:
Anonymous
2009-04-07 4:29
15
Name:
Anonymous
2009-04-07 6:43
>>14
HOLY FUCK I AM RAGING AT THAT IMAGE
16
Name:
Anonymous
2009-04-07 9:41
>>15
YHBT
_______
Sent from my iPhone
17
Name:
Anonymous
2009-04-07 13:45
<?php print "<span style='font-family: \"Zapfino\"; font-size: 4em;'>Sussman</span>"; ?>
↳ Press ⇧⌘4 to save a picture of the Safari window as a Portable Network Graphics image. Then, activate Exposé Desktop and open that file with Preview.app. Press ⌘K to crop it. Once it is done, you can save with ⌘S.
18
Name:
Anonymous
2009-04-07 14:08
/ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
| / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
| | / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
| | | ∧_∧ / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
| | | ( ´∀`) < This is what foldrers
| | | / LISP| | actually believe in
| | | / .| \___________
| | | / "⌒ヽ |.イ |
| | ∧_∧ / .__ | .ノ | || |__
| | ( ´∀`) < ノく__つ∪∪ \
| | / LIS | \ _((_________\
| | / .| |  ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
| | / "⌒ヽ |.イ | | ___________| |
| ∧_∧ / .__ | .ノ | || |__ \  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |
| ( ´∀`) < ノく__つ∪∪ \  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
| / L I | \ _((_________\
| / .| |  ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
| / "⌒ヽ |.イ | | ___________| |
∧_∧ / .__ | .ノ | || |__ \  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |
( ´∀`) < ノく__つ∪∪ \  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
/ L | \ _((_________\
/ .| |  ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
/ "⌒ヽ |.イ | | ___________| |
__ | .ノ | || |__ \  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |
. ノく__つ∪∪ \  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
_((_________\
 ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
___________| |
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |
19
Name:
Anonymous
2009-04-07 14:15
>>18
Ha ha!
foldl runs in
constant space !
20
Name:
Anonymous
2009-04-07 16:27
>>19
Prelude> foldl (+) 0 [1 .. 1000000]
*** Exception: stack overflow
21
Name:
Anonymous
2009-04-07 16:35
>>17
That's not how ⇧⌘4 works.
25
Name:
Anonymous
2009-04-07 17:46
Prelude> 1 + 1
*** Exception: stack overflow
26
Name:
Anonymous
2009-04-07 18:08
.
28
Name:
Anonymous
2009-04-07 20:54
PHP Haskell Programming language
29
Name:
Anonymous
2009-04-08 0:06
>>20
Prelude> foldr (+) 0 [1 .. 1000000]
*** Exception: stack pointer monadic overflow
30
Name:
Anonymous
2009-04-08 1:20
>>28
I am intrigued; please tell more.
31
Name:
Anonymous
2009-04-08 3:11
32
Name:
Anonymous
2009-04-08 4:03
>>27
5/10, points lost for recommending GIMP instead of Preview.app
33
Name:
Anonymous
2009-04-08 4:45
>>32
Personally, I would have gone with Xee.
34
Name:
Anonymous
2009-04-08 7:06
>>33
Sup
Dag . Release its next version already.
35
Name:
Anonymous
2009-04-08 8:58
>>34
D
i
r
e
c
t
e
d
A
c
y
c l i c G r a p h ?
36
Name:
Anonymous
2009-04-08 10:38
>>35
Just some guy who makes anonymous boards that don't support
B B C O D E
37
Name:
Anonymous
2009-04-08 10:44
DILATED ACRYLIC GROUGH
38
Name:
Anonymous
2009-04-08 15:53
>>20
Prelude> foldl (+) 0 [1 .. 1000000]
*** Exception: stack overflow
My dreams are shattered.
Is there a non-overflowing fold?
39
Name:
Anonymous
2009-04-08 16:09
Prelude Data.List Anus.Haxing Anus.Haxing.Monad> foldl' (+) 0 [1 .. 1000000]
500000500000
40
Name:
Anonymous
2009-04-08 18:16
Prelude> print "hello world"
*** Exception: stack overflow
41
Name:
Anonymous
2009-04-08 18:29
% ghci +RTS -K100M
GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
ghci> foldl (+) 0 [1 .. 1000000]
500000500000
ghci>
42
Name:
Anonymous
2009-04-08 19:43
>>41
Prelude> foldl (+) 0 [1 .. 1000000]
500000500000
(1.79 secs, 121818128 bytes)
Prelude> foldr (+) 0 [1 .. 1000000]
500000500000
(2.18 secs, 121271256 bytes)
foldr is superior.
43
Name:
Anonymous
2009-04-08 20:49
>>42
Prelude> foldl (+) 0 [1 .. 1000000]
500000500000
([b]1.79[/b] secs, 121818128 bytes)
Prelude> foldr (+) 0 [1 .. 1000000]
500000500000
([b]2.18[/b] secs, 121271256 bytes)
foldl is superior.
44
Name:
Anonymous
2009-04-08 20:52
>>43
BBCODE error, argument is invalid.
45
Name:
Anonymous
2009-04-08 20:54
>>44
SAGE top post, sage is invalid.
46
Name:
Anonymous
2009-04-08 20:58
>>45
ignorance of the purpose of sage detected,
back to /b/, please .
47
Name:
Anonymous
2009-04-08 21:19
48
Name:
Anonymous
2009-04-08 21:21
>>47
back to /b/, please.
49
Name:
Anonymous
2009-04-08 21:25
>>48
Did you even
hear >>47 ? You should be
H ing
AND right now.
50
Name:
Anonymous
2009-04-08 21:41
51
Name:
Anonymous
2009-04-08 21:46
<?php
system("echo Sussman > sussman.PNG");
?>
52
Name:
Anonymous
2009-04-08 22:05
>>45
You don't understand atomic operations.
53
Name:
Anonymous
2009-04-09 7:44
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\user>ghci
GHCi, version 6.10.2:
http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> foldl (+) 0 [1..100000000]
<interactive>: out of memory
54
Name:
Anonymous
2009-04-09 7:48
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\James>ghci
GHCi, version 6.10.1:
http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude>
55
Name:
Anonymous
2009-04-09 12:19
>>54
That makes no sense, Mr.
Bond .
57
Name:
Anonymous
2010-08-12 20:16
58
Name:
2010-10-25 18:28