« first day (2068 days earlier)      last day (3105 days later) » 

15:00
@RobertGrant A conditional expression may look like an if statement, but it's really a different kind of beastie. Each part of a conditional expression must be an expression, you can't chuck statements in there, and you can't omit the else part, since the whole conditional expression always has to evaluate to something.
@PM2Ring yeah I realised afterwards; made perfect sense :)
I just thought pass was magic.
I sometimes wish that Guido had chosen a different syntax for the conditional expression precisely to make it clear that it wasn't some kind of inline if-else block. Eg result = true_expr when condition_expr otherwise false_expr
Use this handy mnemonic: if you try to use a statement inside an expression on your final exam, you shall not pass.
Also Gandalf is your professor because wouldn't that be cool?
Slightly off-topic, but still python-y: Why do package repositories do things like libboost-python-dev and libboost-python1.55-dev? Trying to find the right package and why certain packages exist are an absolute bloody nightmare.
15:14
To punish you.
Actually it would probably be cool right up until the third time he shows up late for lecture and gives that tired "a wizard arrives precisely when he means to" line.
user559633
@IntrepidBrit I'm not sure I understand what you're asking
Well, as far as I can tell from the Ubuntu (ARM) apt-get repos, libboost-python-dev only works for python 3.2 (and below), and this code base requires at least python 3.4 to function
But if you install libboost-python1.55-dev, that is a newer version is compatible with at python3.4 (I think)
And only throw in the fact I've been frustrated looking through reems of equally useless package descriptions trying to find a way around manually compiling the Boost libraries (not fun to do on the Pi), I was just mindlessly trying things (fully expecting to waste my time) until things started throwing new and interesting errors
*Ubuntu 14.04 (ARM) apt-get repos
And now have things working less broken, I wondered why this was the case and how I could have intelligently arrived at this solution
user559633
can you emulate ARM under your OS and package a build?
15:29
Almost certainly, but I think it's Ubuntu 14.04's non-standard linux kernel version that's throwing a spanner in the works for compilation
Wow - a permanent big data Java/Scala role that's £80k-£90k in Oxford. Tasty.
I just need to learn Scala quickly.
Half of the room turns up their noses at such a miserly salary
The other half turn their noses up at Scala
user559633
high Scalability
Fun fact: my most endorsed skill on LinkedIn is Java.
Second fun fact: I've not touched Java for around a decade.
Conclusion: LinkedIn endorsements are probably worthless.
user559633
$112-126k in actually currency. not bad!
user559633
i'd take a job writing scala all day. i say this having written maybe 50 lines of scala in my life
15:35
Yeah I quite liked Scala when I started learning it, but got tempted by Clojure too soon and switched.
What a fool I was
@IntrepidBrit another fact: LinkedIn has been acquired by MSFT
Much as we complain about LinkedIn, they have open sourced some decent stuff
is there a way with datetime, to parse, but ignore a certain field in the passed time?
Another service I'll watch slowly get trashed into pointlessness and later abandoned.
I have a bunch of data that are reported somewhat regularly - basically, let's say a guy is supposed to fill out a form ever hour on the hour, about how many snakes he saw
however, sometimes, he might get bitten by a snake, and might take 15 minutes to attend to the wound, before writing in his report
this means that such reports come in at an offset from the hour
I wonder if datetime.strptime has a way for me to parse the timestamp with %Y-%m-%d %H:%M as the format string, while ignoring whatever the value of %M is
15:39
I think you want the datetime.replace method
basically, if a report has been filed at 2.15 PM, consider it the record for 2PM
saywhaaat?! I didn't know such magic existed!
you sir have just saved I don't know how many countless hours of hair pulling, and regluing onto my head just to re-pull
user924016
hey, I am doing cryptopals.com/sets/1/challenges/4 and so far at gist.github.com/RonnieSkansing/5b1172324cd210edfeac04cd6322d474 .. but not getting the correct output (a decrypted string).. I suspect either I am fucking something up in encoding/decoding or the freq analysis itself.. could anyone be as kind as to point out if I screwed up with encoding/decoding/xor in the script.
I'm having trouble installing pysvn for python 3.5. I've tried uninstalling all the versions I had, attempted registry key changes, and resinstalling only the 32 bit version of 3.5 and not 3.5.1 and yet py35-pysvn keeps telling me it requires Win32 Python 3.5 to be installed.
15:43
cabbage
Is there a better library for SVN than pysvn?
or should I just give up and attempt what i'm trying to do in Java?
@inspectorG4dget the obvious solution is to shoot those who first attend to their wounds instead of that damned report
@Ishmael Are you using a virtual environment?
how hard can it be?
@IntrepidBrit no. Windows 7
15:46
Look into python virtual environments (note, this is a distinctly different concept from a virtual OS), they're a bit of a godsend especially on Windows environments. You can then use pip to install packages and spare yourself some grief.
@AndrasDeak unfortunately, they're not grad students and therefore cannot be held to such superhuman standards
@IntrepidBrit aren't some of those transitional packages or whatnot, that install the actual versioned package for you?
@inspectorG4dget ah, so no silent killings then
@AndrasDeak I'm going to nod and smile and pretend that I understood
then it's the two of us
on ubuntu trusty, libboost-python-dev tells me
> This package is a dependency package, which depends on Debian's default
Boost version (currently 1.54).
Oh gotcha, sorry. I thought you were talking about virtual environments haha.
15:50
No, sorry:D Just came late to the party:)
sadly no. The most I'm allowed to do is tell them that their
Ass kisses and disses are weak lines full of misses
I'll be real with you now so you just can't dismiss this
You've been try-na knock me down round after round,
But inspectorG4dget he ain't gonna stay on the ground

