« first day (967 days earlier)      last day (3987 days later) » 

7:00 PM
that's better? :)
 
No, you just put jQuery on the table :(
What requirement of subtypes does my example above not fulfill?
Would you not be able to use b in any place you'd use a?
 
that's just to give an example... everybody knows $.extend, nobody knows my custom Object.merge
@BenjaminGruenbaum the objects are not the same
 
Substitutability is a principle in object-oriented programming. It states that, in a computer program, if S is a subtype of T, then objects of type T may be replaced with objects of type S (i.e., objects of type S may be substituted for objects of type T) without altering any of the desirable properties of that program (correctness, task performed, etc.). More formally, the Liskov substitution principle (LSP) is a particular definition of a subtyping relation, called (strong) behavioral subtyping, that was initially introduced by Barbara Liskov in a 1987 conference keynote address entitl...
 
@BenjaminGruenbaum do you consider this a valid use-case for async:false? stackoverflow.com/a/14746862/499214
 
class A { void f() {} }
class B { void f() {} void g() {} }
 
7:01 PM
@loading... Now that's just ruining the punch line :P
 
1
Q: How good do I have to be at Math to create a 3D game using three.js?

jskidd3A question I've often had, how good at Math do I need to be to create 3 dimensional games? I get along with 2d games just fine. I understand everything I'm doing without problems after practise. However, jumping into 3d does seem a little scary and I'm worried my "bad at maths brain" will take it...

 
is B a subtype of A? No.
 
@JanDvorak Yes, I would.
 
@BenjaminGruenbaum Oops! :-)
 
@FlorianMargaine That's not in JavaScript though :) Types are determined in different ways in different languages. In a duck-typed language I would say yes, certainly. If you assure me I can use B in place of A every time polymorphically than Yes, that's inheritance.
Even if I don't have a : or a extends to say so explicitly.
Types are implicit.
 
7:04 PM
@BenjaminGruenbaum instanceof
 
primitives don't make up new types though imo
 
@JanDvorak I'm surprised you haven't said typeof yet.
@FlorianMargaine What do you mean?
 
@BenjaminGruenbaum typeof only distinguishes primitive types
 
var a = "a";
var b = "ab";
is b a subtype of a?
 
@FlorianMargaine how do you put tags in chat?
 
7:05 PM
@JanDvorak That just checks the prototype chain.
 
@Gacnt [tag:name]
 
@FlorianMargaine Yes the type of b is a subtype of the type of a, this is the special case that they are of the same type.
 
Ah I kept doing [name]
 
Any object is a subtype of itself.
 
... that's going even further than saying composition is subtyping
 
7:06 PM
How so?
Composition is an "has a" relation. Inheritance is an "is a" relation.
var t = {a:5,b:new Image()} , t is not an image, it has an image.
That's composition
 
again, I know what composition is.
 
Though in terms of the interface, the two could be indistinguishable.
 
It's just a different notion of typing, that's all I'm saying :)
 
you're just nitpicking on the levels of subtyping, and you know exactly what I mean
 
Map = Object basically?
 
7:09 PM
let's stop there, because I think you're trolling now
 
@Gacnt no, I just edited that out of MDN docs the other day :)
 
@Gacnt Map = Hashmap
 
package main

import "fmt"

func main() {
    m := make(map[string]int)

    m["Answer"] = 42
    fmt.Println("The value:", m["Answer"])

    m["Answer"] = 48
    fmt.Println("The value:", m["Answer"])

    delete(m, "Answer")
    fmt.Println("The value:", m["Answer"])

    v, ok := m["Answer"]
    fmt.Println("The value:", v, "Present?", ok)
}
 
(usually)
 
@FlorianMargaine I know what you're saying, I'm not nitpicking, I'm trying to make a point - that my notion of subtyping is exactly as strong as your notion of subtyping from Java or C#.
 
7:10 PM
@Gacnt in this case, map = hashmap.
 
I'm not trolling, I'm arguing on semantics.
 
hi @BenjaminGruenbaum when you are going to allow me in funny room?
 
@web2students.com When you tell more funny jokes.
 
