« first day (2077 days earlier)      last day (2889 days later) » 

3:00 PM
workers for python-rq closes by itself after an hour (approx)
any ideas why this is happening?
 
@AndrasDeak I think you must be thinking of forecast.io which has significantly less cats
 
@WayneWerner no, I'm not. I meant forecats.io:P
 
(at least according to my very unscientific test of opening each tab and checking my chrome task manager)
 
it might be a firefox thing
 
I want to go to this weather.
 
3:04 PM
it generates 100+% cpu load
but the forecast part also flashes really fast sometimes
there might be a connection
 
I wonder if Firefox is just not optimized for animated gifs
 
that would not be surprising
 
apparently chrome doesn't use any memory for the page, either?
 
I mean, I often see huge cpu load with gifs
 
It's pretty well known for being a memory/cpu hog
 
3:06 PM
These are questions that I'd love to ask somewhere, but I don't know if they're appropriate for SO (or any SE site)
Yeah... I've had to flip flop back and forth between FF and Chrome(ium)
of course, my severe tab-it could be to blame...
I've been known to usually have so many tabs that the only thing you can see are the favicons
and occasionally too many tabs for that :P
 
I think you could ask those questions at Webmaster.SE though
yesterday, I was building some theme analysis stuff and had 121 tabs open
 
I wonder if "Which SE site should I ask this question on?" questions belong on Meta.SE. Or maybe an area51 proposal is in order :D
 
DSM
Morning cabbage.
 
of course, there is currently a really good question on learning mathematics (when physically disabled) that could have been asked on at least two other sites - so what do you do with those :P ;)
 
It's attracting answers.
 
3:17 PM
I'll quickly create and self-answer What Isn't a dict? and you can close as a Negation Dupe
 
A.Bigot? Methinks the OP is a troll?
 
I have a question that I should really know the answer to, but my brain doesn't want to cooperate with me today
I have the numbers 0-9. These are class labels. I need to sample these class labels from a distribution characterized as follows:
 
@WayneWerner Yeah, I have a sneaking suspicion.
 
it is the right half of a normal distribution, centered at 0, with sigma**2 = 20
there has to be a better way (than mine) to sample the distribution
my way (caveat: it's terrible):
def generate():
    pdf = lambda x: 1/(math.sqrt(20*math.pi) * math.e**(x**2/20))
    r = random.random()
    t = 0
    for i in range(10):
        t += pdf(i)
        if r <= t:
            return i
anyone have any thoughts on this?
 
3:26 PM
I dunno, that looks pretty reasonable to me.
 
are you sure? I have an uncanny feeling about it...
 
No you can't, never mind, I'm an idiot. :P
 
lol. Alright. I just wanted to make sure that I didn't miss anything obvious. Having another set of eyes on it has helped. Thank you
 
No problem.
 
3:36 PM
@inspectorG4dget Why not try random.gauss and loop until you get a positive value, it may be faster.
 
@PM2Ring oh thanks! that's what I was looking for :)
 
DSM
If we know it's centred at zero, I'd just draw a random value and take its absolute value.
 
@DSM Even better. :)
 
:D:D:D
 
It's 1:40 AM and I've had a long day. That's my excuse, and I'm sticking to it. :)
 
DSM
3:43 PM
Your suggestion is far more general, so it's got that going for it. :-)
 
I got all excited reading this because I didn't know cd had a "-" flag. Then I tried it and it didn't work.
 
I guess so, although it does require a few loops if the region you want samples from isn't close to the mean.
@Kevin Try it in a proper shell. :)
 
DSM
I remember the first time I implemented a ziggurat algorithm for a friend. Felt super clever. :-)
 
cmd isn't good enough, eh? Ok, I'll try it in powershell...
cd : Cannot find path 'C:\Users\Kevin\Desktop\-' because it does not exist.
At line:1 char:1
+ cd -
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\Kevin\Desktop\-:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
Hmm. Odds of this being an elaborate prank rising...
 
