« first day (1014 days earlier)      last day (3937 days later) » 

user1596138
8:00 PM
So does anyone else think it'd be nice to have Geek Dictionary in the bot or something similar?
 
user1596138
@Michael In fact, you can use a second iMac as a second display to one iMac.
 
@Jhawinsss -_-
I'm not buying another iMac just for a second screen... xD
Although, the new iMacs are pretty slick. They are incredibly thin.
 
user1596138
Just saying it's possible. Because that's what I did here and had dual 27" one day.
 
@Jhawinsss Nice xD
 
user1596138
I like them. I don't have any of those. We have the next generation down that's still a bit fat. But I like my machines to have some more meat on them.
 
8:06 PM
I bought a 27" apple display before the new thunderbolt came out. I'm going to get as much life out of it as I can for what it cost :)
 
user1596138
Haha. I'm looking for a second display. I'm not picky as long as it isn't a CRT.. I'm picking up a 20" older Cinema display from 07 for $20. Works for me.
 
check tigerdirect or costco - you can get a 27" led for less that $200
than
 
user1596138
Along with a working G4 (mirror drive) because I need it's power supply. Then main cap blew on mine.
 
user1125394
who cares of a screen being nice, the important is what it displays, and how well it does
 
A decent resolution is important. 1920x1080 is shitls.
1900x1200 is what you should get.
 
user1125394
8:10 PM
1920 x 1080 here
 
Sadly such screens became quite rare.
@cx That's what I meant. :P
 
user1125394
square screens are funny :)
 
user1125394
 
user1125394
1:1 or close
 
8:12 PM
You're aware that it ain't a square, right?
4:3
 
@OctavianDamiean I found that having one monitor set to a lower resolution helped when collaborating with co-workers.
 
@Michael huh, how so?
 
@pixel67 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.
 
Some people had trouble seeing the text on a monitor set to a high resolution.
 
8:13 PM
Ah, I see.
 
user1125394
they more need glasses
 
Plus, they don't have to get close to you in order to see the screen.
 
Well, decent editors let you increase/decrease the font size via some short-cut.
 
user1125394
yea ^
 
True
 
8:14 PM
Like Sublime Text for example, Ctrl + mouse wheel.
 
user1125394
or project it on somewhere
 
@OctavianDamiean You can do that with Notepad++ too.
Eclipse has no such shortcut that I'm aware of.
 
I'm sure you can configure it but Eclipse is a pain anyway.
 
user1125394
 
user1125394
8:16 PM
might kill your eyes to use a projector all day 'as screen' (and your energy bill)
 
@cx I've done it
you do get a little more eye strain
 
F.lux tweaks your monitor's color/brightness during the evening and night to help improve sleeping patterns: justgetflux.com
 
user1125394
anyway I have a usb powered screen, so not natively much brilliant
 
user1596138
@Shmiddty Wow. For not liking PHP you sure have quite the interest in this ;). I was partway through writing the array here...
 
user1596138
@Shmiddty Why not just fork it and submit a pull :P
 
user1596138
8:23 PM
Makes my job easier..
 
function rgbFromName($name){
  global $colornames;
  $colorname = @$colornames[$name];
  return ($colorname == null) ? null : rgbFromHex($colorname);
}
@Shmiddty The @ character suppresses the "Undefined index" warnings.
 
user1596138
@Shmiddty Changed 185-186
 
@Jhawinsss link?
 
user1596138
 
user652649
$colorname = isset($colornames[$name]) ? $colornames[$name] : null;
better
the @ operator is slow
(evening all)
 
8:31 PM
@webfrogs I'm not the greatest expert on jQuery/frontend
@Wesツ evening
 
user1596138
@Wesツ Hmm...
 
@Jhawinsss do you have a github?
 
user1596138
 
@Jhawinsss Also, you can access characters in a string as if the string were an array: $r = hexdec($hexValue[0] . $hexValue[0]);
 
no warnings ^
 
user1596138
8:37 PM
I couldn't decide what to do for errors. But I'm about to add a check for valid hexadecimal format with ctype_xdigit(). For now it's just a shitty `if (is_null($_GET['color'])) { //do what I'm about to show you }
 
user1596138
!!color
 
@Jhawinsss You could have it say, "Invalid hexValue: XXX"
 
!!color yellow
 
