« first day (1823 days earlier)      last day (3142 days later) » 

7:00 PM
You'd have to check the licencing.
 
user559633
Do whatever terrible shitty thing you want, but don't expect anyone to care when you want to work your way back from it
 
@davidism Still looking for something I can stick with. Browsing around, I caught a couple episodes of Umaru and Gintama and classic Lupin III but I couldn't get into any of them
 
Thanks guys - I know its a stupid situation but I appreciate the input
 
The last one surprised me because I liked every Lupin movie I've seen
 
user559633
@csjohn The non-sassy response is: there are ways, but you will not like what you must do/undo.
 
7:02 PM
Yeah honestly the best fix is either get your project lead to mandate the upgrade, or use the old API.
 
user559633
The best advice that I can give you, having been in that spot before, is to leave yourself hints where signatures will change in the new version.
 
user559633
Or do guarded "if package version N" statements.
 
The father of economics is right. Thanks @AdamSmith ;) lol
 
Is there any way to get back a directory removed by shutil.rmtree()
 
user559633
@AbhishekBhatia Yes. From backup disks.
 
7:03 PM
@csjohn Sorry, but I'm Not The Economist
 
Why did you format that as a code block?
 
@tristan Yeah. It's annoying because the upgrade isn't even that big of a deal. It's just riskier than no upgrade, so the answer is no.
 
user559633
because u aint my real dad
 
@AdamSmith lol awesome domain grab
 
@tristan it isn't in recycle bin. Do tell more
 
7:05 PM
Not much evolutionary distance between "put all code in code blocks" and "put all conversation about code in code blocks"
 
heh
 
user559633
@AbhishekBhatia is there any way to replace toes after you shoot them off?
 
@csjohn When you've been maintaining software for as long as many of us have, the word "upgrade" wakes you up out of a deep sleep in a cold sweat.
 
"It's a convenient way to distinguish actual Python chat from all the chaff in here", think proponents
 
@AbhishekBhatia why would expect it to be in the Trash? It was removed, not moved to trash. You can restore from a backup you created earlier. You do back up your files, right?
 
user559633
7:05 PM
no, you pointed the gun at your toes and shot them off. the only way to put them back is to hope you can find them somewhere close-by
 
@AdamSmith I'm talking about the facebook marketing api SDK... where each version is supported for 6 months lol
 
user559633
@Kevin >>>boy aint u clever
 
user559633
i never know how to do that, for i am an idiot
 
user559633
@csjohn abstract that portion to its own module so you can pin your wrapper to the 3rd party version
 
devs please implement font coloring so more important chat can stand out. This request is code formatted so it gets more attention
 
7:07 PM
@tristan the provided versioned code is an SDK whose objects and so on we use directly (unwrapped)
Ill probably just figure out some 1 version solution, or quit lol
 
user559633
also, facebook is terrible and you should integrate with narcissism.me instead
 
I didn't back them up. I accidentally ran a script that removed some data. Is there no way to get it? Maybe some tool?
 
@Kevin could probably make an "extended formatting" userscript that used non-printable characters as the markup
 
@AbhishekBhatia you could look at some kind of file recovery tool. But that's out-of-scope for a Python room.
 
@AbhishekBhatia Treat it like you'd treat any file you moved to your recycle bin and then emptied the recycle bin
 
7:09 PM
@AbhishekBhatia why are you asking the python room? go ask superuser
 
user559633
shutil.plz_put_back_tree()
 
devs pls implement, urgent
 
user559633
from socket import socket
socket.connect_no_not_really_im_shy()
 
I need to register a Python package called do so I can do.the.needful().
 
Wait until science invents a time-looker-backwards-tube, and use it to inspect the state of your hard drive on October 11 2015.
 
7:10 PM
That'll be the day. Or has already been?
 
I don't understand "do the needful," and at this point I'm almost too afraid to ask
 
user559633
@Kevin it's called time machine
 
user559633
man, apple is just way better at everything than microsoft
 
Even counting to ten!
 
user559633
@AdamSmith it's a common demand from programmers from $outsource_country
 
7:11 PM
Oh my god it's available on PyPI too. I really should finish jazzhandsbefore I take do though :/
 
user559633
@AdamSmith can't wait for microsoft windows version 20. it's how they count
 
what does it mean??
 
Time Looker Backwards Tube can also view old TV shows and historical wars and dinosaur battles.
 
It means "Please do what needs to be done."
 
user559633
@AdamSmith "plz to do my work for me"
 
7:12 PM
@Kevin even historical dinosaur wars?
 
But of course.
 
user559633
way to name squat @Ffisegydd
 
