« first day (1493 days earlier)      last day (3471 days later) » 

1:02 AM
awesome idea
heh I've been using KO for the past 2 weeks at work as well
 
1:30 AM
ok, ko sucks
next.
 
Yeah I can't figure out ko
 
it makes sense, but it doesn't
is it special?
 
nvm i missed a colon
1 hour of debugging right there
 
:)
.observable is not live
 
Hi any tips with this ?? jsfiddle.net/55tgtpe6/7
 
1:40 AM
"click: capitalizeLastName"
vs. plain ol' onclick=capitalizeLastName
 
Sim
can anyone help me with javascript for this jsfiddle.net/e2ojfb94/2 ?
 
@user3470815 what's that?
 
@Loktar the idea is to have these each month,
Star it on GH :D
(Other people, you already idd)
 
Knockout is really unintuitive
 
0
A: how to split content on one page while first one displays first and other is hidden?

CSᵠFirst to play the video on load you also need to add this parameter: autoplay=1 <iframe width="100%" height="100%" src="//www.youtube.com/embed/Lam6hufUt5k?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe> Then, hide the bottom div via css: #bottom { display: none; } Finally a...

 
Sim
1:45 AM
@CSᵠ this is different
 
@Cs a piece of code not working as it should..
 
how did ko get picked?
i can't see it's usefulness
 
It's just to try new stuff out. The usefulness is in the trying.
 
makes sense
 
0
Q: Click event listener does not initiate transition/transform?

ZapChanceI'm creating a mobile menu 'burger' button in pure HTML and CSS3, with pure JS to deal with click events. Just one issue - when the button with the id 'button' is clicked, nothing happens. According to the built-in Firefox element inspector, the classes aren't being added, leading me to believe I...

 
1:49 AM
@ZapChance 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.
 
@ZapChance maybe this inst the problem but maybe try double quotes here:
var button = document.getElementById('button');
var button = document.getElementById("button");
i think it doesnt matter but try
 
@user3470815 That's exactly the same
 
@user3470815 Nice effort, but double quotes and single are exactly the same as Jan said.
 
m59
Would someone do me a favor and leave a comment here: stackoverflow.com/questions/26940709/…
The reason for downvote is because the question is bad, the answer was already in the comments twice, and the code he posted is wrong.
I don't prefer to comment on posts I downvote anymore.
 
@ZapChance sorry it was the only thing i spotted..
 
1:58 AM
@m59 so you're looking for a scapegoat...
 
@m59 It would be easier to leave that comment yourself.
 
m59
Not really. I just prefer not to give the opportunity for rage downvotes, as seems to be commonplace enough (happened to me twice)
But fine. I will.
 
twice != commonplace
 
!==
:-)
 
I have a coercing equals and I'm not afraid to use it
 
2:01 AM
:-D
 
2:38 AM
Hey, what are the disadvantages of changing the __proto__ of a function beside it being deprecated?
 
Sounds like a bad thing to do
 
I know it does, but why?
 
What do you expect to achieve?
 
Function composition using the dot operator.
 
oh, that kind of change
Then it's just the classic stuff of overriding global stuff, possible future naming collisions, chances of not working in IE...
 
2:44 AM
Yes, I want to write code like M.countWhere = M.count . filter where M is the context containing the functions countWhere, count and filter.
The problem is that every time I compose a function I have to copy every function in M onto the new function.
So I was thinking of just setting the __proto__ of the new function to M.
 
sounds like something likely to break or be unspecified. At the very least you'll confuse the hell out of your fellow developers
 
var context = require("./context");

var P = require("./prelude");

var M = context({
    count: P.count,
    filter: P.filter,
    countWhere: null
});

M.countWhere = M.count . filter;
This is the kind of code that I want to write.
 
Javascript isn't Haskell
 
It isn't, but it should be.
Anyway, it's just a proof of concept.
 
use Faye
 
2:50 AM
I already use PureScript.
However what I want to do is implement function composition in JavaScript using the dot operator.
Just for the kicks.
 
Then expect to be kicked
 
Lol. Cool, let's see where this goes.
 
Then why have you asked?
 
I wanted to know if there are any adverse effects of changing the __proto__ of a function.
 
@AaditMShah i hope someday i will understand what youre talking about.. :D
 
2:54 AM
There doesn't seem to be any performance hit in changing the __proto__ of a function.
@user3470815 Me too.
 
0
Q: Settimeout inside for loop overlapping