@inspectorG4dget "positive value" or "nonnegative"?
 
3:50 PM
zero is positive, for sufficiently large values of zero ;-)
 
DSM
@Kevin: aren't you windows guys all bash-y now?
 
I recall reading an article on that but I guess it hasn't trickled down to my workstation.
 
It's only out for insider preview builds.
mpthrapp@DESKTOP-30G7CD3:~$ cd -
bash: cd: OLDPWD not set
That's cool!
 
There's also alvinalexander.com/linux/linux-teleport-command-cd-improved though it's a bit customized.
 
There's another phone repair question on the main site... Hmm, the fun has gone out of spotting them now that I know they're all doing GRE practice quizzes.
Or, not GRE. Some other acronym that I forget what it is.
 
3:57 PM
@DSM I just had a look at the random.gauss source: it uses Box-Muller. hg.python.org/cpython/file/3.5/Lib/random.py#l546
 
@AnttiHaapala non-negative. That absolute value idea would work
 
Heh, I was about to say "I wish Windows' cmd had pushd and popd like I had on the Linux boxes in college" but it turns out that Windows does have them.
 
only, the problem is that zero would be twice as often in pm2ring's solution
 
@MorganThrapp Another nice Bashism is shopt -s autocd, which does an automatic cd if you just type directory name and hit Enter.
 
Oooo, that is nice.
 
4:05 PM
It's very handy if you drag a folder icon to your terminal
 
@PM2Ring I've been using that for 15+ years in my Zsh
... along with cdablevars
 
Hi champs
 
@AnttiHaapala pretty sure there's been an option in Windows for at least a decade to right click in explorer and do command prompt here or something
 
for some reason dragndrop from nautilus to konsole doens't work at all
 
4:13 PM
@AnttiHaapala The Amiga had an autocd option, I really missed it when I started on Linux, until I learned about shopt -s autocd
 
@PM2Ring zsh is the one shell to rule them all.
 
@AnttiHaapala Weird. I use konqueror and it does DnD to konsole ok. FWIW, I use konqueror rather than dolphin because I like its integrated text editor. It sucks for most Web browsing though, unless you enable Webkit, but I mostly use Firefox for my browsing anyway.
 
I am using this unityshit for "least resistance" on ubuntu, but the gnome terminal is so bad... :/
guess I need to swtich to dolphin
 
recbg
@QPaysTaxes whitespace-sensitive syntax is not readability, it's just a burden we must carry together:P
sorry for the triple ping
 
lol at that german hostage crisis
50 people injured...
now "gunman dead, no others injured"
 
4:22 PM
@AnttiHaapala are you using extensions?
@AnttiHaapala ok that kinda explains the "lol", I was going to ask:D
 
extensions?
I'd rather have them report exactly on the day of brexit polls
 
@AndrasDeak No, that's not extensions, that's Antti's natural hair. :)
@AndrasDeak Antti has a somewhat idiosyncratic way of using English... but I guess you've noticed that already. ;)
 
I mean: "yet another terrorist attack in Germany, 50 dead"
 
@PM2Ring I write faster than I think
 
4:26 PM
@PM2Ring the curls are really convincing though
 
@AndrasDeak hmm I am not using gnomes' hell
 
oh you wrote "gnome terminal", nevermind
somehow I associated to gnome-shell, which is gnome, which is great
it will also not sell your activity information to third parties, unlike unity
 
gnome terminal is just bad.
cmd.exe of Linux
 
what should it be instead?
 
konsole
 
4:27 PM
I should google dolphin, right?
noooo:D
 
gnome terminal just doesn't work.
 
disclaimer: I'm an end-user when it comes to shells
but I dislike anything that starts with K
 
Fortunately the (visible) KDE krap associated with konsole is fairly minimal. It's a damn fine terminal.
 
kde used to work way better than gnome terminal...
at some point in gnome terminal even say "Alt-F" opened the file menu by default...
 
