« first day (858 days earlier)      last day (4313 days later) » 

00:26
@isedev Definitely a big second there. I'm right out of college and very glad I had several real world internships throughout school before my first job. Most school assignments are toy programs meant to encapsulate the current lesson and prove a point. Nothing like being handed an uncommented 10k lines code file in a system I'd never touched and asked to do some major revisions.
@SeanO'Hollaren far more fun then simple assignments though, hey? :)
@JonClements Oh definitely. It's a very different feeling when you write a program that does something. Especially writing good code that's going to live for years. Pretty neat.
I like that programs I wrote 15 years ago still are in production use - I certainly wouldn't write them that way again, but it's pretty cool they haven't gotten around to being re-written or scrapped!
Something about knowing that even as I'm sleeping, my code is toiling away out there somewhere...
On the other hand, it's particularly frustrating when some anonymous code in a server room causes problems for you, and you know it's your code.
00:38
Haha, still waiting for that to happen. I'm sure it can't be too far away.
haha.... yes - not quite so much fun when things break... but a great learning experience
I managed to avoid it for most of my career by carefully working only for startups who went out of business within 3 years of hiring me, but somehow one bigger employer managed to survive my working there…
So far...
So now, every time I watched a streaming video on the internet and it calculates the buffer length wrong and it keeps pausing in the middle of my video, I know exactly what's wrong, and how I could fix it if I'd rewritten that piece of code instead of patching it up…
Wow - taken out of context, that would look lousy on your CV: "working only for startups who went out of business within 3 years of hiring me"
00:41
@abarnert So that was you!
so they were doing absolutely fantastic before they took you on then? :)
Well, most of them were new startups, and it's pretty much impossible to tell whether they're doing absolutely fantastic or burning through all their money in 3 years until 3 years later…
I've only ever worked for fairly established places. It does seem like there'd be a cool kind of excitement and investment at a start up.
I like start ups
@SeanO'Hollaren: Well, the original bug was a whole lot worse, but I did the easy fix "just for now" and added "rewrite that code properly" to the bug database, where it got rescheduled repeatedly until… I don't know, it still seems broken, and I left the company 3+ years ago, so I guess until we have flying cars or so.
00:45
Car's do fly - you can launch them from catapults
Startups are definitely more fun. As long as you go in expecting that all those options will probably be worth less than the paper they're not printed on, and knowing that you'll have to work through some crunch times, and eventually you'll probably get laid off (which is better than the old days, where they kept you there but started writing checks that bounced, and then offering to give you spare servers in exchange…)
@JonClements: Now that's the kind of out-of-the-box thinking that distinguishes a real programmer from someone who can't solve the FizzBuzz problem. :)
heya @RyanThompson welcome
@abarnert I still feel gutted that strapping buttered toast to the cat and throwing it in the air didn't cause it to hover :( (also, the cat seemed a bit peeved off - it could have gone down in the history books dag nammit!)
Wait, are you trying to solve the flying cats problem rather than the flying cars problem? Or trying to abstract them into a "flying things that start with c" problem?
Of course once you have cars strapped to catapults, and flying cars, and a rule in your logic database that says that cat is an abbreviation for catapult, I guess they are the same problem.
Strangely, I'm now debating a new invention that will win me love from the canine community.... the dogapult - which can be used to launch cats
Wait, does that imply that the catapult is supposed to launch dogs? Because if so, I've been doing it wrong this whole time.
00:52
No, the catapult launches cars - silly!
are you following this conversation!? :)
Awesome - just seen an email from an agency I use - asking me how I'm getting on with a contract I finished 2 years ago
Almost as good as when I left a job and the same agency who'd gotten me that job tried to get me to apply as my replacement.
@abarnert Well, look on the brightside - even if you lost, you'd still have a job :)
Which is why I use most siege machines, including catapults, primarily to launch recruiters at competing recruiting agencies.
I wonder if all this complete random non-sense we're spurting out, could have (were it several years ago), lead to the development of Angry Birds or similar :)
Well, no, I think that came from someone playing "Crush the Castles" and thinking, "Man, I wonder what would happen if I made the exact same game, but not free?"
00:56
Oooo, that's a point - need to dig out a hard drive with a load of Speccy/Commodore/Amstrad/NES/SNES etc... etc... games on it
Well, Space Miner was one of the biggest iOS/Android hits ever, and it's just Asteroids, right? And isn't it time for the next generation of Breakout/Superbreak/Arkanoid/Peggle soon?
Indeed.... I still love the old break a joystick or destroy your keyboard games by hitting zxzxzxzxzxzx as quick as you can
(sadly these days, I'd be more inclined on not purchasing another keyboard, and just write a program that sends key events to the window)
I remember putting a pencil across my fingers to run faster in Olympic Decathalon on the Apple ][. I can't remember exactly how we did it, except that it broke a lot of pencils, and one keyboard, and almost one finger…
01:12
"almost one finger" - wow - serious gaming :)
Well, 9-year-old fingers heal pretty fast. And what kid wouldn't want a splint that forces him to flip everyone the bird continuously for a month or two?
But the amount of injuries are greater now, what with Kinect and the Wii and dance mats etc... etc...
Twister is dangerous enough (and strangely only contemplated for "enjoyment" after a few too many shots of something high %)
Yeah, probably true. They don't have to put scare stories about "Space Invader Thumb" on the news when kids have familiar ailments like "actually broken shinbone".
I also don't like gaming anymore... I was thrashed at Mario Kart on the Wii by a four year old
@abarnert That's what it seems like. Exciting, uncertain, somewhat scary. I'm hoping to try a start up kind of environment before too long.
01:21
@SeanO'Hollaren it's worth doing once at least - see how you like it
Oh sheesh - this is going to be the longest "get 63 rep" ever...
01:54
:)
02:10
I bid one and all farewell for the moment... will be back shortly
 