user3470815Hi im using this block of code to calculate routes using pathfinding.js a star algorithm, the problem is that it works with one destiny if in line 19 you leave one destiny on the array, but not with more than one. In the real example the last line of the settimeout isnt 5 *t but 300 *t so the us...

 
@JanDvorak Changing the __proto__ does seem to be faster than manually copying properties onto each function.
Plus that is with just 3 properties. Imagine how slow it would be if you had to copy hundreds of properties.
 
Check out this new input box i created: jsfiddle.net/Godisgood/qgy8Ly5L/23
 
@Godisgood onxxx?
@Godisgood Sure. Because holding backspace is too complicated.
 
Tbh I've never clicked a clear button on purpose
 
3:06 AM
Or pressing Ctrl+A and Backspace.
 
I've clicked them accidentally multiple times, however
 
Yeah I think one of the first rules of designing a form is to not have a clear button
 
Anyway, I've got to go right now @JanDvorak. Let me know if you can think of any other reasons not to change the __proto__ of a function.
 
Because it's fun to type something (punctuation-heavy) on a mobile keyword just to click the other tiny button on the right side of the input than I wanted to.
 
Do you all like my input text element?
 
3:10 AM
Yeah
 
I'd say none of us do
 
@Meredith Thanks Meredith. I was trying to make a better looking version of the <input type="search"> element.
 
3:33 AM
byezzzzzz zzZZzz
 
 
2 hours later…
5:13 AM
 
5:53 AM
@SecondRikudo Hi. I need some help
This code doesn't work if there are multiple scroll containers on a single page.
I mean if the scroll containers are more than one. I know the reason is that the other scroll containers are using the same variables which I declared for first container.
Any suggestion on what to do?
Currently, I am defining variables for the elements again and again related to each functional scope. which I think is not the best way to solve this issue.
 
What
You know you can just style the scrollbar with css right
 
I am not talking about styling
the above code works fine for a single container but not for multiple containers
 
Looks like it's just making a fake scrollbar to style it
 
yeah
 
You can just style the actual scrollbar instead
 
5:59 AM
you didn't understand my explanation..
download that project and apply the scrollbar to two elements (instead of one as I shown in the github)
 
I know what you're saying, but there's just a much, much, much easier way to do it
 
how? please..
 
I only made it work in chrome, I know firefox doesn't want people touching the scrollbars, idk about ie and safari
 
noooo.. I want to make that scroll plugin work not that css styling which works only for chrome
btw, thanks for that info
 
6:20 AM
Anyone have any ideas on this? It loads, but it doesn't seem like the event is loaded.
 
Thanks a bunch.
 
No problem
 
@mere
Crud, still bad at this. xD This doesn't seem to be working in Firefox for me.
 
What's the console say?
 
6:35 AM
Absolutely nothing. :/
 
What happens?
 
I receive the loaded alert, but the success alert isn't appearing.
 
Works for me
 
Which version of FF are you using? I have 33.1
 
30
I don't bother keeping ff up to date
 
6:41 AM
I've got no idea then, doesn't work in IE either.
I think it might be because the DOM hasn't loaded yet, but I'm not sure.
Bingo - added "onload="init();" to the body tag.
 
Don't use inline event handlers
 
Right, I'll move it to the JS.
 
yeah just do document.onload
Or window.onload
 
 
2 hours later…
8:29 AM
@BenjaminGruenbaum setting up an event for 10:30 might not have been the brightest of your ideas :P
 
8:48 AM
 
!!whirlpool or sha512?
 
@AwalGarg sha512
 
goood
 
@AwalGarg what for?
 
@FlorianMargaine session id
 
8:54 AM
sess?
session id?
 
yea
sry typo
 
what do you say?
 
@AwalGarg just generate a random 32-characters string
8
Q: Choosing a session ID algorithm for a client-server relationship

VulcanI am developing an application which has a client-server relationship, and I am having trouble deciding on the algorithm by which the session identifier is determined. My goal is to restrict imposters from acquiring other users' private data. I'm considering two options: Option 1: Generate a...

 
@FlorianMargaine how would I use that with session.hash_function? The manual says only functions in the hash_algos() list are supported :/
 
9:00 AM
@AwalGarg ah...
just go with default conf...
 
ok
 
Morning all
 
9:29 AM
@SecondRikudo as long as people see it
 
9:46 AM
> The winner is always Zirak. Sorry, that's just the way things our. The Winner Zirak will be announced after fair and democratic balot voting will be held after Dec 1st.
@BenjaminGruenbaum there's something wrong with my english? ^
 
> our
 
ah no, <del> is not applied on github too
that's my confusion
 