wait, is that a bad thing or a good one?
 
4:31 PM
bad thing
 
ah
what should alt-f do?
 
send esc-f, of course
@PM2Ring ah I've enabled "require ctrl for drag and drop" or it is a new ubuntu default :P
 
I finally got tired of Ubuntu breaking things that used to work a few days ago, and have jumped ship to Fedora. GNOME is now much nicer than it was last time I tried it (a few years ago).
 
hmm dragndrop still doesn't work
 
I use i3wm, though I have a tendency to use gnome/mate tooling on top of that where needed
but I went to terminology (I guess the eterm replacement?)
Ugh. It's 65% humidity in my house
I suspect that outside is worse
 
4:40 PM
couldn't you cat .png to view it in terminology?
 
@PM2Ring I finally got to read that relativistic Lorentz thread. That explanation about length contraction causing an apparent nonzero charge with a changed current is really insightful:) But that "B is not real, when will you wake up sheeple" guy is really annoying
> That's the problem with electromagnetism education, virtually nobody really understands it.
yyyyyeah, maybe you're the one missing the point
 
@AndrasDeak He is annoying. I was almost tempted to ask him to specify a frame of reference change that would make the pure static magnetic field of a bar magnet look like a pure electric field, but decided not to bother.
FWIW, doogly knows his shit when it comes to GR and QM: his PhD topic is (was) QFT in Curved Space.
 
well d*F=J was suspicious;)
you rarely see Hodge stars in chats over a beer
@PM2Ring yeah, it would be hard to explain to him how the relationships between quantities given by Maxwell (or any other) equation are not of a causal kind
unless you have a formulation in terms of retarded Green's functions and arguments of x+-ct
 
hmmm terminology is b0rken as well :D
ubuntu <3
"German security services currently believe the gunman to be a “confused individual” rather than a terrorist."
 
DSM
5:00 PM
Everybody knows you can't boost pure E into pure M. (smh)
 
Anybody want to give me 41 upvotes on the low down (will reciprocate, of course)? That gold badge is soooo close!
 
Isn't mass just another type of energy, over-simplified I'm sure, or is my elementary physics escaping me
I sorta remember an experiment in 97-99 timeframe where they created matter from two (or more?) photon beams but again high school is kinda hazy
 
@JGreenwell That's close enough for government work, as they say in the classics. But the E & M DSM is referring to are Electric field and Magnetic field.
 
The only physics I know are the kind that Bill Nye / Beakman / Miss Frizzle / Neil DeGrasse Tyson deigned to explain to me.
 
I'm kinda proud of myself for remembering that, I never moved much out of classical physics :)
 
5:11 PM
guys :| so annoying this problem is
 
You have an extra right parenthesis on line 17.
 
Kevin is a ghost in the wires
 
faculty of technology forced me to study more physics, what a waste.
one physics course, I went straight to the test, thinking I would pass it with highschool physics.
well I did ofc, but there was a question: "explain the 2nd law of Kepler"
 
@JGreenwell the fact that Hawking radiation is a thing means that particles can pop from vacuum, i.e. the lack of particles
 
I am like "1, 2, 3... hey what's the 2nd? woot, who cares"
 
5:21 PM
(well, assuming that Hawking radiation is a thing)
 
@JGreenwell You can create 2 or 3 photons by colliding an electron with a positron. That reaction (like all fundamental reactions) is reversible, but it's tricky to do in practice. But you can also get pair production (of an electron + positron) from the "decay" of a sufficiently high energy photon in the immediate vicinity of a heavy nucleus. The nucleus is needed to balance conservation of momentum.
FWIW, a free electron can't interact with a photon because there's no way to balance conservation of momentum and energy simultaneously.
 
Kepler's laws of motion are pretty useless to any engineers they taught at my university, like anyone would ever need them for real.
 
