Page 16 of 22

Posted: 20 Feb 2013, 21:15
by lazarus corporation
Edit: making it a link because the image is too damn big

http://i.imgur.com/5KktamC.jpg

Posted: 20 Feb 2013, 21:35
by Pista
:lol:

Posted: 25 Feb 2013, 10:20
by markfiend
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. :urff:

Posted: 04 Mar 2013, 18:40
by DocSommer
my new Adam A5X monitor speakers 8)

Posted: 14 Mar 2013, 20:42
by lazarus corporation
SQL Injection in practice

Image

Posted: 14 Mar 2013, 21:34
by nowayjose
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. :urff:
Twelve brought their mother?

Posted: 14 Mar 2013, 22:24
by Pista
nowayjose wrote:
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. :urff:
Twelve brought their mother?
:lol: :lol:

Posted: 15 Mar 2013, 16:26
by DocSommer
lazarus corporation wrote:SQL Injection in practice

Image

:lol: :lol: :lol: :notworthy: :notworthy:

Posted: 28 Mar 2013, 16:06
by Quiff Boy
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/

:eek:

Posted: 28 Mar 2013, 18:19
by iesus
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/

:eek:
impressive :?
the worst is that i am thinking of practical uses of this :urff: :lol:

Posted: 28 Mar 2013, 18:27
by Pista
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/

:eek:
Oh my!
That is seriously weird

Posted: 05 Apr 2013, 14:31
by markfiend
Just installed the enlightenment window manager.

It is very shiny. Very shiny indeed.

Posted: 01 Aug 2013, 16:21
by markfiend
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.

Posted: 17 Oct 2013, 22:18
by lazarus corporation
Upgrading from Apache 2.2 to Apache 2.4 is a bloody pain that involves editing too many vhost files

Posted: 18 Oct 2013, 09:21
by Quiff Boy
media wiki 1.121. finally.

Posted: 18 Oct 2013, 11:45
by markfiend
lazarus corporation wrote:Upgrading from Apache 2.2 to Apache 2.4 is a bloody pain that involves editing too many vhost files
Oh goody. I'm on 2.2.25-1 at the moment. Having said that...
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.

Posted: 30 Oct 2013, 21:45
by lazarus corporation
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/

Posted: 11 Jan 2014, 04:24
by lazarus corporation
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

Posted: 08 Feb 2014, 14:42
by Pista
My customised Moto X
Image

I had the Unknown Pleasures cover laser marked on the back at work 8)

Posted: 09 Feb 2014, 04:12
by James Blast
tit

Posted: 10 Feb 2014, 11:11
by timsinister
Pista wrote:My customised Moto X
Image

I had the Unknown Pleasures cover laser marked on the back at work 8)
Image

