« first day (1021 days earlier)      last day (3943 days later) » 

user1596138
6:02 PM
GoDaddy says it's taken... But whois says it's available? I guess I'm not elite enough.
 
GoDaddy has a bad habit of buying domains you search.
 
@Jhawinsss there quality for shared hosting isn't great
but isn't horrible. Depends on what you will be putting up
 
user1596138
But for $12, which is less than buying the domain anyway, it's a good deal.
 
user1596138
The domain is free with the hosting.
 
yea for sure. but for $3 you can get domains elsewhere and you can get a free host which may or may not be faster
 
user1596138
6:03 PM
True.
 
user1596138
But fucking GoDaddy says I can't buy this domain when every other registar says it's available.
 
for a bunch of static files it won't matter.
 
user1596138
Actually it's telling me every domain in the world is registered at GoDaddy.
 
in my experience shared hosts have extremely slow db servers
lol
 
user1596138
Must be a problem on their end. Which is funny because they're a web-host...
 
6:05 PM
their email service is terrible
 
@YogeshMangaj 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
Ah. It's just Chrome.
 
I wish to one day be at his level of trolling
 
m59
=D
 
6:09 PM
that is some stupid shit right there
 
@rlemon ive been learning how to use bootstrap and so far i've made this: spiderhouse.org/indexnew.php
 
1000x better, keep at it
 
thanks, i will :)
 
@Amaan Your LinkedIn account is getting sentient
 
subtlepatterns.com is a great resource to spice it up without going all bat-crap-crazy with bright colours and flashy stuff. <- @samdy1
 
6:11 PM
@Zirak Hahaha
Blame @SomeKittens for encouraging me to network with LinkedIn :p
 
@samdy1 also I would align your navbar to your content
 
Code standards are set by whoever whines the most.
5
I need to whine more.
 
Hahahha, it's true
Your blog would be a good place to do that
We loved your blog, @SomeKittens!
 
@samdy1 inside your <div class="nav" ...> wrap your nav contents in a <div class="container">
 
Don't let it die!
 
6:14 PM
and they will center to your content
 
I just bought rkoutnik.com, will be rebooting the blog once I get hosting.
 
Sweet
 
Either Heroku or my own box
I was planning on doing it this weekend, but I might doing the 7hfps with my brother
 
@NinjaEcho who is AnaMaria?
 
I don't know.
 
6:23 PM
@KendallFrey ^
i seeeee you!
 
heh
She invited me randomly to a room
 
6:38 PM
@AlbertEltawil 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.
 
Does anyone know what this means in RELAX NG?
`element given { text }+,`
 
Relaxing
 
I think it means: "one or more elements", but I'm not sure
I don't know whether it means "one or more" or "zero or more"
@Datsik -_-
 
+ usually means one or more, * zero or more.
 
@Zirak That's what I'm thinking
Yeah looks like it
 
6:53 PM
0
Q: Square collision: Detect which side of the wall it collided

JoãoI'm using a standard square collision in my 2D game. The player shoots little balls, and when they hit any wall it should bounce. The problem is that I know when it hits a wall but I don't now if the collision happened on the side or top/bottom of the wall. Here's my collision algorithm (pseudo...

 
user1596138
@KendallFrey Why did you ask that in 3 rooms?? Haha
 
Because I wanted to know which one she was in.
 
anyone familiar with highcharts?
 
7:09 PM
How do I execute a system command synchronously in NodeJS?
 
@BenjaminGruenbaum Unsure. You might not be able to. Why?
 
@BenjaminGruenbaum I'm not sure you can. But you can have a callback called when the command finishes.
 
@beta0x64 Because I want to execute a command synchronously in NodeJS
@dystroy Tell me more about these 'callbacks'
 
actually Ben it doesnt make sense really to
lol
r u srs
child_process.exec(command, [options], callback)
 
@beta0x64 Yes it does. I want to execute a command synchronously in Node. I'm using it for automation, I don't care if it's slow.
 
7:12 PM
callback Function called with the output when process terminates
 
How do you prevent events from firing before then?
 
@beta0x64 Thanks, I'm unfamiliar with that code base...
 
@BenjaminGruenbaum Like in my answer there : stackoverflow.com/questions/17991304/…
 
@SimonLG 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.
 
Benjamin, I think you really just want your automation code to be run in series, like dystroy is suggesting
 
7:12 PM
I learnt that yesterday...
 
Wait, is @BenjaminGruenbaum trolling?
 
