« first day (1448 days earlier)      last day (3517 days later) » 

12:48 AM
In case anyone is interested, "on a bytecode boundary" means code called from python's bytecode, as opposed to C/C-extensions.
The callback scheduled by Py_AddPendingCall will do nothing until code called from python's bytecode is executed in the main thread.
 
 
1 hour later…
user559633
 
Nice. I don't check the older unanswered questions enough.
 
user559633
i just searched for it because i needed that behavior
 
user559633
wasn't super hard to figure out
 
user559633
still not sure how to add naked elements though
 
user559633
e.g. <input type="email" class="form-control" placeholder="Email address" required autofocus>
 
2:16 AM
so you mean required and autofocus?
 
user559633
yes, unless those are just the same as required=""
 
I'm pretty sure you can say required=True, but I haven't actually tried it
 
user559633
I'll try it RIGHT NOW
 
would be a good pr for wtforms if you can't
 
user559633
haha, yeah, twitter bootstrap is sort of a drooling child sometimes
 
2:18 AM
I have these huge jinja macros for rendering out fields with help text, errors, extra widgets, etc.
 
user559633
interesting.
 
user559633
i need to update my company site. i have a new version sitting on my laptop, but i need to finish connecting my contact modal to my email API
 
I was right, according to the docs: wtforms.readthedocs.org/en/latest/…
 
user559633
wow, it's been a long time since i worked on this site
 
when writing custom exceptions, why do most folks create a base exception for their project with nothing but pass in it?
 
user559633
2:30 AM
oh, example please.
 
user559633
I don't see the point in creating a base class that doesn't do what it says on the box
 
@tristan it's more of an observation from looking at several packages
I know that is more of an example
but it seems folks declare a class that extends Exception, usually Error or something
then only put pass in that exception
then write all their custom exceptions as extensions/children of their custom base exception class (Error)
 
user559633
i think that's lazy shorthand.
 
@tristan yes the link is just an example, but I see this in actual packages
 
user559633
my answer is the same
 
2:34 AM
Go to the second code block in section 8.5 here
is that also lazy shorthand?
 
I would create a package-level exception so someone could just catch DavidismException and ignore anything stupid I do, then subclass it so they can catch specific problems related to the package.
Just like Exception itself works for builtin exceptions.
 
it might be better if I give my scenario
 
user559633
my answer is the same whatever the scenario
 
I have a class that requires user to specify a number that gives context for the class
 
Now that Rackspace is on the downswing financially, who is the best cloud server/VPS these days?
 
user559633
2:36 AM
this gun shoots bullets of bulletClass, unless it's baseBullet, in which case it's hotdogs
 
@tristan 10-4, I'll shut up now ;)
 
user559633
@Soviero where are your clients, what is your budget
 
user559633
no need to shut up @majnemɪzdæn
 
@tristan I meant, I'll stop sharing my scenario
 
@Soviero well, linode's good, Jon has it for sopython stuff, including a minecraft server :)
 
user559633
2:37 AM
that's not what i was trying to say; sorry if i was seeming dismissive
 
@tristan Austin, TX, and $10-$20/server/month.
 
user559633
feel free to share
 
user559633
@Soviero is that where you are or where your clients are?
 
@davidism They seem to only support CentOS 7, which is fine, but too new for my tastes. I'm a sysadmin by trade, and we don't like "new" things.
 
user559633
lol centos
 
2:38 AM
We have an ubuntu 14.04 box on linode
 
user559633
yes, i'd like some redhat in my life please
 
@tristan Both, we're going to target locally at first, and then grow from there.
 
user559633
the microsoft of linux
 
when you work with the gov, everything's redhat :(
 
@tristan What's wrong with CentOS/RHEL?
 
user559633
2:39 AM
feeds into redhat/microsoft pockets
 
@davidism That sentence still works if you remove the "with the gov" part
 
user559633
redhat<-->SCO / other fud goups / microsoft pockets
 
I have a class that requires user to specify a case number that gives context for the class. The class calls a method upon initialization to look up the case number and return the PK ID value for it. If not found, I want it to raise a custom exception related to not being able to set the case context (this class is extended by many other child classes and the error affects all of them)
 
@tristan I wouldn't conflate the two, personally.
 
user559633
@Soviero i'm not conflating anything. you can trace redhat efforts to microsoft coffers..
 
2:40 AM
@tristan Perhaps, but AFAIK they're still the best.
 
user559633
best at what?
 
user559633
it's linux...
 
@tristan Business Linux distro
 
so the question is, should I create a custom PackageNameError that I can simply pass custom msg's/args to, or create as base error for the package but then subclass it with specific exceptions, or...?
 
user559633
use ubuntu if your sysadmins are lazy, otherwise use debian like a professional
 
user559633
2:41 AM
or arch
 
