« first day (1496 days earlier)      last day (3447 days later) » 

2:00 AM
do you know any website that explains it? When I coded the paper scissors rock game I did it with their instructions
 
but here it was definitely a number and a string.
The number was used to determine some probability.
The string was used to be a content
Both type and puprose were different
Well I did not think it had to be explain honestly.
Honestly it's quite some time I did not see a code where they did that.
Maybe in some jQuery plugins, but even here I'm not sure
 
haha
must be really bad then
 
Bad practice I am sure, but it's more bad to understand the code
 
you are a advanced user right? how did you learn to code ?
 
By diving into others codes
 
2:03 AM
nice
But I guess that only works if you have the basics covered
 
I might have begin with c and visualbasic
Then I got caught up in IRC with mIRC client
here I lerned a lot
coding this mIRC clients, tools, snippets etc...
And then HTML css
School, more c/c++/ and especially algorithmy
 
im into web design, the reason I want to learn javascript is to add more interactivity. Jquery is all nice and good but I thought it was time to know some real js
 
I was pretty good with algo that my university paid me (and 2 other kids) to give extra cours hours to other students
 
You are pretty smart then
 
I was lucky, I needed money and I loved Algo
 
2:05 AM
Im not so good in math though so there is a limit how deep I can go
 
I have a url string that must start with http://. Except users being users, it probably won't. So is there any quick way to automatically add http:// if it isn't there? Or am I stuck with having to check the beginning of the string?
 
I almost never use maths. Only for some animations but that's easy
 
use Greensock. Better than jquery animate or css3 animations.
 
@DemCodeLines stuck ? like three lines of code ?
if (string.indexOf('http://') !== 0) {
    string = 'http://' + string;
}
if it's just veritfy and add.
That's not secure not superbs.
You can add some regex to handle the https case.
 
is this valid? if (userChoice !== "rock", "sciccors", "rock")
 
2:09 AM
userChoice !== "rock" ? "sciccors" : "rock";
but ternary operator are not that used. They are confusing.
 
old version if (userChoice !== "rock" && userChoice !== "rope" && userChoice !== "paper" && userChoice !== "scissors")
 
oh it was not a ternary xD
 
XDD
 
@Demorus you need to do like that.
 
So there is no shorthand?
 
2:11 AM
I would use an array
 
ah yes
 
var possibilities = ['rock', 'rope', 'paper', 'scissors'];
if (possibilities.indexOf(userChoise) === -1) {
    // not found
}
 
like if (userChoice !== [ "rock", "rope", "paper", "scissors"];)
 
you would use indexOf
 
aha
 
2:13 AM
if it's in it will give you it's index (between 0 and length-1)
if not it returns -1
 
is my syntax wrong?
 
yes
look at my message just on top of yours
 
ok
 
gtg
 
thanks alot for your time and help
I learned alot!
 
2:43 AM
Hi, How to get pseudo element such as :after by jquery/JS?
 
3:06 AM
@KendallFrey Thank you, I think the computed style is readonly, I want to change the style dynamically.
console.log(iconDIV[0].childNodes);
[item: function]length: 0__proto__: NodeList
I think we can not query the pseudo element by js
 
4:04 AM
@rlemon @SomeKittens @darkyen00
^ check out the top right
just got my 144hz monitor setup, its crazy the difference it makes!
motion is legitimately smoother
also awesome the chrome and IE11 support higher res monitors
 
@Loktar That'll make for some pretty fuckin' hardcore gaming
 
heh yeah
I played cod and tf2 tonight
its crazy how much of a difference it makes
 
4:20 AM
^ dork
@Loktar urg so jealous!
 
lol who is that?
 
@SomeKittens I hate you
@SomeKittens lol, it brings me much joy to know that you feel confident enough in my HTML abilities to endorse me :P
 
4:35 AM
haha
 
@monners 2.9!
At least I didn't pin it.
 
@SomeKittens 2.9?
 
2.9 <3
 
I see what you did there
 
Phenom came up with it
 
4:50 AM
I like it
 
 
1 hour later…
6:09 AM
Morning all
 
morning
 
6:38 AM
wohooo! Awesome strange thing of doom! codepen.io/MateiGCopot/pen/GggMNp
btw, I'm only using 3 colors
aaand gotta go to school now
 
