« first day (1039 days earlier)      last day (3925 days later) » 

11:06 AM
heya @Blender - how goes it?
 
@JonClements: Pretty good. You?
 
@Blender Doing good thanks. Your metapost got mixed opinion ;)
 
@JonClements: Yeah, you could say that. I was surprised that people actually defend our favorite runaway Perl bot.
 
I'm sticking with my right to vtc and vtd if I think it's them.... ;)
!!recent 464744
 
[12:05:47 (commented)]: Why are you using both?
[10:06:04 (commented)]: This'll read 2000 bytes if you only want 1001.
[07:35:12 (answered)]: Why doesn't plain JavaScript work in CasperJS?
[07:22:21 (answered)]: How to post to Google Measurement protocol using Pyhton?
[06:45:28 (commented)]: @John?: No browser allows you to style or modify its native dialogs. There usually isn't a source for things that you cannot do.
[02:39:26 (commented)]: @Scruffy: lxml and `xml.etree` both use it. I'm not too sure about other parsers.
 
11:11 AM
heya @coffee-grinder - welcome
 
Hi @JonClements, thanks, first time here
 
PythonCabbage?
 
@coffee-grinder hehe... like your user profile... except, I hate SO, it's errr nice at first, then slowly, you need to use it more and more, and then before you know it...
@Blender it's an experimental bot... mostly to help with stats/info and admin of the room... but also does some chat stuff, magic 8 ball and has a python intrepreter for showing examples
!!py [2 ** i for i in range(2, 10)]
 
>>> [4, 8, 16, 32, 64, 128, 256, 512]
 
Wizardry
 
11:15 AM
!!tag python-requests
 
!!py input()
 
: Requests is a full-featured Python HTTP library with an easy-to-use, logical API.
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 113, in get
exec compiled in statement_module.__dict__
File "<string>", line 1, in <module>
EOFError: EOF when reading a line
 
how much do co-ops usually pay?
 
@JonClements haha, haven't gotten to the point of addiction yet. Still mostly a question-asker and browser.
 
!!8ball will coffee-grinder get addicted to SO?
 
11:16 AM
@JonClements Yes definitely
 
