« first day (2171 days earlier)      last day (2768 days later) » 
00:00 - 15:0015:00 - 00:00

12:07 AM
@AryeGuetta yes
stackoverflow.com/questions/39680537/… "why is my code not working". It has an accepted answer, but should probably be closed accordingly.
 
you know I deleted another SOD thing (I don't know what to call them anymore...) and it was reviewed insanely quickly for a full delete by people with 0 python score and the highest scores were one in SQL and the other in wordpress
 
12:23 AM
Russia just tied Canada 1-1...grumble grumble
 
oh! the game is on and I am missing it?!
 
Lots of hockey left to be played. So you're still good to catch it
half way through the second
nvm...
 
yeah, just caught the replay of Kucherov's shot
 
GAH! NO! :(
2 - 1 :(
panic averted...2 - 2
 
12:43 AM
lol
and someone is commenting on that already (granted, not very specific advice but still....)
all I do is click on Python tab and see that @idjaw has deleted another message - what's that guy hiding? ;)
 
hehehe
I made a comment about an answer being downvoted but it wasn't interesting
 
oh, I thought you were making comments about the other team and thought better of it
 
hehe, I keep my sports trash talking in the bar
and on the ice!!!!!!!
 
I once made a joke lecture (it was April fools) with a Canadian friend where he started by giving a normal lecture and I kept asking him for hockey stuff and every time he picked up a puck or stick he'd flip-out and give the lecture in (what we called it) "Super Canadian mode"
 
It really brings the worst out of Canadians.
You want to bring out the crazy in a Canadian, throw a hockey stick in the mix
 
12:57 AM
it's great - but add beer ^
 
We have a rotating "beer cooler" for post game beers
:)
end of game next person takes it home and next game brings it with nice cold brews
 
drunk Canadian with a hockey stick = something in my house will be destroyed (but I'll get a very nice apology the next day and they'll replace it themselves - and probably bring me a doughnut when the come) ;)
 
yup...pretty much. But probably a beaver tail
 
well, I'm in Florida - closest we have is bear claw (but apparently this is "not the same")
 
I like my beavertails plain
 
1:01 AM
next time that happens, I'll know to hold out until the beaver tail then
 
Definitely
 
also, that is an awesome idea with the beer cooler (though for our own games when I lived up North I remember coolers were not a thing - snow works fine)
 
I really hope I can make my to the out door rinks this year. Past couple of years things didn't work out too well
Plus I want to teach the kids how to skate.
 
granted last time it happened I woke up to that Canadian (he passed out on my coach) making my family "back bacon" (used my salted pork and coated in cornmeal) as an appology so that was worth it
@idjaw not cold enough?
 
@JGreenwell It was either not cold enough, too much snow, way too cold and then bad timing
 
1:09 AM
oh, I forget it can be too cold
 
oh yeah... We can get to -35 C (-31 F)
But that is with wind chill so it is a feels like
I'm trying to look up historical temperatures
 
Chicago used to average somewhere between -35F and -50F windchill in the winter (stupid gusts)
 
Windchill is killer...
 
I think most of the time it was more the -25 to -30 but those lake effect wind gust just killed when they got bad
 
I once ran in a -15 windchill
worst idea ever
never should have done that
I was well protected, but still....not smart
 
1:20 AM
-20F was our cut-off for running in Marines....so yep, done that more times then I want to count
horrible everytime (always one idiot who thought it "meant you were alive!")
 
haha that guy
Where were you to have -20F?
 
Fort Leonard Wood, MO - check January and then add wind
 
@JGreenwell Yeah...You've been in some cold :)
 
Also possibly Camp Pendleton, CA when we had to do mountain training - it gets cold that high up but I have no idea what the temperature was (was coldest I remember besides Iraq) but that was having to stay in prone, on ground, or in a hole you dug.....so likely colder in my head then temp actually was
 
DSM
Back home, and cautiously -- very cautiously -- not entirely without hope.
 
1:32 AM
\o/
things are looking good, DSM! :D
 
DSM
If you just jinxed us I WILL FIND YOU
 
I would deserve it
so I will send you my coordinates
just to make it easier
 
DSM
I've already managed to Sherlock that you live in laertnoM.
 
oh, right....few canucks here
ESPN announcers are starting to make the "Russians should start booking their flights" jokes so you could blame them too
^ Camp Pendleton Mountains
I thought I had a better picture somewhere (at least to show height)
 
1:48 AM
wooo
@DSM
 
DSM
Heh. But clearly it's good that we're averaging just under 5 goals a game.. we need the breathing room against the top teams!
 
Marchand's wrist shot was pretty darn nice
It's very rare I like things that Marchand does.
We messed up with your Fallout 4 character
 
2:12 AM
 
user559633
> Took me 5 hours to make him look as I wanted him to.
 
user559633
there's something else we messed up, but i'll share it tomorrow...has to do with the name of the character
 
What's the characters current name, again?
 
user559633
keen, but i learned something today i find deeply hilarious that's meant to be insulting . anyway :)
 
hehe ok
 
2:41 AM
that happens to me alot
like a few days ago I was referred to as "one of those weird math guys"...nicest compliment I've had in a while
 
 
2 hours later…
4:24 AM
cabbage
 
4:42 AM
Cabbage :-)
 