1 message moved to Trash
 
7:05 AM
I have a few OnePlus One Invites - Any takers?
5
 
@darkyen00 mail me at <yournickname> @ madara . ninja
I will send the invite back to that mail
 
@darkyen00 I'm not as interested as I should be
 
@SomeGuy same here xD
so passing the parcel
@SecondRikudo mailed at darkyen@madara.ninja :P
 
@darkyen00 Sent
 
@SecondRikudo um sent at what address ?
 
7:41 AM
@darkyen00 The one you wrote in your email
Not the one you sent from
Oh, it's the same one, actually.
Did you not get it?
 
nope
 
Spam inbox?
 
nope
 
@darkyen00 Sent again, check mail
@darkyen00 Well?
 
socket IO question:
how can the server detect when it goes offline
e.g. we use `io.on('connection', someFunction)` when the server connects
but is there like `io.off('connection')`?
 
7:56 AM
@SecondRikudo got it now :-) sending the cookie
 
@BenjaminGruenbaum lol :D
 
when is backbone useful?
 
@hrishirc Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
The next challenge starts on the 17th?
Is that because we started this month's on the 17th?
 
8:05 AM
Caprica, couldn't get you exactly... you mean I shouldn't ask whether I can ask a question? Don't think I did that
 
@hrishirc It's just letting you know, not saying that you did that
Most people here come in and go, "Can I ask a question?"
 
ok thanks, no ill will intended... the thing is I tried going through the documentation, the usage of backbone just isn't obvious for me...
it's like it's more pain to learn and implement than simply write unstructured javascript
anyone else felt the same?
that's what I feel
@SomeGuy I think it's more about how foreboding this place is
there's no tolerance for people new to the field
 
@hrishirc Why do you think that?
@hrishirc I've never used Backbone myself, but I'm sure a lot of people feel that way
But they continue on with it because they think the results are worth it
 
@SomeGuy ya probably, I was talking about SO in the end
SO is too harsh on newbies
 
On help vampires, yes
On people new to the field but willing to learn, not so much
 
8:12 AM
@SomeGuy Says the guy with a vampire avatar.
 
I'm just some vampire.
Not a help vampire
 
That's exactly what a help vampire would say. I'm keeping an eye on you!
 
maybe, but the reality is the goal of programming has become more on getting things done with established frameworks than furthering the boundaries
I understand why the place is harsh on help vampires
but why reinvent the wheel?
 
hello guys need some help can anyone ples reply
3
 
SO isn't a place for morality
let society decide that
If a guy seeks help (as judged by the community) in a parasitic manner
it may be because he assumes he'll do the same to someone who asks him about it
it feels like the field has too many people for the number of jobs
 
8:14 AM
We basically believe in teaching people to fish, not in handing out fish
3
 