I've been hated and shaded, but now I've been liberated
There's nothing you can do to leave me incapacitated
I research with love and joy, so I am always unafraid
So go away, coz I ain't gettin' paid
I guess the real question i should ask is if there is a repository for Pysvn
I could probably just import it into pycharm
true poetry
markdown is ignored on multiline messages, alas
only code XOR not code, but no links, italics, etc
@AndrasDeak Yeah, that's how I started to (retroactively) piece the puzzle together - but couldn't work out how I would have realised to install 1.55 to get python3.4 support. I certainly wouldn't gotten that from looking at the Boost1.55 documentation.
yeah I guess I can't help you there:D
it's magic
But you've given me another avenue to research, so thank you
good luck:)
@IntrepidBrit don't forget to research with love and joy
15:56
@RonniSkansing This is what I think your problem is: the key you use to XOR the message isn't necessarily in ascii_lowercase.
user924016
@Kevin yea
user924016
I got it fixed a few min ago
user924016
the fix was replacing it for for asciiByte in range(0, 255):
user924016
Thanks alot for taking the time to digest though, appreciated
Beats doing actual work.
15:59
:D
user924016
Ahh.. I was so stuck
There's no way i can install pysvn via pip. it's not even in pip
ftiout
but what am i sending into pip? the source code? the windows kit or?
I could probably get this done faster by installing linux
if that's an option, I suggest that solution
16:10
I don't understand the solution
Unless you're talking about installing linux ;)
@Ishmael that was exactly my point:P
May 27 '15 at 18:48, by davidism
May 19 at 16:27, by davidism
But the real answer is to use Linux.
hmm yeah, it seems that pip might not be an option (although I'm not familiar with these things)
@davidism I can't wait to see how that quote will look like in a few months
I imagine similar to when you point two mirrors at each other.
DSM
DSM
16:14
That always seemed dangerous to me as a kid.
except in this case it's not $USER's silly face in between, but the essence of truth itself
Never do it in the dream world, someone's dead wife might stab you.
it seems we have a multi-class grammar/linux nazi in the room:D
oh wait, that was filtered for davidism
I thought you were the only one with that
let me see:D
@Ishmael You're using PyCharm?
Mar 18 at 15:19, by Andras Deak
use linux;)
:D
16:18
@DSM That's because it is dangerous. At least, in universes that follow narrative causality.
Why do flask questions always seem to have a lot of misunderstandings of JavaScript?
it sounds like something that people start to use without learning the language basics first
whichever language applies
"Imma be a web dev, yolo"
Lotta Morts working even farther outside of their comfort zone than usual, I wager
hey don't bash cargo culting, it works great for wriitng android apps:D
16:26
wince
That article is surprisingly gentle on the subjects it depicts.
Mort is just this guy, you know, and he puts on his pants one leg at a time.
> Mort’s primary job is to frobnicate widgets — code is just a means to that end — so every second spent making the code more elegant takes him away from his primary job.
@IntrepidBrit yes
I often forget that OPs aren't inert black boxes that expel XY problems and ingest free advice
FWIW it's easy to do that
they look like very very dark boxes from the outside
Dense enough that light can't escape their pull ;-)
16:35
@Ishmael Oh baby cabbage. I've started to tug at the edges of pysvn and I don't like what I see. If switching to Linux is an option, then I would suggest that. If you really want to work in a Windows environment then this might be your best chance: stackoverflow.com/questions/25984095/…
@IntrepidBrit k thankx
Time for me to roll, rhubarb folks
rhubarb
17:08
@IntrepidBrit I found something better: github.com/dsoprea/PySvn
It's importable via py virtuaalenv
pycharm...
DSM
DSM
I'm overhearing a crazy argument about best mongodb policies. Time to head off for lunch, I think..
17:26
Run away before you get embroiled
guy sitting next to me decided to have walnuts and potato chips for lunch at his desk :|
@corvid envious much?:P
Nope it's super loud
Time to quit your job and be tristan's lackey.
17:39
Where do I apply? LinkedIn?
I think you knock on his apartment startup's door.
Nothing so pedestrian. In Tristan's sprawling compound, in the deepest level of his treasury, is a single priceless Faberge Egg. You need to take that egg and replace it with your business card.
... or a hologram of the same egg
Note that the laser defense system is of the slice-you-in-half variety, rather than the alert-the-guards kind. Hope you've been keeping up with your pilates.
but if you do that, he might just end up hiring George Clooney instead
17:44
I was debugging a program for 3 hours last night, turned out the program was broken to begin with. I copied it to my laptop, compiled it, and it's running without issues. Turns out the cluster was broken to begin with. <depressed>\o/</depressed>
maybe that's /o\ instead...
or <o>?
in any case, glad it's working now
18:01
anyone here ?
@inspectorG4dget yeah, and I don't need all 300 iterations as usual:P
@Cody nope
@Cody - Current human attendance = 0
lol
>>> lol
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'lol' is not defined
what's up @Cody? :)
I am creating a online compiler. Here is the approach i am using:

1. You write code on the webpage.
2. Webpage transfers the code to server.
3. Server saves the content into a file.
4. The file gets executed as if it is a local source file.
5. The output is captured and sent back to your webpage.

Problem occurs when i want to accept input from user. Please help thanks
@idjaw do you have any idea how can i achieve this ?
18:05
that is extremely broad
there are a number of reasons why you can't get data to send to your server from a web page
I have absolutely no idea which one of those errors is the one you are experiencing
Put the user input in a <textbox> and send the result to the server?
@corvid @idjaw the problem i am facing is when program waits for user to enter something , how can detect this is happening and prompt in webpage to enter something
This seems like two questions to me. one, "how do I alter the behavior of built-in functions when executing a script?". Two, "how do I get my server to asynchronously communicate with the client?"
For #1, the first thing that comes to mind is to use execfile, supplying your own custom logic for input.
You're mixing up your server and client I think
I don't know anything about servers so you're on your own for #2
18:13
@Cody we had a similar system that gave us homework assignments when I was in undergrad. Some of my friends figured out that you could do import os; while 1: os.fork() and crash the server. Watch out: you may need to sandbox your environment to protect from these times
@inspectorG4dget actually i am running server under ptrace with chroot
Let me give you an example:
first = input("Enter first name: ")
print("\nfirstname: " + first)