6 hours later…
08:31
morning
any one know how to run paython script on website i already waste my 1hour with google and different sites
done
friends did u read my above question about python
@andho yes python
;)
great and what about ruby ?
actually m trying to make linkedin app
any one have knowledge of python ?
@andho check this https://developer.linkedin.com/documents/quick-start-guide#toggleview:id=python
i just want to accomplish this
in the above link there is python code and they says its output result but instead of this it output same text
08:54
10 messages moved from PHP
thanks @PeeHaa
yeah but its only there not in advance coding of linkedin app
nice
lol
@PeeHaa i guess u have good knowledge of python
5 messages moved from PHP
@PeeHaa do u have knowledge of python ?
09:55
Hi @DanishIqbal you were posting in the wrong chat room. Now you are in the python chat room, what is your question?
10:39
Hi @all
I’ve found this package : pypi.python.org/pypi/defusedxml/0.3
It sounds like "Everything you’ve done with XML is vulnerable"
Do you have an opinion about this ?
hi
any one ther
m new in python
hi, here I am
great
alexis how are u
fine, and U ?
m fine thank u
i made a file inde1.py which have this text and when open the page its directly output same text
print("Hello, World!")
10:47
in which co
context ?
any solution
means ?
it looks like you’re file is not executed
so I need to know where you want to execute it...
it’s a website on your localhost ?
its a website
did you use a framework ?
nope
i dont have much knowledge of framework
10:52
so you just have a python file on your hard-drive, and you’ve putted the path in your browser, i’m right ?
no i upload this file on webhost
actually m trying to make linkeding app
it’s not the easiest way to begin, IMHO
I don’t now this kind of apps, but there should be some "hello world tutorials"...
i try many tutorials but problem is same
all output same text
i guess there is maybe main problem like m not adding main thing
if you are seeing your print statement, it looks like you’re file is not executed, you may have missing some point
like in PHP we have to add <?php before add and ?> before end
like which file is not executed
10:59
this page describe the basics of python on the web : docs.python.org/2/howto/webservers.html
it does not works like PHP
after that, you’re case with linkedIn is very particular, I don’t know how it works
let me chk this link
is python and cgi are same
?
nop, CGI is a way to execute code (in any language) on a webserver
i got this error
[an error occurred while processing this directive]
when trying example on that i got this error
i use .cgi file with this code
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

# enable debugging
import cgitb
cgitb.enable()

print "Content-Type: text/plain;charset=utf-8"
print

print "Hello World!"

