« first day (1396 days earlier)      last day (3777 days later) » 

00:29
NOOOOO! Robin Williams is dead... meep meep :'(
Apparently suicide - well that's ruined my day... sighs
 
3 hours later…
03:34
> I used to think the worst thing in life was to end up all alone, it’s not. The worst thing in life is to end up with people that make you feel alone. — Robin Williams
5
wow, starred already :)
and cbg, Peter
heya @MattDMo
I've never left ;) but cbg :D
I tend to lurk a lot as well...
may i post link to my question here?
@cyberra if you've already asked it on the main site people will find it there.
03:53
such a simple problem,
but I cv bc not properly asked
04:03
I'll agree with you on that. Especially after the comment "My question is about the logic of the code, rather than the bugs of the code... thanks for your answer though."
it's really hard to understand what i must to do to make work of flask-admin extension well
especially when i need to customize views
@cyberra Please don't add your recent questions to chat. Wait a couple days for an answer first.
@cyberra please read sopython.com/pages/chatroom first. Like I said in my earlier comment, the main page is for already-composed questions. If you've asked it there, leave it there. If you want to discuss an answer to your question further, and the answerer agrees, then chat is an appropriate place to be.
@MattDMo yeah when I first copypasted that code it did have [].join() which does not exist, and was given an exception, then I was like "hmm shouldnt this also say which exception was thrown, or maybe it was supposed to be string but the indentation was screwed" :D
1 message moved to Trash
04:16
I still find it amazing how many people don't realize how important indentation is. Isn't that usually in giant capital letters in the first chapter of all "How to Program with Python" books?
well, it's past midnight here in 'Murica, so I guess I'll be toddling off to bed. rbrb all!
sweet dreeams @MattDMo
05:10
@MartijnPieters hello Martin Peters :P
05:37
"AirConf Week 2 Lineup: Charlie Cheever, Martin Peters, Deep Nishar, Andrew Chen + More!"
didn't go quite like in movies
We are gong have a pycon here by the end of september
I'm gonna be there
Wow, three sqlalchemy questions in a row, easy rep. :)
05:55
My first Pycon ever Yay!
I'm making this question the canonical for "PyCharm unresolved references".
Here's the sopython entry: sopython.com/canon/40
06:54
cbg
duplicate done, delete vote done
@davidism yeeeeeeaaaahhh...
Also that image I just used? I stole from Kevin ages ago.
What the cabbage!?
6 hours ago, by Jon Clements
NOOOOO! Robin Williams is dead... meep meep :'(
@Ffisegydd that is olds by now
06:59
Ah. I was asleep :P
@Ffisegydd you a nerd?
Come on Stewie - catch up... :)
@Ffisegydd see puppy for some example.
A nerd...for sleeping? Then yes, I guess I'm a nerd.
jon obviously never sleeps
07:00
Only because I normally have the radio on in the background... and was just dozing off and thought I'd misheard it... sadly I hadn't
Also had a tweet read out on the radio :)
I see JS had some drama overnight.
The guy has been suspended for a year now
rlemon was in here saying something about that... haven't bothered having a look yet...
Strange - I can't see the tweet in my timeline... that's weird
Oh for goodness sake... how do I get Excel 2013 to display as text a column it's displaying in scientific notation... I've set the format to be text, and if I double click on a cell it then displays correctly... but I'm not doing that for 40k rows
07:31
Umm... creating a new column using =""&A2 - copying it down, copy the column, paste special values over the originally column, delete added column... that cannot be the way to do it... it works... but wow... that's 20 minutes spent just trying to get excel to display a column how I've told it to!
Cbg :)
cbg @Ian (good/evil/neutral)
Oh balls... this is why nothing adds up
the exist reports were buggy, so I wrote another set of reports
there's a bug in my reports as well
Suppose I'd better get ready to eat humble pie shortly
phew - was comparing the wrong reports
07:54
Good day, everyone.
I have problem with utf-8 encoding in Flask using SQLAlchemy.
My code is here: http://pastebin.com/cA5VngZW
At the last line it throws an error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 17: ordinal not in range(128)

