Edit: making it a link because the image is too damn big
http://i.imgur.com/5KktamC.jpg
Geek Anvil (currently geeking...)
- lazarus corporation
- Lord Protector
- Posts: 3444
- Joined: 09 May 2004, 17:42
- Location: out there on a darkened road
- Contact:
- markfiend
- goriller of form 3b
- Posts: 21181
- Joined: 11 Nov 2003, 10:55
- Location: st custards
- Contact:
I've been at PHP Conference over the weekend. (Work paid for me to go.)
Christ what a sausage-fest. ~700 attendees of whom maybe 12 were women.
Christ what a sausage-fest. ~700 attendees of whom maybe 12 were women.
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
—Bertrand Russell
my new Adam A5X monitor speakers
- lazarus corporation
- Lord Protector
- Posts: 3444
- Joined: 09 May 2004, 17:42
- Location: out there on a darkened road
- Contact:
SQL Injection in practice
nowayjose wrote:Twelve brought their mother?markfiend wrote:I've been at PHP Conference over the weekend. (Work paid for me to go.)
Christ what a sausage-fest. ~700 attendees of whom maybe 12 were women.
lazarus corporation wrote:SQL Injection in practice
- Quiff Boy
- Herr Administrator
- Posts: 16795
- Joined: 25 Jan 2002, 00:00
- Location: Lurking and fixing
- Contact:
moshpits.js
A JavaScript implementation of the simulations presented in the paper Collective Motion of Moshers at Heavy Metal Concerts. More details are available at Itai Cohen's group website including videos of mosh pits, full simulations, and a brief description.
http://mattbierbaum.github.com/moshpits.js/
A JavaScript implementation of the simulations presented in the paper Collective Motion of Moshers at Heavy Metal Concerts. More details are available at Itai Cohen's group website including videos of mosh pits, full simulations, and a brief description.
http://mattbierbaum.github.com/moshpits.js/
What’s the difference between a buffalo and a bison?
impressiveQuiff Boy wrote:moshpits.js
A JavaScript implementation of the simulations presented in the paper Collective Motion of Moshers at Heavy Metal Concerts. More details are available at Itai Cohen's group website including videos of mosh pits, full simulations, and a brief description.
http://mattbierbaum.github.com/moshpits.js/
the worst is that i am thinking of practical uses of this
'Are we the Baddies?'...
"Someday! Someday, everything you need, is just gonna fall out of the sky..." -A.E. Reading 1991
"Don't forget that most of the judges in witches trials had harvard degrees."
"Someday! Someday, everything you need, is just gonna fall out of the sky..." -A.E. Reading 1991
"Don't forget that most of the judges in witches trials had harvard degrees."
Oh my!Quiff Boy wrote:moshpits.js
A JavaScript implementation of the simulations presented in the paper Collective Motion of Moshers at Heavy Metal Concerts. More details are available at Itai Cohen's group website including videos of mosh pits, full simulations, and a brief description.
http://mattbierbaum.github.com/moshpits.js/
That is seriously weird
- markfiend
- goriller of form 3b
- Posts: 21181
- Joined: 11 Nov 2003, 10:55
- Location: st custards
- Contact:
Gosh I've moved off enlightenment onto xmonad since then...
Anyhoo, I've been turning my Raspberry Pi into a jukebox with a web front-end accessible from my whole home network. Also ordered a set of blinkenlights for it.
Anyhoo, I've been turning my Raspberry Pi into a jukebox with a web front-end accessible from my whole home network. Also ordered a set of blinkenlights for it.
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
—Bertrand Russell
- lazarus corporation
- Lord Protector
- Posts: 3444
- Joined: 09 May 2004, 17:42
- Location: out there on a darkened road
- Contact:
Upgrading from Apache 2.2 to Apache 2.4 is a bloody pain that involves editing too many vhost files
- markfiend
- goriller of form 3b
- Posts: 21181
- Joined: 11 Nov 2003, 10:55
- Location: st custards
- Contact:
Oh goody. I'm on 2.2.25-1 at the moment. Having said that...lazarus corporation wrote:Upgrading from Apache 2.2 to Apache 2.4 is a bloody pain that involves editing too many vhost files
Arch linux wiki wrote: Note: Even though Apache 2.4 was released over a year ago (Feb 2012), it still isn't available in the official repositories. You can however get it from the AUR as apache24.
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
—Bertrand Russell
- lazarus corporation
- Lord Protector
- Posts: 3444
- Joined: 09 May 2004, 17:42
- Location: out there on a darkened road
- Contact:
I have bought myself a 3D printer.
Or more correctly, I have bought myself a heavy box full of parts that after much soldering, bolting, measuring, drilling, and swearing, will become a 3D printer.
Eventually it should look like this: http://www.reprappro.com/products/mono-mendel/
Or more correctly, I have bought myself a heavy box full of parts that after much soldering, bolting, measuring, drilling, and swearing, will become a 3D printer.
Eventually it should look like this: http://www.reprappro.com/products/mono-mendel/
- lazarus corporation
- Lord Protector
- Posts: 3444
- Joined: 09 May 2004, 17:42
- Location: out there on a darkened road
- Contact:
So, I last posted here in October. OK: geek report:
1. Launched new version of my website: http://www.lazaruscorporation.co.uk/ - for the geeks: PHP 5.5, ZF2, Doctrine 2, CSS media queries, and a fuckload (technical term) of RDFa
2. 3D printer still only half-assembled - will take a crack at it this weekend to try to get it finished
1. Launched new version of my website: http://www.lazaruscorporation.co.uk/ - for the geeks: PHP 5.5, ZF2, Doctrine 2, CSS media queries, and a fuckload (technical term) of RDFa
2. 3D printer still only half-assembled - will take a crack at it this weekend to try to get it finished
My customised Moto X
I had the Unknown Pleasures cover laser marked on the back at work
I had the Unknown Pleasures cover laser marked on the back at work
- James Blast
- Banned
- Posts: 24699
- Joined: 11 Jun 2003, 18:58
- Location: back from some place else
tit
"And when you start to think about death, you start to think about what's after it. And then you start hoping there is a God. For me, it's a frightening thought to go nowhere".
~ Peter Steele
~ Peter Steele
- timsinister
- The Oncoming Storm
- Posts: 4571
- Joined: 04 Jan 2005, 17:08
- Location: Newcastle
- Contact:
Pista wrote:My customised Moto X
I had the Unknown Pleasures cover laser marked on the back at work
- markfiend
- goriller of form 3b
- Posts: 21181
- Joined: 11 Nov 2003, 10:55
- Location: st custards
- Contact:
I was bored so I wrote a Brainf*ck interpreter in python.
Code: Select all
#!/usr/bin/python2
"""
A Brainf_ck interpreter in Python
Copyright (c) 2014 by Mark Wolstenholme
released under GPL v3 or later
I'll assume you know what Brainf_ck is:
> Increment the pointer.
< Decrement the pointer.
+ Increment the byte at the pointer.
- Decrement the byte at the pointer.
. Output the byte at the pointer.
, Input a byte and store it in the byte at the pointer.
[ Jump forward past the matching ] if the byte at the pointer is zero.
] Jump backward to the matching [ unless the byte at the pointer is zero.
"""
from sys import argv
class Brainf_ck:
'Brainf_ck class.'
def __init__(self):
'Set up the internals'
# give it 64k to play with
self.storage = bytearray(65536)
# We also need somewhere to store the locations of the [ and ]
self.loopstarts, self.loopends = {}, {}
# build an output string internally
self.output = ''
# We need an input string
self.inpt = ''
# And we need a storage pointer and a program counter
self.pointer, self.counter = 0, 0
# Instructions dictionary mapped to functions of this class
self.instructions = {
'>': self._inc,
'<': self._dec,
'+': self._p_inc,
'-': self._p_dec,
'.': self._to_out,
',': self._from_in,
'[': self._forward,
']': self._back
}
def _inc(self):
'Increment the pointer. >'
self.pointer = (self.pointer + 1) % len(self.storage)
def _dec(self):
'Decrement the pointer. <'
self.pointer = (self.pointer - 1) % len(self.storage)
def _p_inc(self):
'Increment the byte at the pointer. +'
self.storage[self.pointer] = (self.storage[self.pointer] + 1) % 256
def _p_dec(self):
'Decrement the byte at the pointer. -'
self.storage[self.pointer] = (self.storage[self.pointer] - 1) % 256
def _to_out(self):
'Output the byte at the pointer. .'
self.output += chr(self.storage[self.pointer])
def _from_in(self):
'Input a byte and store it in the byte at the pointer. ,'
if self.inpt == '':
self.storage[self.pointer] = 255 # -1 as EOF
else:
self.storage[self.pointer] = ord(self.inpt[0])
self.inpt = self.inpt[1:]
def _forward(self):
'Jump forward past the matching ] if the byte at the pointer is zero. ['
if self.storage[self.pointer] == 0:
self.counter = self.loopends[self.counter]
def _back(self):
'Jump backward to the matching [ unless the byte at the pointer is zero. ]'
if self.storage[self.pointer] != 0:
self.counter = self.loopstarts[self.counter]
def document(self):
'Output some documentation.'
self.output = 'A Brainf_ck interpreter in Python\n'
self.output += '\n'
self.output += 'Usage:\n'
self.output += 'brainf_ck.py <BRAINF_CKCODE> [<INPUTSTRING>]'
def interpret(self, bfcode, inpt):
'Run the bfcode using inputstring inpt.'
self._find_loops(bfcode)
self.inpt = inpt
while self.counter < len(bfcode):
if bfcode[self.counter] in self.instructions:
self.instructions[bfcode[self.counter]]()
self.counter += 1
def _find_loops(self, bfcode):
'Store the locations of [ and ] for looping'
stack = []
for a in range(len(bfcode)):
if bfcode[a] == '[':
stack.append(a)
if bfcode[a] == ']':
self.loopstarts[a] = stack[-1]
self.loopends[stack[-1]] = a
stack = stack[:-1]
if len(stack) != 0:
raise SyntaxError('Mismatching []')
if __name__ == "__main__":
bf = Brainf_ck()
if len(argv) == 1:
bf.document()
elif len(argv) == 2:
bf.interpret(argv[1], '')
else:
bf.interpret(argv[1], argv[2])
print bf.output
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
—Bertrand Russell
- James Blast
- Banned
- Posts: 24699
- Joined: 11 Jun 2003, 18:58
- Location: back from some place else
Mavericks broke my iMac
"And when you start to think about death, you start to think about what's after it. And then you start hoping there is a God. For me, it's a frightening thought to go nowhere".
~ Peter Steele
~ Peter Steele
- Silver_Owl
- The Don
- Posts: 7498
- Joined: 27 Sep 2003, 18:52
What happened?James Blast wrote:Mavericks broke my iMac
We forgive as we forget
As the day is long.
As the day is long.
- James Blast
- Banned
- Posts: 24699
- Joined: 11 Jun 2003, 18:58
- Location: back from some place else
I d/l something dogey from the internets last Saturday and my machine ground to an halt. My optical drive's fecked so I couldn't use the systems discs that it came with to restore it, my only options was to go for Mavericks, now anytime I try to change anything it asks me for an Admin name and p/w. It doesn't recognise anything I input, so I'm stuck on Pacific Time.
"And when you start to think about death, you start to think about what's after it. And then you start hoping there is a God. For me, it's a frightening thought to go nowhere".
~ Peter Steele
~ Peter Steele