got this error
[an error occurred while processing this directive]
where did you put this cgi ?
11:15
in new directory
i found we have to upload cgi files in cgi-bin directory where i can found this ??
found it :D
i found cgi-bin directory on my domain folder and upload test file with above code on cgi-bin drectory and again same error
[an error occurred while processing this directive]
the way to execute CGI is surely depending of the settings of your server. Did you set up it by yourself ?
no
m using bluehost account
so it should be documented somewhere by your account provider
got it :D
finally my first script run
great :) Now you have all the power of Python in your hands
11:25
i put file in cgi directory then set 755 permissions then it works :D
:D
great thanks
well whats the uses of python
I will be AFK for a couple of hours, have fun
In one sentence : Python can do (almost) everything
oh
nice
thanks a lot man
 
2 hours later…
13:22
sticks his head in.
Hi
Slow day?
Trying to get some work done.
@AlexisHuet +1 aha
@MartijnPieters Courage! Is it working? Are you getting some work done? :p
@DanishIqbal I also use cgitb, so if you ever need some more help, you can ask me (us). Although, MartijnPieters advised me to check some alternatives like WSGI (and I forgot the other name) … a bit harder to make it work (at the beginining) but basically, instead of having Python restarting for every request, WSGI allow your script to constantly run, that's pretty neat (@MartijnPieters am I right? aha)
13:35
I knew this was a mistake....
What's that about?
coming in here :-P
@MartijnPieters It's only a mistake if you want it to be.
@MartijnPieters There definitely are some worse places aha for productivity I mean
At least, we can consider that's a good type of procrastination :)
Productive Procrastination.
13:39
@InbarRose Yeah lol, if you do something else constructive, if you learn things, etc
It's probably better than doing nothing good or playing videogames too much aha
hehe, I like the devs re-using my comments as answers.. :-P
4
A: Exclude URLs from maximum length on rejection reasons

balpha I don't think the custom rejection text is parsed for MarkDown at all. There is no point in inserting a link in it, it's all displayed as plain text, IIRC. – Martijn Pieters 15 mins ago That's absolutely correct.

13:52
Neat :)
A great compliment.
"Imitation is the highest form of flattery" - Charles Caleb Colton (1780-1832)
 
3 hours later…
16:26
has anyone seen my question about defusedxml, which is just before my dialog with Danish Iqbal ? I’m very curious of having various opinions about it...
Here is the post, for the lazy.
I am aware of it.
oh thanks, now I now that there is permalinks for every message...
I am a member of the Plone security team and was informed of existence of the problem.
for the general problem.
I wouldn't say "everything you've ever done with XML is vulnerable". Merely everything you've done that allows untrusted users to send you XML.
16:33
Or - "Ha! I told you it was safer to parse XML with regex"
my work precisely consist to apply various treatment on XML coming from lots of sources
I can trust them just as in a B2B relation... not too much
@Inbar Rose : we have dropped some old piece of Perl with regexs on XML...
2
Q: Special handling for FAQ questions

Lightness Races in OrbitThis came out of a discussion in the C++ lounge today with @casperOne regarding the long-term viability of keeping the c++-faq meta-tag around. Please help me to flesh it out. The problems: meta-tags are bad C++, possibly uniquely, does need this sort of thing though collections of "authoritat...