Posted: 28 Feb 2014, 13:15
by markfiend
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.
&#91; 	Jump forward past the matching &#93; if the byte at the pointer is zero.
&#93; 	Jump backward to the matching &#91; unless the byte at the pointer is zero.
"""
from sys import argv

class Brainf_ck&#58;
    'Brainf_ck class.'

    def __init__&#40;self&#41;&#58;
        'Set up the internals'
        # give it 64k to play with
        self.storage = bytearray&#40;65536&#41; 
        # We also need somewhere to store the locations of the &#91; and &#93;
        self.loopstarts, self.loopends = &#123;&#125;, &#123;&#125;
        # 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 = &#123;
            '>'&#58; self._inc,
            '<'&#58; self._dec,
            '+'&#58; self._p_inc,
            '-'&#58; self._p_dec,
            '.'&#58; self._to_out,
            ','&#58; self._from_in,
            '&#91;'&#58; self._forward,
            '&#93;'&#58; self._back
        &#125;

    def _inc&#40;self&#41;&#58;
        'Increment the pointer. >'
        self.pointer = &#40;self.pointer + 1&#41; % len&#40;self.storage&#41;

    def _dec&#40;self&#41;&#58;
        'Decrement the pointer. <'
        self.pointer = &#40;self.pointer - 1&#41; % len&#40;self.storage&#41;

    def _p_inc&#40;self&#41;&#58;
        'Increment the byte at the pointer. +'
        self.storage&#91;self.pointer&#93; = &#40;self.storage&#91;self.pointer&#93; + 1&#41; % 256

    def _p_dec&#40;self&#41;&#58;
        'Decrement the byte at the pointer. -'
        self.storage&#91;self.pointer&#93; = &#40;self.storage&#91;self.pointer&#93; - 1&#41; % 256

    def _to_out&#40;self&#41;&#58;
        'Output the byte at the pointer. .'
        self.output += chr&#40;self.storage&#91;self.pointer&#93;&#41;

    def _from_in&#40;self&#41;&#58;
        'Input a byte and store it in the byte at the pointer. ,'
        if self.inpt == ''&#58;
            self.storage&#91;self.pointer&#93; = 255 # -1 as EOF
        else&#58;
            self.storage&#91;self.pointer&#93; = ord&#40;self.inpt&#91;0&#93;&#41;
            self.inpt = self.inpt&#91;1&#58;&#93;

    def _forward&#40;self&#41;&#58;
        'Jump forward past the matching &#93; if the byte at the pointer is zero. &#91;'
        if self.storage&#91;self.pointer&#93; == 0&#58;
            self.counter = self.loopends&#91;self.counter&#93;

    def _back&#40;self&#41;&#58;
        'Jump backward to the matching &#91; unless the byte at the pointer is zero. &#93;'
        if self.storage&#91;self.pointer&#93; != 0&#58;
            self.counter = self.loopstarts&#91;self.counter&#93;

    def document&#40;self&#41;&#58;
        'Output some documentation.'
        self.output = 'A Brainf_ck interpreter in Python\n'
        self.output += '\n'
        self.output += 'Usage&#58;\n'
        self.output += 'brainf_ck.py <BRAINF_CKCODE> &#91;<INPUTSTRING>&#93;'

    def interpret&#40;self, bfcode, inpt&#41;&#58;
        'Run the bfcode using inputstring inpt.'
        self._find_loops&#40;bfcode&#41;
        self.inpt = inpt
        while self.counter < len&#40;bfcode&#41;&#58;
            if bfcode&#91;self.counter&#93; in self.instructions&#58;
                self.instructions&#91;bfcode&#91;self.counter&#93;&#93;&#40;&#41;
            self.counter += 1

    def _find_loops&#40;self, bfcode&#41;&#58;
        'Store the locations of &#91; and &#93; for looping'
        stack = &#91;&#93;
        for a in range&#40;len&#40;bfcode&#41;&#41;&#58;
            if bfcode&#91;a&#93; == '&#91;'&#58;
                stack.append&#40;a&#41;
            if bfcode&#91;a&#93; == '&#93;'&#58;
                self.loopstarts&#91;a&#93; = stack&#91;-1&#93;
                self.loopends&#91;stack&#91;-1&#93;&#93; = a
                stack = stack&#91;&#58;-1&#93;
        if len&#40;stack&#41; != 0&#58;
            raise SyntaxError&#40;'Mismatching &#91;&#93;'&#41;

if __name__ == "__main__"&#58;
    bf = Brainf_ck&#40;&#41;
    if len&#40;argv&#41; == 1&#58;
        bf.document&#40;&#41;
    elif len&#40;argv&#41; == 2&#58;
        bf.interpret&#40;argv&#91;1&#93;, ''&#41;
    else&#58;
        bf.interpret&#40;argv&#91;1&#93;, argv&#91;2&#93;&#41;
    print bf.output

Posted: 28 Feb 2014, 16:44
by James Blast
Mavericks broke my iMac :evil:

Posted: 28 Feb 2014, 16:46
by Silver_Owl
James Blast wrote:Mavericks broke my iMac :evil:
What happened?

Posted: 28 Feb 2014, 17:02
by James Blast
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.