« first day (1712 days earlier)      last day (3228 days later) » 

ic
 
user559633
@corvid your tasks have gotten...specific
 
So I recently finished codingbat. What other online coding practice websites do you guys use/suggest? Preferably ones with smaller problems an in-browser interpreter, basically so I can mess around with it at work : p
 
Look for copy-pasted homework questions on SO. Do them, but don't post an answer, because the OP must learn to walk his own path.
 
I'm looking at codingabbey right now
 
8:05 PM
I just told an OP the cause of his problem, but did not present a solution. He replied with "that sounds logical, I'll give it a try, thanks". hmm, what exactly is he trying right now?
 
what about metal acappella?
 
Instant lol at 0:16 when the "bass" starts
 
riddly-diddly-diddly-diddly
 
user559633
it's like metal ned flanders
 
user559633
diddily diddily dum dum diddly bo diddly
 
user559633
 
user559633
^amazing post rock
 
Bands with female vocalists are great, too bad there are so few in metal
 
@corvid Reminds me of Kamelot. youtube.com/…
For some reason
 
one of my friends opened for Kamelot with his band
 
That's cool. I'm not really that into metal, but I listen to one kamelot song when I work out.. Which is never, but still, it's the thought that counts
 
8:13 PM
Ah, OP interpreted "this won't work if you do it in one function" far more literally than I intended. My fault, really
He split the function into two functions, and had one call the other. So it's technically not all done in one function, for certain definitions of "in"
Tk doesn't award points for trying, though
 
DSM
So I've spent the last few days applying a colleague's model to this data unsuccessfully. I'm coming round to the view that a particular coefficient I've been trying to fit isn't even necessary, and the only reason it works in most of the cases is because in all the cases but one it's degenerate.
 
@Kevin .recommend_something_to_watch(to = @PeterVaro )
 
Uh uh uh. Secret of Kells. First thing that came to mind.
 
I totally forgot that one coding practice site I used to use before codingbat :( I think it's gone now.. I gave up when I couldn't figure out making a recursive binary search algorithm. I guess I'll move to codecademy
 
Bagpuss.
 
8:17 PM
May or may not be available online, because I don't remember paying for it.
 
@Kevin I skipped that for some reason -- maybe I didn't like the style of the drawings?, I don't know -- worth wathing it, you say?
 
@Dracunos I would skip codecademy. Unless they've gotten a LOT better, I found them super frustrating and not helpful at all.
 
I think its style is its strongest point, so maybe not, if it didn't grab you
 
hmm.. hmm.. well, if you recommend it, then I have to append it to my list
 
@MorganThrapp What do you suggest? I'm looking for something with an online interpreter that will automatically verify the practice code, like codingbat
 
8:21 PM
@Dracunos CodeWars was pretty fun.
 
@Kevin anything else?
 
I'll give it a shot, thanks
 
Um... I watched Porco Rosso recently and it's got some terrific visuals. Makes me wish I was a WWI fighter pilot.
 
Singpath! That's the one i used to use.. But my work internet has it blocked now : (
 
If I flagged something as a dupe, but op later clarified that it's a dupe of a different question, is there a way to change what question I'm linking it to?
 
8:26 PM
@MorganThrapp you won't be able to re-flag as dupe until the flag gets cleared one way or the other...
 
I love Miyazaki's proclivity for mixing tranquil backdrops with dire circumstances. There's always a war going on or giant animals attacking or something and then suddenly you're in a glittering lakeside meadow and oh, the God of the Forest is here and he wants a taste of your salt lick
 
@JonClements Ah, okay.
 
You're probably better off leaving a comment stating that you think it's a dupe of xyz - then other people can use close votes if they agree
 
8:29 PM
cbg
 
cbg
 
@JonClements He asked me to clear it, so I left a comment giving the correct dupe post-clarification.
 
You guys are weird enough that I have a feeling you might like mindless self indulgence
 
God damn buses are useless in this city.
 
Grappling hooks are a much more effective means of travel in the city
 
8:36 PM
prefers cannon
 
@MorganThrapp I closed as the clarified dupe - your flag got marked helpful automatically
 
@JonClements Great, thanks!
 
hello folks, can some one please help me. I will be thankful to you.
My text file contains the following line;

{-150.00100708007813 -150.0 -150.0} {150.96499633789063 150.0 150.0}
myfile = open("box101.dat",'r')
for line in myfile:
print(line)
on typing line gives me;

'{-150.00100708007813 -150.0 -150.0} {150.96499633789063 150.0 150.0}\n'

How I can convert the line into two arrays as follows,

a = [-150.00100708007813, -150.0, -150.0]
b = [150.96499633789063, 150.0, 150.0]
 
Muhammad, must your file contain everything inside a line?
 
[item.strip('{}').split() for item in re.findall(r'{.*?}', data)]
 
8:47 PM
yup, this is one line containing everything.
 
@Kevin looks nice enough ;)
 