8:38 PM
@Jhawinsss And you should make it return a 400 response (to make it RESTful). xD
 
user1596138
@Michael Well I will when it actually checks to see if it's a valid hexValue ha
 
user1596138
@Shmiddty Hold on...
 
@Jhawinsss Use a regex: /^([0-9a-f]{3})|([0-9a-f]{6})$/i
 
user1596138
@Michael ctype_xdigit() already does it.
 
user1596138
!!color yellow
 
8:41 PM
 
!!color red,orange,yellow,green,blue,indigo,violet
 
@Jhawinsss Check the string length too
!!color aaa
 
user1596138
!!color poop
 
8:42 PM
1 message moved to Trash can
 
@jAndy WTF?
 
@jAndy come on man.
 
I was about to delete it :(
its so fun :P
 
user1596138
@Michael Already did for the shorthand, I have the normal length added I just haven't made the commit.
 
8:42 PM
@SomeKittens Ok. Thanks. I'll wait until I find someone then.
 
user1596138
@jAndy I'd delete that. It's still bouncing in the trash can.
 
@jAndy Dude, some of us are at work/don't appreciate that stuff.
 
almost wet myself seeing that :p
 
user1596138
@Shmiddty I just went to add strtolower() but you've already thought of it!
 
@SomeKittens yea.. I was about to give a quick glance / remove it, but shmiddty was faster than hell
 
8:43 PM
Doesn't matter, we don't publish stuff that might be considered offensive here :/
 
@BenjaminGruenbaum Visually, at least.
 
@jAndy I waited until I saw nips...
 
then killed it, the removed
"faster than hell" probably isn't accurate.
 
@jAndy Also - the game.
 
8:45 PM
ah thank you, I almost forgot about the game for a whole day
 
@Jhawinsss it becomes second nature at some point.
 
@Shmiddty if she had tapes over her nipples it would have been fine ? O_O
 
@BenjaminGruenbaum lol, that's the first time i have ever heard someone say that tits are offensive.
 
I like boobs, I don't see how women's are inappropriate but men's are not.
 
@jAndy No, at least in my opinion.
 
8:46 PM
:>
 
@rlemon because men can't disregard them.
 
@rlemon thanks bro ! agreeeed
 
user1125394
men's boob are inappropriate
 
it's not so much that either is more appropriate, it's that a man's bare chest doesn't garner the same response
 
I know many dudes with D cups... When then run ( which doesn't often happens ) those suckers bounce
 
user1125394
8:48 PM
:))
 
@rlemon I think any moderately nerdy person has a couple friends like that.
 
@rlemon Women's causes chemistry firing where Men's don't.
 
I actually don't see any offense in showing woman breasts
 
!!color roygbiv
 
@Connor Not generally, but in a chatroom in SO it might be.
 
8:49 PM
 
Men have glands and do secrete liquids... Just not milk.
 
whos offended by that
 
@jAndy Wanna ask it on meta?
 
!!color banana
 
8:49 PM
o.O
lol
 
@BenjaminGruenbaum no because it won't get a reasonable answer
its pure dogma like.. "bad"
 
!!s/reasonable answer/the answer I want/
 
Hey! I'm not justifying it here, but In general I don't get the big deal.
 
@BenjaminGruenbaum @BenjaminGruenbaum no because it won't get a the answer I want (source)
 
user1125394
!!color bLuE1
 
8:50 PM
 
!!color BlUe
 
If I see a bare chested man I'm binning the shit out of it tho.
 
@rlemon no I would be really interested in a good answer why this offends anybody and why its "okay" to show breasts with hidden nipples
 
And c x, you have yo change your display pix.
 
8:51 PM
thats the biggest bullshit at all
 
@jAndy but it's not ok in a work environment
 
I am not offended, but I don't think it should be oneboxed in a chat
 
Look at cx's pic... Really look at it.
 
user1125394
pectoral muscle boob
 
@Shmiddty problem arrises with different timezones indeed, its about 11pm here
 
user1125394
8:51 PM
@rlemon I should?
 
@jAndy it's only 3pm here
 
user1125394
yeah ok for possible kids
 
If boobs are no go. A monkey hanging off some guys rod isn't.
 
it's not the boobs, it's the gif being one-boxed
 
user1596138
!!/color
 
