« first day (1446 days earlier)      last day (3508 days later) » 

DSM
5:01 PM
It's one of the things attracting me to Julia, TBH. I can do real metaprogramming. Right now when we need to do anything moderately clever we have to parse strings.
 
cabbage people! (:
 
cbg @Lucio!
 
What does the term seed means on the 'database seed' phrase?
 
@DSM pandas is awesome, but just would have liked a bit more "clever" on something like taking from iterables
 
As a not English native is hard to understand it..
 
user559633
5:04 PM
A seed is a database object that you plant in the ground to make tables grow.
 
Perhaps some context will help. Where have you heard this phrase?
 
Uploading an application to Heroku
 
My first guess is, "to seed a database" means to add rows to a database that previously didn't have any.
 
The op answered the question with a link to the dupe.
 
can't get much more straightforward than that. voted.
 
5:06 PM
@Kevin yeah, that is the idea I guess. Because the database has been previously generated but it is empty
 
proc tabulate data=some_ds out=temp;
    class x y;
    table x*y, n*all;
 
@tristan now your phrase sounds like correct :D
 
that's the kind of thing I want for pandas :)
 
user559633
@Lucio :) I've never heard "database seed."
 
mind you, my SAS is soooooooo rusty
 
user559633
5:09 PM
I've heard "seed data" as in "initial data for training a system," but never "database seed"
 
user559633
I wonder if it's more heroku hand-wavey nonsense
 
"seed database", where "seed" is a verb, would be more recognizable
 
Ahh, now I remember something
There is a tuto that says "Populate your database with example data."
 
user559633
Yeah, that may be where "seed" comes from @Lucio
 
and then is the seed database thing
 
5:10 PM
Apparently my box in LaTeX with half a page left free for space is overfull. Hm.
 
user559633
They're probably referring to the database with the example data as the "seed database"
 
yep
something like generating admin accounts and such
 
4 days to run for building an index on a field, let's see how this query goes now
 
weird term anyway :S
 
@JonClements is this that sqlalchemy job? 4 days??
 
5:13 PM
@davidism nope... a completely new query
 
user559633
what database?
 
user559633
i'm surprised they don't have a slow query logger/killer in place
 
several hundred postgres's
 
re. self-deletion-of-answers: I self-delete answers all the time if they serve no purpose. Where purpose is defined as either "there is another answer which is better than mine and so mine is redundant" or "it has been upvoted thus is giving me DAT REP"
 
time to eat something
Pcalcao o/
 
5:16 PM
I've self-deleted ~ 5% of my answers so far.
@Iplodman Is it overfull horizontally?
Also don't worry about overfull warnings too much.
 
@Ffisegydd It's not really a problem, just bugging me. And yep.
 
Generally let LaTeX take care of placing etc as much as you can as, frankly, it's more intelligent than you.
 
@Ffisegydd Fair enough.
 
I'm super serious. The guy who wrote it was rather good.
 
I am too - I probably won't write anything nearly as useful in my lifetime, but I aim to.
 
DSM
5:22 PM
"Ah, but a man's reach should exceed his grasp, Or what's a heaven for?"
 
@Jon I am available for Civ-based hilarity tonight if you fancy.
 
@Ffisegydd sounds good - what time?
 
Whenever. Wherever. We're meant to be together. I'll be there and you'll be near. And that's the deal my dear.
Yes, I just serenaded Jon with Shakira. No, it's not awkward.
 
DSM
From Robert Browning to Shakira. Truly, sopython covers the spectrum.
 
In all seriousness: I'm free from ~1/2 from now.
 
5:29 PM
1/2 tristans?
 
Yes 1/2 tristans. Where in this specific case 1 tristan = 1 hour.
 
One client's piddled me off so much, I'll go for 1 hour :)
else the scotch is opened
 
Cool.
 
user559633
make sure to enjoy your tristans in moderation
 
@Ffisegydd wanna start from the old ages or somewhere in between?
 
5:32 PM
Uhh. Don't know.
 
