« first day (808 days earlier)      last day (4145 days later) » 
00:00 - 17:0017:00 - 23:00

12:04 AM
Bonne année tout le monde ! :-)
Bonne année, bonne santé, meilleurs voeux et plein de bonheur :-)
 
Happy New Year everyone \o/ Hurray!
This year's resolution is to double my reputation points ;)
 
12:20 AM
Happy New Year! :-)
 
That's so 13 hours ago
 
Anyway...gist.github.com/4406317 and here is the raw js: gist.github.com/raw/4406317/…, best wishes! :-)
 
Nice :P
 
 
1 hour later…
1:38 AM
If someone could take a look at this, I would appreciate it :)
http://stackoverflow.com/questions/14107104/jquery-throws-a-typeerror-using-typeahead-updater-parameter
 
@DJDavid98 - replace jquery.min.js with the full jquery , use the min after you fix all bugs
 
replaced it now
I would start a bounty right now, but I have to wait 2 days...
 
if the question is still up in a little bit ill look into it , Im right in the middle of something , it is the code for selecting something from the dropdown that is throwing exception , I didn't have time to look to far into it
 
Thanks @ScottSelby.
 
you call .val() on something undefined somewhere when selecting an item from dropdown
where would that code be , which .js file ?
 
1:47 AM
It's linked in the question, but here it is:
tagguide.js (line 20-46): http://djdavid98.zymichost.com/js/tagguide.js
I only call val on $(this), nowhere else
Or is it...

    $('#findname,#findpony').on('keyup',function(){
    	if ($(this).val() == '' || String($(this).val()).length < 2){
    		$('accordion-body.in').removeClass('in');
    	}
    });
 
