« first day (1659 days earlier)      last day (3304 days later) » 

2:00 PM
@rlemon mick jagger got aged as a 26 yo i believe. that tool needs some improvements
 
@sunto Ok so if you're going to use a function for ajax
It's going to need 2 callbacks
1 for success and 1 for failure
 
@KendallFrey it says you are 27
hehe
 
@Zirak Wow, that's awesome!
 
@KarelG whaaaa ?
 
Is that because of Nightmare?
 
2:01 PM
ok, so a simple if and else statement, with those two functions inside my httpreq code?
 
@SomeKittens you are 15 :D
 
@rlemon It said I was 26 when I tried it
 
That makes sence, I should probably have my page working without javascript also, that is maybe what you are thinking of?
 
@KendallFrey I used your current image zoomed to 500px
 
2:02 PM
and I think this picture is about 3 years old
 
@SomeGuy I straddled on top of nightmare; opened up a readline interface, fed input to evaluate
 
@rlemon I used the full size one
 
Will be pushing in a few
 
Actually hold on
 
@Zirak Nice
 
2:03 PM
Gotta pass the object to the callbacks
 
@rlemon 25 for me
 
@Meredith ok, yeah I see that. Have gotten through the parameter part of the book, so that one makes sence.
 
They should probably allow us to enter our real age after to help improve it
 
Didn't recognise a face :/
That's discrimination against yellowy orange people!
 
@sunto Do you understand how callbacks work?
Are you guys doing that how old thing?
 
2:06 PM
@Meredith Yep
 
Here is what I am trying to do
 
That was fun
Apparently I look 27
 
Well, i think so yes, you explained this a lot last time. Simply a callback funtion, it is like a 2nd function, running if say, no 1 was false i.e?
Or simply a function that runs, if a user click a button?
 
When your async function is done, it calls the callback
 
User A signs up (He gets his public key encrypted by one of the known servers and sent back to him)
User B signs up (He gets his public key encrypted by one of the known servers and sent back to him)

Now when User A wants to Transact with User B they first exchange there signed public keys using which they decrypt any following messages from each other
And all communication b/w server and client occurs anyways using public and private keys (anyways)
which kinda feels like i am re-creating ssl :-/
 
2:08 PM
That's because you are
 
Ah, yes. so ajaxFuntion(sucsess) would be the callback for sucess, yes of course
 
@Zirak but since this has to do with money
i am not very happy using simple access tokens
as authorizing devices offline becomes a pain in the ass when they are talking over nfc
 
Rather than recreating SSL, why not use it?
 
If all expressions and such are met, it runs, yeah I understand the callback ;)
Just can't seem to get it all together, I feel like I have oil and water, and want it to mix into one nice goo :P
 
Educate me how can i do that ? @KendallFrey
 
esp from device - device ?
 
Like, where do I start here, when it looks like that?
oh, call pushsatte with page: Is it like page(pushstate) ?
 
@Zirak Nice
It must be convenient to have the REPL
 
Allows monkey patching. It's THE thing I miss most about node
 
2:12 PM
hound.teardownInstance();
Love the naming
 
@Zirak oh try winjs
 
But it's windows
 
^ This issue basically means they don't even test their own code in their own browser against there own specs
 
That's awesome of them
 
> Yes, you are able to write apps for Windows 8.x with WinJS 4.0. With that being said, WinJS 4.0 has been designed and built for Windows 10.
If you can write Windows 8.x applications with WinJS 4.0 --- then please don't break one of the most used components in the whole friken os
but microsoft :-(
 
2:15 PM
@Mere
 
Probably something like that
 
user2620028
Guys i am having trouble debugging an angular script. I am trying to get it to work with a cms and i appear to not be getting the ng-controller called
 
user2620028
I don't usually work with angular. Tips on how to debug?
 
Use chrome console
Use Human brain
Use Vulcan logic
Use universal common sense
Use angular docs.
 
use vulcan login.
 
2:19 PM
LOGIC *
don't tell me you haven't watched star-trek
 
password: needs0ftH3m$ny!
 
Aha, well, the positive thing is I have actually been trying to do something right! :)
 
