« first day (1133 days earlier)      last day (3830 days later) » 

12:00 AM
@RyanKinal that's not how you define filters in Angular
Not on the syntax of the directive or in the code
Gimme a minute
 
So, if I do angular.module('myApp').filter(...) it should work?
 
Yes, one sec
Goddamnit JS I want dict comprehensions or dict map/filter/reduce:P
 
> A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. - Douglas Adams
in no context to the current discussion. shit. that looks bad
 
Fair enough.
 
12:05 AM
Glad to help :)
 
I got the technique I used from several places.
Anyway, thanks.
 
You're very welcome, Angular has somewhat of a curve :/
 
Also some bullshit documentation
 
@RyanKinal Yeah, it's usually pretty out of date and problematic. I usually just go to the source code.
 
Can filters declared like that have access to the parent scope?
 
12:24 AM
Yeah
 
@rlemon nice
 
> "That." - She
 
> "Growing up is merely watching your heroes turn human right before your eyes."
Ouch.
 
1:07 AM
"That." - Your momma
 
If I play Assassins Creed III will it be ruined if I don't play I and II first?
 
From what I've heard, no
 
Oh good. I got a bunch of games from my friend last night when I bought his PS3 and he said to play this one first, then batman, then god of war, then dantes inferno
 
...
ass creed first instead of god of war?
play the ps3 exclusives man!
also ass creed III is ok to play w/o having played the others
its a new character
same with black flag
 
1:24 AM
Hello All.
 
@RUJordan dude you need to play last of us
 
That's what my boss said, he said it's like, the greatest game ever made
I think I'll play Dead Island though
 
eh dead island is ok
Last of us just has an amazing story
its really good
 
whats it aboot?
 
world has gone to shit from a fungal "virus"
turns people into zombies
you are escorting a girl somewhere
 
1:28 AM
sounds cool!
 
it really is
some great exclusives are God of war, Last of Us, Infamous, Little Big Planet
shit theres another really good one
 
I liked prototype better than infamous :3
 
cant remember the name now won game of the year last yaer
Journey!
that game is great man
its liek a 2-4 hour game
its really cool
 
How to reload a JQ Grid from a jsonstring?
any idea please?
 
if I knew Id be a millionaire
 
1:32 AM
Have you tried rewriting it with MooTools?
 
That may not be the correct way I guess
 
If I knew MooTools Id be a millionaire
 
Billionaire.
 
Junior Vice President
 
1:46 AM
Junior assistant to the Executive Vice President*
 
2:06 AM
0
Q: How to solidify understanding of HTML/CSS/JavaScript?

AerovistaeA few months ago I started teaching a class in Python, and before I did so I made certain that my understanding of the language was rock solid. I went through every feature of the language, tested everything, experimented, read many blog posts, searched out every nook and cranny, and now I've fou...

 
2:37 AM
hmm might add a bass "shake" effect
 
@Loktar WOW
 
thanks :)
I just changed the spectrum movement a bit
looks cooler imo
 
Not a lot of code either....... I haven't done much with canvas
@SomeKittens wtf
 
@Loktar Seriously impressive.
Also kinda reminds me of dandruff.
 
2:49 AM
@Loktar yeah, i will say... the snow did start to hurt my eyes as the song was coming to the end, that could just be me though
 
@SomeKittens haha
hmm yeh idk I could do more with it
 
OH: "We're monkeys, all we want to do is have sex!"
*elsewhere*: "WHY WHY WHY GOD WHY?!"
 
