« first day (1941 days earlier)      last day (3005 days later) » 
05:00 - 16:0016:00 - 00:00

4:00 PM
^^That sounds awesome. A win in my books
 
Air
I was never very good at Samurai Showdown but now I am terrible
 
I was great at Dance-Dance-Revolution.
 
Yeah, that sounds like exactly my kind of place.
 
Air
Also, the Atari Star Wars arcade game is surprisingly good.
 
OP: “I want to do X, but I’m having problems bla bla ” – Commenter 1: “I usually do this with unix tools like grep etc” – Commenter 2: “Do you need cross platform support? Because this is doable with Unix tools as mentioned by commenter 1.”
Geniuses.
 
4:01 PM
I spend far too many hours playing mario DDR.
Dance Dance Revolution Mario Mix, known as Dance Dance Revolution with Mario (ダンスダンスレボリューション ウィズ マリオ, Dansu Dansu Reboryūshon Uizu Mario) in Japan and Dancing Stage Mario Mix in Europe, is a 2005 music video game developed by Konami and published by Nintendo for the GameCube. It is the first Dance Dance Revolution game to be released on a Nintendo video game console outside Japan. Dance Dance Revolution Mario Mix predominantly features characters, music, and locations from the Mario franchise. The game was bundled with the dance pad controller. == Gameplay == Being run on a modified engine of...
 
I didn't know this existed...
....
 
It only did for a while, it's out of print.
 
oh man.....
 
I went to a fancy restaurant once because of a friend that worked there. It was pretty amazing honestly.
 
I had every song at 100% on expert except for one.
 
4:02 PM
and I'm one of the small handful of people that owns a Gamecube too
 
It used to exist. It still does, but it used to too. </hedberg>
 
@idjaw I loved the Gamecube tbh.
 
Air
I think the newest arcade game said bar owns (not including the pinball machines) is this racing game from 2004.
 
I love fancy restaurants....my wife and I have actually put together a separate budget to explore restaurants...especially when we travel.
@poke Me too!!! I'm glad there is another fan. :)
 
:)
 
4:03 PM
I, too, loved the gamecube. My friends and I have probably logged more hours into mario kart + smash bros than every other multiplayer game combined.
 
Yeah, I'm definitely a fancy restaurant fan. Most of my disposable income goes to fancy food/drinks. It helps that I'm in a region known for its food/drink.
 
Maybe Halo comes close for them, but I'm terrible at FPSes so I did not partake.
 
The gamecube was fantastic. Kirby Air Ride claimed years of my life
 
Who wants to bet that the answer to Why below code prints different output each time? is "because dicts are unordered"?
 
@MorganThrapp that's one of my gf's favorites. I finally caved myself and bought a 2DS this weekend. First nintendo console since nintendo 64 for me.
 
4:05 PM
@Kevin I really enjoyed Double Dash more than the later ones.
 
@poke It was the best.
 
Double Dash is the only Mario Kart I'm better than my friends at. A narrow beam of brilliant light with infinite void on either side.
 
Air
surprisingly good controls for 1983
 
I enjoyed the resident evil games that acme out on the GC
 
IIRC, GC's Resident Evil was one of the top rated games for the console.
 
4:08 PM
I also really like metroid prime.
 
It was a fantastic game. I believe there was, Resident Evil 4, Resident Evil 1 remake, and Resident Evil 0
Metroid Prime was great fun
 
Rhubarb all
 
rbrb
 
I played Prime last year and it's still good. And I still haven't beaten it because I'm a scrub who can't defeat final bosses.
 
Ribbit King is a 2003 sports video game developed by JamsWorks Co., Ltd. and published by Bandai for the Nintendo GameCube (Japanese title: Kero Kero King DX (ケロケロキングデラックス)) and PlayStation 2 (Japanese title: Kero Kero King Super DX (ケロケロキングスーパーデラックス)). The game is based on the fictional sport of Frolf, which is a golf-like game that is played with frogs. The frogs sit on catapults, which the player whacks with a hammer to send the frog flying into the air. It is the successor to Kero Kero King (ケロケロキング), released only in Japan in 2000 for the PlayStation. == Gameplay == The objective is to earn...
Also, Super Monkey Ball.
 
4:10 PM
ten minutes from the end of the game: here, have a tall vertical shaft of a room that requires jumps more precise than anything we've demanded of you before, and if you fall you have to start over. Also, there are infinitely spawning metroids with randomized immunity to 80% of your weapons. Also, there's no save point between this room and the boss.
 