The thing I don't understand about physics is why some research is based on String Theory, but it's said to only be a "best current representation". Isn't all the other research then wasted if someone disproves String Theory? (granted what I know on the subject matter is next to none now)
 
Clearly they should come up with an even more betterer current representation and research that instead.
 
my dad was also an Engineer so I learned about ohms when I was in diapers: literally, "Sticking a fork in the socket lowers the ohms and will hurt you, so never do it" was something I heard him say to younger siblings
 
5:23 PM
@Programmer the nice thing with string theories is the same as with standards: so many to choose from.
as they say: string theory is not science. It is a religion.
 
I was going to say it almost seemed like my teacher was going on about scientology.
 
A theory doesn't have to be true to be useful. Newtonian physics turned out to be not universally correct but we still teach it to high schoolers.
 
@Kevin the problem with string theories is that they're not useful
 
They're useful to the people that draw a salary for thinking about it. Heyoooo
 
you need to choose one that matches all currently known phenomena, and that narrows the choices down to 5000000000000000000000000000000000
yeah, that's about as good as it gets.
 
5:26 PM
@PM2Ring okay, I understood the gist of that at least
 
Anyone know where to ask about podcast construction specifics? e.g. how to group serial episodes into a single channel, while maintaining their serial-ness?
 
@Kevin "The possible existence of, say, 10^500 consistent different vacuum states for superstring theory probably destroys the hope of using the theory to predict anything. If one picks among this large set just those states whose properties agree with present experimental observations, it is likely there still will be such a large number of these that one can get just about whatever value one wants for the results of any new observation."
 
For the record, I wasn't trying to bring any physicists down. :P
 
@AndrasDeak Hawkings says it is so so it must be right, not like he ever disproved himself or anything
 
Only 10**500 states? Just perform 1661 experiments that eliminates 50% of all possibilities each time. Shouldn't take more than a week I'm sure.
Or hang on, is it saying that there are 2^(10^500) possible theories? Ok that's a little harder...
The power set of 10^500 items is indeed large
 
5:31 PM
@Programmer your statement could have replaced string theory with any number of other theories (common problem in research: I got opposite/little/no results != not useful or even incorrect....but definitely frustrating and not always good for the grants)
 
@Kevin Currently, we don't have the technology to falsify any (non-trivial) string theories, the energies required are ridiculous. If you wanted to do it with a LHC-style particle collider you'd need one roughly the size of the solar system. Of course, there may be subtler ways to do it...
 
I agree, but it just seems different to me than the others. I think it's a combination of how strange the concept seems, but also how there's the general opinion that it's probably not the right solution.
 