user2620028
@darkyen00 thanks darkyen.... sarcastic as... lol
 
user2620028
Also no i didn't have the attention span for star trek
 
@HatterisMad no seriously angular is like a blackbox
it either works and works like a ...
 
user2620028
2:21 PM
@darkyen00 either way i don't believe it is an angular problem
 
or it will just go on hunger strike
 
Just haven't been able to, that looks great! And the pushstate function I had from previous, is it not needed?
http://jsfiddle.net/Lcpudn1c/5/
 
most likely you aren't doing osmething like angular.module or someething
can you share a js fiddle maybe ?
 
ha! it said my gf was 39. I think I'll not show her this service :/
 
Leave it open on your screen, softly inviting her.
 
2:22 PM
@sunto Do whatever you have to do to get the elements
 
Hehe :)
 
Each picture I try of my 15 months son, it says he's a 2y girl.
But on the whole it's much better than me at finding age...
 
All babies look like girls
 
tries myself , gets dude you must be in grave :-(
 
:/ me with a moustache is 24
 
2:25 PM
It counts my 3 year old picture as 27
friken hell
gets 47
hahahaha
 
My pic of white obama got 47 too
Sec
 
That's...eerie
 
can anyone help me improve javascript code
 
Thank you
 
@Meredith he looks like a girl with big lips try putting hair on him and watch lol
 
crl
2:32 PM
Can someone explain this:
"uyu\nuyu".match(/\n?[^\n]+/)
["uyu"]  // works fine
"uyu\npe".match(/?[^\n]+\n?[^\n]+/)
 Uncaught SyntaxError: Invalid regular expression: /?[^\n]+\n?[^\n]+/: Nothing to repeat
 
@Meredith Is it correct that the responsetext should not be inside the ajaxFunction, but only called at the bottom of the router function? I just need to implement, what div in my html to change etc? :):)
 
@rlemon : having so much fun with the how-old.net ?
 
You want the ajaxFunction to be as generic as possible
So you can use it for more than one thing
Sometimes you won't need to insert the response text into an element
 
@crl what are you expecting to happen?
 
crl
2:36 PM
@KendallFrey I want to catch line returns
and not double line returns
 
that's not very helpful
maybe I should ask, what were you expecting the ? to do
 
crl
catching a non-line-returns or not (if it's the beginning of the text)
Hmm I guess I'm wrong to use it there
I'd like to have [^\n]+ or ^
 
@crl You have a ? in the beginning which doesn't make sense: ? means optional, but there's nothing to make optional
 
crl
yes I realize it didn't make sense, I shouldn't have used the optional regex
 
I am stuck real bad here. Someone please help!
0
Q: 'yo angular' throwing errors

Rahul DesaiI am following this tutorial to create a MEAN stack application: https://www.youtube.com/watch?v=OhPFgqHz68o. I am having Windows 8.1 and I have setup the backend with Node.js which has no problem. When I started with the frontend, all I tried to do was: mkdir client cd client npm install -g ...

 
crl
2:43 PM
(^|[^\n]+)\n($|[^\n]+)
 
@Meredith Ah ok, thanks :) will try and get it working:)
 
can anyone help me make a code beautiful
 
@Steve what do you mean with "beautiful" ?
 
the code is working fine but i would like to make sure i did it right the list of table is like about 100 so by using that will it cause any problems or is it fine or could be improved somehow?
 
i mean, replace the name text
unless you want to achieve something else ?
 
the reason why im trying to use javascript is because the names are changed more often so except for going through html page i would like the changes to be done through javascript instead
 
3:09 PM
how are you defining the new names ? Passed by array or ... ?
 
actual manually
with array
 
