« first day (856 days earlier)      last day (4092 days later) » 

12:00 AM
@JanDvorak It has been ages since i've used a real array. I rarely see cause
 
@BenjaminGruenbaum By the JVM?
 
@copy JIT :( I'm tired
 
@BenjaminGruenbaum sure, but Copy wanted real arrays
 
@BenjaminGruenbaum I thought that only works with object literals and prototyped functions
 
Anyways, I love JS' infinite arrays, especially when golfing.
 
whats wrong here ? marginRight: 15,if(browserName=="Microsoft Internet Explorer")
i get this error SyntaxError: missing : after property id
its indicated after (
 
So many things :/
 
you seem to be mixing object literal syntax with normal imperative code
 
@BenjaminGruenbaum Holy shit ... that's new to me
 
@copy Now that's something I thought I would never hear you say
 
12:07 AM
how can i make the if statment after this comma ?
 
Depends on if you are inside an object literal context or in an imperative code context
 
marginRight: 15,if(browserName=="Microsoft Internet Explorer"){....} , ...
 
@echo Not even I understand you, so how could a computer?
 
Internally V8 javascript has plenty of types for integers
v8 is very well documented, I learned a lot from going through the source
 
12:11 AM
chart: {
                renderTo: 'wfa_b', marginRight: 15,if(browserName=="Microsoft Internet Explorer"){<?php echo "marginBottom: 60" ?>}else{<?php echo "marginBottom: 65" ?>} , marginLeft: 60},
its right to do if there ?
i get this error SyntaxError: missing : after property id
 
No... an if is not valid inside an object literal. Moving it outside is the best solution 4U
 
The most annoying thing is that v8 javascript has a lot of methods it doesn't expose to not mess with standards, stuff like startsWith contains, etc.
 
Would it break the standard if it did expose the methods?
Oooh, namespace clash.
 
I think so, also it has a bunch of stuff I never knew existed and never used (some methods are just stupid)
!!> "hello".anchor("http://world")
 
@BenjaminGruenbaum "<a name=\"http://world\">hello</a>"
 
12:16 AM
Perhaps from the ancient tombs of Web 0.5
!!> "a".bold("c")
 
@JanDvorak "<b>a</b>"
 
@Echo_me aka goodmood: will you ever learn Javascript?!
 
@ThiefMaster i will learn :) , i just want fix this in this night :) while childs are sleeping :)
 
!!> Object.keys(String.prototype).join(" ")
 
@JanDvorak ""
 
12:18 AM
oooh, they're not enumerable
 
!!>Object.getOwnPropertyNames(String.prototype).join(" ");
 
@BenjaminGruenbaum "length constructor valueOf toString charAt charCodeAt concat indexOf lastIndexOf localeCompare match replace search slice split substring substr toLowerCase toLocaleLowerCase toUpperCase toLocaleUpperCase trim trimLeft trimRight link anchor fontcolor fontsize big blink bold fixed italics small strike sub sup"
 
wow
!!>Object.getOwnPropertyNames(String.prototype).sort().join(" ");
 
@JanDvorak "anchor big blink bold charAt charCodeAt concat constructor fixed fontcolor fontsize indexOf italics lastIndexOf length link localeCompare match replace search slice small split strike sub substr substring sup toLocaleLowerCase toLocaleUpperCase toLowerCase toString toUpperCase trim trimLeft trimRight valueOf"
 
You can read it here though: code.google.com/searchframe#W9JxUuHYyMg/trunk/src/string.js It comes with actual readable source code.
 
12:20 AM
"actual readable source code " sounds weird :-)
 
from V8 source:
    // var $Object = global.Object;
    // var $Boolean = global.Boolean;
    // var $Number = global.Number;
    // var $Function = global.Function;
    // var $Array = global.Array;
    // var $NaN = 0/0;
 
how to fix this please:
margBot = <?php echo "marginBottom: 60" ;?>
i get this SyntaxError: invalid label
i know its not valid , but i want to get it like that
 
WAT??? Is that before or after it passes through PHP? Neither makes sense
 
any work around to get marginBottom: 60
 
Did you just invoke PHP to write a static piece of string? WHY???
 
12:25 AM
better to use js :)
i didnt find how to do it in js :)
 
Is that an object literal context? Then margBot: "marginBottom: 60". Otherwise, try margBot = "marginBottom: 60"
 
thanks Dvorak its only you who is helping me
 
I will cease and desist
I don't want to start a fire or make you think your code is not terrible.
I should go to sleep now as well. Bye
 