rhubarb all
 
@davidism slight change: [item.split() for item in re.findall('{(.*?)}', data)] - don't need the strip if you put the capture group in the re
 
code moves, tests fail.
 
8:49 PM
@JonClements sure
also need to convert to int...
 
Yeah... convert to float :)
 
well you just have to be right, don't you?
 
+1 !
 
I am getting an error ;
NameError: name 're' is not defined
 
that's too clever, it doesn't create a list of lists
@MuhammadSajidIqbal import re
 
8:53 PM
oh - thought I saw a nested [] in there.... imagination's play tricks on me obviously
 
@davidism, jon. great! it works. thank you a lot my friends.
 
[[float(value) for value in item.split()] for item in in re.findall(r'{(.*?)}', data)]
That one gets the list of lists.
 
@davidism in in
 
Just got this from a recruiter, think they're using enough web scale?
> Currently we are using PHP, HTML, JavaScript, Python, NodeJS, CasperJS, PhantomJS, BootStrap, Laravel, FrozenNode, MySQL (InnoDB) with Apache for hosting.
@ZeroPiraeus good job, it's an optical illusion: most people don't notice the repeated word. That was only a test.
[[float(value) for value in item.split()] for item in re.findall(r'{(.*?)}', data)]
 
@davidism -1 not enough jQuery.
 
8:58 PM
applause
 
Umm... it mentions PHP - ignore them! :)
 
So how much code so you guys tend to write before you start playing with/testing it? Because I kinda write maybe four lines of code at a time before I have to check it over
 
Testing? The rest of us just write perfect code from the start :p
 
four lines without some kinda typo / error is a good run for me
yam. It's 22:00 and I'm drowning in a muddy puddle of Java. And it's of my own making.
 
My ratio is about 4 errors per line of code. ;)
 
DSM
9:04 PM
Or one in 10 words, which is pretty close to mine. :-/
 
Currently I'm discovering that the library I wrote has some subtle bugs because different banks interpret the files we send them in slightly different ways. So the testing we did with one bank worked fine, but the other 11 are rejecting the file. :/
But only the one bank would even let us test against their validator.
 
DSM
So you're required to code to an API without any feedback until they say "nope, didn't work"?
 
Yup. :) Banks!
Oh, and this system is live.
/killmenow
 
So banks are finally adapting to the 20th century? You're doing cutting edge stuff!
 
DSM
If it makes you feel any better, my chief accomplishment for the day has been
2.87331156439e-16
0.00377659090326
9.14997153416 2.58856316776e-16 0.000345122156892
which is not particularly exciting.
 
9:09 PM
Eh, they're doing their best not to. This is generating NACHA files if anyone is interested
Basically, it's paying with checks over the internet.
 
DSM
Hmm. So you're an expert in wire transfers, eh? Hmmmnn...
 
And it's as dumb as you would think.
Heh. If I was an expert I would be done. I got picked for this project on the basis of "Hey, you're not doing anything, right?"
 
Don't make your base project directory a package!
 
It's not.
That's just the open-source part.
In my project directory, that's in its own folder.
 
Hmm
 
9:12 PM
I just can't open source the code that actually hits our database and puts them in the files.
That library just takes data and applies all the formatting.
 
I like the :circus_tent: in the commit message.
 
I have no idea where that came from. :P
 
I think it was there as part of my first commit or something?
 
Maybe
I thought it was to prevent anyone taking things over seriously
 
9:15 PM
I'm hoping the amateurish quality of the code will stop anyone from taking it too seriously. ;)
On that note, if anyone has any comments (constructive or otherwise), I'm totally open to it.
 
DSM
didYouProgramInAnotherLanguageBeforePython?
 
Yup, I cut my teeth on Delphi. I thought I got it all in line with PEP8, but I'm sure I missed some.
 
Even though it's really a subfolder of a large project, I'd still make it it's own project, rather than a direct package. Your larger project should be structure to require this package is installed, not require that the directory is in the right place.
 
Ahhh, I never updated the docs.
@davidism That is a really good point. How would I do that? This is the biggest scale python project I've done.
 
Move the Python to a package next to the support files, add a setup.py
 
9:22 PM
Okay. Yeah, I'll do that.
 
Then you can just pip install -e . in your actual project's virtualenv
 
-e? I don't know that option.
 
Editable. It means "the source is right here and I'm changing it, so rather than copying the package, just link to it."
 
Ahhh, okay. Cool.
And would I just pass it the path to my package?
Heh.
 
you point it to the directory that contains setup.py, that's what . is in my example
 
9:25 PM
Okay.
Ohh, I didn't see the .
 
@ThiefMaster I can't believe I missed this, thanks.
It's kinda silly that I've been advocating that, and the one project I contribute to I forget to check.
 