ok, give me a sec
here: jsfiddle.net/g2s1ahcy/2 I have added comments to say what happens
i had to edit the HTML that you can select the elements of which the names should be changed could be selected simply. See the DOM for details ( the class="..." )
 
which message should we interpret from that ?
 
I am trying to understand why did they email it to me, and what would they like to "hear back" :/
 
3:20 PM
@KarelG thanks
@AwalGarg lol
 
gotcha leave, but going to post this nice image
 
@KarelG just made my morning hahha
omg dragon balls Z
 
user2620028
@awal spam i would imagine.
 
user2620028
Ok for some reason whenever i copy my fiddle code into my cms it stops the ngcontroller from calling the controlller function and i have no idea why.... jsfiddle.net/Q5FWt/895
 
3:35 PM
oi
 
What proxy server can I use to install bower? I was unable to find it in Google.
essentially, something like
npm --proxy http://proxy-server:8080/ install bower
 
@BenjaminGruenbaum you think CS graduates know this? wat
 
3:51 PM
why do you need a proxy server at all?
 
@Mosho Hahaha
I doubt he expects that
 
@Luggage because 'npm install -g bower' ended up with error, it says ENOTFOUND
 
@Mosho Yeah that's something that you should be able to solve
 
Oh, or maybe he does expect that
Seeing the context
 
But I can guarantee you that very few people would be able to
I'm not even sure where to start
 
3:53 PM
@RahulDesai are you able to install other packagse?
 
@Meredith then how is it something you should be able to solve
 
it might be becasue you are installing it global without permissions
 
But I know what a proof is, I know what a fft is, and I know what a dft is
@Mosho Cuz you take a bunch of classes on stuff like that lol
 
@Luggage before this, I was able to install grunt-cli
 
then you probably don't need a proxy.
 
3:55 PM
@Meredith I vaguely know what those things are
 
@Meredith I really don't think you have to
 
@Luggage Its on a Mac VM, if you should know
 
I'm fairly certain I won't learn any more than I already know in college, though
Not enough to do what Benji asked
 
I mean, I did EE and not CS but I'm pretty sure you would take courses on that stuff if you take the optional signals courses
 
@Mosho I'd be pissed if it were an exam question
 
3:56 PM
in CS
 
But it's not something that's outside the curriculum
 
@Luggage ok. It also says: getaddrinfo ENOTFOUND registry.npm.org
 
@Meredith I wouldn't be, it sounds basic, but again - if I took signals courses
I doubt it's a part of the typical CS degree
 
@Mosho you're not a CS graduate :P
 
@RahulDesai hm.. it shoudl be able to find it if you found it before and isntalled grunt-cli. try that address in your browsers
 
3:57 PM
Well, we do have a signals course. Let's see if they'll include that
 
I'm not any kind of graduate
 
@Mosho it's a pretty basic algorithm
 
Again, I doubt it :P
 
@BenjaminGruenbaum in what course do you cover it
 
The CS degree is the "prove it's done in nlogn" part
 
3:57 PM
Our course is mostly about "doing the bare minimum to get by"
 
You should be able to prove the run time of (almost) any algorithm if you have a cs degree
 
well, then benji's question was unfair :P
 
We had the Big O Notation in our curriculum this semester. The teacher never even mentioned it
 
???
 
@Mosho well, here in "introduction to algorithms" for starters
 
3:58 PM
Probably cuz you were expected to know it lol
 
@BenjaminGruenbaum he said he didn't recognize the terms
 
@Mosho do you know what a FFT is?
 
ofc
 
@Meredith Haha, no no no. They're teaching us how to us if statements too.
 
@RahulDesai nevermind about trying it in a browser, but..
 
3:59 PM
I did EE
 
If it's in Cormen a CS graduate should know it.
 
@SomeGuy Is this "Intro to programming I"?
 
I can ask someone who did CS at the technion
 