Metal Gear Twin Snakes!
 
(I'm assuming that last one is true. Never actually got past it)
 
Viewtiful Joe! That game was so much fun
 
4:27 PM
Well done India! passes strong #netneutrality rules, stands up for open Web. See @webfoundation -> http://tiny.cc/ftmy8x #savetheinternet
Wish I could understand what that actually means to me :-/
 
I just got so many errors that I got an error for having too many errors
 
yo dawg, we put errors in your errors, so you can error while you error.
 
@thefourtheye It's both good and bad, but mostly good
 
@IntrepidBrit I also like to think so :D
 
Case in point, the UK is not net neutral. So that means I can (and do) pay more money to have my packets prioritised over UK GenPop's
Which is good for me, the consumer, only if I trust my intermediary prioritisation service to not be bampots and peek into my requests for rabbits frolicking in fields of cabbage.
 
4:37 PM
Oh I have seen people explaining something similar to what you just said in youtube
I mean, the videos were specifically made for Save the internet movement in India
 
Ah, so you mean what does a specific puppy care about net neutrality, and how it affects them?
Your streaming from BigStreamyCorp might be slower?
 
Air
@Kevin The first sentence kind of also describes Portal
 
Yeah although I'm willing to be more forgiving there
Since Portal has more frequent save points, fewer enemies, and virtually no limited resources such as ammunition.
 
4:54 PM
cbg all!
 
Hey guys
I have a general question
 
ok.
 
Is there any special reason for not having pop() for collections.deque for specific index
I mean for a list something like pop(2) will work
but it wont work for collections.deque
Now, I understand it is because its a double ended queue and thats how queues work
But, then it does not leave any thread or process safe list type data structure.
 
I'm guessing the rationale is: Deques basically only exist because they have performance advantages over other collections in certain circumstances. Popping items off the middle of a collection is not one of those circumstances, so if you need to do that, you shouldn't be using a deque.
 
@Kevin What to do when I need a process or thread safe list?
 
5:00 PM
Get drunk.
 
I don't know if there's a dedicated type for that... I would use a Lock around an ordinary list.
 
@Haris make sure you cool the wax, first
 
actually, hmm, does Queue have a pop method? Let's see...
 
Surely
 
@Kevin which queue?
 
5:01 PM
PringlesQueue
 
This queue. Answer: it can get the top item, but not any item under that.
 
@IntrepidBrit Basically, partiality in the internet?
 
Uh, as far as I have read.
 
@thefourtheye It's a big part of it, and the one most people will notice.
 
@Kevin Ya. Its specially made for multi-threaded programs.
@Kevin ok. So no data structure like list for multi threaded programs.. hmm..
 
5:05 PM
One of the oddities of python is that list is an array and dequeue is a list.
You can't pop(2) a dequeue because if you could, it would be slow to the point that you should use a list.
 
Anyone happen to know how many consecutive primes are known? In other words, what is the largest value of N where "for every number below N, we know for sure whether that number is prime or composite" is true?
 
If you want a multiprocessing list, you either just make a copy of the list or use a mutex to control access. Queues (because they're implemented as linked lists under the hood) can be pretty safely manipulated by multiple threads at once, which is why they have a multiprocessing specialization but lists don't.
 
@QuestionC Hmm.. That makes sense.
 
I ask because Why does python produce a “memory error” error when calculating x &gt; 1x10^8 primes claims that he wrote a program in visual basic that tests the primality of 300 digit numbers.
His "equivalent Python code" is just a for x in range(num) loop, so I think that claim is dubious, but I'd really like to bust it with "not even supercomputers can certify arbitrary numbers that large"
Originally I thought he was testing the primality of all numbers from 2 to 10^300, but he's actually just testing the primeness of elements of the fibonacci sequence. So I had to delete my original callout comment in shame.
I bet there's some kind of overflow bug in play. Ex. he thinks he's calculating the primality of 10^300 but he's actually calculating the primality of (10^300)%(2^16)
 
5:35 PM
Do you have to make any other modifications if you are adding a parameter to a URL pattern in Django? I'm getting a bizarre redirect loop where the parameters are changing themselves whenever I hit the new URL
 
@Kevin hrm. there were > 300 digit primes being found by computer in the 50s, so perhaps the claim isn't so dubious?
though those were all mersenne primes...
 
I don't know much about huge primes, but I assume the ones we do have some property that makes them easier to calculate than any random number you pluck from the set of all integers of a similar magnitude.
"It was easy to test the primality of X" does not imply "it will be easy to test the primality of X+2"
 
well all the really big primes these days are Mersenne primes. They're all 2^{n} - 1
and I believe there are quick ways to tell if that kind of number is not prime, but I'm not sure if there's a fast way to prove that it is
so it's definitely far more sophistocated than "for n = 1 to x"
 
IIRC there are fast methods that will return either "definitely not prime" or "probably prime" but this guy seems to be claiming his approach is deterministic
 
Get the implementation off him in an MCVE then...
Fizzy and Bobby Ltd would be happy to help you patent it.
 
5:48 PM
I have requested the contents of his VB script and am patiently awaiting a response. [skeleton_with_beard.png]
 
Maybe he's actually just going to 300
 
Is there a version of isnumeric that will return True for -2?
 
How about isdigit?
Woops I read your question wrong.
>>> def could_be_int(x):
...     try:
...             int(x)
...             return True
...     except ValueError:
...             return False
...
>>> could_be_int("-2")
True
>>> could_be_int("hello")
False
 
Yeah, that's what I'm doing, I just wish there was a builtin to do it.
 
Solve it with regex!
 
5:58 PM
Well I looked up the internal string-to-int conversion code to see if there was a handy function you could call, but it doesn't look like it. Whether a string can become an int or not is calculated inline, so there's nothing for us to invoke.
 
6:23 PM
This redirect loop will be the end of me Q.Q
 
user559633
hipchat in a nutshell dot png
 
user559633
 
Hrmph... I can't find the term for this to search, is there a concept of removing certain fields from a query after it's been fetched, or am I doing something very wrong?
 
Removing fields...? I request an example.
 
Users
  .left_outer_join('user_emails', 'users.id', '=', 'user_emails.user_id')
  .where({ 'users.id': request.params.id })
  .first()
# returns with the `user_id` from the `user_emails` table which was used to join it
# want to remove that field
 
6:32 PM
I see. If it was an ordinary text query you could do select a.name, b.address from ...
Wouldn't it be nice if your object had a select method that does the same thing
 
Anyone knowledgeable about Python and HTTP, I could ask a couple of questions?
 
Go for it ant, you don't need to ask to ask
 
@antfuentes87 welcome, please read our rules: sopython.com/chatroom, in particular, don't ask if you can ask
 
I know what HTTP stands for, which puts me in the top 10% of the general population.
 
Hot Topic Tight Pants
 
6:35 PM
Yes precisely.
 
lol
 
keep reading those room rules
 
Lol I failed already :(
Do not link your recent (< 1-2 days) questions in the room. The main site is the dedicated space for posting questions, and having them answered.
:)
The question got put on hold, so it still counts?
 
By "keep a website open", I assume you want to continue monitoring the page in order to see if any new content appears on it. For example, the "1 new question" notification on the front page of SO. But requests can't see things like that because asynchronous updates use javascript and requests doesn't evaluate javascript at all.
 
Yes
Exactly
 
6:38 PM
It's still unclear, you should think about how you explain the problem you're having to someone who doesn't know what you're talking about.
 
I'm not sure what web scraping libraries, if any, evaluate javascript... Selenium, maybe???
 
There a timer on the site counts down, I want to be able to read that timer and print it out, and it just watches the site 24/7
 
user559633
InternJS
 
I got it working with Selenium and firefox, but it just so much overhead
 
That sounds really broad, have you tried anything yet?
 
6:39 PM
All kinds of things
 
Selenium does evaluate Javascript.
 
user559633
Literally all kinds of things. Some not involving computers.
 
user559633
One type was made of marzipan!
 
Just trying to get a light weight solution
 
user559633
Define lightweight.
 
6:40 PM
I always try carrots first, but I should give marzipan a shot.
 
I used Selenium + Chrome / Firefox
 
OK, that's enough of that, we can't help you write a good question besides pointing you at how to ask
 
user559633
If there's a timer on that page, why not read it, count locally, then check back near the end of the timer (or is the timer for a different celestial body where time counts non-linearly?)
 
It works great, I can get it watch the website just fine... and print out the timer... but it of firefox / chrome takes up a lot of ram / cpu
 
garlic
 
6:41 PM
If the page determines the value of its countdown by making periodic requests to the server, then you can make those same requests yourself. Use your browser's page inspection tool to watch for network activity.
 
Hmm yah, but seems to me the HTTP connection does not stay connected to the site, so if there is no connection, there be no timer?
 
brb
 
First word I noticed coming back was "marzipan"....I love marzipan.
what's going on with marzipan
 
user559633
Glad I could make that happen for you.
 
user559633
6:42 PM
All kinds of things, ostensibly.
 
CBG!
 
user559633
 
@tristan someday, that joke will get old
 
jokes on you @tristan . I already fell for that at work last week.
 
user559633
6:44 PM
 
Are you able to keep open a connection with PhantomJS like a real browser does?
 
I can't wait for the future when you can have a conversation purely with annotated pictures.
 
Can you join results of a sql query into an array, or is that a really dumb idea?
 
@corvid you can treat an array as a table with unnest
I think that's the right word
 
Oh I want to turn a one-to-many relationship into a single object with an array for the relation, eg:
[ { name: 'Ted', email: 'ted@ted.org'}, { name: 'Ted', email: 'Ted@jeff.org'} ]
# to
{
  name: 'Ted',
  emails: ['ted@ted.org', 'ted@jeff.org']
}
Wait, found the way
 
6:59 PM
\o/
 
user559633
Congratulations on inventing KindaSQL
 
where the queries are made up but the problems are real
3
 
I have no idea what I am doing right now tbh
 
@idjaw Whose Where Clause Is It Anyway?
 
user559633
So you want to select emails where the name is ted?
 
7:05 PM
I have a users table that is a one-to-many relationship to user_emails, just joining them together
 
user559633
select name, email from kool_bros left join rad_dudes on kool_bros.name=rad_dudes.name; alter your tables to rename them if necessary
 
need help with some terminology: if I have two data streams, each from a different source, and I want to transmit them to a friend
... and I notice that they're correlated, so that y=f(x)
 
user559633
streamulon. streamulator. broriver.
 
so I transmit f once, and continually transmit the x stream
now, on the receiving end, my friend is going to compute the corresponding values of y, by running x through f
what is the name of the process that my friend is following?
decorrelation? uncorrelation? data decompression?
#mesoconfused
 
"mapping"?
 
7:12 PM
this is for a presentation which my supervisor will be attending. So I need a fancy-schmancy word
 
Choose a word at random from this article.
 
inverse-mapped values?
@Kevin ahh! well played, sir
 
Nothin' like spending two entire work days on the same bug.
 
@MorganThrapp 60000 points awarded...I would have also accepted mathnet.
 
7:22 PM
oh yay! I crossed 40k rep
 
Hi question about regex. I'm trying to read the string following host and mac address from text such as this
host labhost1 {
hardware ethernet 11:22:33:44:55:66;
fixed-address 1.2.3.4;
ddns-hostname "labhost1";
option domain-name-servers 10.10.10.10;
}
re.search('host\s+(labhost\d+).*?ethernet\s+(.*?);', a, re.M|re.I)
that yields nothing
 
is your information always in that order?
 
>>> re.search('ethernet\s+(.*?);', a, re.M|re.I).groups()
('11:22:33:44:55:66',)
Yes it is.
 
is it a string or a file?
regex is overkill for this
 
it is in a file
 
7:26 PM
with open('path/to/file') as infile:
 
i read the whole file and want to run re.findall()
@inspectorG4dget i know how to do just by reading the file.. that should be easy
i though regex would be faster/fancier
*thought
 
regex may be fancier... maybe. But do you really want to shoot yourself in the foot with a sparkly bazooka, when you can dig a hole with an ugly shovel?
3
 
:)
 
answer = []
with open('path/to/file') as infile:
    for line in infile:
        if not line.strartswith("ha"): continue
    answer.append(line.rsplit(None, 1)[-1].rstrip(';'))
 
I have a feeling that the regex isn't searching past the end of the first line
>>> print re.search('host\s+(labhost\d+.*)', a, re.M|re.I).groups()
('labhost1 {',)
I'd expect it to return "labhost1 {\nhardware ethernet...10.10.10;"
 
7:33 PM
@tristan probably kind of a dumb question here, but what if you want to return a result even if they have no emails? As in, the user, but with no emails listed?
 
user559633
@corvid select will do that if not bound. the join is only so you don't get a cartesian product (well, and so you're matching on a column)
 