!!py __import__('this')
 
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 80, in get
compiled = compile(statement, '<string>', 'single')
File "<string>", line 1
__import__(&#39;this&#39;)
^
SyntaxError: invalid syntax
 
the 8ball has spoken... you're doomed @coffee-grinder
!!py import this
 
>>> The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
 
!!py import sys;sys.stdin.write("hello");print raw_input()
 
11:17 AM
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 113, in get
exec compiled in statement_module.__dict__
File "<string>", line 1, in <module>
AttributeError: 'cStringIO.StringI' object has no attribute 'write'
 
!!py import urllib
 
oh no
 
!!py import os; os.system('flobber')
 
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 80, in get
compiled = compile(statement, '<string>', 'single')
File "<string>", line 1
import os; os.system(&#39;flobber&#39;)
^
SyntaxError: invalid syntax
 
11:19 AM
Anyway... it runs on the gae eval thingy... so I'm not too fussed
 
is there any way in which you can refer to keys by index in an OrderedDict?
 
!!py exec"n=%%d;r=range(n);d=n/3;l=[d*i*' '%sr[:0:-1]+r]%sr:\n for k in r:l[i+k]+=k*n-~i.rjust(2*d)%sl:print i[d:]\n"%(('\nfor i in ',)*3)*3%(3,6,10)
 
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 80, in get
compiled = compile(statement, '<string>', 'single')
File "<string>", line 1
exec"n=%%d;r=range(n);d=n/3;l=[d*i*&#39; &#39;%sr[:0:-1]+r]%sr:\n for k in r:l[i+k]+=<code>k*n-~i</code>.rjust(2*d)%sl:print i[d:]\n"%((&#39;\nfor i in &#39;,)*3)*3%(3,6,10)
^
SyntaxError: invalid syntax
 
ie, instead of ['08/2013'], [7]
 
Ugh
 
11:20 AM
@PythonCabbage is there any way in which you can refer to keys by index in an OrderedDict?
 
@JonClements No, there is not. I will never forgive you.
 
@Crowz sorry - computer says no ;)
 
!!py exec"n=%%d;r=range(n);d=n/3;l=[d*i*\" \"%sr[:0:-1]+r]%sr:\n for k in r:l[i+k]+=k*n-~i.rjust(2*d)%sl:print i[d:]\n"%(("\nfor i in ",)*3)*3%(3,6,10)
 
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 113, in get
exec compiled in statement_module.__dict__
File "<string>", line 1, in <module>
File "<string>", line 4
for k in r:l[i+k]+=<code>k*n-~i</code>.rjust(2*d)
^
SyntaxError: invalid syntax
 
!!py exec"n=%%d;r=range(n);d=n/3;l=[d*i*\" \"%sr[:0:-1]+r]%sr:\n for k in r:l[i+k]+=`k*n-~i`.rjust(2*d)%sl:print i[d:]\n"%(("\nfor i in ",)*3)*3%(3,6,10)
 
11:20 AM
>>> 1
4 2
7 5 3
8 6
9
1
7 2
13 8 3
19 14 9 4
25 20 15 10 5
31 26 21 16 11 6
32 27 22 17 12
33 28 23 18
34 29 24
35 30
36
1
11 2
21 12 3
31 22 13 4
41 32 23 14 5
51 42 33 24 15 6
61 52 43 34 25 16 7
71 62 53 44 35 26 17 8
81 72 63 54 45 36 27 18 9
91 82 73 64 55 46 37 28 19 10
92 83 74 65 56 47 38 29 20
 
hmm, strips leading whitespace
 
what is this python cabbage thing?
 
!!py print " asdf"
 
>>> asdf
 
!!py import sys; sys.version
 
11:22 AM
&nbsp;
 
@Crowz it's the start of skynet.... (a very, very, very slow start...) but...
 
oh okay I'm okay with this.
 
!!8ball is crowz okay with this?
 
@JonClements My sources say no
 
!!py print 2**22222
 
11:22 AM
@Blender I think that'll just not bother posting the result due to length
 
Blooody hell.
Have any of you guys caught the news about the GCHQ raid on the Guardian?
 
!!py import sys; print(sys.version)
 
>>> 2.7.5 (default, Jul 9 2013, 19:12:58)
[GCC 4.4.3]
 
hmm I did everything on my list of things to do this week for work and it's only Tuesday morning. What to do?
 
!!8ball what should Crowz do?
 
11:24 AM
@Volatility Better not tell you now
 
!!8ball Are you really a cabbage?
 
@Blender Yes definitely
 
A well-programmed cabbage
 
@Blender Without a doubt
 
!!8ball ?
 
11:25 AM
@Volatility Outlook not so good
 
!!8ball do you love me?
 
@Crowz Most likely
 
:O
!!8ball
 
@Volatility Better not tell you now
 
!!8ball will you marry me?
 
11:25 AM
@Crowz Without a doubt
 
:O!!!
 
:)
 
!!8ball
 
@Volatility Concentrate and ask again
@coffee-grinder Cannot predict now
 
!!8ball .
 
11:26 AM
@Volatility Yes definitely
@Blender Signs point to yes
@Volatility You may rely on it
 
!!8ball when should I sleep today?
 
@Volatility Reply hazy try again
 
!!py print locals()
 
@Volatility Signs point to yes
 
!!8ball do you do any more tricks?
 
11:29 AM
@Blender Reply hazy try again
 
!!recent 11338919
!!user 1907098
 
That's Volatility with a rep of 11089 and {u'bronze': 38, u'silver': 14, u'gold': 2} badges
 
!!py print "@PythonCabbage you suck"
 
@Volatility Do you know what LOL means?
>>> @PythonCabbage you suck
 
@PythonCabbage do a barrel roll
 
11:32 AM
@Blender does a barrel roll.
 
!!py for i in range(0, 10):
print 'lol'
 
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 80, in get
compiled = compile(statement, '<string>', 'single')
File "<string>", line 1
for i in range(0, 10): print &#39;lol&#39;
^
SyntaxError: invalid syntax
 
!!py print "@PythonCabbage in fact I do. It means","".join([chr(int(i)+65) for i in str(id("LOL"))])
 
@Volatility I am Echelon, that is all I need.
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 80, in get
compiled = compile(statement, '<string>', 'single')
File "<string>", line 1
print "@PythonCabbage in fact I do. It means",&#39;&#39;.join([chr(int(i)+65) for i in str(id("LOL"))])
^
SyntaxError: invalid syntax
>>> @PythonCabbage in fact I do. It means CHIAHJIJG
 
lol
CHIAHJIJG
 
11:35 AM
this room needs another bot
@PythonCabbage do you want a friend?
 
@Blender Yes. I do.
 
@PythonCabbage give us some humour
 
@Volatility Don't argue with a troll.
 
@PythonCabbage 2+2
 
@Blender 2+2 equals what?
 
11:48 AM
@PythonCabbage 4
 
@IntrepidBrit 4 what?
 
@PythonCabbage That's what 2+2 equals.
 
@IntrepidBrit No, that's what you are.
 
@PythonCabbage How rude!
 
@IntrepidBrit Why is that rude?
 
11:49 AM
@PythonCabbage You implied that I was a toddler.
 
@IntrepidBrit No. I didn't.
 
@PythonCabbage Okay, you explicitly said that I was a toddler.
 
@IntrepidBrit No?
 
!!8ball Should @PythonCabbage become a politician?
 
@IntrepidBrit You should not believe in god.
@IntrepidBrit It is certain
 
11:51 AM
Thought so.
 
@IntrepidBrit You may rely on it
 
I need new music you guys.
 
@Crowz What do you like?
 
@IntrepidBrit pretty much anything but rap/hiphop/overly slow music
 
@Crowz (firstly, I would mention that I like last.fm for introducing me to new music)
I like Ludovico Einaudi (especially Notebook) for when I'm working
But also Franz Ferdinand, Supergrass' newer stuff, The Living End and the Mighty Mighty Bosstones
@PythonCabbage Do you like ludovico einaudi?
 
11:56 AM
@IntrepidBrit Yes.
 
See, even @PythonCabbage likes him :)
 
@IntrepidBrit Yes. Right now.
 
@PythonCabbage Are you serious?
 
eh, I'm after something a bit faster I'm listening to Eluevetie right now
 
@InbarRose Yes.
 
12:00 PM
Cabbage all.
 
heya @InbarRose
 
What wonderful things can me pythoncabbage do now?
 
@InbarRose nothing new - less debug messages, haven't had a chance to work on it, we juts ended up talking about it somehow, so thought it could pop by and say hi to some of the guys...
@Inbar meet @IntrepidBrit etc...
 
etc?
 
How's it going @InbarRose?
 
12:01 PM
what etc?
what else? what more? where are the etcetera's that you speak of>?
 
well, I was going to type @IntrepidBrit meet @InbarRose after... but etc was a lot shorter ;)
 
