« first day (1148 days earlier)      last day (4023 days later) » 

09:00
@inspectorG4dget Ha ha. That made my day. media2.giphy.com/media/2gekRw5WtBzfG/giphy.gif
I mean you give me a list of works, that end with ly or re or er.
that's just the thing. If you're going to do a ton of looping and breaking and branching, that's a candidate for regex. Still, tread carefully
Yea.
I mean the examples I gave have 2 letters,
I mean you may have arbitrary ends.
As the name indicates, use it only to match the patterns?
09:01
@GamesBrainiac: nonono. That's far too simplistic. I can simply do [w for w in words if w[-2:] in set('ly re er'.split())
yea
I know it was, I was thinking something that ends with arbitrary endings, 4 letters or has an e in the middle
something like that
I would go with more complex patterns like A*(B|C)+\..{2}er
now, that requires a regex, whether you import re or implement one yourself
honestly, I'm getting rusty on my regex, because I rarely seem to use it.
string is a bad influence :P
09:03
@samrap Good attempt :) You can add lots of other useful features. Host your project on github
true true. Plus, the library is fairly standard. It's not all that hard to look it up at runtime
@samrap i really hate exams.
They annoy the shit outta me.
I'm planning on putting it up as soon as I add a few more functions. Thanks for the feedback @thefourtheye
I implemented a SortedDict class :D
Haha I do so good in school without trying. Study about 1 hour the night before finals and get A's or B's on them
09:04
@samrap Why doesnt it support floating point numbers?
I retain information really well
What do you mean? @thefourtheye
@samrap: wanna do my fuzzy controller assignment for me?
@samrap
>>> slope
Enter coordinate one (x,y): 2,2
Enter coordinate one (x,y): 2.5,2.5
Coordinates were entered incorrectly. Type 'man slope' for more info.
>>>
Haha what is it? @inspectorG4dget
@inspectorG4dget stop making innocent kids do your work for you :P
@samrap trust me, you don't wanna know.
09:05
Wasnt gonna do it, just interested in what it is @Games
@samrap that poor guy has to make his own algebraic manipulation library.
design a non-linear fuzzy controller to maintain the water level in a water tank by increasing/decreasing the pump's voltage
hmm i think it has to do with the input method changing the raw_input to an integer. I'll look into that @thefourtheye
@inspectorG4dget now's that's funny.
@GamesBrainiac: so true. I had to reimplement a tiny subset of mathematica
09:06
Wtf kind of classes are you in?? @inspectorG4dget
lol tiny :P
@samrap Put it on github. People can raise bugs there and you can track them easily
@samrap the wrong kind.
XD
cc @inspectorG4dget
Will do @thefourtheye
Hahaha @Games
@samrap: ELG5396: neural Networks and Fuzzy Systems, CSI5308: Principles of Distributed Computation
09:07
poor guy has to solve calculus problems and then implement them in code.
That's gotta be a sin
Calculus is annoying enough as it is. Especially when you get to annoying differential equations.
I purposefully took algebra 1 freshman year instead of geometry so I would only get to precalc by senior year :)
@samrap dunno if that is, you get water because of the stuff he's doing right now that some other important guy did long ago :P
Well, I can solve the diffE on paper and implement it in code once. It's not that bad
09:09
@samrap well, if you're in the US, thats not a good idea. Are you doing APs?
@samrap Well, why would you do that?
Usually, the fun Differential Equations can't be solved on paper ...
@samrap You're gonna have to take calculus anyways when you go to college. And then you would wish to have taken Calculus because everyone else would, and you would be behind the curve.
Which is why you need code to solve them.
I'm the moron who took advanced alg in my freshman year, so by my senior the school had no calc left to teach me
09:10
Because I thought I was gonna be a transportation designer and academics werent a priority. I wanted to go to a design school. Wasn't until last summer I got into computers @Games @Andy
I'm taking AP computer science next year
@samrap That makes sense.
I'm getting my ed through the Marines though, so I'm not too worried about tough classes, just getting good grades
Or that's the plan at least
we got a military man in here!
Yes sir
@samrap Hmm, well let me put it to you straight, there are few good engineering colleges right now in the US. Ones that actually are going to make you an awesome engineer. Actually, this applies not only for the US, but in most countries.
09:11
Much respect!
Thanks! @andy
@samrap So, make sure to take some challenging courses, so that you can stay competitive .
For sure @Games
@Games what engineering schools?
I'm in Southern California, so I was thinking UCSD is top 15 for comp sci
But Marines have their own academy too. My plan is to get into government security, and being a former Marine will be a good in
09:13
@samrap don't just look at the ranking
@samrap UCBerkley my man. Thats what you should be aiming for.
Yea if I was in AP classes then definitely
@GamesBrainiac How about UC Davis? I heard it's a good school too.
Or if I come up with the next nabster or facebook before I graduate ;)
Those colleges just don't accept anyone
@Andy Quite good, the teachers are nice. But I think most of the time, you need good friends from college. Remember, college is more of a place to make lifelong bonds than to actually do any learning.
09:14
alright I'll bite. I'm officially a moron
@GamesBrainiac so UCB is more about learning than making friends?
how could I possibly screw up a sign function?
@inspectorG4dget you were too busy thinking about chat?
:P
What's a sign function? blushes
I wrote this weeks ago on caffeine
a sign function takes one number as input and returns the sign of that number
09:15
@samrap Try. Apply to as many as you can my man. I mean there's the university of Illinois, UC
if you give it 0, it returns 0
if you give it a positive number, it returns 1
Apply to all the good ones out there, and even if you have to move out of state, then do so.
if you give it a negative number, it returns -1
@inspectorG4dget That sounds very C-ish
0 for good -1 for bad :P
Yea that is true. I reaaallyyy don't wanna move out of state but it is only 4 years and the pay off is worth it
09:17
@samrap Swarthmore is quite good too.
Very good for engineering.
it is a bit C-ish
Never heard of it. Where is it?
@GamesBrainiac How do you know all this info?
When you say engineering do you mean software?
Bc I don't want to get into hardware
@samrap Or just aim for the best. Like MIT.
09:17
@Andy I applied. I was an international student, so I ddnt get into any of 'em. I got onto MIT's waiting list though.
For a US citizen, its 1/12, for an international citizen its 1/35
those are the chances peeps.
@GamesBrainiac What school are you going to now?
a horrible one, don't ask
Wow that's tough 1/35!
hahahaha
i moan about it enough to inspector XD
I think 1/35 is a bit of an exaggeration.
09:18
@Andy Actually its even more now.
Look at the stats for USC.
And no, its by no means an exaggeration. Check the MIT statistics, and you'll see 1/35
USC?
I was trying to be clever and use `min(..., max(...))`
bit the bullet and went with the ternary instead
USC, Stanford ...
@All Hello
09:20
@Andy Stanford has a quota for californians.
Hi @AbhishekGupta
@inspectorG4dget hello
@AbhishekGupta hey man
@inspectorG4dget i am a iPhone developer can any body tell me what is Python ?
@AbhishekGupta: http://www.python.org/
Also, you should read the info page of the python tag on SO
09:21
Ternary is an interesting one
@AbhishekGupta Python is a very simple and powerful language to learn.
Stanford is pretty much the top college I want to go to
But I mean people with all AP classes and in a sport don't make it in
It supports many functions that other languages don't. @AbhishekGupta
@samrap don't let other people's failures stop you. It's worth a try.
It's only about $100 for the application + an essay. @samrap
@AbhishekGupta In the simplest terms, Python is a programming language, made for general purpose use. That means, that it can be used in most circumstances. Whats special about Python is also the fact that its a hybird language, meaning that it can easily inter-operate with other programming languages like C/C++. Meaning, develop a prototype quickly, and then change the parts that are slow to raw native code.
@Andy it is use for developing website ?
09:23
That's not too bad
@samrap: you have military experience. You can use that to make a fantastic essay. Those admission committees love that sort of thing
That's good to know @inspectorG4dget
@samrap Stanford looks for initiative more than anything else. Make sure you have one killer ECA.
@AbhishekGupta: one could use it to develop a website, if desired
@GamesBrainiac: "ECA"?
Yes, Django is used to developing websites, and it's Python based. @AbhishekGupta
09:24
Extra Curricular Activity
@Andy @AbhishekGupta: Django, pylons, twisted, tornado...
all right guys
Guess I better step up with ECAs bc I'm currently at 0 hahaha
i seem to have messed up my pycharm config
@samrap Take 2 at most, 1 is a must.
09:26
@GamesBrainiac what are you studying in school?
nope
at university
@Andy are you still in high school?
@samrap NO
In college or applying?
Can someone upvote this post, so that she can get 10 reputation to post a picture?
http://stackoverflow.com/questions/20439020/python-script-for-getting-some-columns-of-one-excel-into-new-one/20439042?noredirect=1#comment30534258_20439042
@samrap IN college.
09:28
Done, and where at?
Thanks for the up-votes. I'll tell her to post a picture, so that I can help her.
Very close to where you live.@samrap
Community or university?
university
FWIW, I think that there are a bunch of people who would look down on the "upvote so that this user can post a picture" thing.
09:30
HAHA have you guys noticed that anytime a girl has a profile on SO and she has a profile picture her profile views are about 10x > than her rep points, but any guy profile the views are about 1/4 of their rep points :D
Hmm UCI?
I'm not really a stickler on stuff like that, so I don't care -- But I wouldn't want anyone to get in trouble either. Generally canhaz code questions don't get 3 upvotes ;-)
C ya all
@samrap there are girls on SO? OMGSHSHSHS
:P
I won't be here for a week, guys
@Haidro bye bro.
09:31
Horray.
Haha I saw one hot girl once
rep for all!
Amazing surprise
@mgilson pls
09:31
Seeya Haidro!
Have a good one Haidro
C ya all
And you'll be missed in chat
Tell Jon, and Volatility if he ever comes back
And others
09:32
@samrap I don't like sharing my info to the public.
(or a good 7?)
Ok no worries but that's cool. Are you doing computer science or what?
Engineering
Nice
what?! I was gone for no more than 2 minutes. We changed conversational topics to hot girls, a member left, @mgilson woke up... what?!
09:33
Oh and aliens visited
Yeah. but they erased the record of their conversation with us.
Apparently programmers have no interest in hot girls though bc that topic lasted about 2 seconds
Damn marshins
bye @Haidro
How do you guys get reputation?
You get rep for getting votes on your posts ;)
09:35
Posts, like questions? or answers?
Haha I was being sarcastic
@Andy: both
Just answer a lot. I mean I don't have much rep but if you look at these guys who get like 2k rep a month or more they have hundreds of answers
I'm just waiting to get lucky on a super easy question, answer it first and get 20 votes :)
Cool
@samrap: hate to burst your bubble, but getting +20 on a simple question is easier said than done
09:40
hint: If you can slip itertools or collections into an answer, it's generally a good sign for rep. People east that stuff up.
good morning @mgilson... or did you just not sleep at all?
meh ... It's coming up on 2AM... I haven't actually gone to bed yet.
Hence why I haven't accomplished it yet :p
I gotta learn itertools
Is it part of the standard lib?
@samrap: yeah, and it's oh so glorious
09:41
It's pretty useful once you get to know it... although I think it might be a bit overused.
@mgilson: there is no such thing as too much itertools, just like there's no such thing as too much chocolate
There's a lot you can do with regular functions and yield
and I think that it often makes for cleaner, easier to understand code than a bunch of itertools functions chained together.
I agree @mgilson sometimes I see answers with too much junk due to itertools
90% of the time though it looks really usefu;
l
But, when used properly, itertools is great.
and so is collections.
Wow I'm confused on how to upload a project to github
09:44
@samrap: what is your dev environ?
OSX Mavericks with no administrator access (mom's macbook pro)
She's paranoid about me effing up her computer
what are you coding on (IDE)?
What application?
Oh Sublime 2
Still need to purchase a license
@GamesBrainiac: got some wisdom?
@inspectorG4dget Abarnert has written a good note on itertools's overuse in his profile info: stackoverflow.com/users/908494/abarnert
09:48
@samrap: do you actually have git installed on that machine?
@AshwiniChaudhary: touché
Didn't know I had to. Never used it before and have no idea how it works
I though you simply uploaded files to it aha
well, git can be used from commandline, but you still need to install it. I suspect this is going to be impossible without admin passwords, unless your mom lets user accounts install software
@AshwiniChaudhary Oh yea, I agree with the guy. I use it, but I don't over use it.
@inspectorG4dget On what? An IDE?
:P
@GamesBrainiac: say'th whaaaaat?!
@inspectorG4dget what wisdom did thou wish of me young padawan?
09:53
oh lol! @samrap was asking about git and sublime. But that has been since resolved.
@inspectorG4dget Ahh. Honestly, git is pretty usable on its own. Its a well made command line app.
@GamesBrainiac: still has a learning curve
I guess I'll look into it
true, but not much. Honestly, I'm a little rusty on git too, I just go CTRL + K and then just push.
:P
pycharm does the rest for me.
I just thought it was different than what it is
09:55
but eclipse's egit is also quite good, i hear
arrite, i gotta restart
bbiab
Alright guys it's like 2am over here and its been a lonnggg week I'll talk to you tomorrow or whenever we're all on!
good night @samrap
I'm going to head off too, been setting up django stuff for the last 15 hours and getting too tired now
cya everyone
I <3 git.
@samrap Don't you have school tomorrow?
@samrap Bye!!!
10:01
Though I haven't used a ton of VCS ...
SVN, git, and Google's internal VCS
git's my favorite.
@mgilson: do you work at Google?
yeah, for 5 months now
A lot of the infrastructure is still pretty new to me.
This last week was the first time I started using their VCS heavily. Before that I was doing all my development in a git repo ;-)
cool! heads up: there may will likely come a day when I will ask if I can list you as a reference for my application to Google :P
yeah, I kinda like git, too
Sure. I'd be happy to tell them what I know.
/me thinks /me just made a new friend :)
Just started my PhD. So that day may be a ways off... though, I should really start looking for internship opportunities soon
10:07
Google seems to have a lot of those too ... and it's a good gateway if you really wanna work with us.
I'm sure you have lots more formal CS training than I do -- You're probably a lot more qualified to do what I do than I am :)
lol. As much as I'd love to think that that's true, I seriously doubt that my playing around with weekend projects is going to hold a candle to what you've done
meh ...
I've answered a lot of SO questions :)
That's most of it.
Anyway, I really should get some sleep.
Good night @mgilson
10:24
yes gentlemen, I've been successfully able to screw up pycharm :D
yay me
10:53
anyone there?
@AshwiniChaudhary Do you use any linux distro?
Yes, I am on xubuntu.
Do all linux Operating systems have the same commands?
Like for example Ubuntu and Fedora 19?
Basic commands like cat, uniq, etc are same across all *nix systems.
11:02
what about the rest?
@Andy Which command you are looking for?
They can be different as Ubuntu is a debian based system and Fedora is rpm.
what's rpm?
@thefourtheye I am thinking of switching to linux,but I don't know alot about linux.
A type of packaging system.
Okay
11:06
@Andy If you switch to linux use ubutnu, don't go for something like arch.
I don't like fedora much either, because they're a pain to use.
Yea, its either debian or ubuntu.
Personally, I'd recommend ubuntu, although I hate the sidebar.
@GamesBrainiac Try Xubuntu, it's very light and much more customizable than Ubuntu.
I don't mind unity much.
I think Xubuntu uses xface, right?
honestly i really liked elementary os
but that just supports 12.04
and 12.04 does not keep up to date with the latest software changes, so that sucks
I use 13.04
11:14
I really liked earlier versions of Ubuntu, but current versions are really heavy and my system is too old for them. How's elementary OS, is it heavy?
I am worried only about the unstable drivers :'(
@AshwiniChaudhary its pretty light, and i quite like it, but its for 12.04. You might want to try it out.
It makes Ubuntu feel more mac-ish.
Many people face these driver related issues, touchpad, sounddriver, etc not working and then they move back to Windows.
I had graphics driver issues :(
Nothing will be seen on screen
@thefourtheye Same thing happened to me. I killed my computer because of Ubuntu 10
I mean, it would never turn on again, since I forgot to uninstall the builtin driver and then the nvidia driver.
Nvidia is horrible for ubuntu, to be frank.
11:21
@GamesBrainiac Ah! nice, But I've 13.10. So, Luna is Ubuntu 12.04 basically?
@AshwiniChaudhary Yes, its basically 12.04, but it looks a lot nicer.
Agreed. Most of the Ubuntu users are driven away by the graphics driver issues, I believe
@AshwiniChaudhary and dsnt have that stupid sidebar, gosh, I hate it.
Hey did anyone have issues with Mint update?
I remember that infamous middle finger shown by Linus to Nvidia. ;-)
11:22
@thefourtheye Not to mention almost everything technical has to be handled in the command line, and there is no decent Linux SDK.
@AshwiniChaudhary "Fuck you Nvidia" -Linus Torvalds, BDFL of Linux :P
that was awesome.
@AshwiniChaudhary How old is your computer?
Guys, I think the biggest mistake the Open Source community made when it comes to Linux, is that there are so many distros, but no SDK for it.
I mean, you have .deb files for ubuntu and debian. You have .rpm files for fedora and red-hat, Arch has another packaging system too.
SDK for kernel modules development?
No man, for normal development on the OS.
I mean you have ADK for android.
You have Microsoft's .NET for Windows.
@thefourtheye Classy. :)
11:27
I mean if you make software that you want to run on all linux platforms, there's no other choice than to make it in Java @thefourtheye cc @AshwiniChaudhary
mmmm I think I got what you are saying... No standard SDK
Ubuntu 13.x uses Python everywhere and thats better than verbosy Java :)
6-7 years, and processor is equivalent to dual core. Xubuntu is the only thing I can run on it.
@thefourtheye Yea, but try to run the same thing on say, Gentoo, or perhaps Arch, you'll have trouble because the Python that Ubuntu uses is made to their taste. Its different from the general python you see.
@AshwiniChaudhary That is old man. Consider upgrading to a Mac?
They're actually worth it.
@GamesBrainiac Are you sure? I thought they use CPython only
so, i wrote the same function in C and in Python. And it ran 40x faster in C. Is this normal?
11:30
@thefourtheye Nope, the python they use is different from the regular python you download from psf.
@bh3244 yes, that is normal.
@GamesBrainiac Macs are actually very expensive in India.
@AshwiniChaudhary Oh, I know that, thats why you get your company to buy 'em for you ;)
@AshwiniChaudhary btw, ashwini would you be interested in a startup idea?
@AshwiniChaudhary but still if you buy them for yourself, then I can still say that they're worth it
besides, we're geeks, we're supposed to spend on tech :P
Yes.(for the startup thing)
@GamesBrainiac I am interested (though I am not Ashwini) ;)
@GamesBrainiac So which one do you suggest? Macbook air or pro.
11:35
but no free updates, lost of free softwares like in Ubuntu :(
@AshwiniChaudhary If its strictly for coding you'll never need anything more than air. However, for a full replacement of everything, as in your main PC, then go for Pro.
@thefourtheye there's plenty of free software for mac too.
@AshwiniChaudhary Well, I was thinking of making a social networking site, but not like facebook, or google+. The core of both of those businesses is sharing, the core of this idea is collaboration.
because Air feels sluggish when one uses Adobe products.
i dont know what your situation is but i cant stand typing on scissor switches like on a laptop
or rubber domes for that matter
@GamesBrainiac And users are going to collaborate on what?
@AshwiniChaudhary Making projects. Now these projects can be whatever you like, perhaps you want someone to do an online course with. Perhaps you want to make a game with pygame, and you are looking for people with similar skills. Perhaps you want to make a new design, and need someone to draw the outlines, and work on the cloth together with you.
Ideally a site, that connects you to the people you need to know, to do whatever it is that you want to do.
Its a matchmaking site, but for people who want to make something together and have a similar skill-set.
Sounds like GitHub with a social networking touch.
11:52
well for the programming bit, perhaps
but it will extend to more than just programming
12:35
Guys
Got a bit of a problem
Alexandra has some distinct integer numbers a1,a2...an.
Count number of pairs (i,j) such that:
1≤ i ≤ n
1≤ j ≤ n
ai < aj
This is the problem
I solved it like this
T = int(raw_input())
for t in range(T):
    n = int(raw_input())
    nums = sorted(map(int, raw_input().split()))
    print sum(n-(i+1) for i in range(n - 1) if nums[i] < nums[i + 1])
But it takes 0.82 seconds in the server. How can I speed up this code?
I see that, others have got accepted with Python @ 0.1 second
12:48
he he he... Solved it in 0.02 ;)
Yup. December challenge... Are you doing?
I can give it a try. I hope I'd be able to solve a few.
Problems with maximum successful attempts will be very easy.
I know, but I haven't done any competitive programming for months now. My ranking in awful too. hehe...
12:59
cabbage all
@AshwiniChaudhary Oh... Whats your handle in TC? :)
@JonClements Cabbage Jon.

« first day (1148 days earlier)      last day (4023 days later) »