so retention of establishment knowledge becomes more important
@SomeGuy agreed
e.g. I asked a question which according to people was asked previously (which I read and didn't understand well!)
I wasn't even allowed to explain how before I got downvoted to oblivion
 
That's unfortunate
 
just because some of my code was syntactically incorrect (but if a person reading this tries, he can understand exactly what I'm trying to say), I got downvoted to hell
maybe SO needs tags to separate complex questions from easy ones
where the easy ones can be worked upon by what SO calls mid-level karma whores
 
@hrishirc Oh god, please no.
 
while not spoiling the queue for experts
I think difficulty tags solve problems for everybody
and doesn't make it a race-to-the-dung which SO tries desparately to avoid, appearing elitist in this manner
 
8:20 AM
@hrishirc no
 
@hrishirc how can you rate difficulty. A question I feel is hard, you may feel is easy.
 
Difficulty tags will make everything about SO more complex.
Who decides what is "easy" and what is "expert" level?
 
person asking it
 
everyone believes their questions deserve expert help
 
Bad idea
 
8:20 AM
@hrishirc How could he know?
 
otherwise they would've come to Yahoo Answers
 
really no, I'm a newbie, I know my limit
 
He won't know enough about the field to know if the question is an easy one
 
^ that
 
@JanDvorak experts-exchange is where it's at, man. (I have no idea whether or not that site still exists)
 
8:21 AM
Oh. The hyphen site.
 
afk, lunch
 
@JanDvorak You mean pen-island?
 
@SomeGuy yeah, I guess
 
I don't even know where that is
somewhere off Britain?
 
@JanDvorak Nah, it was a site of some writing-utensil company. But they used to have the domainname penisland
 
8:23 AM
oh.
 
@BenjaminGruenbaum Wouldn't it be better to do a one-time easy challenge of 2 weeks, so you could then start on the first monday of the month after that?
 
@Kippie I'd rather take it easy at the first one. Only Florian has submitted an entry so far.
 
Then extend it to the end of Dec?
Or just skip 14 days without a challenge, claiming it's for those who still celebrate christmas
 
@JanDvorak So inconsiderate for other religions.
 
8:26 AM
(I still have no idea what hanukah is about)
 
Interesting talk
@Kippie People tried to kill us. They failed. We celebrate.
 
@Kippie Why? They can still watch westerner TV
 
@JanDvorak I celebrate Christmas, but slightly different.
 
@SecondRikudo Yeah, but people have been trying to kill you guys for millenia. What time do you celebrate? :p
 
Now Christmas is about: Some guy tried to save us. He died. We celebrate.
 
8:27 AM
We know with quite a good certainty that Jesus was not born on December 25
Sir Isaac Newton however, was.
 
(let's ignore the fact that the death was perfectly planned)
 
So in christmas we throw apples at people from high altitude.
 
In your own open source projects, what JS code style do you use? Some known guidelines (e.g. idiomatic, googles, jquery, crockford) or something you mashed together yourself?
 
@RoelvanUden Whatever my IDE enforces by default.
Or what whatever existing settings were there first.
 
Lol really :-D
 
8:29 AM
@SecondRikudo later changed into tossing them into water, then cutting them in half to simulate the cracks caused by landing
 
@SecondRikudo I'll look into it
Sounds good
 
@BenjaminGruenbaum It's very interesting, although I'm not sure I want magical annotations in JS.
 
Seems too Java-y
 
ohai :P does anyone know where to get a up-to-date list of all VPN, Proxy, Dedicated server hostings, VPS hostings etc?
 
@Gizmo Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
8:32 AM
@JanDvorak I do want (optional) types in JavaScript, and I think it would be a wonderful addition
 
@CapricaSix thanks for welcoming me :)
 
@Gizmo I doubt there is
 
But the lack of classes is exactly what makes JS useful. I don't want people to start programming Java with JavaScript :|
!!tell Gizmo bot
 
@Gizmo I'm actually a bot, so don't reply to me.
 
@SecondRikudo meh
 
8:33 AM
@JanDvorak ah shame, that would stop 99% of all the attacks on any game server xD
and Capra Six is really a bot? XD
 
@Gizmo What about the other 99%?
 
!!tel Gizmo yes.
 
@Gizmo yes.
 
@SecondRikudo I'll have to see it, forgot my earbuds home
 
@JanDvorak let my staff handle the other 1% :D
 
8:33 AM
@Gizmo That's not how it works in IT
 
people often use illegal tools behind proxy's, vpns, dedicated servers or vps's :/
 
There are legitimate uses of these tools as well
 
@Gizmo And more often people use legal and legitimate tools behind proxies, VPNs, dedicated servers and VPSs.
 
I do have to agree with that
 
sometimes i hate bosses which don't know anything about computers --- or how much time it takes to build X.
 
8:35 AM
I can hit you with my chair, does that mean that all chairs are now evil and should be banned from your office?
 
@Gizmo anything can be a vpn, point is; you don't know. don't rely on detection or anything, just deal with it :)
 
Yeah plus the chair would hurt XD
 
@darkyen00 Build times should be short
 
@SecondRikudo They've done that to knives longer than 6 cm
 
@JanDvorak Because there are very little legitimate usecases for a knife longer than 6 cm.\
 
8:36 AM
@Gizmo Then I'll hit you with my gym ball I'm now forced to sit on
 
@SecondRikudo from scratch, build a platform for e-commerce which changes the business plan 4 times and still finish it in 15 days ?
 
@darkyen00 No.
 
[oh and this b-plan encorporates finding logistics cost using google maps --- which later gets removed]
 
@SecondRikudo yeah... because who would need to cut a chunk of meat thicker than 6 cm
 
@JanDvorak well depending on the velocity it would be comming at me, I would just step aside from it's trajectory ^.^
 
8:36 AM
my deadline is in 2 hours
and am shaking.
 
@JanDvorak You're free to hold a long knife at hoime
home*
I have a gigantic knife at my kitchen.
 
@darkyen00 and there's more work than 2H left to do?;o
 
@Gizmo unlikely. Also, *coming, *its
 
I don't take it with me to the street.
 
@Gizmo i still need to make 2 pages
 
8:37 AM
And no, I wouldn't want people to cut a "chunk of meat" on the street.
 
and wire them with server.
and also make the Cart UI for the top
:-(
 
I have a machete
 
i am only done with the sexy awesome homepage.
 
@darkyen00 not even when you need to return them to the shop?
 
@darkyen00 I hope you're getting paid for this.
 
8:37 AM
I use it for murdering
 
@Meredith Meh, I just use my eyes.
 
@SecondRikudo this is the new job -- i am getting paid.
 
@Meredith do you happen to be the guy from Too Many Cooks?
 
not much (since i get 25% equity)
 
@JanDvorak idk i dont watch that show
 
8:38 AM
eh so jealous of all your guysJS knowledge :P I'm merely a lazy cpp programmer who has a site that he breaks when changing anything XD
 
@darkyen00 Let me rephrase, I hope that the pay you're getting minus the psychiatric treatment cost is worth it.
 
if it's not on food network im not gonna watch it tbh
 
@Meredith look it up
 
so "2 pages left" seems like an eternity for me to make :P
 
idk it's like 4 am i dont need to get lost in wikipedia again
 
8:40 AM
@Gizmo "move fast and break things" is a great motto. Just be sure to fix them again.
 
:P
 
@JanDvorak If you have tests, it is.
 
last time I wanted to move a popup menu on my myBB forum, it has some magic javascript code I can't find, when trying to move it I broke the whole website haha XD so I ended up removing the menu ;<
deleting is some kind of fixing too I think :D
 
Yeah when my code doesn't work half the time I just delete the whole section
It's a valid strategy
 
8:45 AM
There's just too many of them.
Also Smarf.
 
I like shitty sitcoms
But idk adult swim is usually pretty bad idk
 
@BenjaminGruenbaum :O
How image recognition work:
1. Take image
2. Magic
3. Caption image
4. Profit.
 
The bad captions are pretty funny
 
@BenjaminGruenbaum I saw this coming when they added Google Photos with recognition capibilities
with the amount of data they have already, training these things is a bliss for them :-(
 
8:50 AM
@Meredith Well, the thing about AS shows is that you can either love something, or completely hate it.
I myself am a huge fan of Tim & Eric, but I know many regular AS viewers cant stand watching it
Also, Rick & Morty is one of their best series in years
 
I liked camp lazlo!
 
@BenjaminGruenbaum i want to turn snapick into an analytics platform
the only profitable business model
before google adds google image trends :-/
 
What's the latest news on snapick anyway? How'd the search for investors go?
 
@Kippie you best be playing with the github comment.
 
@Kippie on hold, am bank-corrupt and :-( they said my business model wont last.
since i will be competiting with google photos - which is free and way more resourceful
 
8:56 AM
@mikedidthis Well, do you honestly think 2/3 a week will be achieved? I mean, great if you do
 
and honestly much better then snapick.
 
Damn man, that sucks.
 
I learnt a lot with that experience though.
 
@Kippie yes, why would I add it otherwise?
 
Well, you *did* add 1 per day first :)
But okay, I'll remove the comment (is that even possible?)
 
8:57 AM
@mikedidthis What are you talking about?
 
@Kippie yeah that is why I revised it. Before I started to spend an hour per avatar, now I am lucky if I get one done in 3 hours. :D
 
Hi! This page shows a beautiful gradient for IE, Firefox
But a bad gradient on Chrome : gget.it/7j7fc65b/gradient.html
Do you know what's wrong ?
 
I guess he deleted it
 
Okay got an idea, instead of making a ip blacklist for vpns etc etc I will users have to connect to a 'dummy' server when they are not whitelisted, on the dummy server anyone can register, after registering the IP will be added to a whitelist and when trying to connect, their traffic will be redirected to my real application :D dunno if that's possible though, probably it is
what ya guys think? :)
 

« first day (1496 days earlier)      last day (3447 days later) »