« first day (1093 days earlier)      last day (4077 days later) » 
00:00 - 19:0019:00 - 00:00

00:00
@AbhishekHingnikar the main benefit to my approach is that all the decisions are designed from the ground up to be swappable
including the jsonml templating DSL
but i havnt implemented / finished all the modules yet, nor proven they work with jsonml & handlebars
@AbhishekHingnikar angular isn't that bad really. I just refuse to work with it because shit like that frustrates me to no end.
00:23
@Raynos you got almost 400 repos, don't you think it's time to clean up?
Maybe
I also need to migrate about 50 from github.com/Colingo to myself
to everything but the forks
bah, Chromebook becomes paperweight the second I want to do something that can't be accomplished in Chrome
not that I'm surprised
 
1 hour later…
01:33
1667 messages since I had this tab open
02:04
0
Q: Looking for ways to improve short Javascript code

user30712I am working through some of the exercises at Coberbyte. The instructions for this exercise are to replace every letter in a string with the letter following it in the alphabet (i.e., c becomes d, z becomes a). Then capitalize every vowel in this new string (a, e, i, o, u) and finally return this...

@Ari 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.
03:08
https://code.google.com/p/jquery-infinite-carousel/
jQuery 1.3.2 = Works
Latest jQuery = Bugged

What can I do? =/
@user2056484 find out why
oh, it's a plugin. Then you should look for another.
Tried dozen, it is surprisingly hard to find a simple and lightweight text carousel
Like GoDaddy's "Chosing the Right Domain" on the bottom godaddy.com
I want exactly that. Do you guys know any?
if you don't find any, you could try fiddling with noConflict so that the plugin uses an old version but you can use the latest one.
03:48
@no0ne 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.
04:22
0
Q: Interview for job that uses skills you have no experience with?

user103453I am currently employed as a software developer using C# and C++. However, I hate the job for personal reasons and applied for a job ad that listed PHP, CSS, and Javascript as the skills the company is looking for. That company wants to interview me. However, I have very little experience with th...

04:53
@RakeshShetty 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.
hi all very good morning :)
can any help me on jQuery animate and jQuery draggable function ....actually I am doing this for the first time
1
Q: How to pull a chain using jQuery draggable event without effecting the pendulum movement

Rakesh ShettyI am developing a website with some animation on it.I am doing this using jQuery animate function.There is a image of flush toilet and if someone drag/pull the chain it should be flushed. Please refer below image Chain is continously moving which working fine by using jQuery Pendulum. Now what...

@Zirak for a webpage, I always prefer a button
somehow I'm not used to assuming that webpages would react to key shortcuts.
05:29
!!code or screw around
@SomeKittens screw around
 
2 hours later…
07:00
Thanks to raynos i got skype made in a night :D
@EmilM 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.
 
1 hour later…
@JanDvorak And if you are told about these shortcuts? Several times over?
user1125394
08:41
!!urban internet
@cc internet A vast array of [word]pornography[/word]‌​ and advertisements.
0
Q: Checked if is checked automatically in javascript

Big Bro YeshGuys, I have this following codes. Now I want to validate myForm. Here is my HTML Code <form action="#" method="post" onSubmit="return validateForm()" id="myForm"> <p>Name : <input type="text" id="fname" /></p> <p>Checkbox one : <input type="checkbox" id="checkbox" /></p> <p>Checkbox Two : <

!!urban web
Server error (status 500) occured (message probably too long)
09:18
Hello all, I'm having issues with jQuery's no conflict mode, and a function I'm trying to implement.
This code runs elsewhere: var $j=jQuery.noConflict();
My function is then called like this: $j('#nav').rdNav();
I've tried to define my plugin like this:jQuery.fn.rdNav = function($){
..then this throws errors, because of the dollar sign I assume, var nav = $(this);
Any idea how I fix this?
09:56
if i have a file loaded through my zend's layout file(angularJs), how can i use that module in requireJs ? Can someone please help
@FlorianMargaine \o
@kunal 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.
I am trying to implement module pattern and implemented this ajax module :

and calling this module in other modules to make ajax calls :

var ajax = (function(){

function getJSON_ajax(url, param)
{
$.getJSON(url, param, function(data){
return data;
});
}

function postJSON_ajax(url, param)
{
$.postJSON(url, param, function(data){
return data;
});
}

return {
getJSON_ajax : getJSON_ajax,
postJSON_ajax : postJSON_ajax
}

})();