8:52 PM
 
!!color bleu
 
if something is potentially inappropriate, just add an (nsfw) after the link.
 
I get more annoyed and offended by empty black rectangles
2
:p
 
it's just simple courtesy
 
8:53 PM
Does this colour think even have any purpose?
@Shmiddty what does that do?
 
I'd prefer no stuff here, but I understand I'm in the minority. At the very least, don't onebox it.
 
@Connor i.imgur.com/2IJqdoy.png (any text before/after link will prevent one-boxing)
 
Oh
 
@Shmiddty O hey, that looks familiar.
 
just grabbed the closest thing ;)
 
8:55 PM
@Shmiddty ok I agree with that, such content should not be one-boxed
 
a disclaimed link to a woman's breasts accidentally falling out and bouncing from excercise is not as bad as a oneboxed animated gif of woman's breasts accidentally falling out and bouncing from excercise.
 
that's all I'm asking for.
 
now I will spam the channel with woman breast links ! ha ha !
 
@jAndy there's another issue with that: excessive flooding
 
user1125394
perv :p
 
user1596138
8:56 PM
!!color
 
cool
 
!!color periwinkle
 
@eazimmerman That didn't make much sense. Use the help command to learn more.
 
user1125394
also.. have a tour there for !!color chat.stackoverflow.com/rooms/1/sandbox
 
8:56 PM
 
!!color burntorange
 
hm
 
user1596138
blushes
 
user1596138
!!color :)
 
8:57 PM
 
user1596138
!!color
 
user1125394
1 min ago, by c x
also.. have a tour there for !!color http://chat.stackoverflow.com/rooms/1/sandbox
 
user1596138
!!color dammit
 
user1596138
8:58 PM
I didn't even change anything...
 
you broke it son
 
user1596138
!!color ok
 
@Jhawinsss everyone says that
 
!!color <script>alert('hi!')</script>
 
9:01 PM
 
@jAndy that sites pretty sweet, look at those monsters i5.minus.com/i907SR2g8YzaU.jpg
 
@doug65536 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.
 
!!color red
 
9:04 PM
!!color f00
 
@Jhawinsss Maybe, if an invalid color is entered, you could make that strip transparent.
 

Sandbox