lol
Makes sense
 
In computing, a hash table (also hash map) is a data structure used to implement an associative array, a structure that can map keys to values. A hash table uses a hash function to compute an index into an array of buckets or slots, from which the correct value can be found. Ideally, the hash function should assign each possible key to a unique bucket, but this ideal situation is rarely achievable in practice (unless the hash keys are fixed; i.e. new entries are never added to the table after it is created). Instead, most hash table designs assume that hash collisions—different keys ...
 
7:11 PM
There's a funnier room?
 
No.
@FlorianMargaine Was using that when developing mIRC
 
@BenjaminGruenbaum yeah, and your arguments on semantics always end up going to extremes
 
@FlorianMargaine golangs syntax is a little confusing x.x
return map[string]int{"x": 1} wat
 
type{} creates a new object
and you can put values between the {}
and map[string]int is a type
 
@FlorianMargaine Ah, it's pretty hard to argue with arguments that base in actual definitions and principles :)
 
7:12 PM
Does the return value just become var.x = 1?
 
@BenjaminGruenbaum I will tell you when I have any new joke
 
@web2students.com good
 
@Gacnt except that var is a reserved keyword, yes
 
Pretty sure that is okok / badbut :P
@FlorianMargaine I was just using var as a placeholder
 
@SmartShovon Come back! Are we still friends :(?
 
7:13 PM
@phenomnomnominal Wake up
I'm all for math in programming, but in tutorials, seriously, just use strings, so much easier to comprehend specially if the syntax is already confusing
package main

import "fmt"

func adder() func(int) int {
    sum := 0
    return func(x int) int {
        sum += x
        return sum
    }
}

func main() {
    pos, neg := adder(), adder()
    for i := 0; i < 10; i++ {
        fmt.Println(
            pos(i),
            neg(-2*i),
        )
    }
}
 
it's just explaining the concept of closures
but you should already know about it
 
I do, I was just saying :)
 
when i look such code as above it looks like javascript but it's not like what i write javascript...i don't get fully...
 
@Gacnt okok is still badbeton
 
7:18 PM
@FlorianMargaine So, does everything go to the back end from the front end, it seems like this entire thing is a web socket, every time I run something it seems to compile then come back to me
 
what?
are you talking about play.golang.org?
 
yeah
that's just something to play with
you have to download go if you really want to use it
 
it's GO by google
 
yes, it is
 
7:25 PM
Evening All :)
 
Hi all
did anyone ever heard of SAP here ?
 
@Connor evening but here it's 12:56 am
 
@web2students.com Where? its 20:27 here
 
@Connor in my laptop, my laptop is in india
 
7:31 PM
@user13814 Serum Amyloid P component?
The ATARI SAP format?
Seamen Annihilates Platypus?
 
Happy birthday
oh hah, nailed the joke.
 
System Application product
 
@user13814 you're funny XD
 
7:40 PM
how am i funny
 
@user13814 Oh you ':)
 
Lol, but still what is it
 
so @Zirak, what's your favorite position for sex with another person?
note that I explicitly said "with another person", to avoid any confusion.
2
 
@AreebSiddiqui In the applet use case: The object tag does same thing that the applet tag did. If you're new to web-coding, I really think Java applets might not be the right place to start and w3schools might not be the right place to start learning. Consider starting with JavaScript, if you'd really like to keep using Java you can use GWT But I'd recommend against it if you're just starting. — Benjamin Gruenbaum 4 secs ago
What a sad question.
@FlorianMargaine Haha
 
zup all
 
7:48 PM
no more funny jokes now, as i don't have privilege to talk there
 
is there a way to don't get a console error when i do this with an invalid url?
$.getJSON('http://gdata.youtube.com/feeds/api/videos/'+video_id+'?v=2&alt=jsonc',function(data,status,xhr){
						    console.log('title: ' + data.data.title);
						    console.log(xhr);
						    // data contains the JSON-Object below
						}).fail(function(){

						});
 
does anyone know of any nice, modern css ui kits?
 
@KevinMurphy ( foundation.zurb.com/docs )
@MikeBoutin invalid url? What do you mean?
@FlorianMargaine @Zirak well?
 