I've been searching for a while and no answers found, hopefully You can help me.
If any other info needed, I will tell.
Thank You in advance.
Excel: "An unexpected error has occurred"... Useful...
@JonClements yes, I'm Switzerland today
You've hoarded a lot of money?
08:57
@dpitkevics voting to close you as offtopic - no self contained example
@dpitkevics most probably you have a problem with unicode, not utf-8 encoding.
4
Q: How to solve a UnicodeDecodeError?

909 NiklasI get a strange error message when trying to read non-ascii from the datastore: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) Traceback (most recent call last): File "/base/data/home/apps/s~myapp-www/events.355951895377615944/webapp2.py", line 1511, in __call__ ...

best solution would be to upgrade to python 3 where this mess is gone
;)
@Ffisegydd which guy?
did what?
Dunno.
Something in JS to do with religion
_D
js is the place :D
@Ffisegydd ^
lol
30 reputation by spurious edits and then go get banned in js chat
Full suspended account for a year anyway
09:04
@JonClements yes, I hoard quietly and what anyone asks for my opinion I respond "I'm staying out of it"
i mean go to js chat to get banned sitewide
Ah I see yeah :D
Cabbage!
@terfin cbg!
09:19
@JonClements Potato?
beans - trying to make numbers add up still ;(
now trying some machine learning with vowpal puppy wabbit
potato?
@Antti we should branch it and rename it :)
:D
@JonClements use the "fork" Luke. Fork it!
I'll "make it so!"
09:21
@Antti I tried a bit at the weekend. It's pretty sweet.
beans as well. My wife and I are sick. I work from home today instead of going to work. Also I am trying to convert an ASP.NET MVC + KnockoutJS application into a Django + AngularJS application, for the sake of learning Django. Later on I will do the same with Flask.
Cabbage you beautiful people
hey, it is rude to not greet everyone in the room
09:27
cbg @IntrepidBrit
@AnttiHaapala I'm sorry. Cabbage to the roadies too :P
@IntrepidBrit yeah... greet the cute puppy by cabbage!
Has anyone here had the sheer joy of converting Windows timezones to IANA timezones?
I find no joy in windows
You'll never take your friends for granted ever again after delving into .NET compact 3.5
09:33
stackoverflow.com/questions/25260870/… IIRC pickling does not work across multiple versions?
cbg @IntrepidBrit you beautifulish man.
@Ffisegydd I'll take that
I need some upbeat and funky music to listen to, I will reward a golden penny to the first person to bring me a decent playlist (preferably Spotify though Youtube admissions will also be accepted)
@Ffisegydd Define 'funky'
Containing "funk"
Something upbeat and "happy"
But not pop *****
Basically something to inspire me to actually do work rather than close voting questions on SO and blindly reading through Hacker News.
@Ffisegydd Okay - try this
spotify:track:7wbkJJH8d6w4rucQ925hqv
And stick with it
09:44
Ah yeah I do love Einaudi.
I have found your playlist worthy. hands @IntrepidBrit a golden penny
@Ffisegydd YUS! I'm riccccccccccccccccccch runs naked into the rain
After further consideration I decided to go with spotify:user:spotify_uk_:playlist:0aLE17uVpTNitFGoIrk7s8 so I'm gonna need that golden penny back @IntrepidBrit kthx.
@Ffisegydd Sorry, it's too late. I had to spend it on clothes at the other end of my mad dash
I'll take the clothes then.
10:00
I ...
Fine. I'll just have to wear my old things
@Ffisegydd If my Spotify playlist wasn't so mortifyingly embarrassing I would share that
I basically have no taste in music. This is not to say that I don't enjoy music, in fact I pretty much enjoy all music with context.
I don't mind sappy pop ***** sometimes it it's appropriate.
That said I also keep all my listening private so I understand :P
10:19
Good plan
Music is the great equaliser. Everyone gets to play be judge and jury
cbg
@AnttiHaapala Ah, I'll poke them about that one.
Cabbage
With Jon's sword, if necessary.
10:51
Hey... you've got a Katana... and it's Tuesday :p
"Writing VB isn't coding, it's the art of not committing suicide"
@JonClements Poking with a Katana is invariably fatal, I wanted to inflict bodily harm, not death.
@IntrepidBrit Cue tastless joke about Robin Williams.
@MartijnPieters I say, that's in poor taste!
Hm?
Can I be bothered to make a paella tonight... umm...
11:00
Nothing to see here. Move along
@Martijn then deleting your stealth-edit post - cunning :)
@JonClements Fish are the spawn of the devil, and we should leave them to the sea, as long as they leave us to land
But... George Dubya Bush said he was sure than man and fish could co-exist... he was a wise man - we should listen to his words :)
Proverbs 4:18-19
But the path of the just is as the shining light, that shineth more and more unto the perfect day.
The way of the wicked is as darkness: they know not at what they stumble.
Almost worked - damn you bibledice.com/scripture.php !
I'm sure if one tried hard enough, I could garner some meaning from that
Maybe it's "don't trust people that use to have pink hair to quote from the bible"
11:13
That's probably wise >.>
Umm... anyone know if it's possible to use pandas to groupby / pivot_table an arbitrary iterable rather than having to have a DataFrame?
I'd quick like to pivot a 17gb table... use to be able to do that quite easily in SAS with a DATA STEP view, and PROC FREQ with an out=
@MartijnPieters it was mail, so damage is done, forever :d
@AnttiHaapala Yeah, hence the sword poking option! :-)
11:29
@MartijnPieters ah the body has your name right, only someone fixed the typos for the subject :P
@Jon I don't think so :( I've definitely never seen it happen
As groupby is a Dataframe method
Suppose I could take a million records at a time... do the summary
then clear the DF, put the next million in, do the summary, then sum all the summaries
as I'm only doing counts
Why not iterate over the original and += if something occurs. Seeing as how you just need a simple count
11:45
OP has gone awol, not clear what they are sending over the wire.
hiya
heya @vaultah
12:27
cabbage
cbg all !
@MartijnPieters hey can python 2.2 support sets if that's what I send from 2.7? :D
@AnttiHaapala It won't even do new-style classes, whatdayathink?
set's builtin now :D
2.2 supported newstyle classes
2.3 had the new mro
iirc
Right, yeah.
12:40
@MartijnPieters Bah... Python 2.2 can do anything :)
13:25
morning everyone
13:38
hey I'm actually getting accepted answers in flask now. What is this world coming to?
@corvid The end of days?
that will be when I have as much rep as Martijin
Or JonSkeet
that would be worse than the end of days
Cabbage! So @corvid , you are the Flask expert now, huh? :-)
13:44
I am now (suspense) mildly competent!
Good, good, I suppose that in the time I get back to my website development, you are going to be an expert. Good to know.
what kind of stuff do you usually make?
Hacks :-).
Quick, dirty.
heh I meant what do you like to program?
I like to build desktop apps with functional GUI, but that is not what I usually do, unfortunately.
13:50
so you use tkinter a lot?
I was using wxPython quite a lot. Now I use PySide. I use tkinter occasionally, but I do not really like it.
Are guis in python easy to make? I've only made them in java and C++
@corvid Well, I think it is basically the same, the ease is in the language itself, but the main ideas behind are the same.
You know, PyQt and wxPython are wrappers for C++ code, go figure :-).
I dunno, I think setting up the refresh cycle is slightly tedious. But I did it with OpenGL so it's probably inherently more complex
@corvid Refresh cycle?
13:54
like, redraw the image every x time
@corvid Well, I never did that. For OpenGL I always used idle function callback. For GUIs, I just let the OS do the redraws.
Websockets not updating for anyone?
yeah that's what I mean by easier in python hah they probably wrapped the more tedious functions
@Ffisegydd what do you mean?
@corvid Well, I never did that in C++ or Java. I do not think any of these graphical "frameworks" are built to let you force your own redraws.
eh, that's kind of why I like web development. The browser implements so much common functionality already, it's awesome
14:01
@corvid I'm not getting updates like "1 new answer" on questions
I have to refresh to see if there's an answer there.
nope, still working for me, got notifications
Does not work for me.
@corvid Well, I find web development harder. You have to learn so much... HTML, CSS for the starts, then SQL, then Javascript, jQuery, AJAX, Less, some framework like Flask, some templating like Jinja... And the list goes on.
indeed, but steep learning curves are fun a lot of the time
And then the crap does work in Firefox, mostly in Chrome and not at all in IE.
eh, people using IE... I was at a programming convention and someone was using IE8 and doing web dev. It was... unusual
14:05
Did you spit on them?
Well, I did that step from PHP+mySQL times to what is supposed to be a modern web development and that was like OMG!
I was even unsure WHAT should I use and learn, HOW was the lesser problem.
unfortunately, he said he had to have IE for work. Then I just kinda felt sorry for him
@Fenikso that's kind of why I like flask, it makes the front end aspects much more inconsequential, so less javascript and css. Easy to concentrate on making things work
@corvid How exactly does Flask spare you the Javascript and CSS pains?
jinja2, you can just make fairly plain html for a start and still make a pretty good looking website easily without the pains of dealing with Angular or Backbone right away
@corvid Eh, I do not know what these even are :-).
14:11
Then it becomes inconsequential to add angular or backbone later because everything on the backend is json
Sup @Zero, SO working now?
Well, I guess I at different level now. I take your word that it helps.
Yeah ... never got any contact from anyone, but no problems any more.
I have to run, rhubarb. Take care expert @corvid .
good luck
so dumb question. I have python3 and python on my ubuntu machine by default, if I want to install virtualenv wrapper to my python3, how is that done?
14:14
virtualenvwrapper uses python2, but generates envs for both versions
mkvirtualenv -p /usr/bin/python3 myenv
Today I found a bug in some code I wrote. A bug of the "how did this EVER work?" variety.
The code wasn't in Python, but if it was, it would look like:
for i in range(len(seq)+1):
    item = seq[i]
    #do things with item