do sounds like a really obvious name for some shell integration package.
 
Ideas welcome :D
 
7:13 PM
something to fight with subprocess
 
@Kevin I read some book a long time ago, can't remember the name, where they had such a device but no way to actually travel back, and then started noticing cleverly hidden messages wherever they were looking with the viewer. It was pretty good.
 
I was thinking something along the lines of github.com/ajalt/fuckitpy
 
do('git', 'add', flags=['all'])
 
do should also be able to call do.the.jazzhands()
 
user559633
7:15 PM
tl;dr?
 
do could also be some kind of cron library.
 
user559633
how did you register so quickly? did you already have a setup.py ready?
 
ooh that's true. Or some kind of concurrency wrapper? Like go in golang
do.the.func_name(*args) to spin off in a different thread
 
Actually maybe something that runs Python files. So you can import them but if you need to run it using command line args you'd have to use subprocess.
Could just make a nice little interface for it.
So you've got your file foo.py which accepts various flags that you want to programmatically control.
Can you make a package callable? </black-magic>
 
People are asking me questions about node at work now. Am I good at node now?
 
7:20 PM
@corvid People ask me questions about Excel at work every day. They're just bad at Excel.
 
@tristan Sciencemen create a perfect simulation of the observable universe, and are surprised to find that modifications they make in the sim also appear in their reality
 
user559633
thanks for the tl;dr :)
 
Okay we need ideas for jazzhands now.
 
to be fair it does seem like an easy recipe for mary-sue-ism
Luckily the story is too short for any of the characters to get the idea to make Hogwarts real or anything
 
Wtf is jazzhands. I've heard it like 3 times in the past couple days and it's been nothing but an empty repo.
 
7:24 PM
It's my 2nd-latest invention.
 
user559633
 
jazzhands is love
 
Touche
 
It's nothing at the moment because I literally said "I like the name!", name-squatted it, and now need to find an idea for it.
 
Well, I have some PHP scripts depending on its current behavior so please don't break backwards compatibility.
 
7:25 PM
LOL
 
Reposting for lack of a better suggestion
Sep 24 at 19:38, by Kevin
#jazzhands.py
import time
while True:
    print "\r/ \\",
    time.sleep(0.1)
    print "\r\\ /",
    time.sleep(0.1)
 
My initial idea for jazzhands would be that you import it and at the end of execution it does some kind of jazz-handy thing.
 
jazzhands should be a logging module that logs success instead of failure
 
if tests pass, jazzhands
 
:O
 
7:27 PM
instead of logging.error, logging.warning and etc
 
make it a nose plugin
 
it'll be jazzhands.alright jazzhands.pretty_good jazzhands.great jazzhands.fantastic
 
I...I f**king love it...
 
Make it play tada.wav if your program finishes executing without crashing
 
I'd buy that for a dollar
 
user559633
7:28 PM
please to not make jazzhands a thing
 
Hire a marketeing team and make it a new development paradigm
 
STOP SHI**ING ON MY DREAMS TRISTAN!
 
user559633
we already suffer enough from being kind of close to ruby
 
user559633
@Ffisegydd how you say, come at me bro
 
I will reck u I swer on me mum.
 
7:29 PM
get Apple to adopt it and give a keynote speech about "Positivity breeding intent"
or something
 
I'd say "fight me irl" but I don't think I could take any of you
 
You watch. Next year at the Apple keynote it'll be "New to Apple: Soul Hands" and the crowd will go wild.
 
user559633
ever want to just take a bunch of drugs and start writing lisp instead
 
should have pulled the trigger faster on this dupe, FGITW wins again
 
Oh my god.
http://stackoverflow.com/questions/33111086/how-to-replace-integer-with-a-character-in-c
Someone actually unironically asked FizzBuzz on SO.
 
user559633
7:32 PM
On it
 
I hope OP is on a phone interview right now
 
user559633
Oh god me too.
 
And takes Tristan's comment as sincere
 
close it as too broad
 
user559633
Leave it. Leave his shame for god to see.
 
7:35 PM
I'm trying to hide the laughter at work right now...it's not happening...I'm laughing at my desk..
 
I am too.
 
We must close because the unwashed masses of the Internet can't resist implementing Fizzbuzz, even when nobody asked them to.
This thing is a cognitohazard
 
ooh there's something I haven't implemented in golang yet. Off to write fizzbuzz~
 
I want to be believe OP is trolling...but I know in my heart this is for real
 
Can't remember if I've done fizzbuzz in KevinScript yet...
 
7:38 PM
doesn't count if you can't remember...get to it
 
user559633
last time someone demanded fizzbuzz in c, i had it overwrite chunks of memory with FIZZ or BUZZ
 
