« first day (1346 days earlier)      last day (3604 days later) » 

2:01 PM
What is this unfamiliar syntax?
new Promise(...) { // wtf?
 
@rlemon no
 
@FlorianMargaine they don't?
 
user1596138
@SomeGuy what all do you do.
 
@rlemon no
 
@CapricaSix whatsapp?
 
2:03 PM
IE 11 compatability view mode which versions of ie does it emulate
i suspect i have a JS issue
 
!!google ie11 compatability view mode versions
 
caprica's back!!!
!!nudge 60 cheese
 
@Cereal i did google it first
 
1 hour ago, by Caprica Six
 
2:04 PM
@towc Nudge #1 registered.
 
@rlemon oh... right
 
Oh yey, @CapricaSix is back
 
Monday, Monday, gotta get down on Monday
 
another
 
its still does not say which versions of IE it emulates
 
2:06 PM
function connecSSH() { exec(cmd, stuff); }
function checkSSH() { exec(cmd, stuff); }
and I can really do this:
Promise.delay(1000 * 10).then(connectSSH).delay(1000 * 10).then(scan).delay(1000 * 10).then(checkSSH);
scan also does not return a promise
 
i cannot find this information anywhwere
 
Mornin
 
@FlorianMargaine Just making triple sure because petka just said they needed to be on IRC
 
Guess who got stuck in a hot elevator this morning!
 
anywhere*
 
2:06 PM
<-- this guy
 
!!s/elevator/girl/
 
@KendallFrey Guess who got stuck in a hot girl this morning! (source)
 
@rlemon oh
 
when my coworker puts poptarts in the toaster oven, he sets the timer to the max, then when he thinks they're finished, he goes back to clear the timer
 
yeah, they need to return a promise to make sure the previous function is executed
 
2:08 PM
then he gets surprised when they're burned
 
@RUJordan you gotta stop setting me up like that
 
function connectSSH() {
	var cmd = 'command';
	exec(cmd, function puts(error, stdout, stderr) {
		sys.puts(stdout);
	});
}
how would I Promisify that?
 
return new Promise(...
 
9 mins ago, by rlemon
function cmd() {
  return new Promise(resolve, reject) {
    exec(someCommand, function puts(err, stdout, stderr) { if( err ) { reject(err); } resolve(); });
  });
}
 
anyone got bluebird hosted somewhere?
@rlemon yeah
 
user1596138
2:09 PM
@RalphWiggum Back to sleep
 
I can't figure out what the problem is. but it seems using setTimeout anywhere near Promises causes shit to go fucky.
so everything is going the way of Promise.delay
 
Anyone know some reading material on promises? I don't even know what they are.
 
!!google BlueBird Promises
 
user1596138
!!undo
 
2:10 PM
hm
 
@Jhawins promise Something that many people make but few people keep.
 
@rlemon you don't have a hosted version of bluebird somewhere?
I want to use it on some fiddle-like site, but the github version is blocked
 
@Jhawins I have no idea what happened:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>


<link rel="stylesheet" href="//cdn-chat.sstatic.net/chat/css/chat.meta.stackoverflow.com.css?v=3e101a301527">
<link rel="shortcut icon" href="//cdn.sstatic.net/stackoverflowmeta/img/favicon.ico?v=3e101a301527"><link rel="apple-touch-icon" href="//cdn.sstatic.net/stackoverflowmeta/img/apple-touch-icon.png?v=3e101a301527"><link rel="search" type="application/opensearchdescription+xml" title="Chat for chat.meta.stackoverflow.com" href="/opensearch.x
 
!!welcome
 
@JanDvorak 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.
 
user1596138
2:11 PM
Well ok then
 
user1596138
@rlemon ^
 
user1596138
@rlemon Isn't that against TOS?
 
Its been out for a while.
 
user1596138
Cool
 
2:13 PM
And ping @Xirak about bugs. He's the maid not me.
Fucking mobile.
@Zirak
 
user1596138
I thought you were the substitute maid
 
@FlorianMargaine //cdnjs.cloudflare.com/ajax/libs/bluebird/1.2.2/bluebird.min.js
also on cndjs.com
 
@rlemon yep found it, thanks
 
sorry stepped out for a smoke when you asked.
Promises are stressful :P
 
user1596138
!!are you still with us at least?
 
2:18 PM
@Jhawins Certainly not
 
user1596138
@CapricaSix K. Whatevs baby
 
!!reddit or do work
 
@RalphWiggum reddit
 
thanks
 
@FlorianMargaine does reject() return?
 
2:26 PM
Running ie 11 in compatability mode i get this error
Object doesn't support property or method 'trim'
 
if( error ) {
  reject();
}
resolve();
 
@Corbo152 no trim for you.
 
NEXT!
 
how do i fix it lol
 
AAAAND wrong window :/
fuck
 
2:27 PM
make sure it's a string
 
im guessing its that IE has no trim method on string
 
!!caniuse String.trim
 
2:28 PM
!!caniuse String.prototype.trim
 
just use a polyfill
or shim
 
or shiv
 
I have no idea what the difference is between those :I
 
or penis
 
2:28 PM
@jAndy The Game
 
^ ha
 
69
Q: What is the difference between a shim and a polyfill?

DomenicBoth seem to be used in web development circles, see e.g. HTML5 Cross Browser Polyfills, which says: So here we're collecting all the shims, fallbacks, and polyfills... Or, there's the es5-shim project. In my current project we're using a number of these, and I want to stick them all in th...

 
that came unexpected :p
 
@CapricaSix i was not asking for website
 
2:30 PM
!!caniuse my brain
 
caniuse: my brain
 
doesnt look like its supported :?
 
looks horrible
 
really?
 
@DheerajYadav yeah unfortunately @jAndy brain is not supported in the browser.
might have to fill it with polys.
 
2:32 PM
OHH
 
a whole lot of polys tho
 
@jAndy have you heard of freeletics?
it seems pretty cool for body weight workouts, looks to be based in Germany
 
does Bluebird have a pendant for .when( [promises] ) ?
yea, pretty trendy
however I see in the same category like "crossfit" for instance, comes and goes
 
right so heres the code IEs moaning about
 
2:35 PM
  if ($("#<%=txtVrmManual.ClientID%>").val().trim() == "") {
                        sMsg = "Please enter a vehicle reg";
                        $("#<%=txtVrmManual.ClientID%>").focus();
                    }
 
oh gawd. jQUEERY
 
@Corbo152 use a polyfill
 
anywhere*
 
@FlorianMargaine @BenjaminGruenbaum does Bluebird have a pendant for .when( [promises] ) ?
 
He is using jQueries trim
 
2:36 PM
I can't spot anything on the API list or am I blinded
 
m59
Does anyone else find this style appalling?

if (blah)
{

}
 
@m59 it annoys me
 
m59
Yeah, I can't say why, but I hate it.
 
Same
 
I don't like first brace on a new line like that
 
2:37 PM
jquerys trim should work should it not
 
m59
By the way, it's supposedly the "correct" style for writing php.
 
@Corbo152 it should, but I think its a different issue now
not a matter of browser support since its using jquery
 
    if (blah)
              {
                   //hue
              }

I've seen this before. Just about threw up
Aw man
it didn't format right
 
user1596138
Oh my god...
 
m59
Whoever came up with this: php-fig.org/psr/psr-2
ick
 
user1596138
2:39 PM
I hate InDesign.
 
@Loktar it works in chrome, firefox, ie 11 but when we run it in compatability view mode it breaks
 
m59
Thanks to them, people actually go around telling you you're writing your code wrong when you don't do that. Wow.
 
!!s/InDesign/jQuery/
 
@jAndy I hate jQuery. (source)
 
Ohh I Guess its Promise.all() for when() right
yeye
 
2:42 PM
you guys get Battleblock Theater from the Steam sales?
3.74 great price
 
Same guys that made super meat boy?
 
@Cereal Same guys that made Castle Crashers
 
@jAndy Promise.all()
 
Ah
 
And I got them both in the same package @Loktar :D
 
2:44 PM
@SecondRikudo nice
I loved Castle Crashers
 
I hope that sale goes on through tonight so I can pick it up
 
@mrzepka it will
 
I've beaten castle crashers a thousand times and I still picked it up on the steam sale
 
I don't play many games, anymore :( Too busy.
 
itll be up until tomorrow at noon (-6 central)
 
2:45 PM
League man...
 
there is this huge Dota2 tournament soon isn't it ?
with like $150k 1st prize money
 
fixed it
 
I don't know I don't follow dota2
 
1
Q: Jquery issues on older versions of IE

TabrezI have the following statement in document.ready function: if($("sidebar ").html().trim().length == 0) { $("sidebar").append("<p>&nbsp;&nbsp;&nbsp;The sides..</p>"); }; It works fine in IE 9 but as soon as I select IE 8 (browser and document standard), the script stops working and g...

 
Their client is too good and their game gets updated too well
 
2:51 PM
@jAndy yea
in July
its why the steam sales are going on now instead of the beginning of July like they normally do
 
totally insane prize money for a game
 
Well they are "professionals" technically
and it's split between the team if I'm not mistaken
 
I think itll be more than 150k
last I heard the pool was up to 7 million
 
ok well that's ridiculous
 
2:54 PM
that is beyond ridiculous
 
not sure how much 1st place gets out of that
but I bet its a decent amount
 
So uh, anyone want to make a JS Dota2 team?
 
hah I hate that game
 
Are we allowed to script bots to participate instead?
 
haha
 
2:56 PM
quick look at some friends of mine, they have around 3k hours in dota 2
its insane.
and they aren't even tourney quality
also I was told the winner currently gets something crazy like 5 million
 
I have like 7000 games played ni sc2
;;
 
not sure how many I have.. over 1k not sure if 2k yet
 
0 :(
 
but that was back before HOTS, I never play anymore
 
The dota stat is misleading, because sitting in the menu counts to steam
sc2 doesn't even track time -_-
 
user1596138
2:58 PM
So I found a solution to the problem. But it takes 12 manual steps in InDesign.
 
@Loktar What league were you in?
 
highest I ever hit was diamond
 
I have 7 minutes or so logged to GTA IV, and I can't even get the game to start.
 
never masters
 
user1596138
When the very next version of InDesign has GREP styling that would do this automagically.
 
2:59 PM
hi
 
user1596138
Whatever.
 
@KendallFrey because their PC ports are steaming piles of shit
 
soooo... anyone good with databases? If I was making a web app for a store, would there be a table for things like opening/closing time, or would that be static data? I want them to be able to edit it.
 
GTAIV on pc was horrible..
 

« first day (1346 days earlier)      last day (3604 days later) »