@SomeKittens I actually don't think he is
 
Note that today I've also faced the fact you can't launch 2000 process in parallel so you might have to use a pool.
 
@dystroy I want a command to run synchronously in NodeJS.. is that so much to ask? I don't care if it's fast - it's not for a server it's for automation.
 
in highcharts, on a drilldown, is there any way to know which specific bar was clicked?
 
7:13 PM
@BenjaminGruenbaum nodejs is not a good framework for running things synchronously, that's just a fact. some might call it a feature
 
30
A: node.js execute system command synchronously

mgutzSee execSync library. It's fairly easy to do with node-ffi. I wouldn't recommend for server processes, but for general development utilities it gets things done. Install the library. npm install node-ffi Example script: var FFI = require("node-ffi"); var libc = new FFI.Library(null, { "sys...

 
I'm not coding a server - I gain nothing by thinking reactively. Callbacks are a great mind tool and tool in general but I don't need them.
 
Seriously ? What's wrong with asynchrnoni... thing. And don't troll me now : I'm drunk.
 
How would you go about actually getting anything sent to stdout from this? All I can get is the process exit code — cwolves Aug 24 '11 at 22:55
@dystroy I'm not trolling, I want automation. Callbacks are a great tool for coding reactive systems. I'm not writing a system that reacts to stuff - I'm just writing automation.
 
@BenjaminGruenbaum have you considered using Perl or some other language that is synchronous typically?
 
7:15 PM
eg: - I have a program and I want it to read a file and then invoke gcc on that file.
 
Well, I wrote yesterday a program that automate things. I had to react to events that were external process sending me data and finishing. See my answer.
 
that could be done with bash, and perl, no?
 
@beta0x64 I know how to write it perfectly fine in Python thank you, but I wanted to do it with JS
 
Sorry dude
 
it can be perfectly done with node, but with callbacks.
 
7:16 PM
@dystroy That makes sense for a DB, for what I'm doing it's not nice :/
My idea was using yield with a generator, I guess if no one here has a better one I'll go with that.
 
m59
Just to test this, I made an html file and put in an iframe with a src and all, then underneath put in <script> and added a load function to that iframe. I was expecting that not to work. Is it just getting lucky that the iframe hasn't loaded by the time it gets down to added the load function?
 
@BenjaminGruenbaum I have never heard of this, but maybe it is what you want to use instead of nodejs. Remember, Linus Torvalds said to always use the right tool for the job: silkjs.net
 
@beta0x64 Torvalds said a lot of stupid shit when raging on commits :P
 
Just trying to help, man
 
m59
I'd like to know what exactly is happening with the loading of all of that.
 
7:18 PM
become 31337 do it in x86 ASM
 
@beta0x64 I know, but I'm looking for insights not general tips :)
Either generators or async.waterfall.. still there should have been a better way
 
7:31 PM
Anyone see the problem with interpolateGradient here? ideone.com/1eLHXp
anything more than 3 colors has random bars
 
user2157210
Oi
 
user2157210
anyone having experiences with Samsung Smart Tv Apps?
 
I haer Samsung's Yahoo stuff got shut down, that's all I heard though
heard*
 
user2157210
dont know
 
how come jQuery won't do a slide down if an image or js is too large?
 
m59
7:39 PM
I would really appreciate it if one of you geniuses could help me understand this src/onload thing...or point me in the right direction. All I get from google is a whole bunch of articles about how to add a load function, lol.
 
twitch.tv/… Holy fuck they're streaming the new EverQuest, it looks fucking amazing
 
@m59 what's up?
 
m59
NOOO
I'm missing it!!!
@Datsik where?!!?!?!
HOLLYY
@Datsik HALPP
@beta0x64 we'll come back to my question later =D
 
m59
8:01 PM
Ohhh goodnesss I hate narcolepsy.
 
@beta0x64 @dystroy generators worked like a charm
 
m59
I missed the twitch link @Datsik
my bad
 
Hello
 
@powerc9000 Is it me you're looking for?
 
@BenjaminGruenbaum It sure is. I can see it in your eyes
 
m59
8:11 PM
Dang this game is going to be stupid awesome.
 
0
Q: JS:Decode AHP being detected on website

user1922212Whenever I visit my website, my AV pops up with the notice: Screenshot: http://puu.sh/3S7HD.png I have no idea why it's doing this. It also happens on almost every one of my pages, flash files (swf) etc. This just randomly started happening. It never happened before and it's stopping me and any...

 
m59
8:31 PM
@beta0x64 what I was wondering is why this works.
<iframe src="home"></iframe>
<script>
$('iframe').load(function() {
  console.log('iframe loaded');
});
</script>
 
Can anyone figure out why I'm getting that blue line in the middle? jsfiddle.net/X8XTR
 
m59
I'm assuming it is bad and that the iframe "could" load before the load event is attached. In my actual test scenario, several other things happen prior to the load event being attached, and it still worked. I expected it to fail.
@Shmiddty Looks fine here
 
oops, wrong link
 
Your quadrenary core matrix is out of alignment. Uncross the warp fields in the secondary circuits.
 
Fuck! I need 2 million credits in GT5, I need them nao!
 
8:36 PM
@Nash3man 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.
 
@m59 Why wouldn't it work?
 
m59
@beta0x64 Because the iframe can load before the event handler is attached, right? How could it possibly be reliable??
I mean, it's almost certain that in that case the handler is attached first, but what if there were more javascript code before attaching the handler, couldn't that give the iframe enough time to certainly load before the handler is attached?
 
@m59 do me a favor and set that as a timeout, to really long
 
m59
ahh good idea
 
8:43 PM
are you sure that is good syntax?
missing URL?
 
m59
yep, that definitely stopped it from working
 
getting personalized offers from randoms is a lot nicer than blanket head hunters
 
m59
that one
 
user1596138
@Shmiddty Trippy
 
oh I see
 
8:46 PM
@rlemon What are you talking about?
 
got an email from a guy asking to meet (job offerish) but he actually went thought my github and stuff before hand
it was a email he wrote - and not just copied and pasted.
I looked up the company and not interested, but it was still nice to see.
 
Ah, sounds better than the hellish recruitment emails we usually hear about!
 
exactly.
I get those every so often.
I ignore those. this one i'm inclined to respond to. He took the time to write the email, I can at least be polite and tell him i'm not interested
 
@Jhawinsss it's happening at $index == 100
when we have 7 elements, meaning $arrayLen == 6
 
user1596138
@Shmiddty Well I know that haha.
 
user1596138
8:51 PM
I just don't get why.
 
or any multiple of 6, it seems
happens at 15, but it's not noticeable at 18
so 6, 12, and 15 have a noticeable problem
 
user1596138
Dammit.
 
user1596138
I hate math problems in code.
 
user1596138
Especially PHP.
 
6, 12, 15, 24, 30, 45, 48
 
user1596138
8:56 PM
I reverted to the most recent commit, btw.
 
those are all multiples of 3, but not every multiple of 3
 
@cengel 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
It's doubling, but there isn't always the same amount of other numbers inbetween...
 
user1596138
What are all the places under 100? I assume you found an easier way to find them?
 
I stopped at 48
 
user1596138
8:59 PM
Hmm.....
 
user1596138
And you can recreate it in JS?
 
user1596138
Looking at the fiddle... I still don't see it. It's a math problem inside of a rather odd loop. So I'm having trouble..
 
@Jhawinsss yeah.
 
user1596138
 
user1596138
Think it's time to ask someone else. Haha.
 
9:03 PM
probably actually belongs on programming
I think it has to do with floating point arithmetic
@Jhawinsss ideone.com/WB7csj
 
user1596138
@Shmiddty Looks much better.
 
Can you actually send someone money in GT5?
That'd be wicked.
 
GT5?
 
guido tourist 5
it's an extreme tourism game.
@everyone !!color and !!gradient have been restored. We've also fixed the code for !!gradient so there is much less banding evident.
please use discretion with these commands
 
9:22 PM
@Amaan Gran Turismo 5
Will code for GT5 credits.
 
user1596138
 
uh
 
user1596138
^^ URL shortener wouldn't take a 1996 character URL...
 
lol
 
user1596138
Shit. Thought I had the sandbox window open lol.
 
user1596138
9:26 PM
Time to go home. Later.
 
!!gradient red,orange,yellow,green,blue,indigo,violet Look at how pretty it is!
 
Nice!
 
Adding a outline to a element on mobile safari screws up canvas performance... GREAT!
 
@MikeDre 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.
 
9:29 PM
@IvoWetzel outline instead of border?
 
yes, was just trying to visualize some buttons touches
after i touched the button, I dropped from 60fps to... uh 20-30 something
 
crazy
 
@Matt 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.
 
9:45 PM
if you edit a div's style does the entire dom rebuild similiar to when you add to innerHTML
 
9:55 PM
Yeah, I think so
They're called reflows
It'd have to reflow to change how the style would make the element appear now
 
FUCK YEA! I made the 2 millions I needed!
HA!
 
Hahaha
 
AAAAAND I just spent 4 millions!
 
...
 
bought this baby.
 
9:59 PM
Looks good
Except for the controller that's on it
And the colour
And the shape
Uh, well, okay, it doesn't look good.
 
SHADDAP!
 
o_O
what did i walk into ?
@OctavianDamiean Ps you wont be able to drive it more then a few kilometers
 
the engine / tires are highly customized ... to last ... ONE RACE
 
@Darkyen It's a game, weirdo :p
 
10:01 PM
@Amaan o_O sorry didnt see tha xD
 
I'm pretty sure digital cars can last longer than one game :p
 
@Amaan .. no the real ones dont last either
 
First of all, I bought it in a game, I can drive it as long as I want to drive it, secondly, how on earth did you even think I could afford such a race car in real life?
 
@OctavianDamiean ever heard about dreaming ? and some pain meds
 
@OctavianDamiean Well, you did make 2 million, didn't you?!
 
10:02 PM
@Amaan heh
@Darkyen Also, the tires won't last an entire race.
 
POP POP!
 
true..
they barely last about 20 laps. [in f1]
dunno about Le Mans
 
I miss Community
 
That's a WEC (World Endurance Championship) class car, they race from 6 to 24 hours straight.
 
And Pierce left!
Except he's there in most of the episodes
So that's good
 
10:04 PM
@Amaan PS when you said game i thought that was a screenshot... made me have a heart attack nearly sigh
 
@m59 If it loads with no sound, just go to the link without the ?t and go to that time
 
oh woot !
:D
 
m59
@Datsik nice. So...landmark is totally separate? That sounds kinda fail :( I would want to use the same character in both.
 
I don't know, I'm just watching it, I'm at work so I missed it as soon as he started talking, had to go fix stuff!
 
10:12 PM
why did canvas require width and height seperate to style width and height =/
seems a bit odd
 
m59
Yeah, I don't think they mentioned it. I hope, but doubt, eqnext is going to be f2p. I just hate subscriptions. I'd rather pay like $200 for the game lol.
 
@Darkyen Also that depends on the compound, track conditions, car and driver.
 
@m59 DUDE, you can control your emotes using your webcam, and your characters in game face shows whatever your face is doing
 
m59
yeah, eq2 has that. Crazy stuff.
 
how do I tell if there are no object in plotCache.plots ?
if (plotCache.plots.length !== 0) // returns undefined
 
m59
10:26 PM
Also, still wondering if anyone knows why the underflow/overflow events won't work if there isn't at least 1 character or visible bullet in the element
 
// Friday brain drain?
 
m59
length should work
 
@simonzack 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.
 
m59
var getSize = function(obj) {
    var size = 0, key;
    for (key in obj) {
        if (obj.hasOwnProperty(key)) size++;
    }
    return size;
};
 
quick question about js promises: do the callbacks in .then() only get executed when the asynchronous call completes?
 
10:31 PM
@simonzack that's their purpose
 
m59
@Datsik EQN F2P confirmed!!!! everquestnext.com/about-eqn
 
@m59 Thanks - I turned it into a reusable function since I need to verify that several objects have objects
 
@JanDvorak so there's no lazy evaluation to it?
 
@simonzack what do you mean, lazy evaluation? The then callbacks are called when the corresponding action (ajax) completes successfully
 
m59
@jbolanos are you sure need the length of an object??? It seems like you should be using an array.
 
10:38 PM
@JanDvorak the "call by future" part in the wikipedia article: en.wikipedia.org/wiki/Futures_and_promises
 
@m59 Don't get me started back on that again - I'm only using objects for this part :)
 
m59
lol. I'm just saying...I've never needed to get the length of an object, so I'm inclined to think you're misusing it.
 
@chris 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.
 
m59
Well, actually, I did a few times, but then I realized I should be using arrays instead lol
 
@simonzack what is outside the handler executes before the handler runs
(except if you attach the handler after the promise has completed)
 
10:41 PM
I just need to tell if an object is populated
 
@Darkyen Why did you remove yourself?
 
One of the best things I love about JavaScript is you can't prove my way is the wrong way so long as it works - its all subjective
 
@simonzack jQuery's promises are not really futures. They don't block when you try to retreive the result. They merely collect functions to call when something happens once.
 
@JanDvorak For the record - You can block waiting for a promise in node with Q promises, or in chrome canary, or in Firefox.
 
10:45 PM
@BenjaminGruenbaum you mean, yield?
 
@JanDvorak yeah
 
canary has it? Great!
Next step: ditch IE once and for all
 
IE11 doesn't have it :/
 
1 min ago, by Jan Dvorak
Next step: ditch IE once and for all
 
Meh, I like having IE around. I hate developing for it and I hate it in general for making my life bad.
I like having several browsers though.
 
10:49 PM
Then install Firefox and Maxthon
 
Opera = Chrome with uglier graphics
 
Opera? Surely you jest - that's not really another browser for much longer...
Firefox? having 3 is better than having 2.
 
FF3?
 
@JanDvorak Ugly? When was the last time you used it?
 
10:51 PM
@KendallFrey I've heard O15 is kinda lacking in features
 
Such as?
Opera has a really cool feature I've yet to see in any other browser.
 
@KendallFrey which?
 
@BenjaminGruenbaum Pick several: en.wikipedia.org/wiki/Template:Web_browsers
 
@BenjaminGruenbaum Tab groups
 
KDE comes with Konqueror, and Linux people never get anything wrong, as you like to say.
 
10:52 PM
@KendallFrey Didn't win me over.
 
Me neither, but it keeps me
 
@Zirak Konqueror is actually the base of Webkit which is the base of Chrome - they actually didn't get that one wrong :P
 
I also vastly prefer Dragonfly over Firebug
 
@JanDvorak so to make lazy evaluation useful, can the promise cancel itself in some way?
 
@KendallFrey Chrome dev tools.
 
10:54 PM
@simonzack you can put an if inside the callback
 
I haven't used them much
 
@KendallFrey They're like 100 times better than firebug
 
Salut
 
@jbolanos au revoir
gtg
 
@JanDvorak can you give me an example, suppose i have 2 async calls, async1() and async2(), i want to do something when either of them finishes, and cancel the other?
 
10:57 PM
Firefox with the native web developer tools.
 
@simonzack you can't really cancel an asynchronous call. The best you can do is suppress the resulting action
 
@JanDvorak agreed, so how would i go about doing this less the 'cancel' part?
 
the HTTP request has already left the browser, the user has already been shown the confirmation dialog, the hard drive is arleady spinning up for that file...
@simonzack the best you can do is to suppress the second response:
 
yes you're right
 
var fired = false;
function handler(){
  if(!fired){
    ...
    fired=true
  }
}
or, var handler = _.once(function(){...})
 
11:06 PM
thanks, i like the once method
 
@simonzack but you need the underscore library for that
 
@JanDvorak - There are many ways to do that -> jsfiddle.net/Bqp9P/2
 
@adeneo except the default context of an ajax callback is not particularly useful
 
11:33 PM
@lashab 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.
 
@JanDvorak - wasn't paying attention, didn't read that far up the page.

Lets play with promises and deferreds then, and create a function that returns the data from the first ajax call as soon as it completes, no matter which one it is :
http://jsfiddle.net/Bqp9P/4/
 
@adeneo Your abstraction seems a bit odd to me, maybe something like : jsfiddle.net/JsmvK
 
@BenjaminGruenbaum - so passing ajax calls as parameters seemed better ?
 
@adeneo Having a more generic 'when any of the following promises resolve, resolve this promise' seems better, yes.
@adeneo If you dislike the syntax you can always extract the AJAX to another function jsfiddle.net/Xfz8D
 
11:50 PM
You can do a number of things, create an object literal or prototype something, create a custom ajax function etc. it was just an example of how to wrap multiple ajax calls in a deferred object and return the result from the one that completes first.
Change it however you like !
 
We really need the stuff C# tasks get in the API, that'd be really useful.
(We can start by having an await keyword)
 
0
Q: How to simply express a desire to run a function when two properties are true

Sean Andersonrequire([ 'jquery', 'underscore', 'backbone' ], function ($, _, Backbone) { 'use strict'; // TODO: Would like to access through define module, but not sure how.. var player = chrome.extension.getBackgroundPage().YouTubePlayer; var user = chrome.extension.getBackgroun...

 
@MohammadMoghimi 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.
 

« first day (1021 days earlier)      last day (3943 days later) »