user559633
or a BSD if you're feeling sober and want to feel like a drink
 
user559633
@Soviero anyway. linode has a dallas datacenter. it's hard to beat geo-close for user-impressions
 
@tristan I mean this in the least offensive way possible, but you don't know what you're talking about.
 
user559633
@Soviero except I really do.
 
@tristan It's 10pm here, and I'm tired, please don't make me explain all the reasons we choose CentOS over Ubuntu/Debian/Arch/whatever else.
 
user559633
2:44 AM
You're going to be rolling your own images, docker containers, or unikernels if you're serious anyway.
 
redhat has all the same security updates that every other distro has, except they charge a ton for it
and instead of actually releasing the latest packages, they just backport specific fixes
 
@davidism CentOS, not RHEL
@davidism As they should for stability
 
why not go one step further and use fedora, even more up to date!
 
user559633
It's 11 here and while you feel like you'd be sharing the word of truth, I promise you that I'm far more versed in this topic than you expect.
 
user559633
lol fedora.
 
2:45 AM
@davidism Up to date is bad on servers.
 
LOL
 
user559633
Wow.
 
user559633
Thank you for having opinions that pay my rent as a consultant.
 
user559633
Please go on about how long uptime is somehow a measure of a secure system.
 
I mean, don't just throw out updates, but even arch tests packages before pushing them to the repos
 
user559633
2:47 AM
lol if you don't have a staging env with soak tests
 
@tristan Secure, no. Kernel updates need to be applied and security updates need to be applied, but we don't need to be pushing the latest major version of every piece of software.
 
user559633
yeah, because you'll run python 2.7.2 and not install from source.
 
you realize even with python, there are security updates that don't get backported, right?
 
user559633
@davidism I mean this in the least offensive way possible, but you don't know what you're talking about.
 
LOL
 
2:48 AM
@tristan When you manage thousands of servers, you learn that installing from source will only lead to tears.
 
user559633
lollll so you run old python @Soviero?
 
user559633
i have literally run thousands of servers.
 
@tristan Me too, look up IPsoft, I'm one of the admins there.
 
user559633
if you're making your devs run package manager versions of shit, man, that's just wow.
 
I'm kinda worried, we run our software on ubuntu and py3, and the gov is asking for accrediation, which means only redhat 6 and approved software. can't tell if that includes all the packages in the virtualenv too
 
user559633
2:49 AM
ipsoft.com is ranked number 461187 in the world according to the Alexa Traffic Rank.
 
@tristan IPsoft isn't a web site, it's a server management and consultant company... Why would you have looked up Alexa?
 
basically, if it does, we'll either have to roll our own for everything, or rewrite everything in java
 
user559633
ahha because you're making these claims and then saying these ridiculous things that run counter to actual things you need to do as an admin at a legitimate business
 
Let's just agree there's more than one way to run a server and who can really say who's right, and move on. Hint hint.
 
user559633
@davidism no, this is legitimately fun for me
 
user559633
2:52 AM
:)
 
@tristan I have worked at more companies than I care to admit, and I've literally never seen any of them run anything other than CentOS/RHEL.
Don't get me wrong, I love Ubuntu/Debian and used Debian testing on my workstation when I was first starting out.
 
user559633
Then you haven't worked at legitimately big shops. No one uses RHEL except universities with crap admins or small gov installs. CentOS is okay, but it's by and large not some universal standard.
 
user559633
lol that statement and implying that debian is for "testing" or "starting out"
 
user559633
god, this is cute
 
You think chat.so asks for confirmation when I click "kick-mute this user"? I could find out...
What I really want is custom kick messages, but I don't think there are
 
2:56 AM
@tristan Dude, maybe it's a regional thing, but like I said, at my current company we have 1,500 employees across the world, and our clients include Cisco, Accenture, etc. They all run RHEL/CentOS.
 
Anecdotal evidence about "never seeing it another way" is not an argument for doing it that way.
 
user559633
@Soviero if you're running RHEL/CentOS and not repackaging source for users, I'm going to start pitching to Cisco, Accenture, etc.
 
user559633
I'll say this and then shut up: there's a reason why google and facebook use debian variants.
 
@tristan Please, be my guest. I don't foresee that going well. And no, we don't compile anything from source, it's all straight repo because that's what makes the most stable system over the long term.
Bed time, got to go
 
user559633
haha oooooof, "insecure is more stable"
 
user559633
3:01 AM
anyone written python for windows rdp?
 
3:23 AM
When you say noone uses RHEL, do you mean noone uses Linux, or noone uses that distro of Linux?

Because in my experience it was the goto distro for big enterprises that migrated over.
 
he means that distro, stop having this conversation
 
user559633
everyone use windows server 2k
 
user559633
and java enterprise
 
