« first day (1720 days earlier)      last day (3239 days later) » 

5:18 AM
Hello. can anyone answer to my genetic algorithm related question? stackoverflow.com/questions/31175968/…
 
5:53 AM
@JRichardSnape : Thanks for the pounters.
pointers!
 
6:04 AM
lol, mikko bashed in trolling here: github.com/Instagram/python-instagram/issues/146
seems that it is not necessary to fix packages in PyPI since it is trivial to fork packages and install them from github.
 
6:31 AM
cbg all
 
cbd
cbg
 
7:01 AM
Why is it very silent today
 
Presumably because it's 8am?
 
Ho here it is 12.30 pm
Are most from london or near england
 
We're quite European based in general
 
So things will start to heat up in another 3 hours
Then you are up early :)
 
Err well - I was up at 3 :)
 
7:06 AM
Is that you normal timing or do you even sleep
 
I sleep now and then :)
 
Freelancer ?
 
It has its moments :p
What about yourself?
 
7:15 AM
i am writing crawl script in python
 
Working for a small company as of now
@PengKim cbg
Know as mobius knowledge services
 
@JonClements what do you do as a freelancer?
 
where you guys come from
 
@Reut mostly work on developing custom systems for data management stuff...
 
I'm from Israel
Sounds like a lot of money, if it's for buisinesses
 
7:20 AM
India
 
great
 
7:34 AM
Thanks neighbour
 
hah ,how do you know?
 
Saw your profile
 
this is my profile resume moonmoonbird.com/resume
 
7:57 AM
Hey up
 
:)
 
word up Fizzy
 
Nice webpage but don not know Chinese
 
you can learn it
 
8:03 AM
@PengKim care for some advice? If you want to be taken seriously by anyone apart from a 13 year old teenager, don't say "SKILLLLLLLLLLLS" on your resume.
 
Yeah it would take years
@Ffisegydd +1
 
all right,i accept it , i dont know much about culture and background of english
 
Don't ever extend a word, use the correct spelling.
 
yup,谢谢你 means thanks you
 
All words are same for me
 
8:06 AM
I don't know a suitable example of Chinese culture to use, but if I were a hiring manager I would look at that one word and throw your entire resume in the bin. I would literally not read another word.
Also your "list of work/jobs" should go from most recent and back in time.
No one really cares what you did years and years ago, they care what you do now, and by ordering it in the way you have I have to scroll through all the text to find it.
 
yeah,but dont be so mean pls,its not an officially resume,just a introduction :)
 
@Ffisegydd are you by chance from Human resource
 
I'm not being mean, I am offering constructive criticism. Plus you saying "it's only an introduction" is rubbish because it is during an introduction that you want to look your absolute best.
If it's a poor introduction then people are unlikely to look any further, are they?
@VigneshKalai no? It's called common sense :P
 
I have to agree with what Fizzy is saying
 
This is called invigilation skills
You could become a CIA
 
8:12 AM
But it's okay, if you don't want feedback then I won't give it, I just assumed you wanted some as you linked it into chat (and if you were linking it into chat looking for a job then this is the absolute worst place for you to do it.)
 
But that being said, if you introduced that site as being your personal website, and not part of your portfolio, it wouldn't bother me.
 
no no no,its ok, i like advise
 
(Also, cabbage y'all)
 
i am not looking for a job,i am looking for a friend :)
 
I disagree. Even a personal site should be as well formatted as possible, especially if you were looking for employment. I doubt a potential employer would look at a personal site and say "Okay well this is a personal site so I have to give them some leeway, they're allowed to make mistakes."
(And hey up Brit :P)
 
8:15 AM
is it a joke at tailing?/
 
It's an idiom, he's saying hello to @IntrepidBrit
Morning all
 
you are damn right, my site was built up not long , i am making it perfect
 
@VigneshKalai A what?
 
@JRichardSnape i thought it was an humor
 
@Ffisegydd Don't get me wrong, I don't think that it acceptable if it was riddled with typos. But it was clearly a deliberate choice of spelling
 
8:20 AM
Oh you mean the "SKILLLLLLLLLLS" part? Hmmm, yeah possibly.
 
That's the one. As I said, if that was "on my desk" as part of the portfolio, I'd pass on it.
 
If I had stumbled across it in a Google Search, wouldn't bother me so much
cbg(bobbyGdazzler)
 
Warm cabbage!
 
cbg(poke,JRS)
 
8:23 AM
Hey up all.
 
cbg means cabbage ?
 
Yep, short hand for cabbage.
Has anyone given you the link yet?
 
why are you saying cabbage,any special meaning?
 
@PengKim Yes
 