chariots/archers vs tanks/nuclear weapons?
 
user559633
is civilization an RTS?
 
Turn-based.
 
user559633
Oh, alright:) I was thinking age of empires.
 
when I was younger, RTS was a piece of piddle
 
5:35 PM
Actual civilization is an RTS, though.
 
now I'm older, can see the mistakes and have time to think
 
user559633
Is there a time-out on the turns though?
 
Apparently the turns for players occur at the same time
 
@Kevin oh come on, being 2nd/3rd in the world for StarCraft isn't a bad achievement
 
Then the AI have their turns.
 
user559633
5:36 PM
I hate playing chess against partners that seem to forget that it's a game and waiting 30 minutes isn't fun
 
0
Q: How can I find a complete human genome file

ABCD.caI'm trying to figure out how I can download a file that represents the complete human DNA sequence. I don't care too much about the format – I'm able to write C++ code to parse it. FASTA seems like a simple format though. What I haven't figured out yet is where I can find a complete file – I have...

 
user559633
Haha amazing.
 
Is there a complete genome available?
 
@tristan I love wild horse style
 
user559633
Wild horse style?
 
user559633
5:37 PM
Also, who should I elect MTFL for next week? I won't be about
 
It's a serious title.
 
I understand that you can get your DNA sequenced for about a thousand dollars these days.
 
there's wild horse and crazy
 
I don't know of anyone that has made their sequence publicly available, though
 
Right, but isn't that just certain subsequences?
 
5:38 PM
@tristan in one, you partner against two others
 
user559633
I believe it's just some markers that you can pay to get from your DNA.
 
but it's the same game (kind of), if you capture a piece, it goes on your board as a playable piece
 
What, they don't give you the whole ACGT base pair sequence? What a ripoff.
 
so instead of moving one of your own pieces, you can play that piece on the board
 
is there a library in python to output to stdout in color?
 
5:39 PM
there's the third party library "colorama"
I like it.
It also lets you put characters at specified coordinates on the console, which is a feature rather more buried in the documentation.
 
This question appears to be off-topic because it belongs on biology.stackexchange.com. — davidism 18 secs ago
 
it's normally played in a blitz situation
 
@corvid click can do it
 
so someone normally plays offensive and someone defensive
 
the win32 module can do it, although it's a big pain in the butt, as all win32 projects are
 
5:42 PM
but four boards up for the grab... it's an interesting game
 
user559633
It sounds more fun to be able to do offense or defense, yeah.
 
use to play 1m blitz, no increment... my mind isn't that quick any more :(
wasn't short of an official GM rating
but then this "real life" thing got in the way
 
I heard about an interesting chess-like game the other day called Rock Paper Scissors chess. Rocks move up/down/left/right one or two spaces, paper moves diagonally one or two spaces, and scissors move like knights.
rocks can only capture scissors, etc
 
@davidism you said earlier to set a backref so it could be referenced by both sides. Did you say set that to standard? I was using lazy=dynamic
 
You lose when your opponent captures all of any one type of your pieces
 
5:46 PM
@Kevin losers chess?
 
@Johnston if you just leave lazy= out completely, it defaults to select, which should be fine
 
@Kevin played an "interesting" version called "random chess"
 
@davidism thank you!
 
@Kevin whereby all your "home row" is shuffled randomnly
 
I only play chess variants where I can say "my queen whips out her uzi and lays waste to your side of the board"
 
user559633
5:51 PM
yeah, funny how the queen is by far the most gangster piece in chess
 
user559633
the king is just a super-pawn
 
Thus laying a foundation for every lazily written "competent wife, idiot husband" sitcom ever made
 
user559633
or maybe because he spends all his time with the queen, so he's an eviscerated version of his former self, docile, clawless, now impotent, without the tools to adapt to changes in his comfortable environment
 
Ping me whenever you're ready @Jon
 
user559633
his marriage/world/existence is guarded by weak pawns and bishops, who are in turn are protected by knights, who are backed by rooks
 
