« first day (1475 days earlier)      last day (3477 days later) » 

5:00 PM
@Basj no I disagree. You should use the correct tool for the job.
 
user559633
lol windows.
 
<3 the comment!
 
@Ffisegydd But in this case the client was conned into buying a Fisher-Price toolbox :-(
 
Going to see Rifftrax at the theater tonight. The targeted movie is "Anaconda". I'm hoping the pacing is a little better than last time's "Godzilla".
 
Heh, that movie is hilarious
 
5:15 PM
Cbg all
 
cbg @vaultah
 
arhghghghghgghgh
too much chilli! too much chilli!
 
Cbg?
 
@JonClements have some ghee
 
chill and be groovy?
 
5:17 PM
stubbornness made me persist eating it... my throat might be dissolving though...
 
Ah, corticosteroid-binding globulin
 
oh dear - I really hope @AureliusPhi isn't my family doctor in disguise :)
 
:D
 
The hip bone is connected to the, duodenum... wait.
 
5:19 PM
@alex it's actually unclear I think
 
Finally, copied all files, so I can safely wipe that nasty partition
So I'll get my PC running on Saturday
 
does it have the latest reebok ?
 
Nope
 
Ahhh, what a banana yam.
 
cbg all!
 
5:23 PM
cbg!
 
Potato?
 
Banana melon, @AureliusPhi. Potato?
 
i want to get figure 1. captions... in latex...
but i get no figure numbers ...
\begin{figure}[htp]
\centering
\includegraphics[scale=0.22]{looma.png}
\caption {Hardware and Electrical parts of Looma system}
\end{figure}
 
@inspectorG4dget Banana, melon
 
5:24 PM
isn't it how it is done?
 
@tilaprimera: is switching to LyX (LaTeX editor) not an option for you at this point?
 
I have a Latex editor...
 
try looma instead of looma.png?
 
hmm i had tried that..but let me do that:D for relief's sake
 
yeah, but of all the ones I've tried, I like LyX the best - it's lets you create LaTeX without having to write LaTeX - makes it feel like you're using MS Word, while actually creating LaTeX in the backend
 
5:28 PM
unfortunately, i have all my stuff mixed up with latex code.
looma did not work
 
last try: You should be able to import existing LaTeX code into a LyX document
 
Are you sure that the picture included in the library has the appropriate name for reference? does it work with other pictures?
 
i can see the image loaded...and the captions..
 
might also be the scale
 
the figure shows up when in list of figures too..
but the Figure number does not come alongside caption
 
5:31 PM
try including \shorthandoff{=} after begin document
sometimes certain includes mess that up
 
what is it for?
i get an error
 
does it work if you do h! instead of htp?
 
noo
 
I've never actually tested this to know if it matters, but try removing the space after caption and before the curly bracket?
 
it does not
 
5:37 PM
okay... @Ffisegydd @Kevin @davidism @poke - it's up: github.com/sopython/nidaba/blob/master/proto_listener.py
 
in a separate file, the number in.. figure 1 is showing up ...and i am trying the codes from here
 
Good, good... It's all falling into place.
 
that's just 3/4 minutes of a quick getting it done
 
user559633
lol a startup with 2 MBAs.
 
nifty
 
user559633
5:39 PM
That is their recruiting pitch.
 
user559633
We're both MBAs! Come write code, idiot.
 
What's the document class?
 
it is article...
it does not matter...
in another file, the same code is showing figure 1
 
@Jon didn't know about autobahn, that's a good example of how to write an asyncio protocol
 
\documentclass[a4paper,12pt]{article}

\usepackage[english]{babel}
\usepackage{graphicx}

\begin{document}

\begin{figure}[htp]

  \centering
    \includegraphics[width=0.5\textwidth]{looma}
      \caption{A picture of a gull.}
\end{figure}

\end{document}
 
5:41 PM
In my experience, if the code works in one place but not another, usually the included packages differ in some way to where something is being overridden, but it's hard to say for sure in this case
 
ohh
hmm i am in trouble..:/
 
@davidism I imagine that running as a separate process, then dispatching
it's got a few bugs, it raises an exception for some reason at some point, but it's not always reproducible? It's a building block though.
 
@Ffisegydd what's the correct tool then ? ;)
 
@JonClements Is this answer correct? stackoverflow.com/questions/26659737/…
 
Although, since I've knocked it up in 5 minutes, bugs/unseen stuff is bound to happen :)
@Alex no :(
__eq__ and __ne__ don't need to be symmetrical
 
5:44 PM
@JonClements I'm interested in Nidaba too
 
@JonClements Ahh...
 
@AlexThornton: Ned beat me to it, but __eq__ is not called for !=.
Hence the downvotes on your answer.
 
just have your __ne__ call the __eq__ and invert it
 
@MartijnPieters I shouldn't really have posted it; it was a bit of a hunch really.
Learn something new every day I suppose.
 
@Alex if it's any consolation I learnt the other day that __class__ automatically scoped in Py 3.x
 
5:48 PM
I was quite surprised the day I discovered that defining __eq__ was not sufficient to get both != and == working.
 
Well, you can use functools.total_ordering
 
@MartijnPieters: does building a function using say operator.itemgetter or operator.attrgetter slow things down? Yes, I'm referencing that question
 
but you need an eq, and either of the other relative operations
@inspectorG4dget it'll probably speed it up... you're only referencing the target object's attribute once
 
Has anyone ever defined an __ne__ that wasn't just return not self.__eq__(other)?
 
@Kevin not when sane :)
 
5:51 PM
"just have your ne call the eq and invert it" I read this in the voice of Missy Elliot
 
@JonClements: do you mean that using operator.item/attrgetter(ref)(x) will be faster than x.ref or x[ref]?
 
not for single access, no
 
will it be any slower?
 
I'd imagine ever so slightly slower, as you have to build the getters first, then access
so you're putting a layer of overhead there...
 
5:53 PM
ahh. So would using operator be faster if I were accessing the same attributes multiple times?
yeah, I was just on that post - no idea what OP is looking for
 
nope
 
Duhh... it's obvious what he's asking for... help...
 
bahaha
 
You can do a "random quicksort" by picking a pivot index at random. I don't think you can do a "random bucket sort", though.
 
so why mention "single access" at all? I'm getting confused now
 
5:55 PM
@inspectorG4dget what they do is directly go and link to the appropriate method of the object
a = [1, 2, 3, 4]
a[0] is a single lookup?
 
I would assume so, yes
 
which means it gets translated to a.__getitem__(0)
 
So by using operator.itemgetter(0, 1, 2)(a)
the a.__getitem__ is looked up once
 
ahh!
how does that happen under the hood? Won't the C dynamic array need to be querried 3 times, still?
 
5:59 PM
yup, but it doesn't need to resolve the lookup 3 times
 
resolving = translation to x.__getitem__(i)?
 
yes, but it doesn't need to resolve the __getitem__ 3 times
does it once
 
that's fantastic!
... and thank you for the explanation :)
 
