« first day (2149 days earlier)      last day (3024 days later) » 
00:00 - 17:0017:00 - 00:00

17:05
does anyone recommend a free IDE where i can actually step through my python code and see what exactly is nil or what errors are thrown instead of logging everything
i've heard of pycharm but i believe that isn't free
@user5797668 It is free for the Community Edition, which should be more than enough for your needs jetbrains.com/pycharm/download
17:32
cbg
heya pup
aye aye cap'n - how goes it?
going great. Just working on some upstream stuff while the kids are asleep. Wife is working....so having a quiet afternoon with some code :)
how about you?
Umm... haven't decided yet :)
throws ball across the room
17:35
Although - feeling in a laid back lazy-esque mood... so not sure I fancy running after the ball right now :)
throws chew toy at pup
Oh that one I'm going for \o/ woo hoo!
What code you working on ?
do i downloaded pycharm community edition and it is throwing an error saying i don't have argparse module installed. i went to preferences to change the interpreter the IDE uses and its using a python 2.7 path in my system. shouldn't argparse come with any new python interpreter?
@NinjaPuppy Working on a Virtual PDU. Messing around with SNMP. The end goal is to integrate in to OpenStack's test stack "devstack" and use it internally for some other stuff we have. This is it here: github.com/internap/virtualpdu
We caught an odd little bug yesterday that is causing threading to behave funky in py27
I think we fixed it. I have a couple of prs open for it right now. But, I'm trying to fine tune some of the unit and integration tests to make sure the problem is really resolved.
@idjaw Yeah 'cos threading never has a habit of going wonky... sounds an interesting project though :p
17:42
@NinjaPuppy The more I dove in to it, the more I realized how py27 is just something we all need to move away from
at least Ubuntu took a step in the right direction
hi
how are you guys?
hello
doing great. Yourself?
i m doing great
are you python developer?
can you tell me one thing?
ask away. If I, or anyone else who might be available here can answer, we will.
but note, weekends are typically low traffic here.
Not a lot of people around.
:)
is it possible to place dynamic data over django cms template?
17:49
@AshishGupta not quite sure what you mean there...
can you elaborate what you mean by dynamic data?
i want to rendor json at django cms templates
@NinjaPuppy ew. What's tough about that one, is that you can dupe it for an answer that uses calendar. But, it smells like homework...soooo, probably need to find something that implements it without the easy button
@AshishGupta I don't know much about django cms templates, but I don't see why that wouldn't be possible for something like django to handle
seems pretty standard
@NinjaPuppy what do you think about this as a hammer: stackoverflow.com/questions/11621740/…
@AshishGupta if you have JSON at the point of rendering the template you can do it there, or are you talking about retrieving JSON from somewhere and then having the browser insert it?
@idjaw Martijn's already hammered it :)
but there is dynamic urls
:(
17:54
Martian Pieters to the rescue!
@NinjaPuppy What is "community wiki" as an answerer: stackoverflow.com/a/39309731/1832539
I don't recall seeing that
Yeah... if you post an answer you can still post it as CW - which means you don't get rep for it, but generally it's when you're providing information that's a bit more than a comment and a valid answer, but it's not really your answer...
I just noticed the "community wiki" checkbox at the bottom of the answer box
the more you know
thanks pup
thanks for your great support guys
@Ashish there's really not that much info. to be able to help you I'm afraid... at the moment, there's Django CMS templates, with dynamic data, JSON and dynamic URLs? We don't know how they all fit together, how you're currently fitting it together, or all the other info. that's really needed to not just throw out ideas to look at and see if they're suitable for you.
2 messages deleted
That's okay thanks :)
18:11
lmao
cbg
@AndrasDeak on windows, there is no fork(), so each sub-Process must import all modules again
@AnttiHaapala hmm...that sounds odd
even if the function to be pool.map()ped doesn't have any imports in it?
I know it's "yes", but surprising still:)
18:19
> I’m willing to concede that my brain and fingers may adjust eventually,
No...you will not be as efficient.
eff that
Hah, yes, they may adjust to some extent, but not really.
@AndrasDeak each subprocess within the pool.
18:43
@idjaw exactly.
the problem is that you cannot feel where your fingers are at, not only the feedback.
I guess someone will come up with a touchpanel piano... "it's got haptic feedback" :D
Yeah...I don't care how much the market wants to push for the "cool look" of touch. The real keyboard is irreplaceable
I can't live without buttony feedback
there's some research into dynamic touch screens that can protrude in specific places to mimic keys
the hard part is making it versatile for any set of virtual buttons:)
@AndrasDeak the truth is you could live with haptic feedback... but one needs to feel where the fingers are placed.
hmmm...so, if you find a user that has a website on their profile that seems "odd" or spammy, and re-directs to obnoxious malicious crap. What do you do?
but it is a bit counter-productive to have a buttony surface and not have it mechanic...
... I'd come to rooms/6, then ask for opinions and paste a link to that user's profile :P
18:58
:D
they were in chat
and just disappeared, but I have their profile: stackoverflow.com/users/1494680/omer
I think it's accidental...they probably don't realize it's a spam website
oh they are still listed here...but far down the list
well, yeah, I'd ping him :P
that could be unintentional or then it is tracking the link source, which I'd be very doubtful about :P
@Omer FYI - The website (www.underconstruction.com) you have listed in your profile is loaded with spam and terrible re-directs and maybe you aren't aware of that. Want to let you know since it can cause problems to people's browsers.
Yeah. I'm almost sure it's unintentional.
yeah for me it redirects to a fake questionnaire in Finnish...
for me it re-directs to some "you have a virus" site and to report to apple or click here for fantastic help
in private browsing it actually locks up my browser
19:05
if you curl it you get a 403
hehe
... one of those that says "hello, user of Telia Sonera ISP services... please answer these questions and you will get a Samsung Galaxy S7 edge for 5 €."
oh yes. It gave me my ISP and all that junk to "scare" me. But it said I have malicious crap on my computer and I need to click here and here and here blah blah
so naturally I did and gave them my credit card
:P seems that I'm luckier, soon a happy owner of a new Samsung Galaxy S7 Edge!
I wasn't supposed to do that, wasn't I....
At 5 €, I'd call it a steal ;)
19:10
You had me scared for a minute.
Ah wait...
The money went in to your account, didn't it Antti
ah let me check
cbg \o
user6568562
yo Karin
19:22
whaddup Karin
user6568562
@AnttiHaapala Pshsht, I've been the one millionth visitor like ten times. My gains, by my estimate, is about 1000000000000000000000 $ Rich People's Desk is gonna call me any minute, now
I've won so many iPads
@AnttiHaapala I just got an S7 edge about two months ago. adore it =D
hahaha
When the battery dies I just throw it out.
@Karin mine was cheaper than yours!
19:25
I didn't pay for mine o_o
Did you get yours from a pop-up ad as well? I love those
my stupid ad block does what it's supposed to and blocks pop-up ads >=[
You're missing all the free tablets they keep giving away
sucker
@idjaw Hi, Thanks for letting me know, I have removed it now.
actually my phone is Samsung Galaxy S4 mini :P
19:26
@Omer Great! :)
and then I also use Jolla as my secondary phone
I have a crappy phone on purpose.
it took me a long time to switch from a dumb phone
I want to go back to not wanting a smartphone...but I'm deep in it
I have a confession. I owned a used iPhone 3GS for 1 month in 2010.
I've owned an iPhone 3G, 4, 6
I still own the 6
:)
19:30
fortunately I forgot it in a taxi in Saigon, and the taxi driver kindly stole it.
bahaha
Between the 4 and 6 I had a Nexus 4
I've never owned an iPhone, but I do have an iPod touch. let's me use iOS only stuffs
I have an iPod Video 30G that is currently perma-plugged in to my car as the music device
my wife has a nexus 5
after breaking her s3 twice
user6568562
I worked in a company that got stuck in a 24 month contract to own Nokia/Microsoft phones
19:32
I still have not figured out what I want to do to constantly play music or podcasts that I want to listen to in my old car with minimal effort
user6568562
I never thought I could hate an inanimate object that much
The Lumia?
that sounds cruel =[
... unfortunately I then needed a new phone... so I went to a phone shop and they persuaded me to buy Nokia C7 :(
user6568562
@idjaw That horror, man. And it was back before the 535. Buggy and confused doesn't even begin to describe it
19:33
so I bought a symbian phone 6 weeks before the burning platform...
@randomhopeful oh man that was even before the newer Microsoft OS right?
user6568562
@Karin A nice discreet usb disk and some time to copy mp3 from computer. I slammed around 30 gigs of music, standup and few podcasts and now I don't even worry about it
btw, my new phone will be Nokia <3
user6568562
@idjaw Yeah, lol The infamous WP 7
that's sound advice @randomhopeful, thanks =D
19:37
screw all this. I just want a bag of quarters and a map of all the pay phones on the island.
all 4 of them
@randomhopeful my dad wanted to buy a WP7 phone too... I tried to convince him to drop that plan... well, I think I've inherited my stubbornness from him...
user6568562
@AnttiHaapala : D I can understand your dad, 2000s were Nokia's hood
90s too
what was it the 5190? Was that the phone that everyone had?
Wow... today's most over-engineered answer goes to
@NinjaPuppy ewww
indestructible 3310
well, it was banned in some countries, because of the accidents, such as this:
19:46
haha yes
user6568562
Also the 3210 The 8210 was a work of art
I've had both 3210 and 8210
I can't stop eating these. My wife bought them and they are going to disappear soon: hatticom.com/media/catalog/product/cache/1/image/…
user6568562
user6568562
The future is now
19:49
yes! Oh wait.... The ngage!!!! Remember that?
@idjaw nope
user6568562
The ngage drove everyone crazy. We didn't mind to look lame while answering a phone call
@idjaw ah I thought you were saying the phone in @randomhopeful's pic was ngage :P
nokia was a cool company in 2000 and 2001. I worked as an intern there.
user6568562
The one's in my picture is the 5510, it could store you 60 Mb of good ole under-compressed mp3 like a champ
19:51
... too bad nothing of the research ever came into production.
we were doing augmented reality, auralization and such stuff...
... yet all the products were so dull...
user6568562
They were supposed to deploy Tunisia's GSM infrastructure along with Ericsson, and then I don't know what happened and Huawei took the job
@randomhopeful neither Nokia nor Ericsson can pay bribes...
@AnttiHaapala I don't know about you, but I regularly win the Google lottery
user6568562
@AnttiHaapala That sure should count for something
@AndrasDeak which one is that :P
19:57
Subject: Google Anniversary Winner
sender: Google Inc <[email protected]>

Dear Google User,

We congratulate you for being selected as a winner on our ongoing promotion, you were selected due to your active use of our online services, find attached PDF file with more information.


Congratulations.

Larry Page,
CEO/CO-FOUNDER
and an attached pdf with some details
never seen that one. I guess I am just not lucky :P
Official Notification.pdf
I can forward it to you if you'd like:D
I win it every other week or so
That's a great letter.
I want to see if I have that in my spam folder
user6568562
Well he was able to register info on gmail, he probably was using gmail before it was cool
Oh. I have a good one!
user6568562
20:02
@idjaw What !! She's cheating on me with you !!
better as a pastebin
user6568562
She told me about her late husband the uprising and the bloodshed, I wept for days
She didn't tell you that her name is actually Jonathan Gomez either.
how come I am not that lucky, I don't win anything, they just offer work or binary option investment...
user6568562
Oh, I was scared for a moment, then. It must be another millionaire with unfortunate circumstances seeking help
20:03
Larry Page <[email protected]>
:P
yeah, got one too :P
user6568562
Damn Internet, how the world could ever be a better place without you
ramfood. Yes. I guess that is Alphabet's "R" company? :P
getting forward :P
user6568562
@AnttiHaapala Way to get things going in the right direction [ : I didn't get most of the issue and the explanation, but I got some nice terms to google
20:26
nice <3
wtf
trying to add a review comment... I get 500 infernal error from the rietveld
Hello is it possible to cast binary data to arbitrary types in python ?
I mean (for example) that in C I could do this :
PyObject *o=buffer; // buffer is of type char *
result=myfunction(o->ob_type); // I can now access the ob_type member
return result
However it seems the python struct module only allows to unpack/pack bytes to basic types, that is, it’s not possible to get python object from arbitrary buffer.
I know about marshal or pickle, however the object I want to build aren’t marshable nor picklable.

However I know their internal CPython representation, and I’m able to build the binary structures (thanks to id() wich gives address). The problem is to find an alternative to the struct module so I can use the data as python objects.
Of course while writing C seems to be the best solution in my case, I’d like to avoid it. I can’t use _ctypes and I would like to avoid creating a module for restoring a single object.
@NinjaPuppy hmm
I don't get him :D
he had answered an opencv question in April :D
and now doesn't realize that Python variables are not quite interpolated within strings nor command line :D
20:44
@AnttiHaapala wow...
That's quite a regression in skill :)
Well, just watched The Double, directed by Richard Ayoade. The upside is that it's directed by Richard Ayoade.
20:58
@AndrasDeak I gave it 4.6, IMO it was almost terrible
it had its moments, but in general it was just meh
not to mention, that mr eisenberg almost ruined it..
(I have no idea why people are admiring of his acting skills)
anyway, if you want to watch a good Ayoade directed movie, watch the Submarine
(7.1/10 by me)
Of course, I didn"t asked that question on the main site. Ans nothing looks lire this.
haven't seen that but Eisenberg sure has an annoying voice.
@AnttiHaapala that is just one thing -- but he plays EXACTLY the same character in every movie, and this one was a great example: he had to play two roles in it, and guess what, the two characters were almost identical
well, I've seen only now you see me's and batman...
however in their lines were indicating completely different personalities!
21:02
but yeah they're pretty identical :P
@AnttiHaapala and the social network?
(he was good in SN -- that's the only one, where I liked him)
no, haven't seen it yet
@PeterVaro I don't like the guy:S And yeah, I was hoping for a bit that it would make some sense, although Ayoade's direction made me suspect that I shouldn't expect too much of that:D
Submarine's been on our list, thanks for the reminder!
but yeah. I agree with you :D
user6568562
Eisenberg went willy wonka on us. His "personal take" on Zuckerberg in SN ended up being his every other character
21:05
Only, in Batman I was so annoyed by his voice that I couldn't concentrate on his acting or lack thereof :D
The Double reminded me a bit of Highrise, where I was hoping until the very end that the movie would start to make sense (it never did)
@PeterVaro the missus would like to know if you've seen Wild At Heart:D
@user2284570 so what kind of data are you expecting and want to use? I don't think your wuestion is clear enough: are you "receiving" arbitrary binary data, which happens to be a python object and you want to "translate" it, so that the interpreter should use it as such?
@AndrasDeak missus?
my wife
no I haven't.. if a good ol' Cage is in a movies, that is a huge no for me :/
(though this one is old, when he had dignity and maybe talent)
maybe David Lynch cancels him?:D
I don't blame you, it's a horrible movie (she'd say otherwise)
21:10
so what are you saying? should I append it to my watchlist or not?
Weeeellll:D Movies by David Lynch make my skin itch from the inside. But others love them, so it really depends on your taste in movies:)
I'm not a huge fan of him, but for example I liked the Eraserhead
> Lynch's script for Eraserhead was influenced by his reading as a film student; Franz Kafka's 1915 novella The Metamorphosis and Nikolai Gogol's 1836 short story "The Nose" were strong influences on the screenplay.
well.. not liked-liked, because I only gave it 2/10 -- but at least it had so strong images and visual effects and music that I can still see 'em when I close my eyes
yikes, that must be trippy:D
21:13
it is one of those films you have to watch, really
That movie sounds right up her alley...I won't go near it:D
Thanks for the tip. You probably wouldn't enjoy Wild at Heart much...
so can I spoiler it for you?
@PeterVaro I want to translate my Cpython internal data representation to a python object that I could use from python code. I can put that data in bytearray or bytes type or memoryview or buffer. The problem is casting it to a python object without C (from python code)
@PeterVaro hmm...no, not yet:)
there's ~0.1 chance I'll watch it with her anyway
I just want to show you a youtube video
(a small clip from it)
21:15
go ahead then:)
the whole film is like this, if you like this, you would enjoy it :)
M'y binary data is just a CPython PyObject with it's membres.
@PeterVaro nope
@user2284570 I still don't understand it -- where does it coming from? is it coming from the C level? or the Python level?
thank you for the heads-up:D
21:17
@AndrasDeak that's a cool GIF :)
:)
Wild at Heart should be much less traumatizing, that's for sure:P
I watched it and didn't get scarred for life
well, I like traumatizing movies, for example Under the Skin is one of my modern days favourites
@PeterVaro from the C lever. It's a Pyobject *. However, I builded it f
haven't seen that yet...
you should, it is very hard to watch, very unconventional, but worth every minute
it just leaves you with so many thoughts, that eventually you cannot say anaything after the end credits for like half an hour
you are trying to put the pieces back together -- what have I just watched? what is the meaning of this?
21:22
@PeterVaro from the C lever. It's a Pyobject *. However, I build it manually from python code. But what I need is tout set the ob_type membr
@PeterVaro I'll put it on my list, thanks:)
@user2284570 what do you mean you have built it from python code? and why on earth you would want to do that?
@PeterVaro that reminds me, Son of Saul is also on our list. Sooner or later.
if you are already familiar with C, I strongly suggest you, to implement this at the C level -- it is very easy, CPython has a very nice C API
@user2284570 you cannot really do that safely from Python
@user2284570 what exactly are you trying to achieve here, and I am not asking about constructing a PyObject in Python, but why are you attempting to construct a PyObject
21:25
if you are not familiar with C, well in that case, I strongly suggest you to start learning it -- especially if you want to work at this level from Python
@AnttiHaapala that's what I'm trying to ask for a while now -- totally unclear for me
@AndrasDeak shame on me, I haven't watched it yet -- but it is on my list too, just as well as Tilla's new film (I forgot the title, it has something to do with disabled guys in wheelchairs..)
yup, Tiszta Szívvel:)
that's the one, yeah
Surprising amount of non-shitty movies we have nowadays. Against all odds:D
@AndrasDeak perhaps they should be banned
'
@AndrasDeak are you using hungarian-layout keyboard for programming?
(I'm asking because of the "í")
21:29
:326512 create a python object that normally can't be created from python code. My attempt to cast data is in fact a hugly hack.
@PeterVaro I use an English layout for everything, and only switch if I need to:)
@AndrasDeak phew -- good then :)
wat :P
everyone in Finland except crazies use the Finnish layout.
need to = "e-mail to a colleague" or "rare instance of Hungarian text needed"
we even exchange accentless e-mails with the wife
@AnttiHaapala let me search for it
21:32
@AnttiHaapala well the Hungarian layout is qwerty with z<->y switched plus accented stuff overriding useful shit such as ;'\{},/.
@AnttiHaapala it is very very similar to the ANSI one
sadly the hungarian is not
@AndrasDeak not to mention, that different platforms put different symbols elsewhere
it is just a complete mess here
sure, why have standards?;)
the {[]} need to be typed with altgr but I type them with one hand
actually, my laptop has Hungarian layout on the key caps, confuses the hell out of colleagues if they ever need to type on my computer (fortunately very rarely happens)
@PeterVaro yup...
21:33
thumb on AltGr
@AnttiHaapala when I started programming I used the hungarian layout -- and I learnt all the stupid combinations -- but that's just not good.. I mean learning the ANSI is a superb asset: every system and every physical keyboard can be switched to ANSI at any time
so no matter what computer you are using, you can always type as you used to it
@AndrasDeak I had a Sun Type6 USB keyboard a long time ago... the cap attachments were pretty sturdy, so I pried off all the caps and then put them in again in alphabetical order :P
instafun from friends "hey can I borrow your computer... ehmmm"
bbl # rhubarb for now
ok, now I totally get it :D
^I use this
@AnttiHaapala create a built in function on an embedded system without _ctypes and without dynamic linking. I already know my function address. The function i am trying to call is part of library required for running python on my platform. So it's already loaded as soon as the python interpreter starts.
21:40
:P
so you're trying to construct a built-in function object?
Ans with static linking the address is well known.
the problem is that you cannot use pure python to modify the pyobject without ctypes
^
but that's just plain eval
@AnttiHaapala looks like a way to build a function from python bytecode. Not with cpu binary assembly. Isn't it?
@user2284570 this is a hack to make it possible to read, write everywhere in memory without ctypes
21:58
@AnttiHaapala part of the reason why I use the English layout is that I started typing a lot when I started using IRC at the age of ~12. The java applet for the server we had access to didn't play well with the util that enabled Hungarian layout in windows. So I used the English one, and I learned to type with many fingers using that
I could never compensate this advantage, even if I wanted to:D
@AnttiHaapala so you suggest me to corrupt the cpu stack in a way to trigger a jump to the function code?
Antti says "use C-x M-c M-butterfly"
@AnttiHaapala OK so i'm looking to this more in depth. I just hope it doesn't relly on out of bounds writing (the cpu hardware does bounds checking in my case) and isn't cpu 32 bits specific.
what bounds checking?
22:55
@AnttiHaapala check bonds of buffer arrays and struct. Both on heap and stack. Violating this condition trigger a segmentation fault in the mmu. This is much like stack canary but enhanced. Bypassing is possible but very very hard.
23:05
Not to mention the heap is protected from execution. The function i m trying to jump to is part of the executable so it has the execute permission.
23:29
@AnttiHaapala Yes it's definitely 32 bits address space specific. So this won't work. A lesat not without modifyng it.
00:00 - 17:0017:00 - 00:00

« first day (2149 days earlier)      last day (3024 days later) »