Very bug. Such annoying.
this.collection.delete(...
breaks old Android
@Loktar that's magic!
 
hah thanks
 
change the music to this:
 
3:05 AM
anyone use the latest bootstrap?
 
@phenomnomnominal hah that would be cool
 
3:33 AM
Just found a gold mine
 
yeah bad lip readings are awesome man
I watched them like crazy during the elections
 
They have politicians? I just keeps getting better an better. :D
 
> <noscript> alert('We require additional Javascript'); </noscript>
This makes me feel smart
 
3:44 AM
!!s/We require additional/NEEDZ MOAAR/
 
@phenomnomnominal <noscript> alert('NEEDZ MOAAR Javascript'); </noscript> (source)
 
0
Q: Creating multiple category drop down

clestcruzI'm trying to figure out on how to create a multiple category drop down to filter different types of post Here is an image of my work in progress http://i255.photobucket.com/albums/hh140/testament1234/multiple_category_zpsa93a6f33.png The category highlighted in a red box shape doesn't seem to...

 
4:00 AM
@DannyBackett
 
4:50 AM
Hi, guys... GM
 
5:04 AM
 
@JuzzCoding when are you coming ?
 
@AbhishekHingnikarWhen do u want me to?
 
right now * ?
i sent u a formal invite it said 10-5 -_- soonest thebest
 
:\
uhmm.. hold on
5 mins.. i'll tell u
 
@JuzzCoding college leave?
 
5:18 AM
Lol, we never go college
:P
@AbhishekHingnikar I think, i'll have to go to college today, my Exam form hazn't been forwarded :\
 
@JuzzCoding o_O call ur Incharge
 
After that, i'll cum
 
Even mine hasn't been forwarded, they said kal parso ho jayega
 
kuch logo ka ho gaya hai..
I think, i should..as my friends are going n i have some Attendance issue
 
confused...
 
5:21 AM
@AbhishekHingnikar Wen will u launch it?
@CJRamki :P
 
:-O
what launch... ?
 
@JuzzCoding 27-28
@JuzzCoding oookay
 
@AbhishekHingnikar Waht ? I thought u'r done, n u'll launch it today ??
:O
 
@JuzzCoding are u forking kidding me ?
 
@AbhishekHingnikarokay, so what are your plans for today ?
 
5:33 AM
design, egrnomics
 
5:47 AM
Listen bhai, i can't come today ... will be feasible tomorrow for me
@AbhishekHingnikar
 
5:57 AM
:P
nah dont come tomorrow @JuzzCoding
 
@AbhishekHingnikar then will be possible only after 1:00 p.m. today, fine?
At 4:00 p.m i need to go to KT's home and before taht college
 
@JuzzCoding no worries :P
we shall talk later on it :P
 
okay
 
@JuzzCoding Gm
 
@JuzzCoding call me in evening :]
and well manu is also late x_x
 
6:11 AM
@gamex Morning.
@AbhishekHingnikar okay.
 
@JuzzCoding You seem busy
 
@Gamex :P
Nope
 
@Shea Command martyhugginsdarkestsecret learned
 
!!tell AbhishekHingnikar martyhugginsdarkestsecret
 
@Shea Invalid /tell arguments. Use /help for usage info
 
6:20 AM
Can we stop media queries.
 
@AbhishekHingnikar On October 23, 1996, at 2:11 P.M., I farted in a very crowded elevator and blamed it on a war veteran.
 
on media queries
 
@CapricaSix what the hell ?
 
How can we stop media queries on mobile devices.
 
@AbhishekHingnikar that message you posted on 1996?
 
6:25 AM
@AbhishekHingnikar wow that bot's dirty
 
@Shea yikes
 
But in all seriousness, The Campaign is a funny movie
Well, it has it's moments
 
@Rafee stop media queries.............>?
@Rafee remove meta viewport tag?
 
@connor.js I did that.
 
<meta name="viewport" content="width=1024">
?
 
6:36 AM
oh!, I forgot to clear cache..
damn.
Thanks man!, connor.js
 
0
Q: Novice to node.js, what is the advantage gained using callbacks over events?

JogI am a novice JavaScripter and have no real knowledge of what goes on inside the V8 engine. Having said that, I am really enjoying my early forays into the node.js environment but I find that I am constantly using events.EventEmitter() as a means to emit global events so that I can structure my ...

 
7:25 AM
@BartekBanachewicz Nudge #2 registered.
 
7:47 AM
0
Q: Trying to fix multiple category drop down

clestcruzI'm having some problems trying to fix my category drop down on the website i'm developing. Basically one drop down filters has "Sort by Location" and the second one is "Sort by Price" The first one is working correctly which is "Sort by Location" but the second one doesn't. It is loading all the...

 
@Feeds fack off
 
8:42 AM
Hi guys, I have a quick question about response.end();
I have the following program `var server = http.createServer( function(req, res) {

console.log("Request received.");

res.writeHead(200, {"Content-Type": "text/plain"});
res.write("Hello World\n\n\n");

fs.createReadStream(process.argv[2]).pipe(res);


});
server.listen(8000);`
And I wanted to put res.end(); after the fs.createReadStream, but what ends up happening is that res.end() activates before fs.createReadStream
is there a way to make res.end() wait for createReadStream to fnish first?
 
@krikara does createReadStream take a callback or return a promise?
 
Maybe something like
var s = fs.createReadStream(process.argv[2]).pipe(res);
s.on('end', function(){ res.end() })
?
 
perfect ! thanks
Getting used to nodejs is tricky ~
 
9:13 AM
I want to use grunt-contrib-compass in my main package and a dependency, but trying to run grunt on a sub dependency causes grunt to say: Local Npm module "grunt-contrib-compass" not found. Is it installed? Does anyone know how to run grunt on sub dependency and have the dependencies resolve appropriately?
 
