« first day (1731 days earlier)      last day (3442 days later) » 

14:02
@PM2Ring That's generally why we wrap container classes in Ruby, too. It's usually a whole heck of a lot of work to preserve the "is a" relationship that derivation implies. Plus the super wide interface is irritating to someone trying to figure out how they should use the derived class.
@poke Maybe I was getting mixed up with javascript: URIs, which work ok in pages & as bookmarklets, but no longer work in the address bar. Eg, javascript:alert('hi')
@PM2Ring Those still work too, but you have to readd the javascript after pasting them in
Sorry, you've lost me, poke.
i keep getting TypeError: <open file 'file.json', mode 'r' at 0x7f2e6bcf0780> is not JSON serializable
When you copy/paste the javascript:alert('hi') into the address bar, the javascript: part is stripped off. You have to retype it at the beginning, and then it should still work.
14:07
@DanielPrinsloo I'd hazard a guess that you're trying to load the file object rather than the string/data inside it.
@DanielPrinsloo Seems like you’re trying to use json.loads on a file object.
what am i supposed to do instead?
As poke has mentioned, you should look into the difference between json.load and json.loads.
@poke The javascript: is not stripped off in this browser, but it is a fairly old version of Firefox.
Oh, okay ^^
(removed)
Sorry guys. I accidentally pasted that data: URI & was surprised that I didn't get a "too long" message. So I just wanted to see if it got truncated on posting. I promise never to paste crazy data: URIs here.
(devomer)
ok i've changed it to json.load(f) but now it tells me that it finds ValueError: No JSON object could be decoded i've ran the file through a json checker and it says its fine?
@DanielPrinsloo unfortunately, we are not psychic. Please use dpaste.com to create a minimal, complete, and verifiable example.
14:21
this dpaste.com/1Q4PG6W is part of the json file im using im after the each key and the items quantity and value, im currently just opening it and trying to get it to print it all. dpaste.com/37TTHR6
@poke, you use gulp and angular, right?
Not angular, no
Ah okay. Gulp acts a little odd with angular because of file order
There is no one gulp, it’s just a framework which you use to create build tasks. If something doesn’t work, you have to adjust the build task to make it work for you.
Huh. So it turns out that if you only free an object in the except block of a try/except statement where the object creation is in the try, it won't work. Good job me, good job.
14:25
@davidism CV's would be more interesting if we were psychic: "Please rewrite your question to not include all the information. We can read minds and do not need to be distracted by so much text. The bare minimum text that will let us connect with your mind is all that your question needs."
"Please supply your GoogleBrainPublicKey and prepare to be assimilated into the over-conscience."
4
Perfect!
@MorganThrapp Free an object?
@WayneConrad I'm working in Delphi today, not Python. :(
Trying to debug some of my old code. Man, old me was an idiot.
@WayneConrad "press your hand to your monitor in a Vulcan greeting so we may mind-meld"
!DNAH REHTO RUOY
@MorganThrapp Take a look at the finally clause.
14:33
@PM2Ring Oh if this were Python, I would be done already.
Ah. I just noticed that you said it was Delphi, not Python. :)
Say you want to have photos of your work in a README, what's the standard for placing images? Do you just imgur them?
Or stick them in the repo somehow?
ASCII art
I just put a stupidly high number for my Reed profile minimum salary
Sounds like a decent strategy.
Who knows what'll happen :)
14:47
Worst that can happen is nothing. Best that can happen is some executive search team gets impulsive.
I disagree. The worst that can happen is a meteorite hits Earth tomorrow that a company that would have been perfect and hired you will be put off by your insanely high rate.
Money covers a multitude of corporate sins.
user559633
@Ffisegydd I put the image in the github repo itself. The upload path is deterministic.
@tristan aye that's what I went with.
user559633
I find imgur to be seedy and embarrassing, so I don't use it for anything "real"
14:54
@RobertGrant Or an XPM. :)
But seriously, do photos belong in a README?
user559633
@PM2Ring Definitely do. Some things are easier to express visually
Does anyone have experience with taking an extended work hiatus, or know anyone who has done so?
Trying to figure it it's a good idea for a friend of mine.
user559633
@QuestionC I took off ~4-5 months, does that count?
Yea, that's pretty extended.
user559633
How can I help?
14:56
You seem to be doing pretty well in spite of it, world traveller.
@tristan Yeah, linked photos would seem much more professional if they were on your own personal / corporate / university site, rather than imgur, flickr, photobucket, etc.
@PM2Ring It's the README for a project which has a heavy visualisation element, so having examples of the plots is a must I think.
I dunno, I'm just trying to see if anyone's like "That's a terrible idea, wtf". My buddy's thinking about doing it and I think it's a good idea for him but noone I know's ever done that.
I'm not trying to share information, I'm giving examples.
@tristan Oh, I agree that images certainly have their place in documentation. But I figure that READMEs should be highly robust, and suitable to go on mailing lists, plain text emails, etc. But maybe that's just me being old-fashioned...
14:57
He's a restaraunt manager who works like 50 hours a week and makes decent money but his personal life isn't where he'd like it to be.
user559633
@QuestionC I'm a full-time employee of a company, just remote.
(inb4 davidism asks for a MCVE of my problem)
user559633
@QuestionC Best decision I've made for my personal life and my career.
@Ffisegydd What sort of repo are you talking about - it should be able to handle arbitrary binary files. But if worse comes to worst, you may have to resort to building a PDF.
user559633
His mileage may vary, but it was helpful for me to get a new perspective -- not only to stop living in a place I didn't like, but to stop treating jobs as if they're some sort of privilege.
15:01
@DanielPrinsloo That JSON data prints fine for me using Python 2.6.6
@PM2Ring Standard Github repo.
For a Python package
And the README is markdown.
@Ffisegydd Ok. I have no idea how you tell the Markdown how to find the PNGs.
user559633
@QuestionC But yeah, I don't know how things work in the non-tech industry. Part of me taking time off was to work on projects that I found interesting and I spend much of my 'off-time' reading things that will help in my career. Besides jobs, if he's unhappy in his personal life, and he can't repair that while working, I think that's an easy choice.
People use a web GUI to modify a git repo? Wat?
Thanks
user559633
15:07
@WayneConrad yes. cgit, github, bitbucket, numerous other graphical frontends to git repos
You don't use graphical interfaces? What are you? Some kind of command-line-barbarian!?
I'm sending this convo to him now. It sounds like something he should go ahead and do.
@Ffisegydd Og only need bear skins and stone knives. Og no like GUI witchcraft.
3
user559633
@QuestionC I'd offer the definite advice that if he's not happy and spends his off time sitting around playing video games or "being too tired to do things," then he's just going to be burning money while unemployed.
As someone who has spent the past 3 months being unemployed, I can testify to this.
It's hard. Then again I was unemployed looking for a job, not unemployed for my own benefit.
15:11
I think travel is in the cards for him.
user559633
This is pretty off-topic, so I'd be happy to hop into an irc room or something on freenode if he wants to join
Nah, he's at work.
Also, >off-topic
Plus as a restaurant manager, unless he's a hobby programmer, chances are he doesn't have the rep to join the room.
I think Google and I have different definitions of simple: "Making the "dream" images is very simple. Essentially it is just a gradient ascent process that tries to maximize the L2 norm of activations of a particular DNN layer."
Of course, why didn't I think of that?
You probably didn't consider differentiating over the integral sign, either. ;)
15:14
I understand gradient ascent (I think).
Is mapReduce something every programming language has commonly in some capacity?
DSM
DSM
Morning cabbage for all.
@corvid If "In some capacity" includes writing code to implement it, then I suppose so.
morning @DSM
Morning!
15:20
Morning, DSM.
@corvid It's not in C, I'm not familiar with it being in C++, so I'd say it's a very rare feature if we're weighting by lines of code.
@DSM Hey up
15:35
ok i've been learning and i've gotten to this point dpaste.com/2SRJ31B and here's the json again(with a bit more) dpaste.com/3R9FJ4N but i will get a random unicode error UnicodeEncodeError: 'ascii' codec can't encode character u'\xf2' in position 31: ordinal not in range(128) and i'm not sure why
@corvid map & reduce functions are typically found in functional programming languages; MapReduce is a pretty high-level thing, so it's not normally part of the standard toolkit of a general purpose language.
@DanielPrinsloo you have some non-ascii characters in your JSON then.
You need to work with unicode to support it.
yeah i had a look its the letter r
I assume you're using Python 2?
yeah python 2.7.6
15:39
The documentation for json.load mentions unicode, you should read it up docs.python.org/2/library/json.html#json.load
You'll have to handle it.
Or search around maybe.
Air
Air
That feeling when an answer you put a lot of time into gets a check mark over a year later, bumping it above a plausible but demonstrably incorrect answer. OP is da real MVP.
Sup Air, been a while.
Air
Air
@Ffisegydd Hey ho. Now that I can chat with Martijn in the secret lair, I decided to blow this dict.pop stand.
why is it thought that it reads all the rest fine but it hates this one letter
Get your Python sustenance directly from the source-of-all-knowledge, eh?
Air
Air
15:42
That, or work + family + a beta site getting in the way of having fun with Python.
@Daniel are you sure it's the letter r that's messing it up?
Are you sure it's actually the letter r and not something weird and wonderful?
I suspect it's more likely to be the letter ò
there is no ò in the document i know that for sure
cbg all
Air
Air
vvνv
♫♩ One of these things is not like the other; one of these things just doesn't belong! Can you guess which one is not like the other by the time I finish this song? ♩♬
DSM
DSM
@DanielPrinsloo: this is a separate issue, but what is value.strip(u'') supposed to do?
Your error message suggests that it's found the character \xf2 which can be converted into an actual letter through:
In [93]: chr(int('f2', 16))
Out[93]: 'ò'
(Unless someone wants to step in and correct me)
i just want to write the names of the items not the u'' bit
Do you know what the u'' bit means? Do you know that stripping a string doesn't work inplace and so that line is useless?
Air
Air
@Ffisegydd I agree that's what it suggests. I don't see one in the JSON he linked, though.
DSM
DSM
@Air: wow, they look identical on my screen. Whenever I handwrite a nu I always make it a little curvy.
15:51
@Air I concur. However he says that the JSON is "a bit more" which doesn't mean it's all of his data.
Air
Air
@DSM Yeah, I use it as an example in a meta post about when to use MathJax markup on Eng.SE
Because I can't distinguish them either
even on 400% zoom
@PM2Ring I guess I do a lot of functional programming... what exactly is functional programming? Seems like it's just a lot of altering data in sequence
Air
Air
@corvid I believe the "functional" part refers to mathematical functions
As in, you approach problems by taking a set of values and applying functions and operators to (deterministically?) produce a result
DSM
DSM
I was at an interview once where the interviewer asked me a question about "functional programming" which showed he thought it meant "procedural programming". Awkward..
Air
Air
I think functional programming de-emphasizes concepts like state and identity
15:58
Functional programming attempts, as much as possible, to avoid side effects in code, or at least to limit their scope. The promise is that functional code is easier to reason about and easier to get correct than code that relies upon side effects.
An example of functional programming you may have already done: If you have ever created an immutable value object that, instead of modifying itself, returns a new instance of its class, you have dabbled in one of the techniques of functional programming.
A real functional programmer should come along and correct whatever gross misrepresentation I'm making here...
@dsm awkward indeed. Did you try to enlighten them?
I just call it functional programming when I wrap something in a lodash wrapper and do a long chain of events
Wait, functional programming isn't just when you program using functions?
Runs off to re-evaluate everything he knows
DSM
DSM
@JRichardSnape: the guy was well-intentioned. Didn't see the point in calling him out on a terminology slip-up, given that the question itself made sense.. (plus out of enlightened self-interest I have reason to want minor slipups not to count against you.. :-)
well if that was the case then why is it fine when i run dpaste.com/00FM54J and records all the names in a file but as soon as i try to deal with the numbers not letters it fails saying a letter is to blame?
16:11
@Daniel sorry but I don't have the time/will/patience to deal with your problem. I'd suggest you write up a full question on the main site. Be sure to include the full details of your problem, your full code, your full error message, and a link to your json data.
@Daniel I can't really tell what that code is trying to do. Are you trying to write the value from each item in the json to another file?
Air
Air
@PM2Ring That article should be re-titled "the link every software developer absolutely, positively must bookmark and skim whenever they smell a funky character, because who remembers things these days, honestly"
Air
Air
Yeah yeah, things come in bytes, sometimes more bytes, xkcd standards joke, be careful, got it. Thanks, Joel. CTRL+D
16:16
Yo does anyone here know to how to use Google protobuffs in Python? I need to send this weirdly formated object that has a field that looks like position { target: value} instead of the typical field like name: "target_name"
@MorganThrapp From Functional Programming HOWTO Functional programming decomposes a problem into a set of functions. Ideally, functions only take inputs and produce outputs, and don’t have any internal state that affects the output produced for a given input. Well-known functional languages include the ML family (Standard ML, OCaml, and other variants) and Haskell.
Air
Air
I also have this bookmarked, and that set of slides is probably a more useful bookmark IMO than Joel's blog post.
(From the same article) Functional programming can be considered the opposite of object-oriented programming. Objects are little capsules containing some internal state along with a collection of method calls that let you modify this state, and programs consist of making the right set of state changes. Functional programming wants to avoid state changes as much as possible and works with data flowing between functions.
In Python you might combine the two approaches by writing functions that take and return instances representing objects in your application (e-mail messages, transactions, etc.).
@PM2Ring ill read through those now and @davidism yes thats all im trying to do but i suck at coding
16:19
@davidsim I am already using a Google Protobuff library, but I can't figure out how to send this one specific message with it.
This one to be exact: github.com/jpieper/pygazebo
That appears to be a github repo, not a protobuf message
Perhaps try telling us your exact problem. As I'm sure we've told you before, we are not psychic.
Sorry, so that repo is a wrapper for sending basic Google protobuff messages
So the value I want to set is joint_cmd.position
And it's rhubarb time for me.
DSM
DSM
Cheers, PM2R~
the only issue is that it looks like it a different value from the other ones I see
Air
Air
16:22
@PM2Ring o/
(it has a sub-value of a target) and when I try to simply set the string to it I get this error: AttributeError: Assignment not allowed to composite field "position" in protocol message object.
please use dpaste.com to post large blocks of code
@Skylion having to tell you this sort of stuff literally every time you enter the room is getting tiring. Please read our room rules, my patience is wearing thin.
I will get an import error if I run that code. Please read the mcve link I posted. That example is also far from minimal.
Oh, woops I forgot the imports. I apologize but for future reference what do you define as "large" block of code?
16:27
More than 12 lines. As is stated in our Room Rules.
It's in the rules man.
Sorry about that.
imports are time, trollius, and py gazebo. you can also comment out wait_net_service
When I say minimal, I'm not talking about lines, I'm talking about complexity. You want me to run an asyncio program just to see an example of dumping a specific value?
I'd imagine a minimal example would literally be "import, here's a value, here's a call to dump that gives an error"
Hmm, yeah except I would need to find a way that does not use pygazebo (which has trollius built into the underlying library)
I'll get to work on that.
Why do you think you can't use pygazebo in the example? Anyway, yeah, work on that.
Bah - be easier if they'd added the main python tag
Thanks Jon
DSM
DSM
The power of the diamond!
Air
Air
Still a bit weird seeing a blue name in this room.
That's not ThiefMaster.
We have two of them
well, three with ThiefMaster
Air
Air
16:39
@poke Don't forget Jeremy
oh
@RobertGrant: Forced to buy a new laptop, and yes: Windows 8 was that bad! Lol
And Flexo.
Air
Air
But, as far as users who regularly send messages...
DSM
DSM
Step by step, gentlemen. Step by step.
16:40
Yea, but Jon's the only one you see on a regular basis.
@QuestionC and Martijn…
They're all too cool for Python now. Hanging out in the Mod chat room with their red carpets and gold plated toilets.
Air
Air
If the chat domains ever get unified, this room will blue itself even further
DSM
DSM
?
Well... if users stop raising so many flags, I'd have time to type more :p
16:41
Air is a mod on some other site that we don't care about because it isn't programming
Air
Air
@Ffisegydd Correct, although we do in theory accept software engineering questions. In practice, the vast majority of users who can figure out what software engineering actually is, distinct from programming, ask their questions on SO anyway.
Where Martijn, with some nonzero probability, destroys them. Apparently.
DSM
DSM
^^ Yesterday I watched both the Canadian men and women's teams take gold in Sevens at the PanAm games. Enormous fun.
Downside: today I'm effectively useless. Half the day's over and the only thing I've done is answer a colleague's API question.
17:00
@Air @Martijn's the Sherlock Holmes of socks and voting rings :p
Air
Air
@JonClements Presumably the wing-chun-practicioning RDJ version.
DSM
DSM
@JonClements: have there been cases of voting rings arranged for the benefit of another party who was completely unaware?
Air
Air
@DSM Pretty much have to be a mind reader to know.
re-cabbage
@DSM Bottom row, fourth from the left: What is that guy wearing!?
17:13
Red
i do love a good game of 7s. It's a very different style to "normal" union.
DSM
DSM
@poke: erm, looks like the same as everyone else. But I'm really bad at those "spot the differences" puzzles for kids..
It looks super short from this perspective; doesn’t look like normal shorts like the other ones are wearing
I think that's just because of the way he's crouching.
DSM
DSM
@Ffisegydd: yeah. I first got into it a bit in HK, where they really take it seriously.
17:18
Yeah the HK 7s are famous.
17:31
@DanielPrinsloo dpaste.com/2KC555V
hi all
Hello.
hi @ammu
Thanks Jon, i need some advice in a topic text analysis python
Ask your question, if someone can help you then they will.
17:35
@ammu welcome, please read our room rules: sopython.com/chatroom
What are the ways for mapping text paragraph to another available in terms of concepts not just keywords
Sorry you're going to have to be more specific.
ohh like we have keyword based search , similarly there is concept based search, what are python libraries and ways for implementing concept based search not just matching keywords
Can you give an example?
Air
Air
@ammu Discerning the context would require keyword analysis first, wouldn't it?
Unless you extend the items in the search domain with metadata
(If that's not total buzzword gibberish!)
17:44
yess definitely it will require a keyword analysis first
and an example is like RFID tags : suppose in a document word RFID is not mentioned but electromagnetic fields and transfer is present .Whenever RFID is searched this result should come up as rfid is a concept of electromagnetic fields
cbg all
Air
Air
18:01
I made and consumed cole slaw yesterday, the main ingredient of which is
cbg
I propose that a series of messages in the room with a high concentration of "cbg" or "cabbage" be referred to as "cole slaw"
Cole's Law: A high concentration of cabbage.
11
I second the proposal, and add that fermented cabbage foods such as Kimchi and Sauerkraut should be included.
Air
Air
Cabbage begets cabbage; so it was, and so it will be, forever and ever, amen.
Im new what is the story with cabbage?
Apparently it starts growing in abundance anywhere Python programmers hang out.
18:07
@DanielPrinsloo sopython.com/salad
HAHAHAHAHA i love that
melon
It seems everyone is in fine form
so im a green bean
People don't stay green beans for long :)
DSM
DSM
Only for a while!
18:12
hahaha
the language is missing a hahaha
laurel
was removed I think
I need to make some AI code to turn my piles of research into term papers :P
yeah i was just thinking documentation was missing something :P
18:18
Was 'laurel' really removed?
I cleaned up a few things, including laurel, corn, and collapsing/editing a couple others. You can add it back in if you want.
No, that's fine by me
Does anything other than Cbg, Rb, and Garlic ever actually get used?
And Yam once in a blue moon.
DSM
DSM
Every now and then I break out the pineapples when something neat happens.
What was the meaning of "corn" anyway?
18:27
code
Share Corn, please!
I kinda like the sound of it.
I'll bring it back.
does anyone have a nice piece of corn that will display data from a mysql database on a html page :P
Do you haz the corn?
Air
Air
There's a GoT joke in there somewhere. Is Mormont's raven in the TV series?
@DanielPrinsloo that's way too broad. You'll need a) database code, b) web app code
Air
Air
18:29
If "corn" means "code" then what would "candy corn" refer to?
jQuery?
DSM
DSM
Heh.
Air
Air
Maybe just php
I am not up to snuff on my php/db code, but "connect to mysql using php" has to score you some good hits for that.
@davidism what do you mean I have a mysql database with information in and I'd like to display it on a webpage i don't mind what language
Definitely PHP.
:P ill get reading then
check out flask.pocoo.org and flask-sqlalchemy.pocoo.org to get started
@DanielPrinsloo I hope you didn't take air seriously, that was a massive joke
i know :P
laurel
Air
Air
TBH based on the formulation of the question it was less a massive joke than a "you deserve this" :P
Typically, when someone says "I just want to do X", the "just" is actually incredibly complex
Air
Air
18:32
A joke would have been php.net/manual/en/book.mysql.php
true true i suck at explaining what i mean
Yes, you have a database, but how you query it and interact with HTTP are two huge topics
"I have this text file, I just want to use it to beat the stock market. Give corns, please."
it wasnt that broad :P
DSM
DSM
It kind of was; there are lots of ways to get data out of a database, lots of different types of data, and lots of different ways to render that information in a web-accessible way. The more branch points there are where you expect someone to guess the situation you're in to move forward, the broader the set of possible answers, and so the broader the question.
18:36
> Taxonomist: Create a tag used by 50 questions.
Will I get this badge if I edit 50 questions to include my tag?
I got that the other week for jupyter :D
Probably
@Ffisegydd nice
DSM
DSM
@Ffisegydd: pineapples! (see? useful.)
I'm just testing that theory ;D
*Not really.
Air
Air
12
A: What counts as "creating" a tag, for Taxonomist? And what prevents gaming the badge?

