« first day (2409 days earlier)      last day (2540 days later) » 

12:06 AM
@wim there's a Stack Overflow open space right now in B112. Come say hi.
 
Brief cbg
 
hi
 
hi
 
Got a bunch of upvotes...I'm wondering if a badge I got due to them will also be reverted (probably not)
 
@AndrasDeak: tag badges: yes, regular badges: no.
So those nice answer and enlightened badges are yours to keep.
 
12:19 AM
And they said no free lunch! :P
Thanks, that was my notion as well
 
:)
 
user1118051
morning guys
 
user1118051
is there any javascript object equivalent in python?
 
user1118051
i want to store a string with metadata attached to the string
 
dictionary
Or create a class
 
user1118051
12:33 AM
can share a simple example of dictionary with metadata?
 
user1118051
or link to example?
 
12:48 AM
I suggest google
Python also has modules for JSON
 
@MartijnPieters it's sad you could not make it. We are here at the open space like the last year.
 
1:37 AM
cbg
is anyone here familiar with chempy?
 
wim
@WayneWerner where's for eating? i was thinking of checking out Marukin Ramen
609 SE Ankeny St A, Portland, OR 97214
https://goo.gl/maps/QMmCrdmCzgv
 
2:40 AM
@wim I'm not sure where @davidism did, there was food here at the PyLadies auction
Though I'm totally down with going out somewhere else again, possibly dessert oriented :D
 
@wim @WayneWerner We're at Burnside brewing waiting for food, then going to Cascade later
 
 
3 hours later…
5:26 AM
@AndrasDeak @raymondh talks about role of dictionaries in python here. You can watch. He is very active on SO as well
@davidism Honestly I am still not clear.
 
5:45 AM
Hey guys. This is a long shot, but does anyone have any idea how (or if it's possible) to set up some worker processes on Python that each contain a part of a database to which I can send a query and receive a response?
I've tried playing around with the multiprocessing module, but I've not found any way to do this kind of thing using it so far.
In the worst case scenario I could just set up a bunch of different python processes by hand and have some kind of web server or pipes to connect them, but that's not so ideal.
 
@DanielCrane @raymondh talks on thinking about Concurrency here using python
 
6:00 AM
Thank you, I'll check it out now! :)
 
@DanielCrane Theoretically,If you see 1) multiple actors 2) shared resource 3) Rules to access(jargon - Synchronisation mechanism) that shared resource. you call it Concurrent system. Multiple actors can be threads or local/remote process.
Synchornisation mechanism can be implemented two ways, 1) Atomicity(Ex: Lock/mutex, Binary semaphore) 2) Conditional synchronisation(Ex: Counting semaphore).
Based on these properties, I go further and see, If I require Concurrent system. BTW, am still not clear on, when to use Conditional Var/Monitors/Message passing(CSP).
 
6:51 AM
recbg
damn you pycon :(
 
 
4 hours later…
10:37 AM
from functools import wraps, partial


def debug(func=None, *, prefix=''):
    if func is None:
        # Wasn't passed
        return partial(debug, prefix=prefix)

    # func is function to be wrapped
    @wraps(func)
    def wrapper(*args, **kwargs):
        print('{}, func.__name__'.format(prefix))
        return func(*args, **kwargs)

    return wrapper
On calling add(1,2) say, debug() goes in infinite recursion due to partial() calling debug() again with func as None
Not calling but returning object
 
11:08 AM
hmm, why would virtualenv venv not created /bin/activate?
 
11:37 AM
@alecxe Sorry to be missing it! It just wasn't in the cards this year :-/
 
12:03 PM
cbg
 
12:16 PM
Have we got a handy dupe that describes the problem with: def function(): function = 'not a function/callable'; function() ?
 
Did anyone see the Instagram keynote. Highlights: Switching to Python 3 gave a 12% CPU perf win, 30% memory saved on Celery tasks.
And that little 'web workload' mention at the end? That's this project: github.com/Instagram/django-workload
(Disclaimer: that's my work there)
 
12:32 PM
@Martijn ahh... the one you said not to mention yet in BR? :)
 
@JonClements that one :-)
I think Intel wanted to say something about it too, still trying to find their talks.
I do know that Intel is giving presentations about the workload at their booth.
 