Well then we just need to [insert inappropriate application of moore's law here] for a couple years and then we can do it with a postage-stamp-sized LHC.
 
@Programmer but it's said to be pretty
beauty matters
some formulations can be eloquent (is this the right word? probably not, but I don't mean "elegant") enough that you think "this has to be real"
but a lot of people find it not scientific enough in the sense that we might not be able to test any predicions in a few decades or lifetimes:)
 
@davidism, steam summer sale is on, this game looks like something you might like
 
5:44 PM
@corvid load time too much. What's it called?:P
 
stellaris or something, one of those strategy adventure type games
 
ah, I see
 
@corvid whoa, it supports Linux! I am interested.
 
I am thinking to learn python but before that just wanted to ask you that what we can create with python
Web applications or desktop apps
 
5:50 PM
Programs
 
Yes, both
 
@Programmer There a few different but related arguments against string theories. Firstly, the mathematics is really hard, so it's not easy to work with. Then there's Antti's objection, that it's really hard to determine the parameters of a string theory that accurately matches our universe: if you can't do that it's predictive power is weak.
 
Hardware programming or what?
 
Another serious objection is that the grandest string theories require supersymmetry: every fundamental particle that we know of is either a matter particle (like an electron or quark) or an energy particle (like a photon or gluon). Supersymmetry says that every matter particle has a corresponding energy particle (and vice versa). Also there's should be some way to convert matter particles to energy particles (and vice versa).
But there is zero physical evidence for these mysterious partners and reactions, and they don't make sense in non-string models, so a lot of physicists are rather dubious about them.
 
@PM2Ring Susyyy!
 
5:51 PM
@Learning Python is a broad, general purpose language. It doesn't do any one thing specifically fantastically, but it does do most things well.
 
FWIW SUSY would give a candidate for dark matter
 
Does Raspberry pi count as hardware programming?
 
Sure, as does the arduino. Or anything in pyserial.
 
canbody give me example of any web application created in python
Because I have never seen any website created in python
 
Yes you have.
 
5:52 PM
@AndrasDeak Granted. But that's conveniently very difficult to verify. :)
 
@PM2Ring I think the whole "dark *" area will be hard to verify
otherwise it wouldn't be dark to begin with
 
oh yeah, I need to take that pycon notice down
 
IIRC YouTube is programmed on the back end in python
 
@Learning FWIW, I wrote a custom web browser in Python, for a now-defunct text-based forum / chat site.
 
@corvid As far I know at least parts of it are, yeah.
 
This "reddit" thing is pretty popular I think
 
reddit? I might have read about it
 
I always forget that Reddit is Python.
 
5:55 PM
Patreon (Flask) and Instagram (Django)
 
Instagram is created in python?
Seriously?
 
The backend, yeah.
 
@Learning I think they are all joking
 
There's plenty of sites around, but, like most sites, they don't announce what they're programmed in.
 
keep asking questions
 
5:56 PM
The app obviously isn't.
 
We pretty much gave up trying to list things that are written in Flask.
:-|
 
I was written in Flask
 
"I haven't seen a website that looks like it's written in [language]" is a good thing because it implies that the language is versatile enough that it can seamlessly render arbitrary output
 
sorry, missed that
 
@davidism like we all know that Facebook is written in php
 
5:58 PM
The most impressive one I've seen is dlang.org, it and all the related sites are written in D.
 
I didn't know that. It doesn't look very PHP-y to me
 
@Kevin they are writing the php standard:D
 
It's not really written in PHP though, it's like a modified language based on PHP
 
You mean hack.
 
Most sites are supported by a number of languages. Facebook actually has a huge Python presence. Among other things, they're the largest Mercurial repository.
Dropbox is written in Python.
 
5:59 PM
Because PHP is too lame: Hack
 
Ogh dropbox is written in python
 
Didn't know that python is such powerful
 
There was a cool talk about rpython where the speaker wrote a PHP interpreter that was faster than the real PHP interpreter.
 
Specifically, it's hack running in the hiphop vm. Because we're cool.
 
6:01 PM
Someone want to write a wiki page to link to next time someone asks about this?
 
Had two problems with UTC timestamps today: couldn't fix a bug involving utc times, and showed up super early to an interview because my calendar was in UTC time
 
Rather than making a new page, I'd prefer if wiki.python.org/moin/WebApplications and wiki.python.org/moin/WellKnownPythonPrograms were kept up-to-date
 
@PM2Ring Thanks, I understand some of that :)
 
I think my plan is to spoil my ballot and write "Brectum" on it, hoping they'll read it out.
 
@RobertGrant I thought ballots close at 8
 
6:05 PM
10
 
ah, OK
 
Also, for anyone who hasn't already played it, Tomb Raider (2013) is 75% off, and it's the best ever
And Brothers: A Tale Of Two Sons is 90% off and it is a must-play game (only 1.49)
 
Ooooo, nice. I always meant to play Brothers.
There's a reason I don't look at steam sales. :P Once I'm broke and homeless out like 5 bucks, I'm blaming you, Corvid. ;)
 
I don't play many games, I just buy them, play them for five minutes before cooking dinner, then forget I ever bought them after that
 
#blamecorvid
I'm making that a thing every time I buy something. Doesn't matter if no one else gets it.
 