sanity check. Am I doing this right? Aside from using a list comprehension is this the right way to build a list by adding items incrementally? Define a blank list and then concate through each loop?
job_num_list=[]
jobs = Job.objects.all()
for job in jobs:
if job.propNum in props:
job_num_list = job_num_list + [job.jobnum]
Also, how do I indent code?
 
Select it all and press control-k
 
No, that's not the recommended way to build a list, because you create N intermediary lists that quickly get discarded, for a total O(N^2) memory consumption.
Rather than doing job_num_list = job_num_list + [job.jobnum], do job_num_list.append(job.jobnum), which does not create any intermediary lists.
 
Or you could use filter to filter out whatever you don't want: ` filter(Job.objects.all(), lambda j: j.propNum in props)`
 
7:43 PM
Thanks Kevin
 
Yeah filter also works but in practice it's been largely supplanted by list comprehensions, which have all the powers of filter and then some.
 
Kevin, I do have to define a blank list always? There's no way to avoid doing that, right?
@corvid, thanks for the tip. I don't know if that'll work in my case since I'll actually be getting two different models and looping and building a single list with data from the two.
 
You don't have to define a blank list if you use list comprehensions or filter. If you're manually constructing the list, you do have to define it.
 
thanks for the info
I totally forgot about append. despite having used it a dozen or so times.. someday i hope this all sticks!
 