but the problem is : the function returns before the respsonse is received from the server. please help
10:15
0
Q: Making getJSON async in moduile pattern

kunalI am trying to implement module pattern and implemented this ajax module and calling this module in other modules to make ajax calls : This is how make a call. data = ajax.getJSON_ajax(url,param); I get undefined for this data. var ajax = (function(){ function getJSON_ajax(url, param) { ...

10:33
@KārlisMillers 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.
10:48
hey freinds
 
1 hour later…
11:53
0
Q: Define local variable in function?

user30724I have on object like this initialize : { method : function() { this.__. //--> do another thing ... //--> so many this.__.params. //--> do another thing ... //--> so many } } and the method of this object call by another function. as you see...

Seriously, how do people expect someone to understand this diagram?
It's cryptic as fuck ...
but it looks nice :-)
No really, if you wouldn't know how the prototype chain works, would you understand anything?
Like, what's q1 and q2 on cf1 and so on?
I never said it wasn't cryptic
@edi_allen 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.
user1125394
12:40
!!google banana design pattern
ANybody using grunt here ?
Bootstrap does.
i know i have a config issue :-/
12:49
/its a stupid one, i m unable to make grunt-watch to ignore a specific file/
made myself one of these last night
@AbhishekHingnikar would you like me to google for you?
@JanDvorak i did :P
and i found out solutions but for some reason they aren't working :-|
and most likely its my fault
worst, pirate invasion DURING a blood moon then a solar eclipse right after then the twins right after that
'worst two days in my NPC's life.
angularjs question. If I have this value abc:123 . When I have put it in html
`{{name}}` . I want it only display 123.
How to do this in angularjs ?
            files: ['public/js/**', 'app/**/*.js','public/js/!bundle.js'],
i am doing that, i also tried !public/js/bundle.js
@rlemon ok, wait, so is that, like what, a magic weapon?
my aim is to use browserify to spit out concatinated angular out of me.
and it didn't work either
@vzhen use a filter.
Wait, if you're only doing this for one item - just use a function.
@BenjaminGruenbaum does angularjs provide this kind of filter or I have to create myself?
13:02
@rlemon I hate that, I've never had a solar eclipse.
You had two.
@vzhen What about just passing it to a function that does that? {{afterColon(name)}}
is there a limit to how many items that can be stored in an array
@deep only memory
As in RAM?
@BenjaminGruenbaum ok I will give it a try
13:04
virtual memory will do
if you don't care about speed
Welp, depends on how much the host system allocates to your browser process.
@Octavian best sword in the game
I hate you and I hate myself.
I'll make you one lol
Instead of keeping the chat closed I opened it up, now you told me this, I want to go play Terraria instead of reading through the annotated ES5 spec.
13:06
you need broken hero swords from pirate invasions
put meteorite at the ocean and farm pirate maps
Oh that's fucking smart.
pirates drop really good stuff.
!!/terraria discount card
13:08
Let me reboot.
@JanDvorak help me brotha
Is @Zirak Here?
@AbhishekHingnikar speak out
Why doesn't IE 10 let me create a CustomEvent object? jsfiddle.net/RmhAA/1
it no works
13:12
@deep Zirak has left us for good
http://www.murray.k12.ia.us/web-content/Elementary/Title1Reading/FreqUW.pdf

I want to put all of those word in an array without Maually putting them in. how do i do that?
Joined the circus
What!
@deep What would you need from Zirak?
the made that You can JS under pressure mockup, i wanted to know how he did the error checker thing on the textarea
13:15
:O
WA!!
> Max damage recorded so far: 1,022
Are ye kiddhen!?
a link to W3Schools - my first downvote on programmers.se. Well spent. — Jan Dvorak 2 mins ago
13:34
@deep VAR ?
what?
it needs a function somewhere
there
idiotic mistake -_-
it is Meant to make an error.
then why u are writing pointlesserror ?
I was Delibrately making an error, and that seemed like a good name.
13:37
so your point of posting the screenshot ?
24 mins ago, by deep
the made that You can JS under pressure mockup, i wanted to know how he did the error checker thing on the textarea
No. Just dumping your homework, word for word, to SO is not going to work out. — Jan Dvorak 25 secs ago
can you upvote me so that i can downvote that question?
@deep depends. Which post is worth one?
2
A: rotate 3d pictures using javascript

deepYou can use a GIF, or a Series of images. My (preferred but not easiest) way is to use THREE.js and WebGL you make the model in Sketchup or Collada, then put it into js, the code is reltively simple, and it gives you lighting effects too! http://carvisualizer.plus360degrees.com/threejs/ This ^...

13:44
uh, you need 11 rep, not 10. Better get an accepted answer, or do an extra edit
an extra edit?
done. NOw you just need to edit something
= 2 rep
ok.
(not yours, ofc)
done
now waiting...
Cheers for the Upvote
13:58
now you've got 126
yep. Downvoted.
can someone give me hint why this recursive function is not working
function arraySum(i) {
    // i will be an array, containing integers, strings and/or arrays like itself.
    // Sum all the integers you find, anywhere in the nest of arrays.
    sumTotal = 0;

    function recursiveFun (arr) {
        for (x=0; x<arr.length; x++) {
            if (typeof arr[x] === 'number') {
                sumTotal += arr[x];
            }
            else if ( arr[x].isArray ) {
                recursiveFun(arr[x]);
            }
        }
    }
    recursiveFun(i);
    return sumTotal;
dont tell me solution though please
whats arr?
just variable name for i in recursiveFun(i)
@AbhishekHingnikar your girlfriend likes me. :)
14:06
hey guys
hope someone have a idea
0
Q: navigation hover effect doesn't clear box shadow from content

Dave-88i will on my navigation with the hover effect to cover up the box shadow from content. here my testsite: http://www.behringer-mauch.de/Tischler_Hehmann/index.php And this is what i want: How can to solve this ? With CSS or jQuery ?

@TheSeamau5 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.
@BadgerGirl ?
Now you like me too.
www.youtube.com/watch?v=3o82P4V1vu0
14:23
@BadgerGirl Whoa, what's with the makeover?
why wont the button work? jsfiddle.net/S9EdG/2
@SomeGuy It's just graduation pictures. Your mom is hot.
...yeah, you have to stop with pretending to be my mom.
@deep: Because jsfiddle wraps the JS code in a function so the functions you declare in the script panel are not global.
oh.
so...
what do i do?
14:25
Simply don't use inline events at all but attach an event handler to the DOM object?
document.getElementById("").onclick?
anyone see the problem in the script above?
im 50> min on javacript under pressure because of that stupid question lol
i guess i dont understand recurssion..
!!mdn addEventListener
@deep: ^
14:31
cheers
@bushdiver, just cheat
@GlassGhost 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.
14:50
lol was scope issue
x=0; had to change to var x=0;
@user1658756 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.
Hi, I'm currently trying to make a jQuery plugin and having trouble with creating multiple function, can anybody help me?
wth this should be correct
box.square = function square (x) {
    //return x squared

    return  Math.sqrt(x);
};
@user1658756 multiple function?
Yeah. Basically the plugin converts a hex or rgb value to r, g and b.
I have 2 functions that have if statements and they return values to the variables r,g and b.
whats the problem with it?
14:57
For some reason it's not working.
show it
some code i mean
Here you go
Ah, wait, that wasn't right
Btw, I'm new to JavaScript, when would you use a function instead of just if statements?
whenever you want to reuse the same script use functions for that
ah right
functions are really a naming convention for a set of commands ( rather than having to type the same script over and over again you can just reference it )
15:07
I'm not sure why it's not working though, do I have to return any values from a function or anything?
The results come back as undefined
I tried to use if statements but that didn't work either
@bushdiver lol
@AbhishekHingnikar =(
lol
@user1658756 im not sure exactly how you're wanting the script to work - here's an example of the RGB working: jsfiddle.net/ckaqK
@user1658756 can we see the code?
@bushdiver hmm, I don't know why it's not working for me then
15:32
@bushdiver squared, not square root
yah i got it after a while and felt stupid lol
posted on October 13, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Whee!

box.square = function square (x) {
//return x squared

return x*x;
};
@Raynos How is that a bad thing? What don't you like about their module or DI system?
Also, people abuse $scope people put models on it instead of model references. They use it for everything which is idiotic, and they don't put methods on the controllers which is just plain silly.
$scope should just be references to models, nothing else. Objects on the $scope should usually not even be aware of the fact they're part of a GUI system.
People putting all their view logic on the scope rather than in directives, on the template or on the controller depending on what it does have a bad time, but it's more than that - they deserve a bad time.
user1125394
15:37
language should support the ² character for square
user1125394
uselessness
postfix functions, you say?
golfscript has these
hmm this is returning undefined
box.flatten = function flatten (x) {
    // x is an arbitrarily nested, multidimensional array.
    // return x flattened (all items in 1 dimension)

    var mainArr = x;

    function flattenArr(x) {
        for (i=0; i<x.length; i++) {
            console.log(i)
            if (typeof x[i] === 'object') {
                mainArr.push(x[i]);
                flattenArr(x[i])
            }
        }
    }
    flattenArr(mainArr);
    return mainArr;
};
hint?
what's its argument?
flatten([]) expected [], got undefined
flatten([0,1,2]) expected [0,1,2], got undefined
the first argument is an empty array
user1125394
15:42
!!> 3^2
should be returning another empty array
any hint from the logs?
user1125394
s/logs/dogs
logs arent posting
15:43
what happens if you remove the log calls?
same
and if i just do a log only it doesnt log, i think i broke it lol
was just for fun anyway, nbd
shouldn't happen
try return []
i refreshed and it restarted from beginning
its from zirak's javascript under pressure
aaaaah.
no spoilers please
user1125394
var flatten = function (x) {
    var arr = [];

    x.forEch(function(e){
    	if (typeof e === 'object') {
            arr.push(flatten(e))
        } else{
        	arr.push(e)
        }
    })
    return arr;
};
user1125394
15:50
@copy it's like oil, we always think the reserves are flat, but still people use it
shit i broke it again
i put it in some kind of endless loop
wish it stored cookie of what step i was at
could add an interval to add the time to cookie every second - for F5 use
user1125394
wtf you saying
idk, settle down
@cc It's like smoking: You start because of peer pressure and it gives you cancer
user1125394
/blame peers
15:58
@tectrendz 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.
16:21
Whats a good book to get started with nodejs?
I thought you guys might know best.
@OctavianDamien I shouldn't be too much longer I'd you are still playing
@GamesBrainiac bunch of nodejs resources: stackoverflow.com/questions/2353818/…
I got started with this one last week nodebeginner.org and it helped me a lot
starting to have fun with node this week..
@bushdiver Arrite, thanks man. I was about to start with Smashing Magazine's book on Nodejs
@GamesBrainiac Start writing programs in node
@bushdiver I'm going to add a timeout; if your code doesn't finish running in 1 second, it'll terminate.
@Zirak Did that, but need to get a better understanding of async
16:25
Though if you manage to get yourself into an infinite loop...
@BenjaminGruenbaum Told you someone would get into this mess
@Zirak alright, btw it's a lot of fun =D do you plan on extending it?
Yeah, adding the option to skip a question, and about 3 more questions.
@rlemon Welp, I'm still ingame with @Shmiddty
Oh yea, the Truffle is there.
We're having sexy times
16:33
Yea, he put his wood in the piggy bank.
He's kinky.
@OctavianDamiean My character and world are corrupt. Not in-game corruption. I tried compiling Terraria, messed something up, now my saves are worth shit.
However, later that day, I saw Lesbian Vampire Killers with rlemon. It was pretty funny.
@Zirak oh fuck!
That sucks.
Yes it does
user1125394
gotta compile some food
Who wants to downvote sucky questions?
-14
Q: OOP Final examination

Tin 21. The number that refers to a particular element of an array is called its _______. 22. The process of placing the elements of an array in order is called _______ the array. 23. C# provides the _____ repetition structure for iterating through values in data structures, such - as arrays 24. Whe...

16:39
I filled @OctavianDamiean's holes with my wood
@Shmiddty was a pain in the ass.
Literally. ;)
16:56
So I met an exceptional woman last night
@OctavianDamiean
you around?
When I said brb 20 minutes I actually meant an hour and 45 minutes
i dont get console.log.apply() .. why not just console.log()
user1125394
!!tell bush mdn apply
@bushdiver say, you want to turn an array to an argument list
17:12
i didnt realize the scope of apply, i thought it was a log function
user1125394
!!mdn Array.mean
arr.reduce((a,b)=>a+b,0)/arr.length
user1125394
!!> Array.prototype.mean = function(){this.reduce((a,b)=>a+b,0)/this.length)}; [1,2,0.5].mean()
@cc "undefined"
@cc "SyntaxError: missing ; before statement"
17:20
is the bot running from firefox?
user1125394
!!> ['yes'].reduce((a,b)=>a+b,0)
@cc "0yes"
user1125394
!!> Array.prototype.len= function(){ this.length}; [1,2,0.5].len()
@cc "TypeError: this.reduce is not a function"
@cc "undefined"
=> binds this from the outer scope
17:25
@cc "SyntaxError: missing formal parameter"
@cc "undefined"
hint: return
user1125394
yes..
good old ES5? :-)
user1125394
how you bind this with`() =>` notation
you mean, how not to bind?
Not with =>
I'd try a thin arrow
user1125394
17:33
!!> Array.prototype.len=( () => this.length); [1,2,0.5].len()
@cc "undefined"
it works this way in cfs
@cc "undefined"
!!> (()=>this).apply({toString:()=>"success"})
@JanDvorak "SyntaxError: syntax error"
@JanDvorak [object WorkerErrorEvent]
17:34
oh well :-(
17:55
No... hardware recommendation questions are not appropriate here. Nor are hardware questions, nor are recommendation questions. — Jan Dvorak 11 secs ago
I just discovered that Twitter security is non-existent
You can login to random user's accounts by generating random MD5 hash strings as the auth_token
What's more, is that it is not restricted by IP address
Got a lot of replies :)
Even more, is that the auth_token does not change upon login/logout
We have two values: x is a part of y (0 <= x <= y), and we want to know to which quartile it fits: 0%, 25%, 50%, 75% or 100%. Besides several if statements, is there a way to find out? I can't think of one
I'm checking to see if it's even restricted by UA
18:00
no closevotes for the hardware recommendation questions?
@ShadowZzz 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.
@JanDvorak Now you've got another one
Just logged in to my Twitter account on FF using the same auth_token on Chrome
@Zirak three more are needed
Sooo my mbp is dead.
I've been programming on my tablet all day.
it's actually quite nice.
18:03
!! sandbox
You know, there was this funny idea once upon a time that people were supposed to test out commands and "play" in the sandbox
Hey, guys!
Very nice discussion in es-discuss about extension methods
@Zirak some kind of truth table using fallthrough?
@Zirak What's wrong with two if statements? That sounds reasonable to me.
18:04
@BenjaminGruenbaum What to?
1 min ago, by Benjamin Gruenbaum
Very nice discussion in es-discuss about extension methods
@FlorianMargaine That was my other approach (well, using an array) github.com/Zirak/SO-ChatBot/blob/master/source/util.js#L187 but I don't like it very much\
@BenjaminGruenbaum ok, link?
@Zirak hmm, not sure how to link to that
@Zirak How do the timeouts/intervals work in Chatbot? I see that it returns only the timeout/interval id.
18:06
@Johnツ What timeouts/intervals?
@Zirak I mean setTimeout and setInterval functions.
!!> setTimeout(function () { console.log(123); }, 5000);
@Johnツ 1
It doesn't print 123. Why?
That's what setTimeout does, returns the id. But the bot doesn't wait for everything to clear up, eval is synchronous
@Zirak Thanks!
Anytime
erm, actually, not anytime
18:25
just a reminder: this blatantly off-topic hardware recommendation question still needs three more closevotes
18:36
Evening All!
@dluz 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.
18:51
@Zirak after a little bit of thinking, I'd go with a bunch of if using a between function
0
Q: Drag and drop images in a grid using html and javascript

Anushree SarathyCould someone please help me with this technique,as I have goggled but couldn't find any results There are four images in a Top-grid and four Empty spaces in a bottom grid..each of 200x200(WxH). 1) The Top four grids have the images 2) bottom 4 grids are empty,so that the top images can be drag...

return x.toString().split('').map(Number).filter(Boolean).reduce(function (r, i) {
        return r + i
}, 0)
It's fun introducing changes...makes you rethink thing
@FlorianMargaine I went with something quite ugly indeed
if (ratio === 1) { ... }
else if (ratio > 0.75) { ... }
...
@Zirak This is pretty much what I did if we're talking about digit sum
Would be nice to be able to do reduce(+,0)
heh, we can also do filter(Number).map(Number)
@BenjaminGruenbaum inb4 @FlorianMargaine talks about Lisp
Or Jan Dvorak about Ruby
user1125394
or haskell
18:59
hi
@begiPass 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.
00:00 - 19:0019:00 - 00:00

« first day (1093 days earlier)      last day (4077 days later) »