@JonClements: ^
Reading and understandig this code was not the funniest part
Interesting proposal, relevant to Python too.
@MartijnPieters seconded.
16:50
Definitely an interesting post.
@MartijnPieters I'm for the there are too many questions and too many people and we should just get drunk
(and then play pass the shuriken!)
\o/
That is totally becoming the channel meme.
goes to get the whiskey and shuriken.
exactly - I'll get some beers and nibbles.... It's party time!
It's all fun and games until someone passes the whiskey and swallows the shuriken.
What could possibly go wrong?
16:58
@MartijnPieters we might run out of whiskey
We might run out of fingers too.
No, there's more at the bottom of the shuriken drawer.
I think, at least. Reach in there.
Who needs fingers.... voice recognition is so good today, it's quite easy to dictate code :)
@MartijnPieters and.. we could lose all the shurikens, that would be bad!
17:06
@InbarRose I just liked Daniel's last sentence :)
@InbarRose Not if you do your best to catch them!
We'll play it indoors, shall we?
Well - we'll start off with just one - then when everyone's got the hang of it, we'll introduce more, and see what kind of pattern we can get going...
And once we get good at that, we try it again. Eyes closed, this time.
17:22
Funny, I hadn't picked Pythonistas as particularly sadomasochistic, really.
I guess it's the addition of getting drunk that does it for us..
Let's make it interesting - every time you drop a shuriken, you lose a life, and after 5 lifes are gone, you've got to commit Seppuku
I'll set up the shot glass chess set as well - that's normally good for a laugh
Given the theme, I guess it'll have to be Yamazaki or Yoichi.
We should also film it, and see if we can't make a few quid on youtube to pay for the drinks and snacks
If you are going to get drunk, do it in style.
Just a fun night. Shot glass chess, maybe some movie trivia, ritual suicide...
17:29
@SeanO'Hollaren exactly - what better way to spend time - welcome to hardcore programming ;)
@MartijnPieters Cool.... I love the fact they've had to put "contents not included" for the glass :)
@JonClements: So, how much dough could a YouTube vid net us? Enough for a few cases of Yamazaki + those snacks + a decent set of Shuriken + a watered steel Katana (plus decent whetstones, of course, don't want to commit Seppuku with a dull blade, now, do we?)?
Oh, perhaps enough for a Masamune blade.. that would be awesome.
Well, we could do a parody of Gangnam Style called Python Style and hope it goes viral - then we could rent a place in Japan and fly the channel there for the event...
The event. Ominous.
17:36
Oh came on - it's hardly Battle Royale - we'd leave that until after dessert
IMHO: we need to play en.wikipedia.org/wiki/Arimaa
Awesome game for programmers, a game that is almost impossible to program :)
Oh, that looks interesting..
Need to get my son interested in that one.
Mind you - the fella's had to cough up a fair bit of prize money ;)
Ooo, there's an online client - who's up for a game LOL
18:12
Is it just me, or is this question too vague to comprehend?
0
Q: How to add all catalog using GIT witout .pyc file?

MediopolisHow to add all catalog using GIT witout .pyc file? git add catalog_name git commit -m "Update" git push What add and where?

Ah, someone seems to have parsed the question, there is a plausible answer now.
Wow, that was impressive.
Yeah. That's pretty much what I would have guessed as well ... I'm still not sure if the answerer guessed correctly ... I'd need to brush up on my git a little.
The answer is correct if the OP was wondering about ignoring .pyc files.
presumably catalog is a mistranslation, and a directory was meant instead?
Ahh - that looks like something that could go wrong :(
Is the directory already in a git repository though? Does it make a difference if the directory isn't in a git repo and you want to turn it into one?
(That's where I wasn't sure about the question, or the answer).
18:31
Today is not my day.
There's a Martijn day?
Umm, that's not fair - there should be a Jon Day as well then
Can I have a Matt day?
If you win pass the shuriken, then yes - we'll let you have a Matt day ;)
What are the conditions for winning?
Having most of your blood still in your body?
18:45
That or retaining the most bodily appendages I guess
Fair enough.
 
1 hour later…
19:58
thanks to @InbarRose, the Python now has a high quality and active SO room
@MartijnPieters thought I'd see that question before- remarkable though you're the only one that got it correct :)
didn't know about these
127
A: Add data.SE style "magic links" to comments