You can still use filter if you're iterating through two lists, but it's trickier to construct the lambda
 
7:48 PM
Hello World, I am trying to learn this pysdl2.readthedocs.org/en/latest/tutorial/pong.html , was wondering if anyone could help me id like to see the whole working project or a better tutorial, this gets me stuck at adding the game world
 
>>> a = "abcdefg"
>>> b = [1,2,3,4,5,6,7]
>>> c = filter(lambda (x,y): y%2==0, zip(a,b))
>>> c
[('b', 2), ('d', 4), ('f', 6)]
 
I would accept any help to let me understand my failure though
 
... But that syntax only works in 2.7, unfortunately.
@linuxfan Try re.search('host\s+(labhost\d+).*?ethernet\s+(.*?);', a, re.M|re.I|re.DOTALL). without the DOTALL flag, the "." symbol will not match a newline.
 
@Kevin it works. Thanks a lot!
 
I'm surprised I had to look at four SO posts to figure that out. You'd think this would be a more common problem.
 
7:56 PM
i was trying a few similar regexes but couldn't get it working
 
The re.M flag doesn't seem necessary here, also. I think that just changes the behavior of "^" and "$".
 
8:16 PM
@Kevin Thanks
 
What's the common method for logging webapps? Say I wanted to beta test my webapp and then look at the user journeys by seeing how users migrate through the webapp.
 