luvieereI retagged 59 questions originally tagged 'gps' with a new tag, 'telematics' and got awarded the badge the next day after the retagging. A topic was opened here on MetaSO concerning the issue, and for this abuse, my account was temporarily suspended for five days and the new tag got removed, as i...

tl;dr: Yes, but if you do it in a way that is not productive you may get slapped.
18:39
:-O
DSM
DSM
I'll testify in your defence, Fizzy.
I created and
It's like Python 2 vs Python 3 now
Are there significant differences between pymongo-2 and -3?
Well, Pymongo3 is not backward compatible
Air
Air
^^ That, plus if the only significant differences are results of their being compatible with Python 2 and 3 respectively... probably can be one tag
18:42
That sounds about as crazy as starting a sqlalchemy-0.7 and sqlalchemy-1.0
Renaming, deprecation of methods, removal of methods/attributes etc.
You can read the changelog, it's huge api.mongodb.org/python/3.0/changelog.html
Yeah, seems reasonable. It's all pretty subjective.
Air
Air
Here's my take: It's an extremely niche tag for SO, currently, and can be served adequately with a single tag. It may in the future grow to be a larger niche tag, but by the time that happens, probably the activity will be almost entirely for the newer version and it still won't need a dedicated tag for the older.
That said, does it cause harm that someone who's been involved in the project since the older version has to follow/check two tags instead of one? Meh
This tag may be removed automatically in case of inactivity
I sometimes don't like even the python-* version tags, since it requires judgement that the op is often incapable of.
And it makes acquiring tag points / hammering that much more difficult.
DSM
DSM
18:50
A few days ago I saw a question which was appropriately tagged with both 2.X and 3.X. Those are much rarer than people just tossing 'em all in.
I want a [tag:python-1.*]
Too often do they interpret it as "I'm using this version" as opposed to "the question is because of this version" (the correct interpretation)
Is it bad to use cors in authentication? Should I just make an OAuth server?
DSM
DSM
I'm going to be very happy when we stop having to deal with both. If I had a quarter for every time I'd used ".items()" and someone said "in 2.X, use iteritems() instead", or I used "iteritems()" because the OP was using 2 and someone said "don't forget it's .items() in 3", I'd be reading in the shade right now.
18:54
At least those tags are easy to burninate (at this point), you can ask a question on meta about them or remove them yourself
so I'm using Queue.Queue with a thread worker, trying to bundle transactions for an OODB... sigh.
Air
Air
@davidism Could feature-request for a warning (a la sql dbms warning) so that people at least remember to use
I'm not sure how much traction the request would get internally but it might be worth a shot
@corvid I honestly don't know the security of cors vs openid vs oauth. I'd probably use openid or oauth, but I'm not sure why.
@Air I doubt it would be done
@Air I think it's been requested before

« first day (1731 days earlier)      last day (3442 days later) »