if you installed one pakcage form npm you probably don't need a proxy
 
At least things that don't have a star in front of them.
@Mosho go ahead.
 
3:59 PM
@Meredith Something like that. They call it "Structured Programming Approach"
 
Yeah
Make sure you pay attention in that class
You'll be tempted to not give a shit "cuz I already know how to program"
 
ok. btw, I checked in the browser and that site just shows a object:
{"db_name":"registry","doc_count":154577,"doc_del_count":368,"update_seq":764343,"purge_seq":0,"compact_running":false,"disk_size":662843515,"data_size":556114017,"instance_start_time":"1426808343731325","disk_format_version":6,"committed_update_seq":764343}
 
That's how a lot of people fail
 
@Meredith Haha I do pay attention, but it's usually so I can help others out when our teacher says the wrong thing
 
so it looks like you can get to the npm registry. it's another problem. paste your full error somewhere like pastbin, please.
 
4:01 PM
I remember @darkyen00 complaining about things like that too
 
Don't make the mistake of thinking the teacher is an idiot either
 
Although to be fair, I'm pretty sure we didn't learn simplex, at least not in an algorithms course and that's equally important.
 
They're teaching way, way, way below their level
 
@Meredith worst attitude ever.
Classic dropout mentality.
 
Yep
 
4:01 PM
@Meredith I really don't think so.
 
Is this at a university or your local rec center?
If it's at a university then your professor is going to be really smart
 
I made a more complex program in class and she asked to see the source. She said, "No, I've never made anything more complex than the assigned programs"
 
does anyone know any site that will let me host javascript code and make changes to it on same site?
 
like jsfiddle?
 
@Meredith You're forgetting that I'm in India. Even the university teachers here are often pretty bad
 
4:02 PM
Oh
You're in india
 
@Steve I like plnkr.co
 
Better than fsu I guess
 
s/pretty bad/terrible on another level/
 
To be fair, I think everyone should read Cormen anyway.
If you read Cormen, you probably have a better understanding of algorithms than 50% of CS graduates.
 
I usually try to take parallel courses on OCW or something like that
 
4:03 PM
If you read Sipser you probably have a better computability and complexity understanding than 50% of CS graduates.
 
@Luggage sure, 1 sec
 
@BenjaminGruenbaum Haha interesting timing. I just lugged my copy out to re-read
 
@moshu @Luggage can i get the direct src for javascript from them?
 
I was too young when I read it first to understand half of it
 
If you read Spivak, you probably have a solid understanding of calculus :)
 
4:04 PM
I haven't
 
Can you link the books/whatever youre talking about?
 
@SomeGuy me too, when I was 17 I read Cormen but I only understood how things work and not everything and not the proofs.
 
I should add that to my list
 
@Steve try it and see if it's what you are looking for. I don't understand your question: jsfiddle.net
 
We read sedgewick for algorithms and data structures
Which was ok
 
4:05 PM
Introduction to Algorithms is a book by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. It is used as the textbook for algorithms courses at many universities and is commonly cited as a reference for algorithms in published papers, with over 8900 citations documented on CiteSeerX. The book sold half a million copies during its first 20 years. Its fame has led to the common use of the abbreviation "CLRS" (Cormen, Leiserson, Rivest, Stein), or, in the first edition, "CLR" (Cormen, Leiserson, Rivest). == Editions == The first edition of the textbook did not include Stein...
 
@BenjaminGruenbaum Ooh, turns out I do have that one!
Nice
 
Thanks
 
Introduction to the Theory of Computation (ISBN 0-534-95097-3) is a standard textbook in theoretical computer science, written by Michael Sipser and first published by PWS Publishing in 1997. == See also == Introduction to Automata Theory, Languages, and Computation by John Hopcroft and Jeffrey Ullman, an older textbook in the same field == References == == External links == Information on Introduction to the Theory of Computation (by Michael Sipser)...
 