@Ffisegydd with Flask, you can add a callback to fire at the beginning of each request to log whatever information you want
I'm sure it's possible in others as well
 
Yeah it's an Angular app, most of the logging I've found is all for client-side.
I assumed for Flask it would be some decorator in the route functions.
 
@app.before_request
 
I'll ask my fed tomorrow.
 
8:24 PM
with angular you could fire off some request to a logging endpoint whenever the router changes location
 
Yeah that idea crossed my mind, making a dedicated logging service on my middleware.
Ta David-san.
 
9:23 PM
I keep reading that as "Daniel-san"
anyone got any thoughts on this (LaTeX/LyX question)
 
9:58 PM
Eh knex is strange sometimes
 
10:32 PM
Thanks for the help, The issue was resolved.
 
10:57 PM
Rbrb all
 
11:13 PM
@inspectorG4dget You seen this? You'd have to get to the raw tex file, rather than just editing in LyX I think (I don't know lyx at all - I just edit the latex on my docs)
I am assuming from the star board that @ffisegydd has been reduced to working for Domino's these days?
 
11:31 PM
@JRichardSnape thanks. But I'm really trying to avoid writing my own LaTeX
 
fair 'nuff. Could you put your bib in tiny size and a two column layout? That sounds like something a GUI editor might allow.
I'd be pretty surprised if it let you put in a break where you want without getting dirty at the raw latex level.
ooh - I might be wrong though
mmm, still can't see how you'd force it to only break where you want
Your other option would be to change bibliography style so you haven't got the "three line block" beamer style. There must be a way to do that in Lyx. Get the bibliographies one ref per line, then it definitely won't break between author and details.
 
05:00 - 16:0016:00 - 00:00

« first day (1941 days earlier)      last day (3005 days later) »