*ballot
 
I am wondering how many people would actually participate... I guess choosing Zirak would be pretty fair.
 
also, s/our/are/
 
9:49 AM
voting (, which)
 
also, s/.+/gth/
 
@FlorianMargaine things our :D
 
@FlorianMargaine I would have synthetized with : "Zirak === Winner."
 
9:54 AM
Btw, Zirak is not always the winner. Sometimes there is Zirak as well.
> You are to use KnockoutJS and the Stack Exchange API. The Stack Exchange API. A good resource for learning Knockout is their awesome tutorial.
dat middle sentence phrase
 
This week end, I took 30minutes to code a cheat system for an online game, because an "online friend" couldn't believe I was a developer.
 
None of my friends know that I am (learning) programming. And I am never gonna tell them that.
 
My problem is know that I have the cheat, I find this game boring
Even if I do not use it.
 
@dievardump You could get into serious trouble should your friend leak that info
Not that I care, but your company might
 
@AwalGarg make prs to fix the docs :P
I hadn't slept for a while when I wrote it
 
10:02 AM
no
 
@dievardump which game?
 
The number 13 sucks
 
@AwalGarg context?
 
!!>"mu" + "ah"*10 + "a!!"
 
10:12 AM
@Unihedron "muNaNa!!"
 
oh...
 
That doesn't work in Javascript
 
!!> Array(15).join(+'a')+' batman!'
 
@FlorianMargaine "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN batman!"
 
You should totally drop it and use Ruby
 
10:13 AM
no! I want to sing batman :(
 
!!> "Ba" + Array(15).join(+'a')+'!'
 
@Unihedron "BaNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN!"
 
@Neil 1/ I have no company - 2/ it took me 30 minuts to code that shit 3/ nobody has the code, it was just to show him that there was no security at all
@FlorianMargaine a small wording game. there is hardly 1000 players pro day
they give you a syllabe and you must create a word with it in a small amount of time
you play in group the one after the other. The more words are made without anyone dying the less you have time to write it
it's a cool game, entertaining
I did not hack anything, I just listened to the io events (yes, the sockets variables are attached to window) and I wrote a dictionnary reader with some node backend. I make a xhr with the syllabe and it gives me 10 words that go with it
@Neil And what would my company have to say about what I do in my week ends? afaik in France you can't be fired for what you do out of you work if it does not directly concern your company (their clients, their code, their server, their website... - @FlorianMargaine any idea if it's possible?)
 
10:30 AM
you're not in France
 
I'm Freelancer. But do you have an idea if they can?
 
@dievardump Unlikely. I write and maintain a MMO bot and nobody seems to care at all (the Netherlands). Now, if you're directly going to affect the business you work in that's probably going to be a different story.
 
Yeah sure. I was more talking about "firing someone because their actions in their private life COULD make some bad publicity for the company"
I think I remember hearing that that exists somewhere in USA, but my question was : is it allowed in France/Europe
 
If you make it extreme, perhaps, albeit that won't be the "official" reason. I sincerely doubt anyone is going to care that you tinker with some cheats :P In the USA (or China any other asian countries) there is a lot more "reputation", "live for the company" and "saving face" going on. AFAIK EU mentality doesn't care much at all.
 
(and I also think that you need to know how to identify other's code weakness if you want to make yours better)
 
10:40 AM
@dievardump In Dutch law there is even a clause saying that decompiling for analysis and learning purposes is completely OK. USA is weird in that regard, if you even dare to speak it (or, say, read memory) then you get "copyright infringement" smacked on your ass almost immediately (once you get some fame in it)
Pretty sure EU is relaxed in this.
 
@RoelvanUden The Dutch are relaxed about everything. :P
 
@RoelvanUden we actually are (me, BadgerGirl, Copy) going to all be in Amsterdam at the same time. If you feel like having a beer with us you're genuinely invited.
 
@BenjaminGruenbaum you can probably invite PeeHaa if you want
 
@dievardump My point was more like, you're a developer of world of warcraft and you, even on your weekend, decide to add a cheat.. pretty sure Blizzard would frown on that
 
Yeah but that is normal. You're modifying a production code that you do not own.
 
10:55 AM
@Neil he doesn't work for the company that makes the game he wrote a cheat for
 
Oh sure
@PeeHaa - we're (me, @BadgerGirl and @copy ) meeting in Amsterdam between the 26th and the 29th, feel free to come have a "beer" with us.
 
@dievardump Using the knowledge of a game you helped develop to cheat is a big no-go too.
@Sippy Correct. :D
@BenjaminGruenbaum Thanks for the invite :-) But I'd rather not go to Amsterdam :P
 