chrome debugger says line 29 is the problem
updater : function(item){
hold on ... ill find it
 
okay, thanks
 
2:04 AM
its this line
$('#ponies li:contains('+$(this).val()+')').parent().parent().parent().addClass('in');
try
$('#ponies li:contains(a)').parent().parent().parent().addClass('in');
that would simulate what the value would be if you only typed in "a" in the text box , if that works then you need to get val() of $('#findname') instead of $(this)
@DJDavid98
 
back
I'll test instantly with $('#findname').val(). I was actually expecting to get #findname's value with the way it is now
 
I've never used that typeahead thing before , but there may also be a problem calling .attr().attr().typeahead()
I know that is what was supposed to happen , but $(this) is returning null , maybe because of attr().attr()
 
No, nothing in my script uses 2 .attr()'s
 
you're right , but still when its after even one attr() , jquery may thing that you want the value of that attribue
$('#findpony').attr('placeholder',function(){
		if (lang == 'hu')	{ return 'Póni alapján'}
		else				{ return 'By pony'}
	}).attr('title',function(){
		if (lang == 'hu')	{ return 'Kiválasztáskor kinyílik az adott pónit kedvelők listája'}
		else				{ return ''}
	}).typeahead({
		source	: ponylist,
		updater	: function(item){
			$('#'+$('div.accordion-group > div > a.accordion-toggle:contains('+$(this).val()+')').attr('id')).addClass('in');
			return item;
		},
	});
yea - there is 2 there
 
where exactly?
 
2:13 AM
$('#findpony').attr( .... }).attr('title',function(){ ...
 
oh yeah, right
i'll have to switch the order then
changed the order, still nothing
this is very interesting
it had nothing to do with the order
 
no , it won't
still no luck
 
me neither
 
you try just replacing the whole $(this).val() with just a simple 'a' ?
 
You see, I can't replace it in
$('#findname,#findpony').on('keyup',function(){
	if ($(this).val() == '' || String($(this).val()).length < 2){
		$('accordion-body.in').removeClass('in');
	}
});
now it's sent, but with a bad value
 
2:29 AM
thats not the line with the error
 
wait, refresh, look at the console, and check the logged data
turns out i have to use item
 
cool - guess you got it working - im in the middle of too many things , i promised to have this app done by the 1st :(
 
no prob, seeya and thanks for your time.
 
3:03 AM
posted on January 01, 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) {} WOOHOO! Good riddance 2012! Hello 2013!

 
3:40 AM
Happy new year beautiful Javascript ppl!! haha
2
Javascript rocks
 
4:24 AM
LOL is anyone on stack overflow right now?
 
can someone look at my code and tell me why I am getting Uncaught TypeError: Object #<HTMLBodyElement> has no method 'css'
`function grabColors() {
var colorArray = new Array();
var body = $("body");

console.log(body);

body.each(function(index, node){
console.log(node);
getColorsFromChild(node);
});
console.log(colorArray);
}

function getColorsFromChild(node) {
var bg = node.css("background-color");
var bg2 = node.css("background");
var color = node.css("color");

if ($.inArray(bg, colorArray) == -1) {
colorArray.push(bg);
}
if ($.inArray(bg2, colorArray) == -1) {
colorArray.push(bg2);
}
if ($.inArray(color, colorArray) == -1) {
getting it on var bg = node.css("background-color");
 
4:41 AM
@Raptrex Are you using jQuery?
 
yes
 
What's being passed into node?
Does it need to be $(node)?
Or is it already a jQuery object?
 
Happy new year everyone
@Rlemon my pen got featured lol I bet it was due to reddit :P
 
i'm assuming its a jquery object with var body = $("body");
 
@Raptrex Are you expecting multiple body elements on one page?
 
4:44 AM
no
 
So then why are you using the each method?
Also:
!!/tell Raptrex format
 
@Raptrex Format your code - hit Ctrl+K before sending and see the faq
 
i tried using body.children()
 
@Raptrex Are you trying to access the body's children? Right now you're iterating through each instance of body elements on the page
 
yes i want the body's children
but body.children() didnt work
 
4:55 AM
$('body').children()
 
 
1 hour later…
6:12 AM
var year = 2012;
 
year++;
 
(++year).init("happy");
print(year);  //2013
 
6:26 AM
@PremshankarTiwari, u came now... I was waiting since long. Did you check "Secrets of JavaScript Ninja" released. I saw the tweet yesterday itself
 
 
1 hour later…
7:29 AM
Happy New Year :)
 
 
1 hour later…
8:52 AM
so this is what 2013 feels like
 
The future...
 
it feels mostly the same as yesterday
 
Yeah wee bit
It's 10PM here already, so kinda over the excitement
 
yeah its 10 am here and im pondering what i should start this new year with
also, i have a badass hangover
 
Then, start the new year with a drink
 
9:07 AM
i refuse
i shouldnt have had any drinks yesterday, in all fairness
 
You probably should have
 
 
2 hours later…
11:09 AM
Happy new year geeks!
 
you too, king of nerds
 
@limelights i'd prefer tony stark :P
smaller then typing "king of nerds & or geeks"
 
Happy New Year
 
Counter Strike is pretty fun
 
Come on people it's the 2nd of January, enough with the "Happy New Year"s
 
11:22 AM
You suck, @Abhishek
 
@AmaanCheval i cant play it for more then 10 minuts
@AmaanCheval why ? :3
 
@Abhishek, you do suck
 
why why why ?
 
I went with my friends and played it because of you
 
lmfao
 
11:23 AM
And now I'm going to end up buying it and wasting all my time
 
and lemme guess got addicted
lmfao
buy source or go
 
We used to play it for realsies at school
 
we can play steam \o/
 
I'm going to buy the franchise pack
 
@AmaanCheval :3 dont!
u will completely waste hours playing condition zero
 
11:25 AM
Yeah, it's okay :p
 
:D
 
I'm just 16, it's fine :p
 
i am happy re ignited the fire of counter strike , somewhere :D
 
Holy fuck, you're 16
You poor bastard
 
What?
 
11:27 AM
I'd rather die than be 16 again
 
Uhh, why?
Shit's pretty good right now
 
You just wait
give is 5 years
 
Hahaha, yeah, of course
But doesn't that happen all the time? Finding your old self really stupid?
 
Of course haha
However awesome you think you are now, you'll look back and cringe :P
 
Totally
 
11:31 AM
But hell, I wish I'd been hanging out in here at 16
 
@phenomnomnominal me to
i came here at 18 :-/
 
Holy shit!
 
@AmaanCheval whaaaaaaaaaaaaaaaaaaaaat ?
 
I didn't write my first line of code til I was 19
 
Dr. Who! They played Toxic!
By Local H
@phenomnomnominal I wrote my first at 5
Kidding. 13 or 14, I think
 
11:35 AM
@AmaanCheval same here
13 / 14 - C++
 
I've always been at JavaScript
 
All I did from 13 - 19 was play bass haha
 
Tried C for a while in the middle
 
Started a music degree, decided it was stupid, started engineering and realised I was pretty good at code haha
 
//and the program was

#include <iostream>
#include <conio>

void main(){
  int age;
  cout<<"Enter your age"<<endl;
  cin>>age;
  if( age > 18 ){
    cout<<"You are old ewwwwwwwwwwwww";
  }else{
    cout<<"You are awesome";
  }
}
c++ ... not C :-|
 
11:37 AM
Dude, >= it
You're old too
 
but you can see
 
Fuck you haha
 
my formatting of code sucks since the very beginning
 
I'm not fucking old
 
11:37 AM
@Abhishek I agree
 
formatted it before zirak drops in
and burns me with Hydro floric acid
oh btw @AmaanCheval i found out spending about 30 minuts on xat
that they are all suffering from Dunning Kruger , intensively
 
11:58 AM
Dude, look at the site
I don't know why anyone with a brain would use it
 
12:23 PM
@AmaanCheval then join tapeer make a better site and steal marketshare with html5 and superior features
btw
Array.prototype.forEach.call(thisChat.getElementsByClassName("user"),function(user){
   user.console.log("Hey ",user.name,"have a happy & vanilla filled new year" );

});
 
@ThiefMaster oh wow!
 
@Abhishek You really don't need to use Array.prototype. Just use []
 
12:42 PM
Abhishek this c++ program doesn't compile
Oh, thief already said it.
 
Why do JS and PHP developers seem to be the only groups really motivated to use a JavaScript based chat such as this? ;-) These are the only rooms always crowded.
 
JS and PHP seem to be the most popular tags on SO
It's just what StackOverflow attracts
 
Actually Java and C# are often higher than JS and PHP. And Android is some kind of Java, too. But there is no alive Java chatroom.
 
C++ room is quite alive too
 
But why is e.g. Java chat dead? C# and Java are the largest tags. Would they only using Java applet chat and WPF based chat? ;-)
 
12:57 PM
Hahaha, Java applet chats :D
Worst things the interwebs have ever seen
 
These people just suck, period.
 
1:11 PM
Thief you haven't seen goatse...
 
goatse.ru
Not going to hyperlink it
 
1:34 PM
@AmaanCheval tubgirl?
(don't search in google images. just...don't,)
 
Haven't heard of that one, and I don't really want to know
!!/urban tubgirl
 
@AmaanCheval [tubgirl](http://tubgirl.urbanup.com/1393235) A famous internet photo of a fat asian lady in a bathtub gushing orange diarrhea onto her face and into her open mouth.

Can be found with a quick Google Image Search, but I guarantee you, it will kill your boner.
 
I was hungry before I got here. Good job.
 
1:56 PM
@FlorianMargaine @ThiefMaster try turbo c 3.1
and it compiles just fine :P
 
Nobody should still use that :P
 
it was 6 years ago man
 
But I think some other compilers accept it too (with a warning though)
 
when i wrote my first program
and um my college still use turbo 3.1
 
Doesn't mean you are supposed to use it ;p
 
1:57 PM
they refuse to use visual studio or even g++
 
did they ever tell you why?
 
easy to setup
makes life simple
and they say its the best C++ / C compiler out there -_-~ , [[just cause they dont get visual studio , mingw or other compilers / ide's to work they say its the best ]]
 
wth
 
sad , i know :-(
 
@Abhishek Ask them "why"
 
And a better one: If it is good, why did it die
 
Nah man , i want to pass this semester atleast
so taht when i transfer to canada i have some "relevent" subjects studied for them to even consider transfer
 
They can't fail you
 
// though i'd like to study from scratch imho
 
Ask it honestly and don't be sarcastic
 
2:03 PM
@AmaanCheval they can fuck up my sessional :P
 
The outcome may be hilarious
 
and worse is hte university people check papers like a game of luck
 
Sessional?
 
...they'll fail you because you asked them why they're using a tool?
 
The correction, I agree, is pathetic. I've seen a teacher correct a paper and it barely depends on your answer at all
 
2:04 PM
no they take it as a hate speech or me being "over-smart"
@AmaanCheval dude yesterday in viva the external was looking my facec
 
1 min ago, by Amaan Cheval
Ask it honestly and don't be sarcastic
That's the first thing I learnt in school. Make them look stupid without outright pointing the stupidity out
 
HE : what was your practical
Me : Concept of classes and objects in Java
He : How will you create an object in java [ syntax ]
Me : ClassName objName = new CLassName();
He : what is new?
Me : A keyword that allocates memory for the object being created.
He : No its a keyword to call constructor;
dunno if i was wrong or him but new to call constructor doesnt just makes me feel believable , @Zirak was he right or i ?
 
Both of you are right; he's wrong in saying you're wrong
(also, it's supposed to be new ClassName, but I assume typo)
Anyway, it allocates memory and calls the constructor, with the new object (made from the class) as the this variable.
 
bleh, why doesn't node pass the socket that triggered an event as this?
oh hm, it does.. i wonder why remoteAddress is undefined though..
1
Q: Why is socket.remoteAddress undefined on 'end' event?

styfleI have a simple TCP server as follows: var net = require('net'); var PORT = 6346; var server = net.createServer(function(socket) { socket.on('connect', function() { console.log('Client connected: ' + socket.remoteAddress); socket.write('Welcome to the server!\r\n'); });...

bah.
 
@Zirak :-)
 
2:24 PM
@Abhishek he's wrong saying youre wrong ( in c# - for example ) "Instances of classes are created using the new operator, which allocates memory for a new
instance, invokes a constructor to initialize the instance, and returns a reference to the instance"
first it allocates memory , then it calls new
so if it is you against him , you won first.
 
@RoyiNamir i know but oh well hes external examiner cant say no-nothing :-(
Okay finally just about to order a system , Mac Mini vs Mac 13 " vs M51x vs Build My own with specs of M51x on road
 
whoever created the help for npm needs to be shot in the balls
npm install --help - there should totally be list of available arguments...
 
@ThiefMaster npm --help
 
that just contains the generic help
I meant the arguments of npm install.. such as --save to update package.json
 
nvm
i now see what you mean
where the hell is the cpu ?
 
2:34 PM
0
Q: Instantly make a an existing website mobile friendly using javascript

Khuram MalikI came across one or two "engines" about 1 year ago, that when applied to an existing website, they could dynamically create a mobile-friendly/mobile-specific version the website using (what i presume was) client-side javascript. Unfortunately I didn't bookmark them or investigate them further a...

 
help me :-|
I wann play steam games so, yeah i will need a one where i can install windows
amazingly alien 51x
~ same price as mac mini
has 10x more power!
 
Lesson: Apple's products are overpriced.
Surprise!
 
@AmaanCheval x51 is way bigger though
the mac-mini is way smaller
 
@Abhishek Isn't there a way of playing CS with friends?
Have to create a dedicated server or something?
 
@AmaanCheval yes u can
play on lan
 
2:48 PM
Grr, not on LAN
From home?
 
Hamachi ?
its the most care free way
 
Cool, thanks
 
@AmaanCheval other wise u can use steam but no fun we are hackers ^_^
 
Haha, most of my friends have older non-steam versions
 
i know that (angel)
and u will need the same version as them btw [ atleast major ]
or it wont detect your game because of different versions :P
 
2:55 PM
Oh?
Same version?
 
just google it :-)
 
Like the non-steam version, then?
 
if the major version is same its fine
 
Yeah, saw that just a minute back
But it's about making a dedicated server and shit
 
hehe .. thats why said Lan it :P
counterstrikehamachi.blogspot.in < _ see so much easy
oh hey and tell me the version if u need a sniper back up ^_^ , and ofc ur hamachi clan :D
 
3:01 PM
Hahaha. We're playing 1.6 for some reason :p
They don't like GO or Source, and I haven't played them, so I'm fine with it
 
1.6 is the most lightweight and the most played version anyways , its easy
has some bugs
source kills them
and GO overkills them and makes the game tougher
not to mention GO & Source are both resource whores
-- alenware 51x doesnt have alien fx and avatars in India -- fu dell
 
3:26 PM
yay, first (still rather crappy) version of my node shoutcast clone works (as in: i can stream music to it and connect using winamp)
 
yay node!
 
4:03 PM
0
Q: How to handle GET parameters containing non-utf8 characters?

ThiefMasterIn a nodejs/express-based application I need to deal with GET requests which may contain umlauts encoded using the iso-8859-1 charset. Unfortunately its querystring parser seems to handle only plain ASCII and UTF8: > qs.parse('foo=bar&xyz=foo%20bar') { foo: 'bar', xyz: 'foo bar' } # work...

 
@ThiefMaster see my comment
 
Guys How can I make my site not to be fucked up when user playes with compatibility mode ?
 
@ThiefMaster dude may i test it ^_^
:D , i have better tools :3 [i hope , though u are way better in general]
btw when ur uni-version is done .. lets group on it and nail shoutcast with node.js power \o/ ??
 
FUCKING STEAM!!
It just deleted my Mafia 2 progress from last night!
 
4:19 PM
:O
 
noooooo!
 
@OctavianDamiean thats rare*
you sure u didnt Killdown it ?
 
Never let it check the game's cache file's integrity ...
 
lol
 
Apparently it thinks it has to delete everything to check it.
 
4:21 PM
Guys Guys Guys!!!
suggest me a system -_- and help me how to fix this current piece of crap which is a furnace
 
Ah fuck it ... I'm too demotivated now to start over ... I'm out.
 
@OctavianDamiean aww man
its fine that happens
comon man don't be so low!
 
@AmaanCheval @rlemon You need to blog more
 
Yeah :/
 
Give yourself a schedule
It helps so much
 
4:27 PM
I don't know what to blog about, though
What I'm working on is under an NDA
 
How would you get a value from a radio button form?
would this work, if (theform.harddrive.value = yes)
<input type="radio" name="harddrive" value="yes">yes<br>
<input type="radio" name="harddrive" value="no">no
 
posted on January 01, 2013

Happy New Year!  I am, once again, going to try to blog more this year.  The posts will perhaps be shorter, but I’m shooting for 4-5 posts a week so we’ll see how it goes. glMatrix 2.0 Released Just today version 2.0 of the glMatrix library was released.  If you haven’t heard of it already, glMatrix is a high performance vector and matrix math library in JavaScript, mostly f

 
@AmaanCheval Ok, NDA could be a problem, but there's so much more! Currently I'm whining about the state of mobile.
 
@AmaanCheval DID IT WORKD ?
the cstrike fix _ ,, answer
 
@Abhishek No, not yet
@SomeKittens Yeah, I can't even think of things to whine about right now
Once I start, I'm sure I'll manage to find plenty
 
4:35 PM
@AmaanCheval Lucky!
 
@SomeKittens i have tons but need a writer
css experiments mostly though
 
Why do you need a writer?
 
cause my english sucks , i have no time to type / explain / even create a page
 
Huh. What would you do?
 
@SomeKittens play games , study , code , code code code code code code , eat sleep
 
4:49 PM
^ basically the same as me , only insert "read manga" somewhere
 
Dafuuk!!!
The Wow! signal was a strong narrowband radio signal detected by Jerry R. Ehman on August 15, 1977, while working on a SETI project at the Big Ear radio telescope of The Ohio State University then located at Ohio Wesleyan University's Perkins Observatory, Delaware, Ohio. The signal bore expected hallmarks of potential non-terrestrial and non-Solar System origin. It lasted for the full 72-second duration that Big Ear observed it, but has not been detected again. The signal has been the subject of significant media attention. Amazed at how closely the signal matched the expected signature ...
 
damn any line of code i add to this form breaks the entire thing
hate my life XD
 
it most likely was some spy satellite
the concept of catching alien radio signal is actually an extremely far-fetched idea
 
^ awwh thats what my idea was , i commented on facebook "Soviets"
 
00:00 - 17:0017:00 - 23:00

« first day (808 days earlier)      last day (4145 days later) »