... Inevitably causing an index out of bounds error.
Well I hope you've learned two important lessons: 1) Don't do that. 2) Code in Python next time.
And yet, I ran that code a hundred times last month, and it never failed.
I think the best explanation is: Me and my code base fell through a dimensional portal. On my home plane, for index as Integer = 0 to seq.Count iterates properly through seq. Here, it goes one past the end of the list.
Why the devs of this universe chose that their for loops should be end-value-inclusive instead of exclusive, I'll never know.
Maybe in parallel KevinVerse, 0 starts at -1
The KevinVerse is a terrifying thought.
14:28
workspaces in ubuntu are so awesome
hey guys anyone using jython here?
I once thought about jython, am I qualified?
@compski Try a different tense, and I might be able to help :)
I'm not too concerned about my little dimensional drifts, but I am annoyed that I have to fix all my loops now.
I imagine the KevinVerse as some kind of 1984-esque wasteland where Big Kevin has decreed that everyone should make a certain number of witty comments each day. Those Kevins who don't keep up with their quota are taken by Dark Kevins in the middle of the night and never seen again...
5
14:31
so, is there an easy addon for flask to enable text searches?
ok this isnt too technical .. but im trying to import a 3rd party jar (Apache commons) into jython but it keeps telling me "import error"
@Ffisegydd Does that mean after 20 years of natural selection we've ended up with this @Kevin ?
@corvid for sopython?
@IntrepidBrit yeah that makes a lot of sense. It's like Highlander. He is The Kevin.
@compski is the jar on your path, or whatever it's called in java?
14:32
That sounds like something I might do if I had supreme cosmic power.
i placed the apache jar files into 2 Java directories already (..jre7/lib/ext)
DSM
DSM
Cabbage, all. I'm sure you'll be happy to know that the disturbing length of time I spent yesterday trying to figure out why my image wasn't working -- which turned out out be because of a missing xmlns -- hasn't put me off coding.
@Ffisegydd I worry about making my witty one liners. If they're good enough/bad enough I might be consumed
@davidism hmm using environment vairable?
@compski Uhhh. Give me a minute. Let me see if I can find my old Jython project
14:33
@IntrepidBrit thank you! =p
@davidism nah. Working on my own project as well. By the way, is it okay if I use this @template decorator in my project? It is an awesome idea
don't they have to be part of the path used to run the program? It's been ages since I used Java, but I remember long lines of path includes when running a program with dependencies
@corvid yeah, go for it
but for SOPython, I actually did have a question... say I made my view, but there's only community and me as users. Would there be a way to populate the database with more users, as to see what would happen in my view?
@compski wiping dust off svn repository
@IntrepidBrit lol u used apache commons jars too?
14:37
@compski Whilst I wait for that process to finish up - how are you executing your program?
you need the ids of users, then call User.se_load(id)
@compski No, but I remember going through a personal hell to get a 3rd party physics/mathematics java jar to work nicely
@IntrepidBrit not even a program i just want to try import using the jython interpreter on cmd prompt
@IntrepidBrit hahahahah good we on the same page then
@IntrepidBrit so on jython i say .. from org.apache.commons.math.linear import *
When you execute the Jython interpreter, how does it know where org.apache.commons.math.linear is?
then it says the classic "Import Error: No module named apache"