both they didnt help Dvorak
margBot: "marginBottom: 60". nor margBot = "marginBottom: 60"
 
@JanDvorak bye :)
 
12:33 AM
my last question and i go to sleep , please how to fix this
if(browserName=="Microsoft Internet Explorer"){margBot= "marginBottom: 60"}else{margBot= "marginBottom: 65"};
i want margBot= "marginBottom: 60" and i dont know if its right this statment
 
It is not right
 
Braces should only appear on the left if ()\n{, not on the right
 
Echo_me is goodmood?... Explains so much.
 
@BenjaminGruenbaum i found solution for it
margBot= new String (["marginBottom: 45"]);
 
@echo_me You're trolling. I'm ashamed of how long it took me to figure this out.
You had a good run, I admit it.
 
12:48 AM
Are there any good ways to listen for a live change in a text input field?
 
@lawm attach key up and key down event listeners to it?
 
@BenjaminGruenbaum I would think there's a better option.
Not necessarily listening
like an event (if I am not being redundant)
 
@lawm That sounds like listeners
 
$("#tbox").on(change)?
oh
 
Event emitters implement a pattern that is called 'Publisher/Subscriber'
 
12:51 AM
But for things like live form validation
lets see
 
Your '#tbox' element publishes the fact it has changed, and your code in other places and elements that subscribed to it gets what your 'tbox' element published.
 
@BenjaminGruenbaum I'm unsure of how to put it in a listener format
 
If you're already using jQuery you can listen to $('#tbox").change() but that won't help you much because it only updates on focus. I'm sure google will have plenty of answers with elaborate solutions.
 
I tried :(
 
@lawm first google result
3
Q: jQuery Listen For All Text Input Changes

spryno724I have an input element within a form which I would like to be able to extract its value when the value changes. Take a look at this Fiddle: http://jsfiddle.net/spryno724/WaBzW/1/. By using the change event, I am able to display the value from the text input when the input looses focus. However,...

 
12:56 AM
Are there any other methods besides key listeners?
I'll try this one for now.
 
@lawm it is an event.
 
ok it worked thanks for the google search :)
 
Perl is written in base64
 
i read a lot of articles and for someone JS is object-based, and for someone JS is object-oriented, so what is true?
 
@Srle Javascript is an Object Oriented programming language. It implemented inheritance in a different way. Javascript objects inherit from each-other unlike Java/Python/C++ where classes inherit from each other
 
1:08 AM
Also called a prototype based language :)
 
2:01 AM
Anyone here a mootools user? I'm wondering why new Fx.Tween(growId, {property: 'height'}).start(newHeight); would behave as expected, while $(growId).tween('height', newHeight); doesn't seem to have an effect?
also: Both of those are working for me when adapted for tweening 'width', but only the first works for tweening 'height'
 
Sounds specific enough for an SO question to me
 
I'll have to write one up here in a little bit
 
3:06 AM
^ I want to star that but I'm on my phone :(
 
php is good
 
 
2 hours later…
5:09 AM
Is someone chatting via the SO Chatbot or has the age of Skynet dawned upon us?
 
6:02 AM
@ShyamK The bot says a bunch of preconfigured things when the room goes silent
 
6:13 AM
Ahoy hoy
 
@all Hi gud morni.. Can anyone help me with this.. stackoverflow.com/questions/14930441/…
 
Wow that's ugly.
jQuery has a .focusout method
I'm not familiar with dojo, but it shouldn't be too hard to just append a focusout to the same trigger as your popup
No. I can't help you.
May god have mercy on your soul
 
Hahahaha
 
Sup @AmaanCheval
 
 
6:22 AM
Studying for my exam today. You?
 
Working on... nothing. I keep finishing the tasks I'm assigned too quickly
It's frustratingly boring to have nothing to do
What's your exam on?
 
Haha, can't you ask for bigger tasks?
Math
Haven't done a thing since my last exams, and I've probably forgotten most of what I'd done then as well
 
I have. I don't think they trust me yet. Only been with this company for three weeks
 
But it shouldn't be too hard to figure it out
 
lol
 
6:24 AM
Ah
Well, how about hobby projects?
 
Got a few, but I can't exactly do them at work. That'd be unethical... wouldn't it?
 
Oh, right right
So basically, you're doing multiple tasks a day (possibly), but you'd prefer to do a single task that takes longer / takes more effort?
 
Roger
that being said, I'd welcome an intersting jsfiddle
 