Cbg :)
 
 
2 hours later…
6:57 AM
@randomhopeful haha yeah what was that about a floor tile? :-)
(Cbg)
 
7:45 AM
cbg :)
 
morning guys
i want to add a column vector to an existing numpy arrray (2, 3) matrix.
i tried all sorts of ways, hstack, vstack, concatenate etc... but none seems to work.
appreciate any help
always get error dimensions must match exactly
 
I assume you want to repeat column vector to match dimensions of base array
 
8:01 AM
yeah. i ended up doing this. is this a good way also? @ŁukaszRogalski
>>> a2
array([[ 7,  8],
       [ 9, 10],
       [11, 12]])
>>> np.concatenate((a1, a2))
array([[ 1,  2],
       [ 3,  4],
       [ 5,  6],
       [ 7,  8],
       [ 9, 10],
       [11, 12]])
>>> np.concatenate((a1, a2), axis=0)
array([[ 1,  2],
       [ 3,  4],
       [ 5,  6],
       [ 7,  8],
       [ 9, 10],
       [11, 12]])
>>> np.concatenate((a1, a2), axis=1)
array([[ 1,  2,  7,  8],
       [ 3,  4,  9, 10],
       [ 5,  6, 11, 12]])
 
@Ming Well, concat and matrep are two different operations, so it seems that concat works for you only because you need to copy base vector once and not more than once
 
i see. ok. got it. btw, repmat looks very useful though. thanks for sharing :)
 
I am starting to write yet another android messanger
but this one will combine all others in a really cute way
kind of like BBM but better
 
omg
now we have yet another LPTHW
 
> dictionary with integer keys
lol crindgy
 