when i already added the
14:40
(In other news - looks like the type of testing code I write - newscaststudio.com/2014/06/27/… )
@compski added it where?
@IntrepidBrit no import error =/ .. i added the commons-math3-3.3.jar on (C:\Program Files\Java\jre7\lib\ext) and C:\Program Files (x86)\Java\jre7\lib\ext
today's pet peeve: two functions, named function_name and function_name_temp. the first one is unused; the temp one has been in production for years.
@IntrepidBrit following this website's instructions : python.6.x6.nabble.com/…
@compski Haaaaaaaaaaaaaaaaaaaaaaaaaaald oan
Rewind - what're you trying to do? And why with Jython?
cbg my salad lovers
14:44
@IntrepidBrit lol im trying to write python wrappers around Java routine .. so to do that I first need the to import the 3rd party Java libs on jython to continue writing the scritpt lol (and just for ur info importing java.util and those standard java works but not the third party one i installed from apache commons)
wrong tab
@Ahmad cbg
@compski Righto, I'm not sure I agree wholly with the premise, because you could probably rewrite it faster and "natively" with pure Python
Do you append the jar to the Jython syspath?
I think that's the way it's done these days
Just like you would a Python module
@IntrepidBrit lol well the thing is there is already all these funky complicated maths written on java files .. so im just using Python to call those java files .. thats why this mumbo jumbo
@compski are they custom math routines you've written yourself? Because if not and they're standard then I'd bet a shiny button you could find the same ones in Python.
14:48
@IntrepidBrit hmmm syspath .. i don think i did that .. how to do it?
@compski Okay. I will mentally pretend this is first stage of phasing this across to native python code
and you could probably find them written in Cython/Python-wrapped-C which will be quicker than Java.
@Ffisegydd lol no really complicated ones like for example CholeskyDecompositionCommons LU decomopositon etc
@compski platform?
@IntrepidBrit jython2.5.3
Try:
import sys
sys.path.append("/path/to/jar/api/whatever_the_name_is.jar")
(at some point I'm going to learn how to format my chat code properly. But for I am the bane of all good programmers. I'm a lazy bugger)
aww, no unicode tags, I thought I was so clever
@davidism extra space after : ?
cbg folks
@Ffisegydd lol thx but im not gonna write it all up on python again
@IntrepidBrit cool i did i just tried it
14:53
cbg :)
@compski Did it work?
@IntrepidBrit it looked like it worked fine but when i imported it still cudnt find it =/
The "right way" is SQLAlchemy specific and I didn't know about it as I never used SqlAlchemy. I have provided a generic way to devine a relationship that doesn't depend on any framework. I don't see how this is bad advice. — Ionut Hulub 33 secs ago
Uhh, no, that's not how SO works.
@compski Windows? or *nix?
14:56
@IntrepidBrit windows
@IntrepidBrit windows 7
@compski You remember your double backslashes? '\\'
@IntrepidBrit err i didnt do that anywhere
this client keeps just looking at me and nodding whenever I explain anything. but I don't think she is listening at all. what do?
sys.path.append("d:\\path\\to\\jar\\api\\whatever_the_name_is.jar")
DSM
DSM
Doesn't windows accept the forward slash too?
14:58
@corvid nods
@corvid Two options: "lies to children" or release her from her hell. When people go into that mode they cease to listen properly
@DSM It should, but I don't trust Jython as far as I can throw it

« first day (1396 days earlier)      last day (3777 days later) »