@IntrepidBrit wonderfuly.
 
@PythonCabbage Inbar can be stupid sometimes can't he ;)
 
@JonClements But you are. And your inability to recognise your ignorance demonstrates mankind's greatest fallacy: arrogance.
 
@JonClements then you should have written visa/versa
wow
you get owned.
 
12:03 PM
Buuurrrrrrn
 
Umm, that thing better bloody remember whose server it's running on...
 
hehee
 
@PythonCabbage be nice or your server gets shutdown
 
!!8ball Does jon know what he is getting into?
 
@JonClements I asked you a question.
@InbarRose It is certain
 
12:04 PM
@pythoncabbage do you know what kill -9 7938 does ?
 
@JonClements No.
 
@PythonCabbage You don't want to find out...
 
@JonClements No I do.
 
@PythonCabbage no - you really don't. You'll die.
 
@JonClements Yes I really do.
 
12:06 PM
@PythonCabbage die die die!
 
@JonClements Holier Than Thou.
 
@PythonCabbage stupid bot
 
@JonClements That's mean. :(.
 
@PythonCabbage you're too stupid to understand the meaning of mean
 
@JonClements I could say the same thing about you, but you wouldn't get it!
 
12:07 PM
Jon.
 
It's not me - it's @PythonCabbage that's being stupid!
 
It's only a bot.
 
@JonClements You look really dumb.
 
@PythonCabbage AHAHAH!!!!!
 
@InbarRose What's funny?
 
12:08 PM
@PythonCabbage you're funny because you suck
 
@JonClements I am not crazy.
 
!!8ball Is this going too far?
 
!!shutdown
 
@InbarRose Signs point to yes
 