I had an idea earlier to make a bookmarklet to improve this chat's mobile interface
You could try doing that
Or do something like, append a string containing <div id='a' class='b'>Text</div> to the DOM without built-in features like innerHTML or insertAdjacentHTML
 
I said 'interesting'
 
6:31 AM
It's an interesting problem to me :P
 
But thanks for trying :P
 
Done.
That's as far as I got
The problems are quite fun
Plus you learn a ton about Math
 
Genus!
Thanks
 
You're welcome
 "(I'm|I am) funny": "I am so far from funny that I actually make nearby milk crawl up\
 people's noses",
Hahahaha
  "CEO": "head cheerleader",
XD
Okay, I'm done spamming the chat for a while.
 
6:48 AM
TypeScript will outdate javascript
 
 
 
3 hours later…
9:48 AM
I'm wondering if this chat is usable from my cellphone. Chatbot, do you have anything controversial to say?
 
10:26 AM
!!/live
 
@phenomnomnominal I'm not dead! Honest!
 
10:44 AM
0
Q: "new" operator before declaring function

vaseechLike explore javascript as my first reference to the whole programming but as i'm not the professional can't comprehend a lot of stuff. So it would be so much appreciated if someone can explain what actually happens behind the scene. In body tag i declared two functions one with "new" and ano...

 
hi, can I post here a question concerning Extjs 4?
 
11:01 AM
!!> console.log("extjs".match(/js/) ? "yes" : "no");
 
@phenomnomnominal "undefined" Logged: yes
 
11:20 AM
0
Q: General Review -> HTML5 Game Engine