Cabbage.
 
cbg @poke
 
6:02 PM
cbg @poke
 
cbg @poke
 
@JonClements What’s that?
@Jon @Alex @inspector wow. xD
 
10 HOME
20 SWEET
30 GOTO 10
 
@poke It's me trying to redeem myself from not having to be able to retrieve old code... it's a 3.4 base version of being able to listen to live sockets from SO
 
@inspector HOME SWEET HOME SWEET HOME SWEET HOME SWEET HOME SWEET HOME SWEET …
 
6:05 PM
only took 5 minutes, so don't expect it to be perfect, but it's there for someone to adapt :)
 
@poke It’s really sad that I typed every word there individually.
 
are you sure you didn't run into a stackoverflow?
 
@inspectorG4dget No stack involved with gotos.
 
"suck it and see?" :p
 
Just to infinity and beyond!
 
6:07 PM
To boldly go where no one has gone before?
 
@inspectorG4dget you have to create separate objects first, so yes, you do the same thing indirectly and that slows things down.
 
To seek out new life and new civilizations, and nuke the hell out of them.
 
if I ever had any doubt you were American - you've confirmed that you are @Kevin :p
 
I think gotos just... goto. There's no memory of where you came from after executing a goto, so no overflow
 
Pew pew pew! 'Murica B-)
 
6:09 PM
So, @davidism joins my trello board and moves everything around… xD
 
@AureliusPhi you can longjmp if needs be... just makes a program a maintainers nightmare :)
 
@poke I also contributed two cards :)
The list started getting too long
 
whoa I forgot all about longjmps
 
Though the “commands” list is highly redundant with the “commands” tag now :P
 
the whole setjmp / longjmp thing, right?
 
That's right monkey -- play my head
 
@poke if we do lists like "in progress" and "review" the tag makes more sense, right now it is redundant though
 
@AureliusPhi another meme - Homer Simpson, this time
 
Since no-one here has an avatar of a "monkey" - what do you mean by that @AureliusPhi
 
@JonClements Heh, sorry -- Grandma's Boy reference (as per inspector's gif)
 
6:13 PM
@davidism I’m not at a in-progress stage for the bot yet, I was just collecting (while keeping the room for new lists) :P
 
@poke okay... we need to decide, are you going to do the bot, or am I?
 
uhm
I don’t know?
 