8:16 AM
ok that teaches datastructures, but why cannot they write pythonic code
every single name even violates pep8
I much prefer using pseudo code for algorithms instead :((
 
the initializer is messed up too
 
"assumes key int" :D
that's why python is such a bad tool for these algorithms,
you can throw in a string like "%s" and it just works :D
... until...
 
C is better for teaching data structures
 
... or java
strongly, explicitly typed language.
or just pseudo...
now they only show how not to do things properly in python
 
yeah pseudo is good enough too
 
8:21 AM
at least the book uses python 3
 
> intDict(object)
 
yes... but it is still python 3...
 
my fedora just broke
actually dnf broke
here is my plan for the next 3 months:
1. Write a stupid android program
2. get really rich
 
but how are you going to write a stupid android program?
native or webview
 
native
I don't like those cross-platform stuff
 
8:27 AM
most people stop after the step 1 :d
believe it or not
 
there is plan B: sell crack for step 2
 
Cabbage
 
8:51 AM
Cbg
 
first impression of android development: download lots of shit
 
bug in Python that cannot be fixed...
because someone just happened to implement the urlparse in a particular way...
 
9:17 AM
Hello
My question today: How to find the max value in a tuple?
 
@linuscl did you google?
really the first result is the answer to your question
 
Already looked for, but doesn't work
 
@linuscl max(my_tuple) doesn't work?
>>> l
(1, 2, 3)
>>> max(l)
3
 
yeah, I tried it by splitting the tuple into a list. I printed it. The list seems to be correct. -> Then max(list) -> Error: TypeError: 'int' object is not iterable
What does that mean?
 
@linuscl it means you are passing an integer to max() instead of a tuple
 
9:27 AM
yes, in the list, there are only integers, isn't that correct?
 
@linuscl You have to pass the list/tuple itself, not its element(s)
 
@linuscl If you are manually creating a single element tuple, just surrounding the number with parenthesis is not enough. For example, (1) is not a tuple, but (1,) is
 
Is this correct?
 
what's possiblities?
but it looks correct
 
It's the tuple
the whole function: pastebin.com/k3wTWwPG
 
9:35 AM
@linuscl first: you don't need to create a list out of a tuple to use max(). 2nd: you don't convert a tuple to a list in a loop. 3rd: you can't iterate over a tyuple like that.
 
Why not?
 
Now, you can just do max(possibiliteis)
@linuscl because what's o_list supposed to be?
 
possiblities tuple looks like: [((), 0), ((4,), 4), ((5,), 5), ((4,), 4), ((4,), 4), ((4, 5), 9), ((4, 4), 8), ((4, 4), 8), ((5, 4), 9), ((5, 4), 9), ((4, 4), 8), ((4, 5, 4), 13), ((4, 5, 4), 13), ((4, 4, 4), 12), ((5, 4, 4), 13), ((4, 5, 4, 4), 17)]
I want to get the second number
o_list is first, then total
 
for item in my_tuple:
    print(item[1])
 
ah, I see that I want to return the whole tuple section, but only comparing the total values
 
9:40 AM
well, your method should work too
I don't know what you are doing
 
@linuscl o_list, somth in my_tuple should work too
 
also, o_list is not a very good name for a variable
 
I want to return ((4, 5, 4, 4), 17) ^ with the example above
 
rather have a plural noun like objects or omicrons
 
9:43 AM
>>> max(a, key=lambda x: x[1])
((4, 5, 4, 4), 17)
where a is your list
 
you mean tuple
 
@linuscl possibilities to be exact
 
where a is your (whatever it is) iterable...
@linuscl also, you're really confusing lists and tuples here.
 
Thanks working @khajvah
:)
 
I mean, you're using tuples for something that should be lists...
 
9:45 AM
@AnttiHaapala really?
 
ah no
nvm :D
I was looking at the code above...
 
what does lambda mean, is it a function?
 
lambda is a function without name
the name comes from lambda calculus
where the greek letter λ is used to mark a function
in lambda calculus you'd write for example λx.x
in python you can write that as lambda x: x
which is an expressoin that makes a function that is similar to
def anonymousfunction(x):
      return x
usually lambda is not needed in Python, because you can write a function separately.
but here, you'd have to write^
 
thanks
 
 def get_item_1(x):
       return x[1]
 max(a, key=get_item_1)

 # is equivalent to
 max(a, key=lambda x: x[1])
the former does look a bit complicated, doesn't it?
 
9:53 AM
looks better and shorter
bye gtg
 
Hello Everyone Good Evening.
 
 
1 hour later…
11:14 AM
Thanks. I have installed Bokeh and made a simple Graph that takes Data from an array that I am fetching the info to it from Sqlite3.
I have tried to make the plot show datetime in a format of : YYYY/MM/DD H:M and I am not able to do that. I ma getting the int value of the date instead and I am not able to list the index correctly. I have looks in gogle and could not find the answer I need - I would be happy if you can assist me with that. I have plotted the array in matplotlib using "import matplotlib.dates as mdates" and "dates = matplotlib.dates.date2num(x_sm)" and I was able to have an a
 
user6568562
11:44 AM
@RobertGrant I thought the joke was about idjaw always borrowing stuff à la Kramer. I found the idea of taking floor tile with the promise of returning them quite giggly : D
 
user6568562
cbg
 
Android development seems very comfortable
I kinda like it
 
@AryeGuetta I've never used either of those. Sorry.
cbg
 
hi
 
12:03 PM
hey @khajvah How's it going
 
I understand. Is there a way that I can transform datetime values to the x axis for the plot on Bokeh? Thanks
 
@idjaw not much, found some free time to get into Android and Java
what about you?
 
@khajvah Learning asyncio. Figured it was about time. How's your Android dev going?
@AryeGuetta Sorry, as mentioned, this is not my domain of expertise. I don't know. I'd have to look this up myself.
 
Pretty nice actually. Google has done a good job. It's really easy to develop
 
@khajvah What are you using for your development environment? Is it fairly flexible to use whatever supports Java? Or does it have to be specific for Android?
 
12:07 PM
It's native Android
don't know the inner workings but I just downloaded Android studio and it was good to go
 
ah OK. Android Studio.
 
based on Intellij, so I am home
 
cool!
I've only done iOS dev, and there is only ONE way to do it :P
....I think
I actually liked the simulator.
Is there a nice simulator in Android Studio?
 
I haven't used it yet
I didn't want to wait for download so I just used my phone
 
hehe
 
12:48 PM
@JohanLarsson I just found this.. perfect for today's work ;)
 
@PeterVaro oh that is starting off really good so far. Thanks for sharing :)
 