I'll try to get a copy of those to read over the summer
 
That's all I mentioned, I think.
Lots of other great books, but I think what these contain everyone doing programming should know. Very opinionated but still.
 
4:06 PM
I got a c in my algorithms class and I'm really unsatisfied with my understanding of them
 
These books are hard to learn without a CS degree - possible, but very hard.
This is also pretty good, but honestly not the best linear.axler.net
 
@Luggage im trying to host my own javascript but with that im trying to have ability to make changes to javascript as well except for my own server im trying to host it somewhere else
 
Of course, nothing in these books is important for a lot of very interesting problems, but a lot of it will help you with a lot of problems.
 
I'm ok with linear algebra
I might reread the book I have but that can wait
 
@Steve ohh. so.. normal JS development, then
 
4:08 PM
@Meredith I suck at linear algebra and it's really biting me in the ass for my lecture tomorrow.
 
@BenjaminGruenbaum Too much to learn!
 
that's what we all do. write JS, host it on our own pcs to test and deploy somewhere for production
 
(That's a good thing, obviously)
 
I liked the book by Friedberg
 
@BenjaminGruenbaum A lecture you're giving?
 
4:08 PM
@SomeGuy yes, that supercomputer thingie I linked to.
 
I'm scared as fuck :)
 
I have Steve blocked for some reason
 
@BenjaminGruenbaum Oh, tell us how it goes!
@BenjaminGruenbaum You'll do great! Don't worry :D
 
Anyway I'll be back later, bye
 
4:09 PM
Compare that to the lecture I'm giving at ng-conf IL or YGLF... I know web development pretty well. Supercomputers, not so much.
 
i think i got it github
pages
 
@SomeGuy haha, I don't mind getting a D, just being around that teacher is a privilege I'm learning a ton.
 
We have a GPU cloud... not much to it, really
 
@BenjaminGruenbaum Ooh, you're speaking there as well? Will there be a video?
 
4:10 PM
@SomeGuy yeah, sure.
 
@BenjaminGruenbaum Who was your instructor again?
 
thanks for helping guys
 
@SomeGuy for this seminar it's Oded Schwartz.
He wrote the fastest algorithm for multiplying two matrices on supercomputers, and to an extension perform linear algebra with sane communication bounds - that's impressive.
 
@RahulDesai I was hoping there would be some other error. I got nothing. It's telling you it can't get to the registry, but you can manually. Maybe it's using another port that is blocked
 
4:11 PM
Oh, nice
 
but.. you got to npm before.. so. i think you just have some network problem
 
Yeah people rent our GPU cloud for math stuffs
 
@Luggage should I keep trying again? the same command?
 
as to your original question, no one can tell you what to put in for a proxy, because we didnt' set up a proxy for you
or even know if you HAVE one
 
Btw, did everyone see Ramjet?
8
 
4:14 PM
ok
 
Ramjet is like "Tweens" from Flash, so fun
 
it could also be your VM network config
 
user2620028
that looks cute
 
user2620028
I can't think of a use case for it but im sure it will be useful for someone
 
@BenjaminGruenbaum That looks sweet
 
4:16 PM
@BenjaminGruenbaum neat!
 
Why is everyone pinging me? If you like it star it, don't ping me that just context switches me :P
 
@BenjaminGruenbaum sure
xD
 
@BenjaminGruenbaum omg i wet my panties
 
> It does this by cloning the elements (and all their children), transforming the second element
sounds... heavy
 
4:19 PM
@BenjaminGruenbaum Does Intro to Theory of Computation have any prerequisites?
 
@SomeGuy no, it doesn't - it starts by explaining all the basics, but it gets hard fast and you need a lot of motivation to get through it. It's also pretty amazing.
 
I'll add it to my list
 
I will pay money if someone shows me how to debug javascript (I have visual studio, but we can use whatever else you want
It's killing me
 
Might get it after I'm done with AI A Modern Approach
 
@Azar_Javed You want to "learn" or get shit done and forget?
 
4:21 PM
I want to learn sir
 
What will money do with all the money you'll pay it?
 
@SomeGuy also a great book IMO.
Norvig is great at explaining stuff, that's rare for a good programmer.
 
Yeah, I love it so far
 
Well, not that rare but nice.
 
I love how extensively he's willing to talk about things
In the beginning, anyway
 
4:22 PM
@Meredith
Any tips, to what I have been doing so far? :)
http://jsfiddle.net/Lcpudn1c/7/
 
@Azar_Javed Try a dev tools tutorial. I doubt anyone here will help you for money though.
 
Yeah, but I have to admit it's not very applicable.
 
I don't know how the rest of the book is
@BenjaminGruenbaum Do you have one in mind that'll be more applicable?
 
No, it's a good book :)
 
4:22 PM
@Azar_Javed If you've used any kind of debugger before then the Chrome devtools one should be fairly easy to get into and a quick google search should pop up some tutorials
 
It's just harder to apply than IML books
 
Thank you all
 
user1596138
@Azar_Javed discover-devtools.codeschool.com // oh @Zirak beat me, but go do this course.
 
@BenjaminGruenbaum Oh, I meant for after I'm done with this. I already bought this one, so I'm not giving up on it :P
I got the basics from the Coursera course, I think
 
4:24 PM
Nice, thanks
 
There is a great bunch of video lectures by this Iranian dude on youtube that's really good too - before you pay $50 for a book - that's a great book though I still use it for reference
 
@BenjaminGruenbaum Got a link?
I got really lucky with AI: A Modern Approach. It's available for $10 in India, somehow
 
@SomeGuy nice!
 
Same thing happened with Cormen
$12
 
4:39 PM
> ‎לא, אלא אם כן הכניסו את זה כדוגמא באלגוריתמים
:P
@BenjaminGruenbaum
 
@Mosho Does he know it?
 
he did EE with me
but he knows people/shit
he is my proxy
 
So, he knows what an FFT is, and he didn't study CS
Great example for nothing :D
 
he probably asked someone else
admit it
:D
 
"He probably asked someone else", now I'm convinced.
:D
 
4:42 PM
and knowing what an FFT is !== taking it in a uni class
 
Sure thing buddy.
I'm just saying that the Technion, like any other good college/university teaches it in some class - even as an example in algorithms
Here, this is algorithms 1 (mandatory) in the Technion.
 
Technion - I've heard about it . it's in Israel right ? :-)
 