@poke too warm cabbage! :(
 
8:27 AM
wilted cabbage?
 
come again?
 
Meh, anti virus, why are you prompting me to restart for an update just when I booted up the computer?!
brb…
cbg…
 
oh, i seem to get it,
why not you tell me or do it for one time ,but do it over and over again
 
Sorry, what?
 
we are talking about cbg
 
8:39 AM
^ I’m being mocked…
 
is this cbg?
 
hahaha
 
@PengKim I gave you a link; click on it.
 
sure
 
C B G
 
8:41 AM
where is the link
 
@PengKim “Cabbage” and “cbg” are two word from our “salad” mini language which we came up in this chat room.
 
@wonderb0lt how goes it?
 
@PengKim scroll up dude
Goodness
 
Guys, I'm stuck on something that I think should be very simple. I have an numpy array of shape (43000,) and each element is another numpy array of shape (8421,). How can I turn this into a shape (43000, 8421)? Without using a for loop?
 
i cant find it
 
8:44 AM
The red text has an embedded link
 
18 mins ago, by Robert Grant
@PengKim Yes
 
oh ,so ga ,too short , i am short eyes
 
@JonClements It goes well :)
 
@Lexxxxx How have you constructed this? When I try to make such an array it automatically has the shape (43000, 8421).
 
@ffi
 
8:45 AM
Little to no time for SO recently though :(
 
@Ffisegydd, it comes from a MATLAB .mat file... Was delivered to me in this structure
 
wow,its an dictionary
 
So if you print arr.shape it returns (43000,)?
 
yeah
 
Hmm, wow, uhhh.
 
8:47 AM
and arr[1].shape (8421,)
 
@wonderb0lt Is that because your new domain name has taken off big tme? :p
 
I have no idea how to construct an example to test on then D:
 
i felt being laughed at
 
As unfortunately:

import numpy as np

x = np.array([np.array([1,2,3]), np.array([4,5,6]), np.array([7,8,9])])

print(x.shape) # (3, 3)
 
@JonClements Yes it's like Github, StackOverflow and Glassdoor combined
 
8:49 AM
@Ffisegydd, yeah. encountered that myself when testing with new arrays :P
 
Umm... sudden craving for a kebab... but looks like it might be scrambled eggs on toast :)
 
@PengKim Sorry about that, but you have to agree that we tried to explain it to you :/
 
its ok,i feel like an idiot,so ,i am too slow, didnt catch you
 
:(
@Ffisegydd You can’t even create a (n,) array and then put an array in the indexes… the shape isn’t overridden o.O
>>> x = np.array([None, None])
>>> x.put(0, np.array([1,2,3]))
>>> x.put(1, np.array([4,5,6]))
>>> x[0]
1
 
what is numpy used for ?
 
8:56 AM
numpy is a library for high-performance scientific/mathematic calculation
 
oh, got it
ll
 
@Ffisegydd Central Intelligence Agency (CIA)
Just making fun
 
I see. I'm not American though.
 
hhahahhahahah,not at all
 
What?
 
9:02 AM
nothing, humor
 
Somebody pass me the Arch Linux. I'm done.
 
Good man.
Of course your system may be so borked that it doesn't work either.
 
Everything's working fine, except Ubuntu. Again.
I did a minimal install, and that's giving me a cheeky few random kernel panics
 
what is arch linux pls
 
@PengKim have you considered googling for it?
 
@Ffisegydd what is googling pls?
 
i am in the chatting room,i can ask what i want
 
Okay, no you can't.
So for starters, please read our room rules here.
On top of that, you asking simple questions rather than taking your time to Google something is quite rude.
You could easily find things yourself, but instead you make another member explain something simple to you, taking their time in the process.
As a general rule, if you don't understand a term or something in this room, I'd suggest you Google first and ask second.
That's what I do, and that's probably what most other people do too.
 
As we say in SA: yeoh!
 
Is that understood @PengKim?
 
9:22 AM
Cheeky kernel panics. Never a good sign
 
I dunno. Just because.
 
You have too much time on your hands.
 
Hey, it took less than a minute :)
...long
 
大家好
 
Hello, but please stick with English
 
9:34 AM
-5
Q: Can I start bounty for my duplicate account in Stackoverflow?

Kiran RSI have two StackExchange accounts .If I've asked a question on new account and if I want to start bounty for the question(s) from it ,may I use bounty for it? is it a fair approach ?

Some people...
 
@Ffisegydd said we should obey the chatting rooms, and i did
 
Yeah but don't be like a schoolkid and make the adults enumerate every possible rule
 
speaking chinese is not forbidden
 
(That's my thing)
 
SO is an English only site, incidentally.
 
9:37 AM
so you guys be nice
dont treat me like a child
 
We are being nice, we've explained the rules to you.
 
@PengKim I just arrive here, but I don't think anyone has been treating you "like a child" This chat room gets silly at times, and there is an informal attitude, I don't think anyone is trying to insult you, only to understand you. Also, when you first come to a new place, usually you should adapt to the people there before forcing them to change. In this case, we speak English here. That is all.
 
heya @Inbar :)
 