400 (Bad Request)
 
7:50 PM
@FlorianMargaine nice!
@MikeBoutin So stop making bad requests.
 
@MikeBoutin i think you can validate before using $.getJSON(url) like, if(validurl()){ $.getJSON(url)......
 
written in lisp :-)
not that it matters.
 
and how can i valid if it's a valid url without an ajax call?
 
@MikeBoutin why would it not be?
 
the problem is an error 400
 
7:52 PM
@BenjaminGruenbaum i still see that @web2students.com is banging out this hilarious jokes, and i also see your moving them to the Really Funny Jokes Room - just kidding
 
not a not well formed url
 
@Connor Hah, you almost had me there for a second
 
@BenjaminGruenbaum HA
 
@BenjaminGruenbaum it was not joke i was helping him in javascript
 
@web2students.com jk?
 
7:53 PM
@web2students.com are you just kidding?
 
@web2students.com This is really confusing to me :S
 
yeah me to - jk
 
@BenjaminGruenbaum anything more... flashy?
 
@BenjaminGruenbaum don't worry even my friends, relatives don't understand when i am serious when i am joking, they take my jokes seriously and serious things as joke
 
@web2students.com WHAT? are you kidding me?
 
7:55 PM
@web2students.com Was that serious or a joke?
 
@web2students.com hehe hehe hehe hehe..... hehe hehe ... hehe
 
@web2students.com you need to stop taking things so seriously when they are just jokes, man....
IM AFK
---------- JK
 
@BenjaminGruenbaum I still no idea with the storing auth info I asked just now.
with Firebase, once user logged-in. We can call
new FirebaseAuthClient(url, function(error, user){
if (user) {
//we get user auth info here, after that what is the best practice to reuse auth //info?
} else if (error) {
// error
} else {
//user not log in
}
})
 
yeah, im not going to wear it out!
............
 
!!tell vzhen format
 
8:00 PM
@vzhen Format your code - hit Ctrl+K before sending and see the faq
 
@Connor ok, thanks, didn't know we can use ctrlk here
 
Nice Tip Jan
 
@all i am feeling bad...so much in lime light i am not joker nor celebrity i don't want so much attention , next time i will login something like user1243546
 
in angularjs with Firebase, once user logged-in. We can call
new FirebaseAuthClient(url, function(error, user){
if (user) {
//we get user auth info here, after that what is the best practice to reuse auth //info?   store in cookie?  var?  or call again FirebaseAuthClient ?
} else if (error) {
// error
} else {
//user not log in
}

}
})
ctrl + k not working ?
 
it's working, but your code still lacks indentation
 
8:06 PM
so many frameworks, js,jquery, angularjs, dojo etc.. it's information explosion
 
JS is not a framework!
 
@vzhen If'm no firebase expert, I think you might want to formulate that into a question in SO
 
jquery is no framework either
 
i can't edit chat, "so many ?? , js,jquery, angularjs, dojo etc.. it's information explosion. i don't know word so ?? "
 
8:10 PM
@FlorianMargaine well, it's close to being one
 
It's just a library
 
IoC, dude. IoC.
 
@FlorianMargaine Inversion of Control?
 
What, where? In what context?
 
8:11 PM
that's exactly what defines a framework imo
the framework defines how you code, a library doesn't
 
Back, just now SO chat css failed retrieve. K, I will start a question
 
What, why? All IoC does is run time coupling. A factory does IoC..
I fully agree with the second definition though, it's solid, short and well phrased.
 
I guess I meant IoC in the broader sense (what the second sentence said)
 
A framework enforces IoC but you don't need a framework to perform IoC imo. I guess you can call 'defines how you code' a type of IoC
 
@FlorianMargaine InterOil Corporation ?
 
8:19 PM
@Connor Inversion of Control
you control the library, the framework controls you
@BenjaminGruenbaum yup sounds valid
 
i am using frameworks but don't know exact meaning of it, today you enlighten me..now i understand framework...i use to say library and framework inter-changeable , i use framework as bigger library ..thanks
 