That's fine :) I totally get it.
 
@RoelvanUden The best thing that ever happened to me in Holland was at a Hardstyle festival called Defqon which I may have already told you about. A drug dealer came up to us and offered us coke and heroin, then when we said nah we're good and he realised we were English he just sat down and had a really nice chat.
 
Anything you think we should see there?
 
10:58 AM
And I was like what the fuk just happened
In England if we refused we'd have been robbed and stabbed
 
@BenjaminGruenbaum Madurodam is epic. :P
 
@BenjaminGruenbaum Oh cool. Will check my schedule and if I can I will get drunk :)
 
Not sure what to respond to that with :P
 
@BenjaminGruenbaum Oh wait, that's quite far away. Nevermind. Amsterdam is meh.
 
@PeeHaa awesome :D
 
11:00 AM
That was in the hague..
@Sippy Hahaha yeah.. Defqon already are weird people :P
 
Can't really argue with that.
This year there was a pair of .. I think Thai twins, they were about 4'11 and were walking round together selling drugs.
That was pretty surreal.
 
@BenjaminGruenbaum If you want to do a side trip to the hague.. en.wikipedia.org/wiki/Madurodam
 
@RoelvanUden well, different people like different things :) I like Amsterdam and I'm traveling with friends. I actually haven't been to Hauge yet.
That looks fun
 
@BenjaminGruenbaum True, but remember that if you grow up going to Amsterdam for insert whatever here then the city quickly loses interest. It's fun for travelers for sure :)
 
@RoelvanUden that makes sense.
 
11:04 AM
@RoelvanUden Insert may well be the wrong word to use there.
 
@FlorianMargaine Yeah, that wasn't clear to me at first ._.
 
@BenjaminGruenbaum It's fun to see the World Forum and Madurodam but otherwise the hague isn't that special. Amsterdam has much more characteristic :)
 
Who else lives in the Netherlands?
 
11:07 AM
rightfold
 
I thought he was Hungarian
 
Close
He's Bulgarian
 
Martijn Pieters
 
I don't want a huge party :P I'm with 2 other friends and maybe Orit, you're coming, we'll be 5-6 people.
@BadgerGirl Did you book a hostel yet?
 
We're on that
 
11:20 AM
Twin rooms are a lot easier than 4 people rooms, so you still have time but not a lot of it.
Our first few options were fully booked when we tried yesterday.
 
s/Hun/Bul/
 
We'll be staying at this place mainly because the location is central and because it was one of the few places left with triple rooms with a private toilet. We're paying around 40 euros a night each which is pretty expensive but the location is good.
 
@BenjaminGruenbaum 40 euros per person?
 
@BadgerGirl That's a lot for a hostel, it seems
 
@BadgerGirl Yes, per person per night. Mainly because of the location and private bathroom, none of us wanted to settle on a shared bathroom, the other alternative was 5 km away from Amsterdam which is way too far.
 
11:32 AM
When are you guys going?
 
26 to 29th
 
Oh, this month?
 
Yeah, it's pretty spontaneous, it's a pretty long weekend.
 
Neat. Did some of you meet up before already? Or is this like a first-time ever thing?
 
First time ever, I'm flying with two friends and I figured BadgerGirl and copy were only a 2 hour drive away
And probably my wife, if/when she decided.
 
11:37 AM
@BenjaminGruenbaum do you have a preference for a drink-up day, because I am thinking about getting a hotel for a night so that I don't have to drive home
 
@PeeHaa not yet, probably Friday but not sure yet.
 
kk
 
BTW - I think I upvoted meta.stackexchange.com/questions/243720/… twice :P
Once in meta.so and once in meta.se - that has to be a bug.
 
:P
 
We will be there Friday-Monday
 
11:39 AM
Cool, so we'll meet on Friday :)
 
\o/
 
There is actually a much broader term for this form of chaining with then, but I feel that reminding it would only be confusing here. Let me know if you'd like clarification. — Benjamin Gruenbaum 56 secs ago
I'm always not sure whether or not to confuse people but be precise. Especially since my answer is already probably way too confusing.
 
Your comment is probably more confusing than just mentioning the term. At least if you mentioned it, people could take initiative and look it up themselves. Now they're just left wondering if it's important to them or not
 
@Kippie I think that comment would only be confusing if he had left out that the term itself could add confusion.
Though at the same time it would probably have had equal result if you just told them the term with the same disclaimer :P
 