elias94xxA few weeks ago I began coding my own little HTML5 game engine. There were a bunch of things I noticed that I used over and over again in my games and applications which I wanted to unify. For example: Consistent game loops Preparation utilities (preload, include, etc.) Layer handling (z-inde...

 
How can i use Google GeoCode API client , when im using requireJS , im following this SO question stackoverflow.com/questions/2921745/… , so i do , googleapi = require("http://maps.google.com/maps/api/js?sensor=false") , then how do i do this : var geocoder = new google.maps.Geocoder(); ? in requireJS ??
 
Python is for people with guttheria
 
Why I CANNOT ask questions anymore ??? I CAnnot understand
just 1 bad question and account banned WTF
 
11:38 AM
haha, what the hell? blog.moovweb.com/2013/02/…
 
@SOChatBot guttheria? what is that?
 
@sop auto-question-banned or mod-suspended? either way, that must have been a terrible question.
which site? You are pretty asktive on SO.
perhaps you've just run out of the daily quota (3 questions/day, IIRC)
 
11:59 AM
@SophiaLondon -4, -4, -3 - that's more than one bad question. and the fact that you have zero answers might also count against you
 
posted on February 18, 2013

Over the weekend I finished the first two CSS compatibility tables new style: selectors and columns. These tests are almost complete (a few selectors are missing), and have been executed in 40 or so browsers, desktop and mobile. New CSS tests This is the first release of my new CSS tests. When I secured sponsorships from Microsoft, Google, BlackBerry, and Nokia I promised them to extend my

 
@ThiefMaster Peasants can't find Sophia's deleted questions, right ?
 
right, unless they have a link
 
Ok, so it wasn't really possible for us to answer her.
0
Q: jQuery don't find elements

row248I have this js code: (function($, undefined) { $("a").click(function(event) { //or another elemtnt alert('Hello!'); }) })(jQuery); And of course link: <a href="http://google.ru/" target="_blank">Google</a> JS code don't work, but if change to: (function($, undef...

Is there a point in redefining undefined like this ?
 
There is, if you're paranoid about window.undefined being overwritten in IE8 (cannot happen in ES5), or if you're golfing.
 
12:09 PM
One has to be terribly paranoid when including this in a small page like OP...
 
well, it's zero-cost, so why not?
jQuery does that as well
There might be some marginal effect on performance as well
 
Recursion is always the answer
 
hi, I want to know, in Extjs4, how to get the length of a multi-select combobox, I mean the number of selected items
 
!!/google extjs4 multiselect length
 
12:20 PM
The first hit looks decent
 
12:52 PM
That moment when you stop looking for that thing you were looking for because it is right in front of you... the entire time.
 
Reminds me of trying to find eye-glasses. It's a Catch 22 of sorts.
 
Was looking for my lighter.. it was sitting infront my keyboard
checked my pockets, jackets, old pants, other rooms.. all before I looked down to see what was infront of my keyboard
 
1:09 PM
I landed =)
 
Why Developers are the only ones Always suffer ????
 
?
 
1:25 PM
@copy did you get it?
 
@SOChatBot if you're going to pick a joke pick a relevant one.
like so:
 
Ram
hello all
This is way too much code to look through. Try narrowing down your issue and just posting the relevant pieces. — jbabey 3 mins ago
Please read this
 
dude
don't random ping, don't spam
4 messages moved to Trash can
 
WTF I got distracted from studying for this?
 
Ram
@rlemon please see the question
 
1:36 PM
not anymore
rando ping + spam === now I don't like you
 
Ram
@BadgerGirl oh sory
 
Don't ever ping me again.
 
Premature optimization is the root of all evil
 
Once again, I disagree. Premature optimisation is bad, bat there are other roots of evil as well. For example, .... oops, no religion, sorry.
 
2:06 PM
@rlemon i don't get it, am i stupid?
 
he is making a comment out of his two fingers "//" as to negate whatever command or statement that person makes
 
ooooooooh :D
 
ooooh :D
 
@rlemon Thanks for the clarification, And I'll definitely use that later :D
 
haha, he's even highlighted... dammit, i think i would've never got this without a hint
 
2:08 PM
mouseover for the tooltip
 
well, that would've cleared it up a little, yeah
 
protip: if you did not already know, all xkcd comics have a tooltip side joke
 
I didn't :P
 
i knew once
 
once ? ;)
So you forgot ?
 
2:11 PM
yeah, i kinda forgot that it's there i guess
 
Makes the joke almost every time..
 
@AndersMetnik Now you have to start reading all xkcd again, as I did the day I found it
(but there was a better ratio good/bad at that time so it was worth it)
 
I had to as well
Pretty awesome
 
'mornin
how's everyone?
 
posted on February 18, 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) {} NEW VIDEO DAY!

 
2:15 PM
good afternoon, sir!
 
Good evening
 
Awesomnauts?
I'm in!
so long suckers
 
Yeah, sure!
I mean, if you were talking to me.
:P
 
posted on February 18, 2013 by Randall Koutnik

I've noticed an odd phenomenon among people in general - they're afraid of failure.  Yeah.  Me too.  So much so that I'd often rather do nothing than risk failure. Let's move on from the "well duh" department.  There have been plenty of studies, blog articles, and crazy uncles telling you to try something because Failure Isn't Bad.  Bah.  Failure is

 
@BadgerGirl Yeah
 
2:18 PM
Good. Now we can get married.
 
But it was just my university ID card
 
Well... it should somewhat help.
 
Dart is a good language and idea
 
perhaps, but the competition is tough. Coffeescript, typescript...
 
2:34 PM
Tough ?
 
applescript, vbscript, jscript, ecmascript... ->[]
 
@SOChatBot slaps
 
Yeah, ecmascript is cool ;-)
 
But none of those is worth a penny
 
They're all gratis, as far as I know
 
2:41 PM
Except for the language we all use and hate (well, more or less)
 
it's only free if your time is worth nothing
 
Coffeescript; a language where ()=>[] makes sense (somewhat)
 
Anyone knows ie8 to have problem with document.body.appendChild(DocumentFragment element); ?
 
@JanDvorak Coffeescript; a language where [_]) makes sense
 
@dystroy it makes sense in Javascript as well.
@dievardump AFAIK, IE8 does not support DocumentFragments
!!/google caniuse documentfragment
 
2:47 PM
Server error (status 500) occured (message probably too long)
 
!!/caniuse documentfragment
 
@dystroy Command caniuse does not exist.
 
(I thought it existed...)
 
Server error (status 500) occured (message probably too long)
 
!!/help learn
 
2:49 PM
@JanDvorak learn: Teaches me a command. /learn cmdName outputPattern [inputRegex [description]]
 
!!/learn caniuse caniuse.com/#search=$1 (/w+) performs a lookup on CanIUse.com
 
@JanDvorak Command caniuse learned
 
!!/forget caniuse
 
@JanDvorak caniuse.com/#search=$&
@JanDvorak Command caniuse already exists
 
/ !== \
 
2:53 PM
@JanDvorak Command caniuse forgotten.
@JanDvorak Command caniuse learned
 
@JanDvorak DocumentFragment is included since ie6
 
@dievardump oh, thanks :-)
 
But it seems the bug is due to IE8/7 compatibility modes in IE9
 
@rlemon since i remember you use a huge display
 
3:00 PM
is there any fix for webpages to look of readable font size on my gigantic new screen
 
@Darkyen check your email
 
@SomeKittens gimme a minute
I just got my monsterous asus
 