6:17 PM
@corvid Yeah, that's what I do too.
It why I stopped buying games. :P
 
I saw some quote about Steam being the opposite of torrents: you pay for things you won't play rather than play things you won't pay for.
 
I'm manfully struggling through Offworld Trading Co, determined to wring value out of it regardless of how little I enjoy it
 
@Learning well, @MartijnPieters, the python ninja is employed at facebook.
 
So basically you're saying if I torrent a bunch of stuff I should just buy things on Steam and then I won't get sued?
 
@Learning also, Instagram server-side was pretty solidly built on Python
 
6:21 PM
@RobertGrant Good thing I didn't buy it then, I guess.
 
There are a few games I've played tons. Tomb Raider games <3 Also there's gonna be a tomb raider movie with Alicia Vikander as tomb raider which might be actually awesome
 
@MorganThrapp I really like it, I've just got stuck at a certain level of ability and don't have time to learn how to push through that
So I like it, and I don't enjoy it
 
I understand.
That's my relationship with MOBAs and shooters.
I like them until I actually play them.
 
I've gotten a lot of enjoyment out of Overwatch lately. Mainly by looking at all the humorous fanart on imgur. The actual game doesn't look too appealing to me.
My favorite character is the dorito gremlin.
 
6:24 PM
Hearthstone is starting to get to that point for me. I read about it all the time, but as soon as I open the app I start getting mad.
 
I played Hearthstone a bit, but it's pretty dull IMO
 
If you like TF2, you'll enjoy Overwatch. I didn't care for either game.
 
Loved TFC, thought TF2 was alright
 
@Kevin I recently heard that the voice actor who plays McCree plays the game. Sometimes he would say "it's high noon..." on voice chat just to mess with everyone
There wouldn't even be anyone playing McCree on the team
 
This pleases me.
 
6:25 PM
Haha
 
I loved Hearthstone for a while. I was a big MTG player as a kid/teen plus I played WoW, so Hearthstone was great.
That's amazing.
 
Once on The Tonight Show, they got Pierce Brosnan to play Goldeneye 64. He was pretty bad at it.
 
Yeah I used to play MtG, but Hearthstone wasn't the same for me
 
I used to play MtG. I still do, but I used to, too. #hedberg
 
Hearthstone is definitely toned down quite a bit from MtG, but I kinda like that. I can get a game done in 10 minutes tops, where MtG takes a little bit longer.
 
6:30 PM
There is no greater joy than winning a four hour game of MtG that everyone else wishes it had finished three hours ago
 
Oh, did you play saproling decks too?
 
You will reach the stage of the game where player A plays the card that could win him the game, and player B plays the card that prevents player A from winning, and this repeats indefinitely. The secret is this: have more winning cards than everybody else has prevention cards.
@MorganThrapp I do have a token deck but it's games tend to be nasty brutish and short.
T3 Intruder Alarm, T4 Presence of Gond, T5 attack for %ARBITRARILY_LARGE_NUMBER% damage
 
@corvid the most recent Tomb Raider is on my wishlist. I didn't see a sale though.
 
I did my bit for democracy, did all of you?
 
No, because of the ocean and other reasons.
 
6:36 PM
The old saprolings decks were this weird mix of control and token. You'd spend the whole game building spore counters on stuff like tappedout.net/mtg-card/thallid-devourer and then hit them with a ton of saprolings via Doulbing Season.
 
@Learning Not so much PHP as Hack.
That's PHP with most of the insanity removed.
Co-routines, type hints (just like Python 3.5 has, incidentally that PEP was co-authored by a Facebook engineer), lambdas.
 
I do have a control deck which wins via tokens generated by Assemble The Legion and/or Luminarch Ascension, but the other 98 cards in the deck don't involve tokens so it's hard to say it qualifies.
Now there is a deck that takes four hours to win.
 
user559633
@MartijnPieters does/will Hack track things from PHP 7?
 