np ;)
 
1:20 PM
cabbage
 
cbg Andras
A question almost identical to this came up this morning. I can't seem to find it though....
Maybe it was deleted?
 
probably
same op under different name, most probably
and a few days ago there was another weird "compress text" code question with a self-answer
 
srry for that.will keep in mind. — J.Paul 24 secs ago
hehe....but please, OP...don't bother modifying your current question
 
@idjaw I usually downvote those unless I had already done so
left a helpful comment
bah, somebody edited for them
not even an answerer
I should roll back:D
 
I improved it
hold on
I'll roll back :P
 
1:27 PM
:D nice
lol:D
huh, one of the fortran guys approved that edit
 
My Canadianess is having a hard time finding a polite response to: stackoverflow.com/questions/39687275/…
 
> idjaw reviewed this 1 min ago: Edit
Community♦ reviewed this 1 min ago: Approve
francescalus reviewed this 9 mins ago: Approve
@idjaw "Good luck."
 
@AndrasDeak bombing in budabest?
dunno why I expanded idjaw there first :D
 
apparently, but doesn't look like terrorism, more like mafia
 
@AnttiHaapala heheh I was so confused
 
1:30 PM
at least "bomb left in front of a store in the middle of the night" doesn't sound like terrorism
the two injured are policemen on their patrol
 
@AndrasDeak polite enough?
 
way too polite
can I downvote comments?:P
 
haha
flag it
 
"too polite. too Canadian"
 
1:32 PM
perfect ^
 
anyway cv'd
 
@idjaw Yes, it was self-deleted moments after someone commented that it sounds like homework. stackoverflow.com/questions/39685161/python-compressing-files "I'm a beginner in python and I was wondering what it meant to compress a file into a list of words and to recreate the original file. I don't really get the wording I'm not too sure what the program is asking me to do."
 
@PM2Ring Yes! That was exactly it!
srsly ?? ugh....
 
:) There was a very similar question a few days (or maybe a week) ago. The OP wanted to convert a file of words into a list, with duplicated words replaced by their index number in the list.
 
@Antti there are conflicting reports about the bombing, national media claims that the anti-terror swat guys say it might have been a terror attack, while other media outlets say that they asked the anti-terror swat guys and they didn't say anything along these lines:D I guess it happens to be very beneficial for the government (=> national media) if this gets portrayed as an act of terror. I'm sure a refugee committed it </sarcasm>
 
1:41 PM
yeah no doubt.
capitals of 25 countries, 100 % correct.
 
> You got ALL of them right! You are the Crème de la Crème, the top 4.
w00!
 
lets see if it is a fake test ...
I did get 100 % right tho
 