Where you can play with regular chat features (except flagging...
cough
 
@Michael It should be a black bar if it's invalid
 
@SomeKittens Oh :/
 
user1596138
9:05 PM
!!color 555
 
user1596138
IM NOT FUCKING WITH IT! WHAT THE HELL.
 
@Jhawinsss just goin crazy over there huh?
 
user1596138
!!color dammit
 
user1596138
9:06 PM
Done.
 
!!color yellow
 
@Jhawinsss Post your code
 
user1596138
@Michael After @shmiddty 's latest submission we have this pastebin.com/jqPqEuUU
 
humblebundle.com/weekly Everyone should buy it, because it includes a game titled "Gratuitous Space Battles"
 
9:08 PM
this is getting errors because it is a cross-domain request, right?
if so, how does it get far enough into the request to get a 200 OK?
 
function rgbFromName($name){
        global $colornames;
        if ($colornames[$name]){return rgbFromHex($colornames[$name]);}
        else {return rgbFromHex($name);}
}
And
 
@doug65536 you will get a response back, and the ajax function is complete. but the error still stands.
 
foreach($colArray as $col){
        $rgb = rgbFromName(strtolower($col));
        if (!$rgb) $rgb = array(0, 0, 0);
        $color = imagecolorallocate($im, $rgb[0], $rgb[1], $rgb[2]); //FIND A BETTER WAY TO DO THIS.

        imagefilledrectangle($im, $x, 0, $x + $colWidth, 40, $color);
        $x += $colWidth;
}
 
0
Q: What's an efficient way to mutate this data structure?

Sam SelikoffI have the following data structure: [ { month: 'Jan-2013' hours: [ {hour: '01:00:00', count: 102}, {hour: '02:00:00', count: 482}, {hour: '03:00:00', count: 947}, {hour: '04:00:00', count: 354}, {hour: '05:00:00', c...

 
@doug65536 if you switch 'complete' to 'success' you will no longer get the callback. just the start and the error.
 
9:12 PM
@OctavianDamiean irssi and ERC (bundled with emacs)
 
@Jhawinsss Or, remove the if (is_array($rgb)) condition.
 
@doug65536 Complete is when the ajax is completed, which it has, where as if you use success it will only run when there is no errors
 
but success is deprecated. so just check the status and if it is an error deal with it in complete
 
@rlemon it was basically done as i wrote it
 
wait, maybe complete is deprecated too
 
9:13 PM
is it?
 
user1596138
@Michael Yeah, I don't know how I ended up typing that. I wanted if (in_array($col, $colorNames)) but it isn't working right. What's wrong with this if statement??
 
yea, done/fail/always are the preferred now
> Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks are deprecated as of jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead. - source
 
oh....
 
@Jhawinsss in_array checks the values of an associative array. You want it to check the keys.
 
@rlemon so they basically wrote sh*t code to start with.
 
9:14 PM
@rlemon done is deprecated now too? ok thanks
I mean, complete
 
no, they are cleaning it up.
removing useless aliases
 
user1596138
@Michael Ah! I wondered. I don't have any extra time till I'm off the clock now though.
 
user1596138
github.com/jhawins/colors if anyone wants to do anything to it.
 
(and then adding more useless ones... but that is another topic)
 
9:15 PM
Oh ok
 
this is the current jQuery code.
    // Attach deferreds
    deferred.promise(jqXHR).complete = completeDeferred.add;
    jqXHR.success = jqXHR.done;
    jqXHR.error = jqXHR.fail;
 
@rlemon what I don't understand is why firebug is saying 200 OK. at what layer is it not getting the response body? It drops getting the body and just lets me see the response headers?
 
they call the same thing
@doug65536 idk, but if you use 'done' it shouldn't matter in your code
or if you look for the error
 
It's all about Zepto.js for me now...
 
user1596138
@Michael Thanks.
 
9:18 PM
@Jhawinsss np
 
I'll read up on the done callback and see if I can make more sense of it. complete isn't giving me any indication of a problem or cause, other than status parameter == "error". thanks
 
@doug65536 you get a cross domain error....
 
@Connor where? I looked for it in the debugger. are you using chrome?
 
yes
XMLHttpRequest cannot load guimp.com/?_=1374873088679. Origin fiddle.jshell.net is not allowed by Access-Control-Allow-Origin. fiddle.jshell.net/_display/:1
got download_complete, status=error fiddle.jshell.net/_display/:42
got start_download
 
@Connor ok. firefox or firebug have a bug that causes it to not tell me that. mine says 200 OK!
but it's red
 
9:21 PM
this makes me want to play lemmings
 
if the headers of the ajax request's response had Access-Control-Allow-Origin: http://fiddle.jshell.net then it should work, right?
 
hah, cool
!!stat Zirak extended
 
@Zirak Zirak has 6076 reputation, earned 10 rep today, asked 15 questions, gave 172 answers.avg. rep/post: 32.49. Badges: 2g 20s 40b
 
Look at the badges
 
!!stat rlemon extended
 
9:28 PM
@rlemon rlemon has 9234 reputation, earned 30 rep today, asked 71 questions, gave 363 answers.
@rlemon rlemon has 9234 reputation, earned 30 rep today, asked 71 questions, gave 363 answers.avg. rep/post: 21.27. Badges: 2g 21s 59b
 
I really should get rid of that extended crap, make it default
 
yea
 
!!stat BenjaminGruenbaum extended
 
@BenjaminGruenbaum Benjamin Gruenbaum has 15834 reputation, earned 230 rep today, asked 30 questions, gave 426 answers.avg. rep/post: 34.72. Badges: 3g 28s 62b
 
!!stat Shmiddty extended
 
9:29 PM
@Shmiddty Shmiddty has 6697 reputation, earned 2 rep today, asked 6 questions, gave 341 answers.avg. rep/post: 19.29. Badges: 0g 4s 19b
 
!!stat 123456 extended
 
@SomeKittens mhughes has 36 reputation, earned 0 rep today, asked 2 questions, gave 1 answers.avg. rep/post: 12. Badges: 0g 0s 2b
 
lol
 
@CapricaSix what a vampire.
 
!!stat Connor
 
9:30 PM
@Connor You iz in mindjail
 
lol
 
/afk smoke
 
@CapricaSix i haven't spoke to you in weeks wtf
 
!!/unban Connor
 
@BenjaminGruenbaum User Connor freed from mindjail!
 
9:32 PM
@BenjaminGruenbaum well thank you, do i get any info about why i got banged up?
!!stat connor extended
 
@Connor Connor has 2279 reputation, earned 1 rep today, asked 14 questions, gave 157 answers.
@Connor Connor has 2279 reputation, earned 1 rep today, asked 14 questions, gave 157 answers.avg. rep/post: 13.32. Badges: 0g 3s 17b
 
These test reviews in the CV queue are so annoying...
 
The CV queue is so annoying
 
There're soooo many
Damn it, can someone cv this? I edited out some trailing "guiz plz help it's urgent", and now I can't also CV...
 
@Zirak Done.
 
9:38 PM
Thank you
 
@Zirak I literally pasted his question in google and the 3rd result had the answer
 
I metaphorically pasted his question and slipped on a banana.
 
@SomeKittens you type pretty fast.... for a smartass
 
if (cost) {
			return stripe.charges.create({
				customer: user.account.stripeId,
				amount: cost,
				currency: 'usd'
			}, function(err, charge) {
				if (err) return cb(err);

				dbuser.account.plan = userPlan;
				dbuser.account.studentAcctsPurchased = dbuser.account.studentAcctsLeft = plan.studentAccts + extraStudents;
				dbuser.account.teacherAcctsPurchased = dbuser.account.teacherAcctsLeft = extraTeachers;
				dbuser.account.expires = newExpires;
				dbuser.save(function(err) {
					if (err) return cb(err);
 
@SomeKittens reduce us the indentation pls
 
9:42 PM
Pluck each if branch into a different function
 
@Zirak There's only one major one, and a lot of repeated code in there.
 
Your else is contained in your if's callback, with some modifications
@SomeKittens You have an if, and an else
if (blah) {
    doA();
}
else {
    doB();
}
 
I thought you meant the if (err) statements, my mistake.
 
Your else can be reused there
This guy is pretty amusing. I just got bombarded with his tag fixes: He sees posts tagged with , and changes that to
 
@Zirak he can haz 2 rep!
 
9:47 PM
stackoverflow should add a domain alias: cocky-arrogant-jerks.com
 
102 points today in edits alone
 
Isn't there some max? 200 or so?
 
1000 total
and you can't suggest past 2000
 
I mean...it's not wrong, it's just not very helpful.
 
(1000 from edits only, it seems)
 
9:48 PM
is there an easier way to do this?
if (plotCache[setKey] !== undefined && plotCache[setKey] !== null && plotCache[setKey].name == val) {
    return '<i class="icon-check"></i> ';
} else {
    return '<i class="icon-check-empty"></i> ';
}
 
ew
 
@Zirak too minor?
 
@JanDvorak LOL
 
@smothers 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.
 
var ret = document.createElement('i');
ret.className += ' icon-check';
if (...) {
    ret.className += '-empty';
}
return ret;
 
user1125394
9:49 PM
if (plotCache[setKey])..
 
@jbolanos
Your if can also be simplified
if (plotCache[setKey] && plotCache[setKey].name === val) { ... }
 
I have to have the !== null in there too since some people said I can't just delete an object
 
null is falsy, you won't get to the second part
 
trying it
 
oh, my first refactor is wrong
But you should be able to catch why.
also not I'm actually returning an element, and not html
 
9:53 PM
ok - that works fine then
for some reason it was being snotty about nulls
 
@MattH 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
Q: Monitoring App: Client side or Server Side?

XelomI have a monitoring web application which has a .Net Backend and a Silverlight frontend. The application crunchs big chunks of data, process them and presentates to user. Then user can interact with the data to see different graphs of log. He/She can unselect dimensions, group some values, choose...

 
@GrantWatters 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
!!> null == ''
 
@cx true
@cx false
@cx false
@Hank 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
9:57 PM
!!mustache smothers
 
!!> !!null === false && !!undefined === false && !!'' === false
 
@Shmiddty true
 
user1125394
nah serious what's that mustache style
 
!!mustache cx
 
9:58 PM
!!undo
 
LMAO
 
user1125394
you might get the mustache not where you want with my avy
 
user1125394
ok I'll change the av
 

« first day (1014 days earlier)      last day (3937 days later) »