Only in soviet russia you control the framework
 
I have done 0 productive things today
Other than sleep, and cause both my legs to go dead
That was interesting
 
@JanDvorak :P
@Gacnt i have done 0 productive things whole life....except making a blog
 
Making a blog is not something something productive. Maintaining it is.
I can make a blog in 5 minutes.
I'm pooping. And the kittie is bothering me. Fuck you, kittie! But you're so cute ;_;
3
 
8:29 PM
In Soviet Russia, control inverts you
 
@FlorianMargaine (and @BenjaminGruenbaum) I was always fascinated with (both the concept and actualisation) of positions like cowgirl.
 
And when I say "always", I mean since discovering genital stimulation.
 
@BenjaminGruenbaum Command poopkittie learned
 
!!/poopkittie
 
8:29 PM
39 secs ago, by Florian Margaine
I'm pooping. And the kittie is bothering me. Fuck you, kittie! But you're so cute ;_;
 
"Cowgirl"?
 
Girl on top, "riding"
 
@BenjaminGruenbaum name it kittiepoop. This way we'll have slidepoop and kittiepoop
@Zirak I see.
 
What's yours?
 
Cowgirl is not far behind "doggie ride" (I believe it's named something similar?)
 
8:31 PM
@Zirak Ah, the benefit of having an anonymous identity :) I wish I would be able to say here and not worry :)
 
sorry if it's poor joke
 
Seems legit
 
@FlorianMargaine "Doggtstyle"? Girl is on all fours, male "mounts"?
 
8:32 PM
Yep
 
Guys I seriously hate to be annoying, but could anyone of you genuinely help me on this validation issue please?
 
@phenom report phishing. You can do it with chrome iirc.
 
Woah. Ctrl+Alt+Del on Android reboots without warning.
 
Yeah already did
 
@DemCodeLines You've asked for a few times now, your jQuery validation issue is very uninteresting and you're not willing to learn the language or understand the actual code.
 
8:33 PM
@DemCodeLines what to validate?
 
@loading... "magic keys". It's usually with the prt scr key though.
 
@BenjaminGruenbaum I am willing to learn the language. Its pretty important to finish this right now.
@web2students.com Validate if email exists
 
@DemCodeLines Pay someone if it's urgent.
 
If email exists? Or if email is valid?
 
How many poop things do we have
!!poopkittie
 
8:35 PM
@DemCodeLines send a email validator
 
!!crustypoop
 
6 mins ago, by Florian Margaine
I'm pooping. And the kittie is bothering me. Fuck you, kittie! But you're so cute ;_;
 
!!artisticpoop
 
http://chat.stackoverflow.com/transcript/message/9878470#9878470
http://chat.stackoverflow.com/transcript/message/9611625#9611625
 
I don't know what you expect. I asked on SO. Not one person helped. If I ask again, people will have a great time running me down about how I am posting duplicate questions and being careless. If I ask here, people run me down that I don't know anything. The tutorials I found are not very helpful for me as I don't understand.
 
8:35 PM
!!slidepoop
 
!!/listcommands
 
http://chat.stackoverflow.com/transcript/17?m=8231986#8231986
@FlorianMargaine 420, help, listen, eval, coffee, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, norris, urban, parse, tell, mdn, awsm, convert, define, fuckable, get, google, hang, inhistory, learn, 5318008, bewbs, i_am_a_robot, aliens, ym, format, 3point14, camel, ihatelanadelrey, fa, knock, lick, insult, ultimateinsult, microlove, easytools, wherearethegoats, tobacconist, ninjad, sarcasm (page 0/2)
 
@BenjaminGruenbaum Mexican Halloween?
 
hey by mistake enter key press in middle of my sentence
 
@FlorianMargaine If email exists.
@web2students.com What do you mean?
 
8:36 PM
@DemCodeLines then just send an email to the address
 
We need our own version of qdb or xkcdb
 
It's the only way to check if an email exists
 
@FlorianMargaine I don't understand what you mean by that.
 
Not too difficult. It's like, what, 400 LOC?
 
@Zirak the hell man
 