4:16 AM
+1 for "stop having this conversation"
 
4:40 AM
hey hi all'
 
Hi @Hariprasad :-)
 
 
1 hour later…
6:09 AM
Cbg
 
cbg
 
The Planet of the Cbg.
 
cabbage
Potato?
I'm baaaaaaaaaaaaaaaaaaaack
I was on vacation
Where's Jon Clement?
Where's everyone else?
Where's Inbar Rose?
Come one people where are you?
 
Those are python guys?
We're RoR here
 
6:24 AM
Wait I thought this was the Linux distro discussion room!?
 
haha good try tollers
I've probably been here more than all of you
and you trying to troll me?
Not funny at all :(
* -_-
 
Mate I never try to troll. My two quantum states are light-relief witticisms or maximum trollage
 
mate I like you
I'm Andy BTW.
 
This fact fills me with joy. I'm Ffisegydd btw :P
 
I'm tired
too much minecraft
 
6:36 AM
Nice meeting you man, You'll see me around here often from now on
 
davidism here will testiify to this being the Linux distro discussion room though!
 
I used to come here daily, but I was on vacation
 
@A̷n̷d̷y̷ wow you really have been on vacation, for like a year.
 
Welcome back then :-) Can't say I've seen you around, but then I'm notoriously unobservant.
 
yeah, probably davidism is good at maximum trollage.
 
6:37 AM
I'm not sure what's going on with this conversation...
 
@ZeroPiraeus yeah, same here, but I know lots of people on here
 
I've just woken up so I'm only partially awake.
 
Cbg
 
btw as to Inbar, he hasn't been seen for months. Jon is still about though.
 
cabbage
 
6:38 AM
cbg @va :-)
 
7:06 AM
cabbage, snake lovers
TGIF and then some
 
Hi there
Am using scrapyd for running multiple project
If I run the below code
scrapyd-deploy -l
its shows scrapyd http://localhost:6800/
scrapyd2 http://scrapyd.mydomain.com/api/scrapyd/
but
scrapyd-deploy -L scrapyd
is nt showing the project list
wht I have to do?
 
7:49 AM
cabbage
 
@limelights cbg
 
@Veedrac you have the same example for 55 and 50 here.
Or maybe I don't get your answer :(
Solely because of my limited knowledge of English
 
8:24 AM
@vaultah Yo!
Hopefully that's fixed
 
morning, comrades
 
Hellow
 
Yeah, I don't get your answer D:
 
Well, that means my answer is bad
Do you understand how a hash set works?
 
I personally don't agree that you should be answering this question there. If it needs its own answer than surely it's not a dupe, in that case open it and answer it.
 
8:33 AM
@Ffisegydd I know one thing and that's that ninjas hava katanas
 
I always preferred Wakizashi myself.
 
I have actually discussed it (briefly) with Martijn and he disagrees. I'm more on the fence.
 
@Veedrac I thought I do. Your answer isn't bad, people upvote it, so I think most (if not all) of them understand it.
Aand I upvoted it too
 
@vaultah They could just be upvoting it because it's long :P
Do you have a part that starts to confuse you or does the post start out that way?
 
Nvm, I will try to understand how sets work on my own :P
 
8:42 AM
OK. If you do have suggestions, though, I will rewrite things
 
9:02 AM
cbg
 
cbg @Jon
 
@Ffisegydd STEWIE!!!!!!!!!!!!!!!!!
just forwarded you an email
 
@Jon BRIIIIIIIIIAN!!!!!
I have received said email.
I think just play it by ear as and how it goes.
 
as you choose
 
Sending a reply anyway. It will contain kittens.
 
9:18 AM
cbg @Martijn
@Ffisegydd eating kittens is bad apparently
 
Well I've sent it anyway. Please don't eat it, it's far too cute.
 
cbg(all)
 
@Jon you ever gonna send me that df? :P
 
> cbg hi/back // OK... but why 'cbg'? :-|
 
9:25 AM
i copied it fro there...
 
It's short for 'cabbage'
 
aaah! thanks
just translated 'cabbage'... confused :-)
 
It's a vegetable.
 
ok, don't mention it
@Ffisegydd yep...
 
@Ffisegydd email replied to - albeit it without kittens
 
9:28 AM
D: poor kitty...he was so cute...and how he's been eated.
 
"how he's been eated"
just so much wrong with that sentence
have a feeling I went out last night
 
@setevoy Cbg() is the Python3 version, but no one uses that
 
@RobertGrant it is cbg() not Cbg() and => I am not no one
(although I'm still not sure if it is KevinScript or Python 3 :P)
 
cbg() is the standalone method but if you need to create a cabbage generator then you can use the Cbg class.
 
that also makes sense..
 
9:34 AM
Using Cbg() is more efficient if you need lots of cabbage, as opposed to calling cbg() for each one.
 
@Ffisegydd help(Cbg)
 
heya @MartijnPieters -- was I right? did you left your office computer on? and someone trolled from it in the middle of the night? ;)
 