balphaMost of these now work. My comment below has the following markdown source: On [main], you are expected to write proper English (as advertised on [english.se]), but here on [metaso] it's more important to have freehand circles, so please [edit] your post, otherwise I'll have to flag you (see ...

veri veri naes
actually I did (judging by my previous upvote on that post) but forgot about the feature
Interesting - I wasn't aware of those :)#
nice, it works on chat too!
[accept]
20:53
Interesting demo of a dev's custom-made 3d modeling software: youtube.com/watch?v=DPIA2g8T6Hw
Lately I've been doing some work on a project that involves a graphical interface. There's an unfortunate amount of manually specifying the coordinates of each element.
At some point, it makes sense to write a tool to do the pixel plotting for you. I'm not sure where that tipping point is, though.
My application has fewer than two dozen elements, so I think I should just stick to the manual method.
@Kevin woah
That's actually really impressive
21:09
It's extremely neat when he modifies the wireframe in the modeling program, and the object instantly changes shape in the game.
Is this tool available to public??
The description says that the tool is open-source
Doh! I only noticed that there was no link in the description without reading it
but I think I found the official (maybe) website
I recall hearing a story about the early aviation industry. Early pioneers had a lot of difficulty making progress because it would take months to make a prototype, only for it to be rendered useless the first time it failed. One guy came up with a way to develop prototypes in mere days, and an explosion of innovation followed.
The lesson being, a tool that delivers immediate feedback is very valuable.
I'm having difficulties with python - anyone available to help?
21:17
It couldn't hurt to post your problem, in any case :-)
0
Q: how to draw on a matplotlib canvas created in a different class

GriffI have two classes: one initialises the display and sets up the canvas and the other does the calculations. In essence: class CreateCanvas(HasTraits): display = Instance(Figure) def _display_default(self): figure = Figure() ax1 = figure.add_subplot(111) ax1 = figu...

Though, I've learnt not to refer to a plot on a 'canvas'.
Well it is fundamentally, how to make an object available in another class.
I don't know much about the libraries you're using, so I can't say much.
what about using objects between classes?
Why do you have classes named like functions that do a whole bunch of work within the class definition?
an instructive tutorial or link?
21:24
But it's peculiar to me that the first class is named CreateCanvas. classes are usually nouns, and functions are verbs.
'a whole bunch of work'? the default method just initialises the canvas
So that canvas would then be shared among all instances of CreateCanvas. Is that intentional?
What is "the default method?" You're creating singleton class attributes like display, ax1, etc. while defining the class CalcPlot. (And then, even stranger, hiding CalcPlot.display with an instance attrribute of the same name in the __init__ method.)
ok how about this... I merge it into one class, how would a parent class call an individual object. i.e. the display? say I set a variable = X in the class, what would it look like to use that object in a parent class
In general, you don't pass things between classes, you pass them between instances. And the way to do that is… to pass them. Whoever constructs a CalcPlot instance, pass a canvas. Then, in CalcPlot, you def __init__(self, canvas): and do a self.canvas = canvas.
21:27
the reason it is like this is because both of these are used by a main.py script to create a GUI
Can you describe what each class represents, and what each instance of each class represents?
refresh that page - i made one class
now this will work and draw to the figure
but I want to use that same figure to plot new points in a different class
I need to pass the display instance to that other class
OK… still, why is display a class attribute? Why do you CreateCanvas at class creation time? Why do you hide the display class attribute with an instance attribute at __init__ time? Or, more basically: What does the class CalcPlot represent, and what does each instance represent?
sorry I changed it.
I saw your changed version and my questions are for your changed version.
21:31
the CalcPlot represents one part of the a GUI I'm constructing in Traits.
I have a master main.py which imports this script and creates an instance of CalcPlot, which contains a matplotlib figure which is embedded into the GUI.
… and? How does that answer anything? If you look at the traits tutorial, they have a MakePlot function where you have a CalcPlot class.
OK, if each instance of CalcPlot contains a figure, why are you constructing the figure as a class attribute? This means you're constructing it too early, and it means all instances contain the same figure.
I think you need to read a basic tutorial on classes and instances, because your confusion is at the basic concepts, before you get to anything matplotlib-related.
yes I want them to contain the same figure - so I can clf() and draw new points without creating a new plot
good reference?
Hey Python people. I was wondering if I could have anyone's opinions on documenting classes. I guess I'm looking for something like the Python equivalent for JSDoc. I think the Google Python commenting guide is pretty good but I don't know if it's overkill to add it it every class or method. What are your thoughts?
22:39
#python IRC channel currently has over 1200 accounts logged in!!!
we got 10... we need ta do some work
23:20
@Tshepang it's not about the number but the quality .. aha! lol idk
To be here, you need at least some reputations points also
only 20
and this room, before being 'reborn', used to be quite bad actually
So, gotta be careful, kinda, I guess :p
it used to be rather dead
with a whole bunch of 'is anyone here'
anyways, SE chats are waaay underused
in this room alone, I have, for example, seen a bunch of high-rep users who state '1st time in SE chat''
weird
yeah, as you say ..
23:51
Oh, I didn't even realize there was a rep requirement. I guess that keeps the "how do I use variables" kind of questions to a minimum.
Yeah, I hadn't set foot in a SE chat before a few days ago. This is an incredibly nifty set up.
Yup - less rep. required than for commenting though ;) (which strikes me as slightly odd, but oh well...)
Yeah, I guess that is a bit weird.
well, chat is 2nd class citizen, and given the aversion to comments by some SE keepers...
Although I have noticed that under the room "Access" tab, it's possible to grant explicit write access to users....
@AlexHammel heya Alex - welcome
*Even when this room is read-only or their reputation is too low, these users will be able to talk in this room. * - never tried using it though

« first day (858 days earlier)      last day (4313 days later) »