21% of the backend code is Python at FB.
6
 
Mostly because it takes me 30 turns to draw one of those cards
 
6:39 PM
@tristan I have no idea.
 
@MartijnPieters speaking of type hints, was MyPy the one they were talking about at the Mercurial meetup?
21% is wonderfully specific
 
@davidism did you not see the Facebook stand at PyCon? :-)
It was right there on the posterboard!
 
user559633
Ah, thanks anyhow Martijn. Didn't know how intertwined PHP/Hack is and if there's a big crossover in core dev.
 
I was too busy putting stickers on it. ;-)
 
user559633
And yeah +1 to "wonderfully specific"
 
6:42 PM
@davidism not my poster ;-)
@davidism: there was an easel up with a board outlining what Python was used for at Facebook at the FB expo stand.
there you were too busy entering the Python coding challenge or nabbing one of the many cool swag items at the FB / Instagram table.
Like the wood-case portable battery.
 
Ah, that explains it.
 
Or the clip-on lens kit for your mobile.
 
Clip on lense for your phone? What does that even mean?
 
photo lens I assume
 
That's uh, something.
 
6:53 PM
why else would you buy a phone with 150 megapixels (that's what people do, right?)
 
Now I don't need to spend lots of money on a camera to be a pro!
 
150 mega pixels?
Give me that phone.
Typical theoretical physicist, out by an order of magnitude.
 
ballpark figure:D
in good agreement with reality
 
user559633
where's the lens that makes my photos of food look all old-timey?
 
6:57 PM
@tristan moldifyer filter?
 
I'd choose "Remain, but Cameron is still a dick"
 
user559633
I'd write in my own:
"Leave, it to Beaver*"

*Beaver was a popular TV show in america in the 1950s. Unrelated, but I'm surprised you gave me a voting form.
 
user559633
Then I'd maybe draw some trains because I like trains and they're pretty easy to draw
 
you'd draw a steam locomotive ofc
 
user559633
i choo choo choose to remain on this train
 
7:12 PM
I tend to actually play Chaotic/Neutral so I guess that would be my answer
or straight Chaotic but then only when I want to play a sane person
 
I need to implement a sane system to store batches of changes. There are 5 different tables being changed, and the possible actions are ADD, DELETE, and MOVE.

I kind of want to have a table like `Changes(Action,Table, arg1, arg2, arg3, arg4, arg5)` (all columns are strings). Alternatively, I could have different batch tables for each action, each target table, or the product of the two.

The major upside to it is that I don't deal with 15 tables.
The major downside is the number of and nature of arguments needed vary per table and action so I have to have a bunch of nullable columns, at
 
Currently trying to come up with a better coping mechanism for frustration than "give up and try again in 16 hours"
Hmm, complaining online has some effect. I give it a 3/10.
 
try again in 15 hours?
 
7:28 PM
try again in 11.2 (((7-3)/10) * 16) hours?
 
@QuestionC too broad
 
7:46 PM
Sooo... I have a list of tuples, e.g. [('a', 1), ('b', 2), ('c', 5)] and I want to plot a little histogram with the x-axis labeled a b c
 
histogram? you sure?
 
I just threw that in a pandas dataframe: df = pandas.DataFrame(data) and plotted it with df.plot(), which almost works swell, except for it labels the axis 0-40 >_<
 
not just a simple plot?
matplotlib.pyplot.plot
no, that's for numbers
anyway, you could set the ticklabels from the first element:P
 
well, simple plot, whatever yes.
 
plt.plot([dat[1] for dat in alldat]); plt.gca().set_xticklabels([dat[0] for dat in alldat])
or something similar, with
import matplotlib.pyplot as plt
if that kinda works, it can be made fancy
 
7:53 PM
plt = df.plot(kind='bar')
_ = plt.set_xticklabels([_[0] for _ in data])
that did it
 

« first day (2077 days earlier)      last day (2889 days later) »