Hey Jon.
I got promoted at work last week.
Head of Automation! woohoo! :)
 
Nice
 
9:43 AM
Congrats!!! Woo hoo! \o/
 
I am the manager of one person. (Myself) and partially 2 other people. But soon.. soon I shall have my army! :)
 
Nice :)
 
And then the universe will be yours?
 
I will start with the break room, and from there - the universe!
(Though I may have to take some galaxies along the way)
 
This is how the world ends
 
9:44 AM
Don't forget your legions of job-invalidating software drones
 
"Now this is not the end. It is not even the beginning of the end. But it is, perhaps, the end of the beginning."
 
@Inbar makes me think of the film "Millennium" :)
 
@InbarRose Cabbage, and congratulations :)
 
@JonClements Film? or TV show?
@poke Cabbage all around! (you mean Pineapple btw)
 
It was a film....
 
9:48 AM
@InbarRose great speech
 
Cᴀʙʙᴀɢᴇ
@JonClements Oh dear
 
Millennium is a 1989 science fiction film directed by Michael Anderson and starring Kris Kristofferson, Cheryl Ladd, Robert Joy, Brent Carver, Al Waxman and Daniel J. Travanti. The original music score was composed by Eric N. Robertson. The film was marketed with the tagline "The people aboard Flight 35 are about to land 1,000 years from where they planned to." Millennium is based on the 1977 short story "Air Raid" by John Varley. Varley started work on a screenplay based on that short story in 1979, and later released the expanded story in book-length form in 1983, titled Millennium. == Plot... ==
Well, that is an interesting plot overview ;)
 
@InbarRose Good short story, and good novel, but rather dark, like much of Varley's work. I didn't realise there was a movie.
 
Quite a cool premise
 
Quite an odd film... but enjoyable enough
 
9:52 AM
I have seen the premise before, I now presume that it originates here, but I may be wrong.
 
Maybe it originates in the far future, where a more entertaining plot with no historical ramifications was needed and thus swapped with this one, as that's the only way anyone makes original stories in 3001
 
:)
 
It reminds me of another funny time-travel situation. Which claims that the Titanic actually sunk because of all the added weight of time-tourists who travel to locations/places of disasters to experiences historic moments in time where they are guaranteed not to affect it. Which is a paradox, Vis-à-vis the chicken-and-egg conundrum
 
Ha, I love the ingenuity
 
I just read the synopsis on Wikipedia for the movie of Varley's "Overdrawn at the Memory Bank" - it seems that it deviates a bit from the original storyline; I assume it does so for increased dramatic effect.
 
10:08 AM
stackoverflow.com/questions/31181434/create-a-3d-plot-for-visualization-from-csv so broad even language is ambiguous and asking for off site.
 
Pew pew boom
 
@JRichardSnape You mean this: stackoverflow.com/q/31181434/4014959
 
Sorry yes. Bl**dy phone. Thanks @PM2Ring
 
Here's another one that's way too broad stackoverflow.com/questions/31181396/… OP needs to read a basic Python tutorial
 
10:38 AM
@PM2Ring looks like every one is busy
 
hello guys, is it ok to post a small piece of code and ask a question about it here, I don't feel it is a worth SO
 
@GeoffreyMureithi If it's very small, no more than a dozen lines or so. If it's longer, put it on pastebin etc & link it. And if you paste it here, make sure you format it correctly, by selecting all the text and then hitting Ctrl-k, or the "Fixed Font" button
 
I have this Fibonacci function that uses the last 3 instead of 2 numbers to generate the result.
memory = {0:1, 1:1, 2:1}
def fib3(n):
    if not n in memory:
        memory[n] = fib3(n-1) + fib3(n-2) + fib3(n-3)
    return memory[n]


print(fib3(40))
how can I do this with something like 4000 without memory problems?
 
What do you mean "memory problems"?
 
@VigneshKalai Maybe. And you should be busy too, fixing your answer to that question before I downvote it. :)
 
10:44 AM
You mean in case the memory dictionary no longer fits into the computer memory? Then you’re out of luck with that solution
You could use some cache that forgets older things automatically to keep the dictionary size bounded
 