if we're going to use your node.js one, I'm going to struggle to assist you :(
if we go for a python ascynio I stand a chance...
 
Anyone here into Python codegolfing at all?
 
Yes, but I'm not good at it.
 
6:17 PM
Well, I kind of want to follow on the node solution since I want to integrate the JS room’s extension mechanism, so we can reuse their commands—and eventually replace their hackish solution too :P
 
Yeah, same -- it's fun, nevertheless.
 
I enjoy it and am good at it, but someone else is always faster than me. @AureliusPhi
 
@poke having a machine with a browser just sucks :)
 
I like to reduce programs to a functionally-equivalent one-liner, but this usually makes it longer, not shorter.
 
Exactly :P
well, not exactly that; I think any computer should have a browser, but yeah :P
 
6:18 PM
okay, if it's agreeable with all, you lead dev. RABBIT
I'll focus on a robust system for Kesh to gather stuff
 
I really don’t want to take anything away from you though :(
Okay, if that’s okay for you :)
 
it's a community project
we'll use whatever appropriate and easiest for what we want to achieve
 
@Jon you could lead Kesh and do it in asyncio
 
1000 digits of Pi in 62 characters, anyone? XD
 
It would be good to have an asyncio project
 
6:21 PM
^ that since I still have no idea how to use asyncio at all.
 
Alright, time to get back to les études! rbrb all
 
user559633
Asyncio is pretty cool and straightforward once you decide on a strategy (threading/proc/proc manager)
 
user559633
isn't rbrb brb/afk?
 
oops!
Rhubarb, all
 