Sounds kinda fun...
@overexchange not sure a list is the best example there... what about other types such as a dict or those that implement a custom __getitem__ where you don't necessarily even know a pre-condition before that'll succeed?
 
1:21 PM
Wow - what a train wreck of a Q&A - stackoverflow.com/questions/44097015/…
 
@JonClements and Right Leg is now stuck with a -3 answer. Still, +9 points, eh?
 
yeah... sighs
I think they're on course to almost explaining it - but not enough so that it doesn't read as misleading...
 
 
1 hour later…
2:32 PM
Writing new Python library to generate mock pandas dataframes with certain constraints (e.g. specific type, number > x, etc). Need a package name. Best name wins my grudging respect.
 
There should be a naming SE website for this.
@Ffisegydd How about paker, along the lines of faker?
 
Faker will probably be a requirement for it for generating text.
 
fraker - frame faker...
I may be bad at this, but it seems fun. We should totally have a naming.stackexchange
 
@Ffisegydd koalas
Because they are fake pandas...
Maybe?
 
2:48 PM
@Code-Apprentice That sounds great, I am totally bad at this :D
 
Pity firefox is already taken.. Those are fake pandas too.
 
Initial name, unless someone comes up with a better one, is pandamonium.
 
That sounds good, too
 
 
2 hours later…
4:27 PM
@Ffisegydd long shot: amock, short for ailuropoda mock
 
cbg-evening
 
 
1 hour later…
6:05 PM
What should I focus on, learning new algorithms/data structures, or solving problems on hackerrank?
 
 
2 hours later…
8:13 PM
Just landed my first junior Dev role and was wondering if anyone had any tips?
 
 
2 hours later…
10:10 PM
@Lewis909 Don't call yourself a "junior dev" when introducing yourself to others or creating an email signature ;)
and on the technical side: be able to debug stuff before asking people :) (be it stackoverflow or coworkers)
 
Hi
I have a question
Suppose I create a string using the format function or %
and later I want to retrieve the values
Is there a easy way to achieve it?
 
if you have a string, you have a string
fortunately it holds no memory of its heritage
you might be trying to ask a question along the lines of "how can I parse a string in python?"
 
since the string was built with different variables, I suppose the best way then to achieve this is with a regex
 
depends on what the stuff are sorrounding the different values...
 
at this point
 
10:17 PM
you might be able to just use built-in string operations
Mar 14 at 16:09, by davidism
@nbro http://stackoverflow.com/help/mcve
 
@AndrasDeak Please, stop sending me this article!!!
I'm not the lastest guy arrived at this website
 
please stop expecting others to help you with vague, ill-formed questions
 
@AndrasDeak It will remain vague
 
I gave you a vague ill-formed answer already
 
;)
My original question was actually very precise
 
10:20 PM
sure
@nbro No.
 
Sure, what?
What's the vagueness in this "Suppose I create a string using the format function or %, and later I want to retrieve the values, is there an easy way to achieve it?"
tell me, what do you need to know more to answer my question?
 
4 mins ago, by Andras Deak
depends on what the stuff are sorrounding the different values...
 
I'm just losing my time with you
 
we both are
at least we agree
 
you want someone to talk with
ok
fine
 
10:22 PM
good luck
 
good luck what?
 
good luck in your future endeavours as I do not find it constructive to stay here discussing this with you :P
 
do you think that I am not able to split a stupid string or using a regex? my original question was if there is an easy way to achieve such a thing, maybe a library
you probably have toothache
 
:D
 
10:47 PM
yo
 
@nbro: Your original question was most likely an XY problem
always explain what you really need to do, chances are good there's a better way than what you had in mind
for example, depending on what you do with that string you might want to keep the original data around instead of shoving everything into a string
 
11:03 PM
@ThiefMaster Sorry, but according to the definition here "The XY problem is asking about your attempted solution rather than your actual problem." I do not agree my original question was a XY problem
but ok
 
to me "Suppose I create a string using the format function or % and later I want to retrieve the values" sounds like a rather abstract problem - or more likely an attempted solution for /something/ else
 

« first day (2409 days earlier)      last day (2540 days later) »