@PM2Ring again removed sigh
:(
 
functools.lru_cache does that for example.
 
@GeoffreyMureithi That will exceed Python's recursion limit. So change your code logic to use a loop, rather than recursion.
 
@poke take for example this en.literateprograms.org/Fibonacci_numbers_(Python)#chunk use:fibonacci_matrix.py
 
@PM2Ring Thanks to the memoization, it won’t.
 
10:47 AM
I am overwhelmed with the number of methods to add a timeout to a subprocess call. Anyone have a good version they can point me to?
 
Okay - not gonna lie. Really rating the way Arch Linux is set up thus far.
(Haven't got a working OS yet, but enjoying the installation configuration process)
 
Hah.
 
@poke Are you sure? I agree that it'll work ok if you use it to generate the Tribonacci numbers in order, but what happens if the memoization cache is unpopulated, and you try to do fib3(4000) ?
 
@IntrepidBrit Thanks for that trick
 
@PM2Ring Well yeah, I was assuming an iterative creation of them all
 
(Geoffrey, you can press 'up' on the keyboard to edit your previously posted messages)
You're welcome
 
my timeline looks like a time machine, with Geoffrey thanking intrepid for a tip before he's given it. Anyone else see that?
Especially weird as the prior message is clearly linked to the latter as a reply (yes, I'm a little bored).
 
I don't, but I'm fully expecting you to utter the word "sheeples" :P
"Wake up sheeples! They control the timeline"
 
Wake up sheeples! They control spacetime!
 
11:04 AM
It's like I already knew it was going to happen...
DAMNIT! You left it too long for me to edit
 
Maybe it's you who control it. Are you one of Them?
 
Look! A three headed monkey
exits stage left
 
@GeoffreyMureithi Here's a simple non-recursive solution. I guess it could be optimized with some memoization. But if you really want to do this efficiently, you should use something like numpy that can do fast matrix calculation, and use the matrix exponential equation from oeis.org/A000213
def trib(n):
    queue = [1, 1, 1]
    for i in xrange(n-2):
        queue = queue[1:] + [sum(queue)]
    return queue[-1]
print [(i, trib(i)) for i in range(10)]
**output**
[(0, 1), (1, 1), (2, 1), (3, 3), (4, 5), (5, 9), (6, 17), (7, 31), (8, 57), (9, 105)]
 
@PM2Ring That matrix exponentiation solution is neat - I like it
 
@PM2Ring works like a charm. Thanks.
 
11:18 AM
@GeoffreyMureithi No worries.
@JRichardSnape Yeah, matrix exponentiation is what the big boys use for this sort of stuff. :) For plain Fibonacci numbers (and other such quadratic quantities), I prefer the so-called Binet's formula using an arbitrary precision library like mpmath.
 
yeah - that's what I've used for really big Fib stuff (mostly prompted by project Euler investigations a couple of years ago)
 
The weirdest Fibonacci calculator I've ever "coded " is a pattern in Conway's Game of Life. It generates Fibonacci numbers as a stream of gliders. IIRC it's limited to 80 bits, but it's not that hard to expand the pattern to handle larger numbers.
 
:) I like the way you work :)
 
AFAIK, I was the first person to make a Fibonacci generator in Life, but a little while later Adam Gouger, aka Calcyman, created one that's not limited in bit length. However, his version is many thousands (or maybe millions) of times slower than mine.
@JRichardSnape Doing arithmetic in Life is a bit tedious, but it's fun - it's like designing a custom chip to perform an algorithm.
 
A nice mental exercise, if nothing else. Cryptic crosswording for the numerically minded.
 
11:30 AM
Yep
But if you want to get really cryptic, try programming stuff in another of Conway's creations, FRACTRAN. :)
 
Or Lisp
 
bah - I wish you hadn't pointed me to FRACTRAN. I do believe that featured in another Euler problem I had a go at - probably not credited in order not to make it to easy.
@poke LOL
Or should that be (((((((((((LOL)))))))))))
 
@poke Or Haskell
 
Haskell is well readable
 
For certain values of "readable"
But I agree that lisp-like languages are a PITA to read with all those nested parentheses.
 
11:40 AM
Yeah.. when you need IDEs to color every parenthesis pair in a unique color, then you should probably think about introducing other syntax elements in your languages…
 
Haskell, I guess, is readable if you 'get' the fundamental concept of it. Without that, it's impenetrable IMO. I had a little dabble with it a while back - it seems I should do more, all the mathsy big boys are at it.
 
Obviously you need to grasp functional programming
But of the popular functional programming languages, Haskell isn’t bad
(in visible appearance, readability, etc.)
 
@poke I admit Haskell does look nice. I suppose I should have another go at trying to learn it...
 
You should :)
Don’t let monads confuse you though
 
> Don’t let monads confuse you though
That's the bit. Monads. That's where I kind of half got it and didn't go much further. I should also have another go at it.
I found tryhaskell.org quite useful. Anyhow. Back to Python, or some RO or other is going to thunder This is not a Haskell room, y'know. Stop distracting me, other ROs ;)
 
11:54 AM
Sorry. :)
I was just looking at the FRACTRAN interpreter that I wrote in Python 5 years ago. I suppose I ought to update it: it uses eval() on the command-line input so that it can accept expressions in the seed number and the fractions.
 

« first day (1720 days earlier)      last day (3239 days later) »