5:56 PM
@Ffisegydd ready now
 
Chess has some surprisingly deep lore
Now explain "en passant"
 
@Jon ah cool, I'll boot up now.
 
user559633
yeah, seriously, i overlooked the "society is fronted by pawns, who are backed by a royal marriage that is shielded by the side-ways acting church, who are protected by knights, and the whole charade is protected at the flanks by rooks/frauds" aspect of chess as a child
 
is it possible to extract all the models that comprise a SQLAlchemy db?
 
En passant (from French: in passing) is a move in chess. It is a special pawn capture, which can only occur immediately after a pawn moves two ranks forward from its starting position, and an enemy pawn could have captured it had the pawn moved only one square forward. The opponent captures the just-moved pawn "as it passes" through the first square. The resulting position is the same as if the pawn had moved only one square forward and the enemy pawn had captured it normally. The en passant capture must be made at the very next turn, or the right to do so is lost. It is the only occasion in chess...
 
5:59 PM
Actually, I'll explain it. En passant capture is like in samurai movies where the two swordsmen run towards one another and then they cut to black for a second and you can hear the sound of metal slicing through the air and then they cut back and they both have their back to the other and one slowly slumps to the ground.
 
user559633
en passant is what happens when a peasant/citizen becomes ambitious and is cut down by another peasant who started work earlier
 
user559633
which is to say "moving two spaces is a young man's game and if you wait too long, you'll be destroyed by someone that didn't"
 
@Jon just having to install Visual Studio 2008 because of reasons so I can play.
 
@Ffisegydd just trying to trick it into showing on one of the externals
bloody windows - one sec
 
I'm now installing DirectX 9...ffs...
 
6:03 PM
it's going well for both of us then
 
Remember back in the day when you could just stick a cartridge in your console and be playing in five seconds?
 
Good times.
 
or a floppy disk that had expanded vs extended memory and conventional memory as a boot so you could play
 
Actually, that's not a fair comparison. Getting old PC games to work required fiddling with a bunch of configuration files, or else the sprites would have negative colors and the sound would be inside out.
 
autoexec.bat and config.sys
sighs
 
6:07 PM
I only experienced the tail end of that era, fortunately
 
@Ffisegydd right, I've got it on a separate screen... umm... now what...
 
Just a little bit of Apogee and whatever shareware came for me in the mail
 
Just a second. I've got a custom built gaming PC that can play the latest games in HD but it still takes 10 minutes to install DirectX 9.
 
10k users, this must be duplicate of this
 
I remember ordering Doom maps and editors from a mail order company :)
 
6:08 PM
Volutarily removed by author
 
@vaultah looks like so
 
Same OP, right?
 
Ok @Jon it's loading properly now. Shall I set up a game?
 
@Ffisegydd sure
ugh, might have closed steam, so I still need that open I'm guessing
 
@davidism i think you told me that creating models doesn't create a database tables.. i don't know based on this question, it looks like it does.. i'm finding it unclear still: stackoverflow.com/questions/25837342/…
 
6:11 PM
@JonClements sorry, do they come from the same person?
 
@Ffisegydd appears I'm online
 
@vaultah They are both by the same person, yeah
 
Loading now
 
I think there was a meta post about this person
 
anyone else got Civ5 that can join in and prevent my destruction by Stewie?
 
6:14 PM
I do, but work has me slaved to my desk
 
I expect @IntrepidBrit to turn up later and save me later then :)
 
I'll likely get destroy't as well ;)
 
48
Q: User who continuously deletes questions after getting an answer, then posts a followup

GameAlchemistI think I spotted some bad behavior by an Stack Overflow member: he asks a question, then gets an answer, and then deletes the first question and asks a more narrow question. He'll delete the new one too after getting an answer, so that little by little he gets spoon fed, while never giving any c...

 
I'm going to regret this.....
 
How about we agree to not be dicks and attack each other?
Seeing as how it's the first game.
 
@Ffisegydd agreed - let's just see how it goes
 