did you npm install grunt?
without the -g?
 
yea, it works fine on the top level dependency
but trying to run grunt on node_modules/mycomponent
gives me that error
 
I don't understand what's your setup
 
i have multiple repos
and one core one
i want to run grunt on the other repos and the core one for production
how do i build my sub repos
 
I still don't get it
 
9:22 AM
I have: mycorepackage, I npm installed myotherpackage, myotherpackage2... all 3 of them have build processes to compile js and css files. now mycorepackage is what all my web logic goes through. therefore I need to pull my other 2 packages into it. I also need to run grunt on the other 2 packages.
 
don't you have grunt as dependencies of myotherpackages?
 
yea of course
and standalone they totally work
but when they are sub-dependencies i can't run grunt on them
 
if you do ls node_modules/myotherpackage/node_modules/, do you see grunt?
 
this is because they share grunt plugins
and probably grunt too
 
9:25 AM
and they are missing when you look at node_modules/myotherpackage/node_modules/
so i'm not quite sure how to run grunt on these dependencies
 
in node_modules/myotherpackage/package.json, is grunt in dependencies?
 
yup
but because of semver, grunt is placed one level up
 
I m new to website building (though have loads of backend dev exp in java/c++). I want to preload all the html files in compressed format. How do i do this?
 
and loadNpmModules doesn't go up a level and look
 
@Parris open a question on stackoverflow.com
 
9:32 AM
already did, with lack of real response sigh thanks though
 
open an issue on github.com/isaacs/npm then :P
 
haha
 
with all the info that you gave me :)
honestly, they're quite responsive.
 
hah ok cool! thanks
 
Any help for me guys?
 
9:35 AM
@ThoughtfulMonkey well.. compressing html is a bit tricky
 
@ThoughtfulMonkey: I'm not sure what you mean by a "compressed format". Could you clarify?
 
hai
i need helpz with java
 
HAI!
 
@FlorianMargaine Zirak is afk: learning to fly
 
9:36 AM
can any1 answer my query???
 
@CapricaSix Err, what?
 
!!afk
 
@Zirak Look at what the cat dragged in...
 
Oh, manual return?
 
okay...
 
9:37 AM
@ThoughtfulMonkey you could potentially write a script that pulls in all your html files and dumps them in a compiled html file.
 
@Zirak wt is ur query...??
 
i put tis code
import <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
class $$ {
static void main(String[] args) {
$('#foo).get(0).innerHTML = "hai"
}
}
y it no work????
 
add a ; after "hai"
lol noob
 
OMG U GENIUS
I MAEK TMPL 4 U
 
9:41 AM
@Qantas94Heavy I have defined HTML code for all my pages. All I want to exchange in my application is data with the server. After first load no further htmls should be loaded. i read somewhere that we can do this with JS - may be using templates.
However when i read about templates, i discovered that its an obsolete concept.
 
it's not obsolete by any means
you just haven't found the new ones
 
oh ok.. to add, I have already used backbone in my app to exchange data. Question is - should i put complete html inside the template?
 
thanks @FlorianMargaine. Lemme have a look and then I will come back
 
hi all
how can i update the cookies
 
9:50 AM
@rlemon yeah it was on tinker.io, I'll try and remake it.
 
@ThoughtfulMonkey sorry, I meant this one youtube.com/watch?v=fqULJBBEVQE
 
:) I was waiting for the right context to kick in
 
@ThoughtfulMonkey @FlorianMargaine uhhh, while I think those concepts are great I think its too early to be dev'ing that way. I think realistically he can just wrap his HTML in "<script id="entry-template" type="text/x-handlebars-template">" tags
 
woah, lots of github stuff.
 
@Parris please tell me more
 
9:56 AM
@ThoughtfulMonkey checkout: handlebarsjs.com
@ThoughtfulMonkey it is a template language. You can read and evaluate the templates in javascript.
 
okie. time to take a break from coding and read
 
haha, good luck :)
 
-3
Q: Canvas to PDF without javascript

Oliver Adami have a problem. I make diagramms using Canvas and Javascript. Is there a way to convert the website into a PDF file without javascript activated from the client. So i produce the PDF on the server. It would be also possible if i can make a picture from the website.

does this question deserve better score than it got?
 
Does java script set order sequence to call that function
 
What is "that function"?
 
10:02 AM
@chintankhetiya context?
 
@JanDvorak probably, it sounds like phantomjs but outputs a pdf?
 