@Sippy In which case it would be a pretty empty statement: 'there is a broader term for this'
 
11:48 AM
hi@all
 
@rizwan 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.
 
@Sippy Yeah, that might actually be the best option here
 
@Kippie That is confusing. :D
 
how to generate random milliseconds by using settimeout, is there any idea
 
Please clarify. Do you mean "using", or "for"?
if the latter, check Math.random
 
12:02 PM
this is my doubts check it, please answer me if you know, i am struggling from past three days help me stackoverflow.com/questions/26904033/…
 
Never pass a string to setTimeout
 
here is it possible to use setTimeout or not?
 
I can't see how it helps or hurts
Your code will wait one second, then look up a "generate" function in the global scope and attempt to call it
The generate function then attempts to shuffle 1..9 and then rapid-fires it into the div
 
yesterday, by Sim
used google calc it helps
Wat
 
(cv-pls, btw)
 
12:09 PM
That guy had no education in maths but wanted to learn programming? wat?
 
ambitious little sucka
 
At least he can read, damn
 
ya, i have given internal value 1000 but i need that value should generate random for ex: value from 5 to 3 it will take some random(100) millisecond, from 3 to 7 it will take 125 milliseconds like that i am asking
 
There's nothing wrong with ambition
@rizwan generate first, then pass the computed value to setTimeout - that is, if I understood your requirements correctly
 
@JanDvorak Not at all, I was just surprised that the kid went from no education straight to coding.
From my experience coding is hard to get into even if you have an education, it's that way in the UK anyway.
Or was that way, rather.
They teach it to 12 year olds now.
 
12:14 PM
coding is easy to get into, but coding is hard to learn
 
@KendallFrey Hello World in Java made me feel pro when I was 13.
Now when I think back to that day I think "Wow what a douche."
 
@Sippy You don't need math to learn the syntax. Thinking about code is the thing you really need to learn
 
Wonder what happens if I run POS software from a remote POS system.
Don't have execute rights gg
 
You get a POS virus
 
@JanDvorak True
If you don't understand mathematical principles then some code projects are gonna be a bit difficult though.
If I had to code a modelling project I'd be fucked cos I suck at maths. :D
 
12:17 PM
Then code text adventures, not a rendering engine
 
But I'm educated to like pre-university level.
Hahaa
I played a text adventure game once.. Can't say I'm sorry to see progress since then ..
 
how to use setTimeout instead of this setInterval('generate()', 1000); could you please edit my portionn
 
Why would you ever have a randomly generated timeout?
 
!!tell rizwan mdn setinterval
 
12:21 PM
Oh that's not timeout.
 
@JanDvorak Even better, code them with REBEL!
 
What's a rebel?
 
!!tell kippie google rebel programming language
 
@JanDvorak 13th day of a month, the next month. It is a bad day for me.
 
12:24 PM
@JanDvorak That website alone makes me not want to use it as a language
 
"Success is like a dictionary, it always comes after lunch."
What.
Anyone know if there are changelogs for databases in MSSQL?
 
@towc Would you like a Pro PlayCanvas account?
 
@Sippy There are
 
@BenjaminGruenbaum booked
 
12:48 PM
so... should we now really use application/javascript instead of text/javascript for JavaScript files' content-type?
 
@AwalGarg It's always been that?
 
@AwalGarg Didn't Crockford get crucified so we could have application/?
 
@PeeHaa The official RFC says text/javascript is now obsolete, and should be discouraged, in favor of application/javascript, but I haven't seen the latter used anywhere in practice.
@Sippy no clue
 
@AwalGarg I have "always" used application/jabbascript
 
@PeeHaa always *
"always" implies sarcasm :P
Unless you were being sarcastic..
 
12:52 PM
Not at all
 
@PeeHaa it would not be recognized in <=IE8 though, but fine....
 
And "always" means for as long as I can remember
@AwalGarg TIL
 
Yeah my point was italicising for emphasis, as double-quotations denote sarcasm in that context.
 
@PeeHaa ...so that means you never needed to test your JavaScript in <=IE8? Lucky guy...
 
@AwalGarg :P I'm fairly sure I did
Trying to test it now, but IE tester keeps crashing as usual
And my xp VM is slow as fuck
 
12:56 PM
An XP VM eh? How does it feel like using a caveman's stick?
 
@AwalGarg Ahh it was application/json he brought us.
My bad.
 
@AwalGarg :)
 
kk
 

« first day (1493 days earlier)      last day (3471 days later) »