@davidism according to this page it builds a table: docs.djangoproject.com/en/1.7/topics/db/models
 
user559633
woot, someone upvoted one of my questions that has an objectively wrong answer stackoverflow.com/questions/24347683/…
 
I'ma make a Flask extension
 
user559633
seriously, the guy that tried to answer the question suggested installing in a homedir....
 
6:30 PM
I wish that questions that use all caps would get an [ON HOLD] added to their title instead of [on hold]
 
user559633
stackoverflow.com/questions/26148125/… ahahhaa good lord this guy just pointed a loaded shotgun at his foot and doesn't realize it
 
does creating models in django result in creating new database tables?
 
I haven't tried this, but it sounds like a can of worms. What if the two interpreters try to load different versions of the same DLL (say a module written in C)? — NPE 3 mins ago
Then... There would be two different versions of a DLL loaded. What's the problem?
 
@JoeSaad (Hesitates to get involved because he's on Django 1.6)
But assuming they haven't completely changed how the ORM works in 1.7, generally each model will end up creating a new table(s)
 
@IntrepidBrit yes, that's what's happening.. however what should i do if i just want to connect to an existent db. i don't want to create new tables.
 
6:39 PM
@JoeSaad Well, this is where my hesitation comes in. In 1.6, you'd have to run a syncdb command to initially populate the DB with tables
But 1.7, they've changed things by integrating database migrations (much, muchly needed imho)
stops being lazy
Looks like they've deprecated syncdb, but it'll still work.
So, I presume the way it works now is like thus: if you call migrate, then it will create any tables that are missing, and modify any tables that need to be modified
So as long as your models are identical between projects you should be fine
 
@IntrepidBrit yes, what it does now is that it creates superuser and says no migrations to apply
 
Right, so I'd hazard to say you're good to go. Why don't you try a cheeky ./manage shell
and see if you can access your populated table data with a query or two? :)
 
@IntrepidBrit you think i have to create models for all tables.. for now i just created three models just to test.. tried to see if there's any data, i found that those models have created tables and those tables are all empty..
 
@JoeSaad Models define tables, they don't create them. syncdb will create them, if you run that command, but otherwise you just use the models to query the database.
 
@davidism See, more eloquently put
 
6:51 PM
@IntrepidBrit you think i should create models for that? @davidism according to that site docs.djangoproject.com/en/1.7/topics/db/models , it says "The above Person model would create a database table like this:"
 
(sorry, need to take food out the oven, back in 3)
 
@Joe, not to be rude, but I don't know how to explain this any simpler: the model would create a table if you ran syncdb and the table didn't already exist
if you are having a specific problem, please use dpaste.com to paste (a) a sql query and result that proves there is data in the tables, (b) the django database config, (c) your model definition, and (d) the django query equal to the sql query above that gives you no results
 
DSM
@isedev: some leet code I haven't heard of, or just wrong-window-itis?
 
@davidism ok, this is all according to 1.7, right?
 
it doesn't matter
 
6:56 PM
@DSM: lol, the latter, apologies
 
Cbg :)
 
back
 
@Ffisegydd need more practice
 
Hi @Jon!
Ooh I've been away from SO chat the tagging has even changed!
 
@IanClark Cabbage (sorry, didn't mean to be rude ;))
 
7:07 PM
@Jon that's fine mate. I've saved the game anyway so we can pick it up where we left off.
 
Hi evil/good Ian
 
:) Lo @IntrepidBrit :)
 
damn, that dutchman flies...
 