user559633
(just asking because that's what the salad lang page says, but i use RBRB as 'bye!' all the time)
 
user559633
6:27 PM
good luck @inspectorG4dget
 
many thanks, @tristan. #til
 
user559633
I think it's the salad lang that needs to change
 
user559633
SIMILARLY we don't have a salad lang word for #selfie
 
the salad language is perfect
all additions are mereley existing terms we forgot to include
 
user559633
i propose that we call selfies "idiotographs"
 
6:30 PM
seconded
 
@AureliusPhi I know this one: u+/*GHhyHy^T^T3r^3T1Z. Stolen from here.
 
user559633
or moronograms
 
Sure, but first, let me take a selfie.
 
@Jon What do you think of this proposal?
 
user559633
what happened to the word we had for "untested code"
 
user559633
6:32 PM
i remember it being really amusing
 
@Kevin Is that golfscript?
 
One of my coworkers is writing the software parody of #SELFIE
> But first, lemme push to master
 
@AlexThornton It's Pyth, which is apparently a Python-based language designed specifically for code golfing
 
user559633
it would be fun if "cucumber" was untested code and tested code was "pickle"
 
user559633
but we had something way more amusing
 
6:34 PM
@Kevin Wow :O
 
From its documentation, it looks like it simply takes Python keywords and shrinks them down to one letter.
Well, ok, it does other stuff. But that's the short version.
 
Wll, k, t ds thr stff. Bt tht's th shrt vrsn.
 
@poke doesn't matter really... we'll just do need what needs be done :p
 
Do the needful?
 
if we didn't have jobs, bills to pay and whatever, we could probably smash the projects by end of year :)
 
6:38 PM
If I had a hundred times more energy than I usually do, I'd work on R.A.B.B.I.T.
 
ahh... the caffeine inducer project
test subjects still exploding I take it?
 
Man, if I can just get rid of this NameError I'm golden ...
@teh_codez
def teh_codez(func):
    """Replace func with a function that does what its docstring says."""
    pass
 
caffeine always gives me headaches >.< Aghghh.
 
No writing code that can make our profession obsolete, thanks in advance
 
6:40 PM
@Zero are you serious?
 
@Jon Yes, he's serious about a function called teh_codez :)
 
no I meant, he is serious about not realising that naming a decorator the same name as a function it's decorating... :p
 
DSM
.. but that's the joke..
 
^yeah
 
DSM
because of what the function would do..
 
6:42 PM
@memoize
def memoize():
 
try:
    @teh_codez
    def teh_codez(func):
        """Replace func with a function that does what its docstring says."""
        pass
except NameError:
    pass
 
It would be a meta-program. A program that programs instead of a programmer.
 
There, NameError eliminated.
 
DSM
That's why you're the language designer among us, Kevin.
 
@Kevin Well, kinda.
 
6:43 PM
oi! I wrote a language in C++ called Chinchilla!
 
I'm thinking of making variable names in KevinScript underscore-insensitive. That way, you can write either deque.pop_left or deque.popleft and both will work
 
very specialist though
@Kevin I'm not having much hope for the LOTC anymore :(
 
@JonClements The LOTC is in excellent condition. Only problem is, the entire crew has vanished.
I knew I shouldn't have let them respond to the distress call coming from that derelict space ship, which apparently has been drifting for decades
 
@Kevin Great! Now I just need a comprehensive test suite ...
 
/me gets a tooth peg and cleans out his teeth not sure what happened there? So tragic...
 
6:46 PM
have a great time peeps!
rbrb
 
rbrb @tila!
 
user559633
suggested reading for logging in a flask app that's launched by uWSGI?
 
@JonClements On the topic of saladspeak, did you see the new word proposal?
 
user559633
yeah, i proposed that @JonClements is the APFL
 
DSM
6:47 PM
The Brothers Karamazov.
 
user559633
adorable puppy for life
 
user559633
also coining the term "idiotograph" for "selfie"
 
or 'moronogram'
 
user559633
or that
 
it'd be self-indulgent if I added that myself... but I'm up for that :p
 
6:48 PM
@JonClements Hey, it's your language!
 
DSM
(Mental note: don't forward tristan the address for my home arts-and-crafts Pinterest feed.)
 
user559633
:] you mean your crapshots?
 
arhghggh... really did over do the chilli
 
user559633
what do you mean? overcooked?
 
no... just too much chilli in it
 
user559633
6:51 PM
oh, mail me some
 
'over did the chili' has to become some sort of a phrase now
 
Too much chili in the chili, eh...
 
user559633
yeah, sounds like something you'd hear in a british newscast
 
user559633
"and broke out of the mental facility, scaring the dog and overdoing the chili"
 
hahaha
 
6:52 PM
Oh, on side news we had a bloke "abscond" from open prison this week
 
user559633
haha, how flipping proper of him
 
@Jon Not another one!
 
two life sentences
 
user559633
That's amazing
 
for murder
 
6:52 PM
Well, doors are meant to be walked out of, I suppose.
 
DSM
Does "open prison" mean what I think it does?
 
@DSM Yup. It's mad.
 
user559633
"Well then, so I'm off" grabs porkpie hat and coat
 
so he took his "day out" and didn't come back
 
user559633
A day out. From 2 life sentences.
 
user559633
6:54 PM
What, did they expect him to start following the rules?
 
Yes.
 
Apparently it helps them "rehabilitate" or something
 
user559633
...but they expect him to die in there. twice.
 
user559633
What are they rehabilitating him for? The third go? Just in case buddhists are right?
 
@tristan The last time this happened not to long ago, an armed-robbery convict nicknamed 'the skullcracker' absconded, and was only caught when he... guess what... attempted to rob a store.
 
user559633
6:55 PM
Feck, and I thought I drink too much
 
The weirdest thing is a "life sentence" here is at most 25 years
 
user559633
I feel like it's cheating then to say "3 life sentences"
 
@Alex it's the same bloody prison this guy is from!
 
DSM
Hey, the Skullcracker was captured in Tower Hamlets. That's right near where I used to live.
 
user559633
From the prison? Where he was born? That's so sad...
 
user559633
6:56 PM
Children born and raised in children. You lose all moral high ground, England.
 
I found it funny he was reported trying to hold over the old place he'd tried to hold over years ago :)
 
This is why all prisons should be tremendous holes in the ground.
 
@Kevin I admire your word choice.
 
@JonClements Unless it's changed, I don't think that's true ... it certainly used to be the case that some lifers had a "full-life tariff", recommended by the judge and set by the Home Secretary.
 
user559633
@JonClements was he Irish? We have a thing about holding grudges.
 
user559633
6:57 PM
"aarhhh, send me ta prison will'ya?"
 
DSM
@Kevin: and if you manage to climb out, you get an open day!
 
@Zero a "life sentence" is 25 years
 
This is a list of prisoners who have received a whole life tariff through some mechanism in jurisdictions of the United Kingdom. There are currently at least 56 prisoners serving such sentences. At least 11 others have since died in prison, while several others have had their sentences reduced on appeal. There have been media reports that other prisoners have been issued with whole life tariffs, but their status has not been confirmed by the Home Office; these include Harry Roberts, who has been in prison since 1966 for the murder of three policemen in London, despite the judge recommending a 30...
 
user559633
a whole-life tax?
 
we're not allowed to do whole-life sentences because of the ECHR
 
user559633
6:58 PM
ECHR?
 
user559633
is that some collection of painters and other idiots that shy away from the real world?
 
European Court of Human Rights
 
@JonClements That's pretty much the plot to an old episode of Futurama.
 
"You're robbing the same place again?" "Yeah, the first time I just robbed it a little. You know, to get a feel for it"
 
user559633
6:59 PM
how many life sentences do your murderers get?
 
user559633
because they sort of denied others the most basic of "rights"
 

« first day (1475 days earlier)      last day (3477 days later) »