while it's not a country - one of my favourite quiz things is "What's the capital of Florida?"...
A lot of people get that wrong...
 
I would have :d
 
1:55 PM
A lot of people get the capital of Canada wrong
 
@idjaw the UK? :p
 
@idjaw wait, that isn't the state of Washington?
 
hahah
@AnttiHaapala We haven't been annexed yet!
 
@idjaw I'm reckoning it's Ottawa - but my first guess would be Vancouver...
 
Ottawa would be correct
 
1:57 PM
Ottawa isn't even hard.
Canberra is much harder...
 
@AnttiHaapala instead of what I'm guessing is the next biggest answer of "Sydney"? :p
 
next biggest? that would be the majority answer
at least there is something else to Ottawa than it just being the capital.
unlike canberra
 
awesome - learning something more today - just google'd "ottawa"...
shows on the map to the south east a little place called "Cornwall"
 
that's where the wild hordes of mice are being kept back from invading the country
 
@AndrasDeak it's a county in the UK
also notice there's a place called "Chelsea" - which is an area in London :)
 
2:00 PM
oh I might have confused it with that huge wall made of corn cobs
 
@AnttiHaapala We had to make a neutral capital between Sydney and Melbourne. Otherwise, federation couldn't have happened.
 
@AnttiHaapala I redid the test with wrong answers and it said I failed. Looks like we are smrt :P
 
it allows some wrong for "you aced it"
 
table flip
 
@idjaw oh gawd... is it xmas and as a family we're trying to play monopoly or something? :(
 
2:03 PM
@JonClements One does not simply just play Monopoly....
 
@idjaw Thanks for all your help.
 
@idjaw is that a challenge bruv? :p
 
Wow. I got them all, but I did guess a couple of the middle eastern capitals.
 
@AnttiHaapala USA, you so silly
so much for originality
 
2:07 PM
We have a Texas in Australia.
 
> Other uses: Budapest (film series), American pornographic film series
great
@PM2Ring but I'd expect that from prisoners;)
 
Alright. Time to go on an adventure with the kids.
rbrb all
 
rbrb
don't follow the white rabbit
 
too late. Was delicious
 
2:10 PM
Oulu (/ˈuːluː/ OO-loo) is a town in Bayfield County, Wisconsin, United States. The population was 527 at the 2010 census. The unincorporated community of Oulu is located in the town. The town is named after Oulu, the fifth most populous city in Finland. == Geography == According to the United States Census Bureau, the town has a total area of 35.4 square miles (91.8 km2), all of it land. == Demographics == As of the census of 2000, there were 540 people, 192 households, and 134 families residing in the town. According to the 2000 census, 44.7% of the population still claim Finnish as th...
 
now that's bad
I mean, I only heard of Oulu because of you, so I figured it's a dusty little town in the middle of nowhere:P
 
@idjaw Good job - now Alice is going to need a GPS... sheesh :p
 
awww:D
 
Darn right... except if I go to Korea to where they'll try to put me on the menu...
 
2:15 PM
yumm yumm ninja puppy
It's like fugu sashimi in Japan: the more dangerous the meal, the higher the value. How could it be more dangerous than serving a ninja?
 
@thefourtheye heya pups!
 
user559633
cbg
 
@tristan cbg - how goes the procrastination? (ie: do we get a video today?)
 
user559633
@JonClements lol. the procrastination is doing well (yes, we do, regular time :) )
 
Awesome - hopefully I won't be yamming around and hitting the walls trying to get a report out and trying to get ES to return the results I think it should be... blah blah
 
user559633
2:33 PM
Fair enough. Fallout seems to be a fine background game because of all the inventory management.
 
@ŁukaszRogalski When posting cv-pls requests it's preferred that you mention a close reason, eg "dupe", "No MCVE", "POB" = primarily opinion based. Quite a few of the regulars here have the Python tag gold badge, so we can hammer dupes rather quickly. :)
 
@PM2Ring sure, thanks for a tip :)
 
aand gone
 
00:00 - 15:0015:00 - 00:00

« first day (2171 days earlier)      last day (2768 days later) »