were those chunks of memory in their MBR?
 
user559633
MBR is on disk yo
 
someone actually upvoted the fizzbuzz
 
DSM
Write a small Scheme interpreter in KevinScript, and then write fizzbuzz in Scheme.
 
7:39 PM
"memory" is ambiguous :)
 
user559633
@davidism probably wanted it to live a bit longer for the comment fun
 
user559633
@AdamSmith it's really not
 
fizzbuzz
 
user559633
only because now marketing vocabulary for computers is stupid.
 
user559633
7:41 PM
my phone was marketed as having 64 GB of memory. notice lack of "flash" as a qualifier. i considered rooting it, trying to create a 60gb ramdisk, and then complaining to google before realizing that they don't care and that alcohol exists to drown my disappointment in civilization
 
@davidism rosettacode.org/wiki/FizzBuzz OP had a buffet of choices! :P
all the languages!!!!111!
 
DSM
If you can't even figure out the right keywords to google, I'm not going to hire you.
 
user559633
@DSM i am, but as a housekeeper, and trusting that you can't type "workers rights is this illegal imprisonment" into google
 
user559633
somewhere, tristan's lawyer just started crying and doesn't understand why
 
Why would he think the problem was world-renowned and easily googlable?
 
7:45 PM
my initial attempt is too good not to share
 ? FizzBuzz? ? Fizz ? Buzz Fizz ? ? Fizz Buzz ? Fizz ? ? FizzBuzz?   Fizz " Buzz Fizz % & Fizz Buzz ) Fizz + , FizzBuzz. / Fizz 1 Buzz Fizz 4 5 Fizz B uzz 8 Fizz : ; FizzBuzz= > Fizz @ Buzz Fizz C D Fizz Buzz G Fizz I J FizzBuzzL M Fizz O Buzz Fizz R S Fizz Buzz V Fizz X Y FizzBuzz[ \ Fizz ^ Buzz Fiz z a b Fizz Buzz
bah it doesn't paste. Lots of unicode symbols.
apparently string'ing an int in golang interprets it as a codepoint
I'm guessing
 
I like the "just put the outputs for 1-15 in a dict, and lookup each value mod 15" solution.
 
user559633
@QuestionC idk, but my school had a requirement of liberal arts and at one point i remember googling "what are my opinions on (said purse-dumpy-shit novel)"
 
DSM
"what are" google-autocompleted to "what are those" for me.
 
It's more like seeing the Brooklyn Bridge and not realizing the name.
 
user559633
i wrote the words; i just needed to plagiarize giving a shit
 
7:47 PM
"Aha, that must be the Manhattan bridge"
 
27 mins ago, by Ffisegydd
Can you make a package callable? </black-magic>
(Repasting as per standard power-abuse use)
 