Good/ill/tired Ian
Been working manically to do the first phase of our redesign stuff, did 20 hours last weekend :(
 
@Ffisegydd it appears my games like that just elude me now
 
7:08 PM
Fixing up Python dev's CSS...
 
resource request
Also quite sketchy
 
@Ffisegydd oh well, with Civ:BE we'll be on equal footing :)
 
If you're at your house and can't remember the wifi password, reset the wifi password. If you're not at your house, don't do this. — davidism 26 secs ago
 
user559633
From what I've been hearing/reading, it seems as if programming is treated as "IT" in Europe and is underpaid. Anyone with US and EU experiences have an opinion?
 
Trying to remember if The IT Crowd had much programming in it...
 
7:13 PM
"IT" roles go from minimum wage to silly amounts here
 
user559633
is 120k euro/yr a "silly amount?"
 
Martijn may be able to advise as he's lived in US as well IIRC.
 
about twice the average salary in France for similar roles
 
Yeh "IT" is very vague, really depends on the nature of the job
 
@tristan that's respectable amount
 
user559633
7:15 PM
Whereas I'm moving to Berlin or London next year, I'm trying to figure out if I should/need to lock down American contracts first.
 
only a little over average salary for similar role in Switzerland though
 
cost of living and all that :)
 
user559633
:) cool, not so worried now.
 
well, there is that, but income tax is much much lower (~27% for that kind of money)
 
s/incoming/income?
 
7:19 PM
Starting to feel like I'm horribly underpaid ;)
 
@IntrepidBrit well - you're a Brit - we don't talk about our pay :)
 
you've really got it sorted if you can work in Switzerland but live in a neighbouring EU country.
 
user559633
I'm in NYC, so my taxes are around 45% and I get little utility out of my taxes (wouldn't send my kids to public schools/hospitals), so taxes are not so frightening to me.
 
well, moving back to EU came as a shock, near double the taxes and 2/3 of the salary.
slap, slap.
 
The Doctor can really complain about things now... #DoctorWho http://twitter.com/BBCOne/status/503260975655833600/photo/1
(click on it for full enjoyment :P)
 
7:22 PM
I don't mind paying tax
never had
 
you earn too much then :)
 
OK, on the "is €120k a lot" - adjusting for GBP and netting to == £60k - puts you in the top 0.11% globally apparently :P
 
If you move to London, you'll realise why the UK is increasingly atheist. There is no deity greater than the NHS
 
I'll been ill, and unemployed at some points in my life - the NHS and state supported me for a little bit of time before I got myself back on my feet
 
fair enough
have a different feeling about it since I moved to France.
 
7:24 PM
About what? Tax?
 
STONE HIM! HE DARES SPEAKETH AGAINST THE NHS
 
seems the taxes pay for 1) an army of civil servants and 2) to keep those who don't want to work happy.
(in France that is)
 
We might hate tax, but it's interesting to note that the highest standard of living is in Norway and it's also one of the countries with the highest amount of taxation!
 
user559633
Sure, but monocultures with little immigration tend to have higher standards of living @IanClark
 
well, if you see the benefit, that's one thing. if it seems wasted, well...
 
user559633
7:25 PM
@isedev that mirrors what I've heard from people working in France.
 
And the cray, cray number of strikes
 
@tristan interesting point, I don't know too much about Norwegian migration but it's interesting to hear about Iraqis in Sweeden e.g.
 
I'm sure if I could be bothered to get my accountant to work out my books to be 40% instead of 45%... but, I have a faith in my country...
 
user559633
@IanClark Yeah, I have a number of Swedish friends and it's fun to watch their opinions on immigration mature and adapt over the years.
 
I'm sure there's some way to not pay tax on this, or declare it at this or whatever
 
user559633
7:28 PM
From flower-child pure optimism and open arms to a more worldly, complex opinion.
 
I contend that for a nation to try to tax itself into prosperity is like a man standing in a bucket and trying to lift himself up by the handle. --Winston Churchill
I'm sure he was thinking of France under socialist governments at the time (and predicting the current government's deepest beliefs).
 
@isedev my favourite PM
in a time of war though
 
user559633
My favorite PM of yours was the one with that long colourful scarf.
 
Churchill and Thatcher...
 
@JonClements Are you self employed? You can pretty much get down to paying something sickening like 15% tax on 40%. ..
 
7:31 PM
@IntrepidBrit yeah, but also employed by my own companies, difficult to work it out :)
 
Basically revolves around horribly abusing dividends
 
(yeah I take dividends)
 