Example usage.
from sopython import Cbg

c = Cbg()

c.cbg(person for person in room)
 
@PeterVaro Yup, I leave the office laptop on and it reconnects at 2:30 and 6:00.
 
9:37 AM
@Ffisegydd we have a Cabbage class?
@Martijn not me going mad then
 
A classy Cabbage class.
 
I am not responsible for my night-time AI persona, that's a different program.
 
I've seen 2:31 and 6:31 connects
 
If you were trolled, I'm sure you deserved it. :-P
Right, I didn't look up the times, I was going by chat responses here :-P
 
no, your account has been :P but it was only a single message, I wouldn't call it "trolled"
@Ffisegydd isn't it: from salad import Cabbage as Cbg ?
 
@MartijnPieters (after months) I finally had the time to listen to Supersister -- for me it is very similar to Weather Report, but the latter has stronger roots in jazz while the former's roots are in rock IMHO
but I enjoyed it, so thanks
 
Glad you enjoyed it!
 
10:11 AM
cbg again
@MartijnPieters yeah... we were kind of hoping you wouldn't have noticed that... come back to the AI lab... we'll give you a slightly lobotomy and everything will be fine... honest :)
 
Morning fellow cabbageers
 
cbg(@IntrepidBrit)
 
@IntrepidBrit hi
 
How's the room faring today?
 
@IntrepidBrit we're "faring" well... someone complained about an iceberg, but we're still full steam ahead!
although... that gigantic white thing off starboard... they might have had a point
 
10:22 AM
Just a failed shaving foam experiment methinks
I reckon we could sail right through it
 
@IntrepidBrit ahh good... let's increase engine power and do that... should be a laugh
 
Give that couple of lovebirds pratting about at the bow of the ship to laugh about...
 
As long as Kate Winslet survives - I don't care :)
 
@JonClements I'll bring my (sharp) gear then.
 
10:38 AM
@PeterVaro I'm also not no-one :)
 
arghgghh... hoping @Martijn's "safe code" still works... he's so advanced though, he may have disabled it
 
@RobertGrant then we are the not-no-ones :) hooray!
@JonClements :D:D:D
 
cbg
is it true that one cannot do patterns, dotted lines with PIL(low)?
sucks big time
 
Does anyone happen to know any good software for creating flow diagrams?
 
10:52 AM
I'm not sure if I want to cry/punch the wall at one of my company's finances
 
I've been spending too much time around Python; I read that as Py/crunch
@Ffisegydd visio
 
@RobertGrant lmao :)
 
Ooooh Graphviz does it.
@Robert cheers, I'll check that out as well. But if I can do it in Python then I will because I'm a Python addict.
 
Yeah if you don't have Visio then don't use it, as I think it's pretty expensive :)
 
Ah right ok, I should have mentioned "free" :P
I could probably draw it myself in iDraw but I thought I'd try a dedicated program/package.
 
10:55 AM
@Ffisegydd I like gliffy.
For doing a wide range of vector graphics diagrams
 
FFF asked for good software for creating flow diagrams,
what does it have to do with visio? :D
 
Visio is da bomb
Although to be fair, I've not tried anything else
Although to be fairer, when I don't like an MS product I always try something else
 
I'll try PyGraphviz. And if that's not very good just draw it myself in iDraw.
 
so
is it possible to do dotted lines with pillow
 
11:16 AM
 
@PeterVaro do you hate pillow more than me?
 
I only know one pillow -- and that is on my bed now.. and I actually love it ;)
(I know you are talking about the python package -- but I'm not familiar with it)
 
Not physically, I hope
 
arghghghg... can't find my USB stick with the keys on it
oh b*gger - what would I have set a password as then... fun guessing time games...
horrible feeling I disabled password logins though...
 
This is why you should write your keys down on a (long) piece of paper.
 
11:27 AM
If only there were a machine to automate that writing process
 
@Ffisegydd that'd mean going to the safe, working out where I put the key, and remembering the combination
 
Or just chuck it in the cloud and hope no-one finds it and the thing it's for
 
woot... proxied via one server that I can remember details for, reset a password... yay me
haha, and the USB stick was just behind the kettle... vote Jon for security expert of the year
3
 
11:43 AM
@veedrac I re-read both of your answers and now set order is perfectly clear to me. Thank you :)
 
11:55 AM
I like printing my access keys on paper with a QR code
So that I can transfer my ultra-secure key onto an unsecure android device. Like a pro.
 
I like sticking my hand into the oven then blaming it it's hot :)
 
Stupid oven
 

« first day (1448 days earlier)      last day (3517 days later) »