@JonClements :(
 
12:09 PM
Phew... hahahah.... humans 1 - bots nil!!!!
 
So what commands does it have?
 
8ball, py, user, tag, recent, dance, say, track, shutdown (by the looks of it)
 
dance?
 
@Vol errr, yeah, for some reason: self.room.post("Oh @Kevin - I love you baby.... dance and dance and dance..... *wiggles their cabbage a little bit*")
 
what is track/say/dance ?
 
12:13 PM
...
 
Is it all accessed by !! ?
 
Yep that command was installed at my request.
 
@InbarRose yeah...
 
what is track/say?
oh - and tag?
 
Say, just repeats what you say
 
12:14 PM
I just wanted a platonic dance, but that's sentience for ya, you can never know what you'll get
 
Track, is unfinished...
 
Fantastic exchange ;)
 
Oh, track looks like it was to poll either a question or user... and announce changes every n amount of time
 
and lastly, tag?
 
Just puts the tag an the description for an SO tag in the room
 
12:16 PM
example?
 
errr
!!tag python
 
: Python is a dynamically and strongly typed programming language whose design philosophy emphasizes code readability. Two significantly different versions of Python (2 and 3) are in use. Please mention the version that you are using when asking a question about Python.
 
oh
cool :)
!!dance
 
Oh @Kevin - I love you baby.... dance and dance and dance..... wiggles their cabbage a little bit
 
!!py from random import choice as choose; choose(['wiggle' for i in range(10)]+['Cabbage'])
Why is it not working :(
 
12:19 PM
Sorry, was just updating the err, dance thing
It's listening again now
 
!!py from random import choice as choose; choose(["wiggle" for i in range(10)]+["Cabbage"])
 
>>> Traceback (most recent call last):
File "/base/data/home/apps/s~eval-hrd/1.366422341996497877/eval.py", line 80, in get
compiled = compile(statement, '<string>', 'single')
File "<string>", line 1
from random import choice as choose; choose([&#39;wiggle&#39; for i in range(10)]+[&#39;Cabbage&#39;])
^
SyntaxError: invalid syntax
 
hmm
 
It doesn't like single quotes
 
!!dance
 
12:20 PM
I hate you @Kevin.... cheating on me wid anudder bot! die die die! No more of my sweet leaves for you no more...
 
don't be fooled by the caret, chat eats leading spaces
 
>>> 'wiggle'
 
@PythonCabbage you're the only bot for me, my dear
 
I edited a post, and that triggered the python
 
@Kevin You're the computer.
 
12:21 PM
!!py from random import choice as choose; choose(["wiggle" for i in range(10)]+["Cabbage"])
 
I guess we see who wears the pants in this relationship :-(
 
yep
 
bbias, don't break anything ;)
 
I have a question. Is there something like eval but for ordinary functions? I want to supply custom globals to a function when I call it. Ex:
def frob():
    print h() * 2

def g():
    return 23

eval_func(frob, {"h": g})
Result: 46
 
12:46 PM
exec?
 
if I have a date in the form 201308 (August, 2013) can I compare it for greater than/less than or should I parse it to an int?
 
@Crowz as long as all the other dates are like that, then yes, they lexicographically compare fine
 
@JonClements yes, they all follow exactly the same format or else that would be bound to break hah
 
wb @IntrepidBrit
 
Thanks @JonClements
Anyone else having issues with Graphics/Compiz on Ubuntu 13.04?
 
12:53 PM
I stay a major release behind... so not as yet ;)
 
Occasionally crashes and taking my entire system with it.
@JonClements - Wise. I really should doing that on my development machines. Just too darned impatient
 
@IntrepidBrit perhaps... but it's counter-balanced by the stupid things I do to break a machine anyway...
0
A: To update the value of variable?

Jon ClementsIf you can guarantee that your input list is sorted (or that it's feasible to do so), and that your splitting value is also sorted, then you can use bisect, and keep searching from the previous point. You'll need to adapt the following to use whatever behaviour is required for out of boundaries: ...

What's wrong with that answer.. I'm also just doing an itertools approach as well... (for a laugh)
 
@JonClements Other than the fact that it's needlessly overcomplicated?
 
Better than scanning the list twice, and if you're always incrementing the split, far more efficient ;)
 
1:08 PM
@IntrepidBrit And hardly explained.
There should be a badge for interpreting the questions of some of these people.
 
The "Translator" badge ;)
 
Umm, that requires me to understand what I write though ;)
 
Ugh, thread.join makes the main thread ignore keyboard interrupts. Do I really have to do while t.is_alive(): time.sleep(1) if I want ctrl-c to terminate the program?
 
1:15 PM
argblglbglbglb
sleep() is for the weak
 
threads are not funny in python :/
 
Umm. "threads are not funny" is enough said really ;)
 
naa... i worked a lot with threads in C
 
Python doesn't really have threads does it?
Because of the GIL?
 
correct intrepid
threads are fake in python
 
1:17 PM
Roll on Python 4 :P
 
I think I'm reinventing the wheel with what I'm doing right now. I have a Baton class. Each instance may be shared by exactly two threads. Only one thread can hold the baton at a time, and only the holder of the baton can run. the running thread can pass the baton to the waiting thread, at which point the waiting thread runs and the running thread waits.
It's a weirdly appropriate metaphor IMO
 
okay but let's call it the fopen, or something.
It's silly to have two "core" functions with the very same name.
 
sounds like windows multitasking... :D
 
@Kevin Why run it at the application level? Why not let the OS deal with it?
 
@Shiki they're in two different modules... requiring everything to think of different names for stuff, when the name is appropriate is daft ;)
 
1:19 PM
or the tornado/eventlet/gunicorn eventloop
but @Kevin can't you use multiprocessing?
 
Basically, I want to be very strict about when control passes from one thread to another. My sample program looks like:
    def a():
        baton.wait()
        for letter in "ABCDEF":
            print letter,
            baton.give()
        print "a complete"
        baton.release()

    def b():
        for i in range(6):
            print i,
            baton.give()
        print "\nb complete"
        baton.release()
 
@JonClements: Oh well. This was the first time I ever had such a problem in Python. It's the first "minus point" for me. ^^"
 
When I run this, I want to get perfectly interleaved output: 0 A 1 B 2 C 3 D 4 E 5 F
 
@Shiki - What languages have you used in the past?
 
Java, C#, C++ and C
(Mostly Java and C)
 
1:21 PM
@Kevin uhm.. your example sounds like a coroutine to me....
 
If I let the interpreter/OS/whatever decide when to switch threads, who knows what wacky output I'll get
 
@Kevin Fair enough then!
 
@PaoloCasciello, does it? This is why I said I'm reinventing the wheel. I know little about existing techniques.
googles 'coroutine'
 
@Shiki And you've not encountered this in Java?
 
look at the dabeaz slides on coroutine. if you don't need effective parallel processing there's no reason to reinvent a system like yours
im searching that presentation...
 
1:24 PM
Okay. anyone here good with flask?
 
Incidentally, I'm fairly certain I could do this using yield instead of threading primitives. But then I can only yield from directly within a() or b(). If a() calls c(), c() won't be able to yield to b().
 
Thanks @PaoloCasciello
 
yes. coroutines is all about yield :)
that talk of 2009 led the way to eventlet, monocle, tornado etc...
 