awww the fizzbuzz is gone :(
 
user559633
Do you mean the New York and Brooklyn Bridge? I'm a bridge name purist.
 
50
A: Callable modules

Alex MartelliPython doesn't allow modules to override or add any magic method, because keeping module objects simple, regular and lightweight is just too advantageous considering how rarely strong use cases appear where you could use magic methods there. When such use cases do appear, the solution is to make...

Alex has got my back.
 
DSM
Aargh, I was about to propose making a subclass. :-/ I like his approach better.
 
7:49 PM
What was your idea @DSM?
# Basically I'd like to be able to do:

import do

do(the, needful)
 
DSM
I was thinking of going the other way, namely instead of making a new instance and delegating, making an instance of a module subclass and loading it up with the stuff from the original module, and hope that the Python-level subclass would pick up special methods.
 
Doesn't even really need to be "callable". A class would do the job. So if upon importing package do was replaced with the class do.
Then the __init__ signature is just your "call"
 
DSM
I don't usually work with import hooks. Is there anything you can hook into which gets a handle to the module and can return something else?
 
Oh boy time to learn PHP...
 
7:55 PM
So do is going to probably be some kind of subprocessy/python run helper/thing and jazzhands will be a "logging awesome stuff"
 
DSM
@Ffisegydd: out of curiosity, why is it so important to avoid from do import do?
 
Because then people may do import do; do.do and that just won't do.
And there will be the secret do.the.needful method which you have to enter a secret passphrase to get to work.
I'm thinking do could raise errors but do.the.needful will just plow through and ignore all errors/exceptions/whatever.
 
So... time to rewatch the David Beazley PyCon thing?
... again
 
DSM
o.O My head hurts now.
 
@QuestionC "Module packages live and let die". That one?
 
8:00 PM
Yea. It's great if you've never seen it before.
I mean, it's great if you have too.
 
Implemented both a naive for loop and the 1-15 mapping lookups in a for loop. Couldn't figure out why my outputs were different
 
never have, actually. Will definitely watch it.
 
turns out I may not be a bad programmer, but I can't keep my Buzzes and Fizzes straight (I did i%3 == "Buzz" in one and =="Fizz" in the other)
 
I got bored.
 
The trick is not to fizz the buzz. That's impossible. Instead, try to realise the truth. There is no FizzBuzz. Then you'll see, it's not the buzz that fizzes, but yourself.
 
8:03 PM
Whoops too long to post
 
so yeah. string(some_int) treats it as a unicode rune. strconv.Atoi(some_int) changes it to a string. Why.
 
There we go.
 
DSM
What? .. and why?
 
It's a polynomial that maps the integers 1-20 to the integers 0-23, which are used to index a list containing the values that need to be printed
I may be able to do it without the fraction module if I rearrange the coefficients
Nope, I can't
 
__version__ = '0.1dev0'

import sys

class _do(object):
    def __init__(self, foo):
        print(str(foo).upper())

    class the(object):
        @classmethod
        def needful(self, foo):
            print(foo)

sys.modules['do'] = _do # Hacky way is hacky.
Is there a way of telling whether import X or from X import Y is used inside the package and then modifying the behaviour? </blackest-of-black-magic>
 
8:21 PM
the hackiest of hacky approaches is to read the file and get the import statements :P
 
Fizzy, now you can _do.the.needful(foo)!
 
I need a way to make _do secret.
Possibly nest it 117 packages deep so you'd actually need to do do.if.you.go.down.this.rabbit.hole.then.i.promise.ill.kidnap.your.cat...
 
Why the "_"?
 
You're not meant to use _do. You're meant to:
import do

do(the, needful)
The sys.modules hack at the bottom replaces the module with the _do class.
 
oh, I missed the removal of the "_", but why that in the first place?
 
8:25 PM
Because the end-user is the enemy and I want to confuse them greatly.
 
can you del _do afterwards, or will that break everything? Maybe sys.modules['do'] = copy(_do); del _do
 
>>> class Funky:
...   def __call__(self): return self
...   def __getattr__(self, attr): return self
...
>>> do = Funky()
>>> do.the.needful()
<__main__.Funky object at 0x0000000002D89908>
>>> do.the.needful().all.night.long()
<__main__.Funky object at 0x0000000002D89908>
 
DSM
If you give it an __init__.py, could you protect it with __all__?
 
The only issue with my method is that print(do) returns <class 'do._do'>.
I'm afraid I might just have to have from do import do ;_;
 
DSM
You can customize the instance repr.
 
8:29 PM
I wonder if I could hack something together that'd break the end-user's computer if they tried do.do...
 
DSM
Your goals here are more.. malevolent.. than I usually associate with a guy nicknamed "Fizzy".
 
I'm showing my Buzzy side.
 
DSM
Heh. (tips hat)
 
It's like Dr. Jekyll and Mr. Hide.
 
Couldn't you just make a function do that raises a NotImplementedError?
 
8:31 PM
Or I just have:
import do

do.it(...)
do.the.needful(...)
 
I mean, or subprocess.call("rm -rf", "/"). Whatever.
 
jazzhands is docs.python.org/3/library/logging.html with either "awesome" levels or (maybe even better) customisable levels.
Actually logging already supports the customisable levels (TIL)
 
Yeah I envision it as an alternative to logging where instead of listing things pessimistically (logging.warn("Something bad happened")) it's an upbeat logger (logging.celebrate("This function %s completed successfully!" % f.__name__))
 
I could even use logging as I can customise the levels. Meaning it's just a nice wrapper with all the original functionality..
 
make a related package showstopper that implements a webserver that just monitors for jazzhands celebration calls and throws some fancy jQuery "WOW!" on the screen whenever something cool happens.
alright, I gotta get some work done
rbrb -- good luck fizzy
 
8:53 PM
"If your fidelity to perfectionism is too high, you never do anything."
Python is fairly optimal though.
 
Rbrb all
 
Anybody looking for a job?
 
No.
 
I'm not a spammer. @JohanLarsson will vouch for me there, but I don't know how well you know him as legit either
 
I can't imagine recruiting here will end well for you, @TomW
 
DSM
9:07 PM
Johan's a good guy, but out-of-the-blue job Qs still come off as a bit spammy. :-) Don't know we have a written policy otherwise, though, come to think of it, on account of its rarity..
 
Noted. It's not for my benefit, anyway, if that makes any difference
 
However, it might, if you're offering me 300k plus benefits.
 
DSM
I'm not even sure where the right redirect suggestion is. :-/
I guess now that there's a semiofficial Python job board, that's not a bad idea.
 
oh yeah, I forgot about that
and of course there's careers.stackoverflow.com
 
@AaronHall as you mention it...I don't have many details however I believe it's NYC, fintech, $145/hr. Pardon linking to a jpg which I realise is 'tarded, but it's linkedin and they don't seem to support deep linking
 
DSM
9:11 PM
Careers is a little steep pricewise from the recruiter side, though. I looked into using it to hire a dev a while back, but there were cheaper local options, so I couldn't sell the Powers that Be on the "the cost is only a small fraction of the salary, so isn't it worth it?" argument.
 
Laurence is an ex-colleague, good guy. For a recruiter.
 
Is $145/hr normal for NY? That's seems pretty high given the required skills.
 
Wow, I'm pretty well on the nose.
My current employer has me cheap.
 
No idea. Never used the language and never worked in the US
 
Was thinking the same, but then it's a random spam image so why think twice about it?
 
9:13 PM
That's true also.
 
$145 is probably only for C2C, which means you pay a lot of extra taxes. Still, it's very high.
 
C2C?
 
Company 2 Company
 
contracting.
 
extra taxes being SET?
 
9:14 PM
You pay the employer's share of FICA taxes, and you're on the hook for your own insurance. Maybe some other things. I just started that myself.
 
"We're willing to pay $145/hr if the person is qualified but works for a contractor, but only $100 if the person is qualified but self-employed" seems somewhat disingenuous.
 
Still...
 
Self Employment Tax
 
$100/hr is no joke.
Oh, yes then. SET
 
Well yeah, but $145/hr is less of a joke that that.
 
9:16 PM
Well, it's out there if any of you are interested. I'm trying to find a real ad on a real website for that particular position
 
In any case, I'm working in a similar-ish arrangement and it's high but not obscene.
I guess it is obscene, but NYC is kind of like that.
 
Any advise on how to save an open webpage as a gif please? I open it using
import webbrowser

webbrowser.open('test.com')
 
curl?
or I suppose wget
 
thanks
 
DSM
9:27 PM
So I installed the SE app on my new phone. Weird to have it buzz when someone replies to a comment.
 
9:37 PM
Yeah it's pretty good. Would be nice to see a good chat app too. In case you didn't know this You can actually get to chat from the stackiverflow link in the left pane from the hamburger menu. Just press it long enough
 
DSM
hamburger menu?
 
yea top left link with there horizontal lines
 
DSM
@AdamSmith: but replace needs a string as its second argument..
 
he's doing replace('foo', 'bar') instead of bar="baz"; replace('foo', bar) Oh I'm dumb
 
DSM
Yeah, but he doesn't have bar = "baz", he has bar = (1,2). That won't work.
Time to flee. Rhubarb for all!
 
10:29 PM
how do you install urlib2 from the command line please?
 
urllib2 is part of the stdlib
(so you install with sudo apt-get install python)
 
keep getting ImportError: No module named 'urllib2'
 
Are you in Python2 or Python3?
The first line of the urllib2 docs from Py2 says: "Note The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to Python 3."
 
Python34
 
so there is no urllib2 module :P
 
10:34 PM
ahh, thanks
 
10:48 PM
Hey Pythonistas, what's up?
How you doing?
What's going on?
 
user559633
Feelin burned out :)
 
user559633
You?
 
C++ talk. not too bad. Plus WeWork has the beer turned on.
 
Learning about how to not destroy a house.
 
@tristan one of us, one of us, one of us
 
user559633
10:50 PM
@davidism That's high, but depends (if you have to provide all own equipment, maintain multiple insurances, short duration of contract)
 
I've been to too many meetups at Wework that advertise beer, but have the beer turned off. It's become a pleasant surprise.
 
user559633
I wish I was at a C++ talk or reading a book.
 
bamon hoye chand dhorar shokh
 
user559633
uh okay. didn't know you spoke bengali
 
10:53 PM
:)
goes to pour himself another beer from the tap
 
user559633
are you insinuating that some way that drinking beer at a talk that's meant to mask the event's true role as a job networking event makes you aristocratic?
 
Shhh, it's the beer talking.
 
Aristocrats are renowned drinkers...
 
tries to be less aristocratic
 
user559633
Well, this is fun!
 
10:57 PM
enjoys having fun
So, jolly good, chaps.
Old boy.
 
Chin chin, old boy
 
Argh stupid network
Dropped my VPN tunnel for about 45 seconds
Just long enough to make me worry
 

« first day (1823 days earlier)      last day (3142 days later) »