:-)
 
I was just proving to @Mosho that students study FFT in their algorithms course. Since he claimed they do not.
If your friend did CS at the Technion he wasn't paying very much attention :D
Not to mention those who studied it more than once in advnaced courses.
Anyway, off to catch a concert, ttyl
!!afk concert
 
user1596138
4:55 PM
Apple did a nice job over-complicated the app submission process... Jesus fuck
 
in Teenage Programmers Chatroom, 1 min ago, by Ravi Prakash
@AwalGarg
<!DOCTYPE HTML>
<html>

<head>

<script type="text/javascript">

var db = openDatabase('mydb', '1.0', 'Test DB', 2 * 1024 * 1024);
var msg;

db.transaction(function (tx) {
tx.executeSql('CREATE TABLE IF NOT EXISTS LOGS (id unique, log)');
tx.executeSql('INSERT INTO LOGS (id, log) VALUES (1, "foobar")');
tx.executeSql('INSERT INTO LOGS (id, log) VALUES (2, "logmsg")');
msg = '<p>Log message created and row inserted.</p>';
document.querySelector('#status').innerHTML = msg;
});

db.transaction(function (tx) {
 
@BenjaminGruenbaum aight, then they do take it at the technion most likely :P
 
@Mosho BenjaminGruenbaum is afk: concert
 

« first day (1659 days earlier)      last day (3304 days later) »