DSM
What're you advocating? not nesting the ref?
 
Anyways, I seem to be the last one in the office, so I'm going to head home. RB Everyone and thanks for the feedback!
 
flask.ext.package is deprecated, the pattern is to directly refer to the package: flask_package
 
DSM
@MorganThrapp: have fun!
 
9:30 PM
Is David a flaskmaster?
 
@MorganThrapp rbrb
 
DSM
Almost there, I think!
 
@davidism Hanging on - unless I'm going mad - are they going to back to the naming that they'd already previous deprecated then?
 
@JonClements: Initially it was flaskext.whatever, i.e. using namespace packages
Then it switched to flask_foo with flask.ext.foo being the preferred was to import it (flask.ext has magic that supports both flask_foo and flaskext.foo)
Eventually flask.ext was deprecated since pretty much all extensions use flask_foo now
 
ahhh okies
 
DSM
9:44 PM
I know I've seen a Q on this before, but I can't figure out the right keywords to find it. :-/
 
DSM
@ZeroPiraeus: that could be it, seeing as how I apparently upvoted Ned long ago. Which is admittedly pretty common :-)
Can I ask what search-fu you used?
Ha, it's not just me:
This has been asked before, I think repeatedly. I'm having trouble finding the dupes, though. — user2357112 2 mins ago
 
@DSM google.com/… and then looking for linked questions in sidebars.
 
DSM
Ah, "dot attribute" was a direction I didn't go in. Live and learn..
 
Actually it was the dupe target for stackoverflow.com/questions/12025531/…
 
DSM
9:54 PM
Hmm, even without that I get a decent target. I guess my variations on float space SyntaxError just weren't the right ones. :-/
 
Don't see any dupe target exact enough to hammer, personally ... and it's a hard enough question to search (as we've established) that many variations is probably a good thing.
 
DSM
Might help if the SyntaxError were more specific about what it thought the problem was.
 
True.
 
That'd be a big ask - you don't even get the right line number sometimes... :p
 
DSM
Searching for some new bed lifts, I just asked myself "getting Frozen-themed bedcovers wouldn't be weird, would it?" Think it's time to go.
 
10:02 PM
I know nothing of the Python parser, but ISTM as soon as it hits the r in 1.real it knows exactly what's happened, and could tell the user.
 
DSM
Rhubarb for all.
 
rbrb
 
Penguins of Madagascar or gtfo
 
rbrb
 
10:18 PM
Hi Guys
is there place here to show an error or maybe the code?
 
Use some pastebin
 
If it's short (up to around ten lines) you can paste it. Use CTRL+K to format code.
 
is a form template but would like to shows my forms.py
 
@DilMac Use CTRL+K to format code.
 
I click ctrl+K nothing change
 
10:24 PM
Also, that's pretty obviously more than "up to around ten lines".
 
Btw is there any reason people in this room don't use pastebin.com actively?
 
@DilMac if you can't work out how to paste properly formatted code, you'll have to use a pastebin, gist or similar.
@vaultah Inertia, probably :-)
 
@ZeroPiraeus many thanks for your help but I haven't used pastebin but I try there if I can make it works
 
I mean even the /chatroom page says "For longer code, use an external paste tool such as dpaste". I understand that there are many paste tools available but is there any reason not to use pastebin.com?
 
there is the link of the code
 
10:32 PM
Not that I know of ... dpaste is written in Python, for what that's worth. github gists / bitbucket snippets seem obviously superior to me, but it probably all comes down to taste.
 
Ah, makes sense. Thanks
 
Yeah, there's something not good about pastebin, but I can't remember what it is
 
Anyway, I'm out. Hunger calls me ... rbrb ...
 
@ZeroPiraeus can you see the code?
 
I mean, it works, it's just that there's a reason we don't recommend it. If only I had written that down somewhere.
 
10:34 PM
Yep, congrats. If someone can / wants to answer, they'll see it too :-)
Bye all ...
 
It would help if you asked a question though.
 
Bye @Zero
 
Bye @Zero
 
"help me with form" is not a question. Also, you just posted that.
 
cbg all
 
10:38 PM
:@davidism OK There are two line on questions. Both has radio button which is not display in the template could me tell me if something wrong with the forms?
 
Does anyone here know the idiomatic way to write unit tests when using pyparsing?
 
halp me with cht plz
 
10:56 PM
Rhubarb all! (this time for real)
 
11:45 PM
Can we add a close reason? Answer requires that P==NP stackoverflow.com/questions/31037605/…
 
can sombody help me building a visual studio project from a .gyp file using google gyp?
where 'em snakes at?
 
There's generally not many people around this time of day - I doubt you'll get someone about who would know an answer :)
 

« first day (1712 days earlier)      last day (3228 days later) »