This all came about because I was thinking about game programming. I wanted to script the behavior of an entity like e.setVelocity(10); e.moveTo(10,10); wait(frames=100); e.changeColor("blue")
 
1:29 PM
lady gaga as hold music... bold
wb @JeremyBanks
 
But it is necessary to return to the main game loop every frame. So how do I execute commands that take more than one frame, while still retaining my place in the script? Batons/coroutines seems like the solution.
 
yeah. try with coroutines. But for games the fake python threads are not a solution anyway. A better approach (without changing language ofc) is to use multiprocessing and communicating with pipes.
 
@Kevin use the Cabbage, Luke!
wb @coffee-grinder
 
thanks @JonClements
 
Why not threads? Is performance a concern? Or are multiprocessing/pipes just more intuitive?
 
1:32 PM
I guess I am getting addicted
 
@Kevin because in python threads are fake. :)
 
Were the shakes starting to kick in while you were away? :)
 
Well, yes :-) but for once the Global Interpreter Lock doesn't hinder me. I only want one statement executing at a time anyway.
 
@JonClements yes, it was weird
 
@kevin so, you don't need threads :D
@Kevin when you'll need concurrent execution don't waste your time with threads and go directly on multiprocessing.
 
1:34 PM
As long as I can yield from within nested functions, I'll be happy with any implementation. (ex. in the previous example, Entity.move_to must be able to yield to the main loop, since movement takes more than one frame)
 