shrugs I don't do it. I pay the tax that I think is fair (and I'm still paying off my student loans. Yuck)
 
Me too! :D (S. loan)
 
But there's ways you can just loophole the fuck outta the system, and imho - that's what's broken with the UK. Tax loopholes - but I'm glad to the see the Tories are looking to tackle it internationally before domestically. Wouldn't have figured the Tories would do that
Anyway - suspect I'm waffling my way to OTland
 
7:34 PM
lol
 
The best tax loophole is to live in the woods and shun all human contact
 
I would content the word "best"
 
Does Europe have woods? They're kind of like, a city but made of trees...
 
I've heard of a wood before
I thought they were stuff of fairy tales though
 
when I have enough: privateislandsonline.com
 
7:35 PM
I once saw one on an American TV show.
 
rbrb
 
user559633
@Kevin yeah, i know they do because "black forest ham" has be named after something
 
is this valid syntax? db.__repr__ = db_repr
 
Isn't that just the fancy word for MDF?
 
where db_repr is a function
 
7:35 PM
looks valid to me, yeah
Whether it does what you want, well that depends
As I recall, double underscore methods have some weirdness where you can't easily override them by assigning new functions to an object.
 
it does not, hence why I am asking. I think the flask extension uses the SQLAlchemy.__repr__
 
Because print myThing looks at myThing.__class__.__repr__ rather than myThing.__repr__
 
When I have $2mil + in the bank that is
just gimme a few life times
 
Or become a British politician ;)
 
should I just subclass the extension and add the repr?
 
7:38 PM
You keep your businesses running, give you epic tax breaks, and you sly me some backhanders. Corruption? What corruption?
 
@IntrepidBrit I'd just shout my mouth off if I could in P, while serving my constituency
so... couldn't follow the "whip" of any party
 
You'd be an excellent speaker for the house, barking for silence...
Then don't serve any party. Just form your own / be independent
It's the glorious and underutilised thing about our democracy
 
I've said before that it's something I'm considering, but maybe, now is not the right time
 
I personally disagree, I think we're entering the perfect era. Gonna be a lot of constitutional change in these fair isles soon enough :)
 
then why don't you stand also?
 
7:44 PM
subclassing was much successful. Speaking of which, would it be cool if I added something to sopy which is not perhaps "necessary" but convenient?
 
@JonClements It's on my radar. Learning how our system actually works on the gnitty gritty levels :)
 
@corvid what did you have in mind?
 
@corvid Like best practises/practices?
 
just been working on a convenient add on for printing all sorts of things and viewing them. Might be helpful while developing?
exports as a flask extension now
 
That human genome question made the Hot Network Questions list, now that it got migrated to Biology.
Migration success story! :-)
 
7:50 PM
wat wat wat?
human genome
haha, those fools
 
(See our previous discussion on the question here)
 
wow, not only was it actually appropriate for biology.se, but there actually is a data set
 
Looks a bit more complicated than a big ol text file of G,C,A,T characters though
 
^ Hah, that would be epic
 
I suppose you could actually store like four base pairs per byte.
400% compression rate, not bad.
 
7:55 PM
@Kevin oh - think I'm still in your house in MC
had a wander in @davidism's...
wow - have you guys been busy
 
I'm a little discouraged over MC lately, because I couldn't find a nice unclaimed section of bedrock that I could strip mine
 
I just go for the "I have to reference a wiki article for a torch"... so still going for wow
 
@Kevin I got a little carried away, but tried to leave the direction you were going open
You can join up to my mega-mine if you want, the pattern should be pretty clear
 
I might do that.
 
is that the one where I watched the bats flying into lava?
 
7:59 PM
I also have a ton of ore and resources if you need a kickstart.
 
you still have creepers down there
 
Or I might set up a portal in the nether 100 meters away from the main base, so I can come out 8000 meters away in the regular dimension
 
Yeah, the bat death observatory is in the mines
 
I had to run from 3
 

« first day (1446 days earlier)      last day (3508 days later) »