print("\n------------\n")

last = input("Enter last name: ")
print("\nlastname: " + last)
"I am creating an online compiler." Step 0: don't.
@Cody your question's way too broad, we can't help you as is.
I am executing the above code like this

tom@mypc:~/tmp$ python3 pi.py < n.txt
An online interpreter actually seems like an interesting project, to me. It's something that could teach you a lot, even before you shoot yourself in the foot.
where n.txt contains two names separated by newline
18:17
Just make sure it's running on hardware that you don't mind getting totally erased and then set on fire.
@Kevin agreeed
Actual problem is how do i detect when program is asking input from the user and at the same time show a prompt to user (in a webpage)
If anyone have any slightest idea how to get this done. pls tell
I already answered the first part for you. Override input.
@Kevin this would mean i have do the same for Java, Ruby and other languages
Yes.
If you're litterally saying "I want to do a project, please tell me how to do it", it's time to choose a smaller project.
18:23
override input or create a pipe and use pexpect. But then you'd have to run the script through a subprocess call, instead of tom@mypc:~/tmp$ python3 pi.py < n.txt
@davidism that's your perspective
garlic
mmmm vampires
lol
I'd love to frame and put that on the mantelpiece
then put it
18:31
I don't have a mantelpiece:(
DSM
DSM
That's your perspective.
Hi all
cabbage
Cbg
I'm nearly done with my CS degree and I decided that Python is the way to go.
Problem is now, I've been using Java for the past 2 years and did 1 semester in Python which is just introductory
18:33
That's pretty much how my CS degree went.
I want to learn Python in depth now and start looking at stuff like Django since I want to build stuff in Python
But they pay me to write C# code so I guess I'm not the best template to follow in order to become a Python pro???
DSM
DSM
That Java will serve you well, though. I wouldn't hire anyone who only knew Python.
Also, stuff like Data Analytics and Raspberry cool stuff are mostly python
@DSM Indeed. But I'm not sure where to start with Python. Do I get a book, beginner or advanced ?
Or maybe just a Reference-type book?
that's a good start to learn Python
18:35
I'm interested in web-apps and stuff like analyzing data for now and really want to use Python to build some stuff around these :_)
Thanks @idjaw.
DSM
DSM
@Kevin: for some reason I always associate you with webdev, and I associate C# more with desktop applications. What do you mostly use the C# for?
I usually see C# pop up with web apps
Was actually considering it, but then I realized I'll have to use the Microsoft Stack
Not a big fan
Web dev. 90% of the code I write is inside protected void Page_Load(object sender, EventArgs e) or one of the functions that Page_Load calls.
The .NET world isn't horrible. Every time I've done C# I've enjoyed it.
DSM
DSM
Apr 7 at 19:26, by DSM
When I first started working with C# it struck me as Java done right.
18:41
+1
Lately I've been frustrated by the tech stack. For the last N days I've been wrestling with mysterious build errors probably caused by the team's migration to new machines.
user559633
what's up brodiddles, ladybroddiles, non-gender-comforming-oddidles
Yesterday I was happy to see "0 errors" displayed, and then confused to see "build failed".
DSM
DSM
The language still feels a little, I don't know, busy? Crowded? Like there's just too much stuff there, somehow. But I found it pretty easy to get going.
user559633
@Kevin yeah, 0 errors. Build failed as expected.
18:42
My only recourse is to comb through the build log to see if any of the 300 messages in there give a clue. I already ctrl-f'ed for "error" and that didn't work.
I had an interview.
I feel like I'm in a poorly written murder mystery novel that doesn't give the reader enough clues to figure out the culprit themselves.
They told me they would send me a question to solve in x time.
DSM
DSM
@Kevin: think of it as a very well-written experimental novel, where you're supposed to feel as confused as the detectives.
It was C#. It indeed looks a lot like Java, but there were tiny little changes that I noticed and I freaked out, and failed it badly
I just didn't know the C# syntax.
Also, can C# be coded on Mac os?
18:46
IIRC yes
DSM
DSM
Yep. I even did a fair bit under linux.
I believe the engine was once closed-source but MS reversed that decision some years ago
I was using ubuntu full time. I decided to save and get a Mac Pro. The currency of the country I'm studying was crashing and I got it cheaper than it was in the US.
Couldn't let that deal go
I'm a bit lost right now tbh. Should I just use several languages in parallel, or learn 1 by 1?
user559633
do whatever you want
I mean my list of stuff I should know is this:
Java, Python, JS, Node(maybe), Haskell(maybe), C#
DSM
DSM
18:48
If you're doing web stuff, you'll be learning at least two: one language and JS.
Learn whatever lets you do the most interesting things. (... I guess that applies to pretty much anything you can learn, not just languages)
user559633
what should i get for knuckle tattoos
both hands or just one?
A knuckle!
DSM
DSM
R E A D / T H I S?
user559633
18:49
both
Then you can be like "Kuckleception:!
user559633
@DSM Nice
GAH stack trace is too long
I have become the meow
user559633
[G][O][O][D] [P][L][A][Nner]
18:49
Yea. I have been doing web stuff for the past year and I was using PHP. Come to realize PHP is making me write bad quality code. I don't know why, it's just too easy to write crappy code in PHP compared to Java, for example.
DSM
DSM
You should write a script to find out the best letters to choose, that way you can change what message you're conveying depending on your mood.
user559633
Oh, interesting. I could get little placeholder lines and draw them in
@DSM Just imagine the future of tattoos where you can change the tattoo text with your phone App!
Meh, I just realized that nano tech stuff might actually make that statement true ^
Sounds like a cool future right up until your skin gets hacked
user559633
my priorities are pun quality and a thing i wont regret, in that order
18:52
then, having a feeling of your skin crawling wouldn't just be a hunch
DSM
DSM
Everyone remember this tattoo conversation? It gave rise to some excellent lines.
user559633
yess i knew we've been here before
oh cool. So this is serious tattoo talk. Great.
Skinhack. Scary future ahead people!
DSM
DSM
I just remember that tristan looks like he's an enforcer for a South American gang, and Kevin and me are like "yeah, let's not do that".
18:56
Update since that conversation: I still don't want a tattoo.
Django, Pyramid or Flask?
user559633
@nTuply Definitely one of those. Or a different one.
Which one is suggested?
at this point, it really doesn't mater
user559633
Definitely one of those sometimes!
18:57
Pylons then
user559633
Sure. That's a good one too
Flask is good because davidism might answer your questions. Flask is bad because davidism might close your questions.
That's good to know.
Choose flask if you are an A+ question asker.
Which one has better resources in general?
18:58
@Kevin you know me so well
user559633
They're all fine.
By that I mean, docs, tutorials, people who can answer questions, etc
@nTuply it's time to use your old friend google and start forming your own opinions about that sort of thing
You will learn web development through any of those
Having never used any, my completely uninformed opinion is that Django has more of those things.
18:59
You can even write "hello world" type apps with all of those quickly just to touch on them. Read up on them...see what you like what you don't like.
they all work, they all have docs and tutorials, they all have communities
Pylons seems to be the way to go since I want to have more flexibility but then Django seems to appeal to starters
user559633
'Django has more...things' is it in a nutshell

« first day (2068 days earlier)      last day (3105 days later) »