@SomeGuy @JanDvorak I am using HTML 5 database , in order to insert record i am calling two function in SuccessCallBack(); , second function calling before the process of first
 
@chintankhetiya code?
 
@Zirak I filtered them out for you
except the zalgo one
 
10:09 AM
 
@JanDvorak I am insert a record while user create his account , and after that i am switching them to login page ,
 
@chintankhetiya The functions are called in the expected order. Most likely the first one is asynchronous. Does it accept a callback or return a promise?
 
@JanDvorak Yeah , it will call as per the condition but sometime its not , and i don't know why
 
@chintankhetiya you need to know when the first function is done before you call the second
 
let me check what i can do
 
can anyone tell me what does
3 hours ago, by Caprica Six
@BartekBanachewicz Nudge #2 registered.
mean?
 
probably a bug
 
@JanDvorak Yes, definitely. Considering the shit that is asked
 
0
Q: Is internet required to install gui like kde?

Naushaad AbbasMy question is that is internet required to install GUI in Linux distros like cenos 6.4 or Ubuntu server using command line.

 
10:22 AM
@SomeGuy haven't we had one like this guy before?
 
oh lol wat
> Moreover. The GIF89a=\t0\t;;;; string (in C notation) can turn your JS code into a valid GIF so that you can upload it to an image hosting and then include it with <script> tags with no limits.
 
@mikedidthis Yeah, lots of cannibals. I don't remember any who hid in caves and all, though
 
@BartekBanachewicz nice
 
@SomeGuy lul, that's his niche.
 
Hahaha
 
10:24 AM
@BartekBanachewicz why four semicolons, though?
 
@JanDvorak They are a printable character that fits something in binary, and are valid JS, I guess
 
!!wiki gif
 
The Graphics Interchange Format (better known by its acronym GIF; or ) is a bitmap image format that was introduced by CompuServe in 1987 and has since come into widespread usage on the World Wide Web due to its wide support and portability. The format supports up to 8 bits per pixel for each image, allowing a single image to reference its own palette of up to 256 different colors chosen from the 24-bit RGB color space. It also supports animations and allows a separate palette of up to 256 colors for each frame. These palette limitations make the GIF format unsuitable for reproducing c...
 
=\t0\t define the logical size. The next byte should specify the palette type, but I can't find the spec
 
@rlemon Google Doogle Dr Who : google.co.uk
 
10:33 AM
Hi! Any Grunt ninjas wanna help a rookie out?
 
!!welcome qwerty
 
@qwerty 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.
 
@mikedidthis rofl... they made a real game
 
@FlorianMargaine yep, its impressive, like most of the doodles
 
I've got Grunt setup with the grunt-contrib-uglify module to minify my Javascript. It works great when i want to compile one or more entire folders into one big file, but i have one folder that i would like to compile into individual files. So file1.js would become file1.min.js, file1.js would become file2.min.js etc automatically. Basically, if my source path is js/*.js, is it possible to do something like js/dist/*.min.js for the result path?
@CapricaSix Thanks for posting the rules
 
10:45 AM
@qwerty Hmm, you want to compile multiple files to multiple files? I never actually did that with grunt-uglify
You can always write your own task
 
Exactly
Seems like an obvious feature, but it doesn't seemt o be implemented
 
uglify: {
        files: {
            src: 'js/*.js',
            dest: 'jsm/',
            expand: true,
            flatten: true,
            ext: '.min.js'   // replace .js to .min.js
        }
    },
 
@BenjaminGruenbaum Awesome, i'll give that a shot
 
!!should I relax and read xkcdb or work on the bot
 
@Zirak You should relax and read xkcdb
 
10:49 AM
@Zirak Hey! What's up?
 
It was a nice week. Went by fast.
 
did you learn to fly?
 
Bobby said not to tell
That made sense in my head
However! A roommate and I did come across an interesting point: "Toodeloo", goodbye in British, sounds insanely like "to the loo!"
So storming bathrooms may have been a British pasttime.
@mikedidthis Any comments in the matter?
 
@Zirak We do drink a lot of tea, apparently.
I was hoping somebody could clarify something for me. I have a jQuery object full of checkbox elements. I'm going to loop through them and grab the name attribute of each one. In jQuery, I should be doing this with .prop("name") I believe, but I was wondering how to do this with plain jS..
 
elements.map(function (elem) { return elem.name });
 
10:59 AM
Is .map a method of all elements?
 
no, you must use [].map.apply
 
No, only of arrays.
!!tell Dan mdn Array.map
 
(or set up a NodeList.prototype.map function)
 
Sorry, I meant is map a method of all arrays ^
 

« first day (1133 days earlier)      last day (3830 days later) »