8:37 PM
@Zirak not even. It's 20 in lisp.
And some codegolfers could do it in 50 characters in APL
 
@FlorianMargaine Hmm, that just seems to screw with Chrome.
 
@Zirak Woah :O
That really shocked me
 
@DemCodeLines if you want to check whether an email exists, you need to send an email with an unique token to it. If someone reaches your server with this token, it means the email exists. That's it.
 
8:39 PM
i use any code from google, which looks fine. sending you few good links
 
Could be a good excercise in couchdb. I've been delaying trying to learn it
 
i use any code from google, which looks fine. sending you few good links
 
@FlorianMargaine That's not what I meant. I want to see if the email exists in the database. Whether the user can register on the website with that email or is another user already using that email.
 
Let me guess: you don't know how to use xhr ajax?
 
8:41 PM
@web2students.com Yes, I have been using JQuery Validation, except I am having trouble connecting to database and checking if the email entered is already in the database.
 
@DemCodeLines ok, you need ajax but in php ?
 
@Zirak ask octavian for help, he's pretty good with it
 
i know php only
 
@FlorianMargaine He gave me some good tools, I was just a bad student
 
8:43 PM
@FlorianMargaine Yes, I am not good at it. I know very little about it.
 
@DemCodeLines do you know the difference between server side and client side execution?
 
Yes.
 
are you sure? because what you said up till now makes it seem like you don't
 
@OctavianDamiean Can I enroll in CouchDB class please.
 
In this case, client side is JS while server side is PHP
 
8:45 PM
i don't want to write code now so googling example
 
4 hours ago, by loading...
Jesus, I just spent about 30 mins trying to get a Win 8 tablet to do anything. In the end I gave up and just powered it off.
@DemCodeLines how does this make you feel
 
man, couchdb just freaks me out.
 
@Zirak why
 
# couchdb
Apache CouchDB is running as process xxxx, time to relax.
 
Given up with Android.
 
8:46 PM
That's so...disconcerting
 
@Zirak You using it with node?
 
@Gacnt Everyone has their own opinion. Plus, I am really not concerned about MSFT right now. I need to get my thing to work :(
 
@Gacnt It's a webserver of its own, so you don't have to use something like node with it. So far, I'm not using it at all, that's why I need to learn.
 
@Zirak github.com/dscape/nano is what I was using when I was messing with it
 
8:48 PM
@web2students.com that's quite a horrible link
 
@web2students.com I tried that one. Couldn't get it to work at all.
 
I don't understand, if you're just starting out, and you don't really understand a language and you're trying to learn it, why not just start out with a good language?
 
@DemCodeLines sorry
 
@Gacnt Because I need to use JQuery to validate the textbox.
 
@FlorianMargaine Here is code, you use code, k?
 
8:52 PM
Let me elaborate on my exact situation. I am already using JQuery validation on every textbox in the form which checks if the entered data is in correct format. As soon as the textbox loses focus, it immediately executes the validation code. If it validates properly, then nothing happens, but if the validation has an error (like incorrect format), then it turns red and the form can't be submitted until the textbox and its error is corrected.
I am struggling to collaborate that sort of validation with the "email-exists" validation.
Does that make it any easier for you guys to help? Or does it make it more difficult?
 
It makes it less motivating to help
 
:( I thought giving the exact situation could make it more clear for you guys :(
 
We see no point in helping someone with a specific problem if that someone does not understand the fundamentals of the language first, and does not understand why they would need to learn them.
Post your question in SO if you think other people will find it interesting, put a bounty, some people are big enough rep-whores.
 
Oh god. When did I say I don't understand why I need to learn them?
 
8:56 PM
I want this
 
Also, I already said that I have posted earlier on SO and did not receive one answer.
If I post again, then you same people will run me down about being careless and posting duplicates.
 
@DemCodeLines Ok, let's take this one step at a time.
 
@DemCodeLines bounty
 
If I remember correctly, it submits the form normally?
 
Yes.
 
What does the JS console say?
 
Nothing, absolutely nothing.
 

« first day (967 days earlier)      last day (3987 days later) »