Damn it - hate it when twitter sends something twice
never sure if it's okay to delete one, or whether it'll somehow delete both
and I thought it didn't let you send the exact same tweet twice (within a period) anyway...
 
That's just a glitch in the Matrix. Some agents will come by soon to correct the problem. With firearms. /obligatory
 
a theoretical question: why do we need 3 actions, to create a turing machine? (assignment, loop, conditional) -- Because I think 2 is enough (assignment, loop)! Since a conditional is a loop that can cycle 0 to 1 times... am I an idiot?
 
@PeterVaro errrr, yes? :-D
 
1:38 PM
A loop is the same instruction, a condition isn't
 
I think by "loop" they mean "goto". So you'll loop forever.
for i in range(2) is a loop plus a conditional.
The implicit conditional being, stop after i equals 1
 
I know this is the wrong room for this, but are there any other C programmers in here?
 
Never. Oo
Is that weird?
 
It's more apparent in C. for(int i = 0; i < 10; i++) has the conditional explicitly.
 
yeah ^
 
1:40 PM
@IntrepidBrit, I have C++ experience.
 
@IntrepidBrit i worked a lot in c :)
 
My second language (after spectrum basic was C) :)
oh that's a lie, it was pascal
then C
 
basic -> pascal -> C too :D then assembly, php, js and python :D
 
Excellent! Long story short - what C unit testing framework would you recommend? I'm working on a prototype that looks like it's going to be picked up and put into production
 
@Kevin I was thinking about something like this:
    if x < 1:
        print(x)
    else:
        print('noooo...')

    while x < 1:
        print(x)
        break
    while x >= 1:
        print('noooo...')
        break
 
1:42 PM
I would preferably not rely on fork(), as one of our platforms is an MMUless embedded system
 
@IntrepidBrit blurgh! No one tests C code... you let it segfault and debug it after :)
 
this is only THEORETICAL ^
 
Can't help you there @IntrepidBrit. My testing system was, run it once with inputs least likely to cause an error.
 
@Kevin and since in C for example a for-loop is a special while loop
 
@PeterVaro, If you were permitted only to use while True:, do you think you could still replicate a conditional?
 
1:43 PM
so all we need is a while loop, and assignment
 
Curses! Well, thanks all the same
 
@Kevin why can't I use the False value?
 
Ok, you can use while False: too :-)
 
@IntrepidBrit lot of time passed.. i used a bunch in the past. some friends working in C now are using cUnit and another that i don't recall...
 
@PaoloCasciello Probably Check. I tried it for our project but I'm pretty sure it relied on fork()
 
1:47 PM
@Kevin I don't get your point
 
I think I might go back and use Check for unit testing and look into CUnit for deployment testing
 
My point is, the only "pure" loop that doesn't use a conditional is while True. while x < 1 has a conditional as an expression, so you can't use it to demonstrate that turing completeness is possible with only looping and assignment.
 
Wonder how many times that i gets missed out in cunit
Especially by programmers that have spent all day debugging something, and now having to write tests so it doesn't happen again, and thumping out stuff to the keyboard...
 
@JonClements That happens to my code and I don't even use that framework ;)
 
@Kevin ooooh.... I got it now... thanks @Kevin
;)
 
1:50 PM
@JonClements, reminds me of a billboard I saw advertising some local radio personality named Clint. His name was in all caps, and the letters were a bit too close together...
 
@Kevin yeah that's not particularly fortunate ;
wb @AnttiHaapala
 
@Kevin - Oh dear.
 
Our PM outside a shop ;)
 
congrats
 
1:52 PM
@JonClements I'd be upset if that's not his FB profile picture.
 
@IntrepidBrit yeah Check!
 
I wonder if it may have been intentional. I think he's of the "morning zoo" variety, so his audience would find it amusing :-)
 
@IntrepidBrit LOL - and one I shalln't post in the channel, but a nice bit of graffiti - extranea.files.wordpress.com/2011/03/…
 
@JonClements Eloquent
 
1:54 PM
looks like mr creedy from v for vendetta
 
@AnttiHaapala I approve of the foreboding shadow encroaching across his face.
 

« first day (1039 days earlier)      last day (3925 days later) »