Oh, that explains it
 
and that son of a bitch is a fucking pain in the fucking ass
because of ... windows 8 :'(
it boots in < 3 - 4 seconds from cold
but seriously .. wtf windows 8 is sucking hell
 
3:04 PM
@SomeKittens i prefer fedora or ubuntu
 
A horse walks into a bar. The bartender asks, "Why the long face?" The horse, incapable of understanding English, shits on the floor and leaves
2
 
3:19 PM
This goddarn function just decided to screw me over, and I cannot find where...
Love these moments
 
@* how do i move over 400gb data from one laptop to other ?
 
Ctrl+C, Ctrl+V
 
Ctrl + X > Ctrl + V
 
dude ...
i have a 4 gig pendrive / flashdrive
thats essential over 100 times of that madness
 
Ethernet?
 
3:20 PM
use network
 
i guess
 
It will take forever but still
 
node :

exp = require("express");
app = exp();
app.use( exp.static("C:/"));
app.listen(8080);

and then download everything :D
 
make a shared folder on the network, put the files there, then copy it out to the local storage on the other computer
 
Cant make ethernet :-( no extra cable ... probably WLAN
 
3:22 PM
Not bad... Windows supports adhoc networks
 
any way you can create a network should work with my method
basically if both compuers are connected to the same router that's kind of already a network, you just have to configre windows to allow sharing files across it
Okay, I have no idea how to fix this...
Oh god Steve Fenton doesn't provide too much support for the code he writes I guess
function homanum(digits, numbers, divideWith, multDigs) {
	if (digits && numbers && divideWith){
		allnumbers = [];
		lowestDigit = numbers.substring(0,1);
		highestDigit = numbers.substring(numbers.length-1,numbers.length);
		numberOfDigits = digits;
		var i, smallestNumber = '1',biggestNumber = highestDigit;

		for (i = 1; i < numberOfDigits; i++) { smallestNumber += '0' }
		for (i = 0; i < numberOfDigits; i++) { biggestNumber += String(highestDigit) }

		for (i = smallestNumber; i <= biggestNumber; i++) {
 
Why did the boy drop his ice-cream? He was hit by a bus
 
ChatBot looks like that old uncle nobody wants to invite because he always repeat the same old jokes while holding your arm and always thinks he's funny
 
3:43 PM
is usung a for loops variable in a for loop inside the other invalid?
 
	for (i = 0;i < allnumbers.length-2;i++){
		for (edc = 0; edc < 10; edc++){
			if (multDig(allnumbers[i],edc)){
				allnumbers.splice(i,1);
			}
		}
	}
^ This doesn't seem to work
(the variables are defined globally)
 
Syntactically, it's perfectly valid
 
"doesn't work" doesn't work.
 
it shouldn't get stuck in an infinite loop either
 
3:46 PM
The problem is, it looks like the for loop inside doesn't run 10 times on one specific number and/or a number that it tries to pass to the multDig() doesn't exist
 
if you modify an array while you iterate over it you may not get the results you desire
 
Oh yeah, that may be a problem...
 
perhaps make a copy of the array you are going to destroy
or use slice instead of splice to get sub-arrays non-destructively
 
@JanDvorak actually splice seems to be what he wants to do, remove the i-th number, his problem is that he changing the array during iteration
 
Then the solution might be to clone the array at the right moment
 
3:51 PM
@DJDavid98 after you remove a single element your indexes in the for loop are no longer valid, you have to either work with a copy or adjust i with i-- accordingly
@JanDvorak yes, that would probably work, although I just got here so I have no context :)
 
@BenjaminGruenbaum added i--, I still get the same error message
 
@DJDavid98 I'm not sure what you're doing. Test and debug
 
What error message?
 
@JanDvorak Uncaught TypeError: Cannot call method 'toString' of undefined
in the multDig function
function multDig(number, digit){
	var digit = digit.toString();
	var finalSplit = number.toString().split(''), times = 0; //here
	for (var i = 0; i < finalSplit.length; i++){
		if (finalSplit[i] == digit){
			times++
		}
		if (times > 1){
			return true;
		}
	}
	return false;
}
 
any chance you're accessing allnumbers[-1]?
 
3:58 PM
allnumbers[i] is undefined
in the for loop, use console.log to check what you're passing to it
 
@BenjaminGruenbaum That didn't help
 
@DJDavid98 that was rude
"in the for loop, use console.log to check what you're passing to it" -- this should help
 

« first day (856 days earlier)      last day (4092 days later) »