« first day (1867 days earlier)      last day (3081 days later) » 

user3119231
3:00 PM
@Neoares he is boss of lemon company.
 
user3119231
rlemon = rich lemon
 
oh I see
 
I am director of IT (unofficially)
 
then hire me for 500k month
 
I make all IT purchases based on your guys recommendations
:D
 
3:00 PM
hehe same here
 
user3119231
I like rich lemon. Please rename your account ~
 
the IT director always ask me before purchasing something
actually he purchases what I say
 
rich homie lemon
I like it
 
user3119231
no, homie is too much at the moment.
 
except this August while I was on holidays
 
user3119231
3:01 PM
You must improve your gangster skill first.
 
crl
Is it bad to represent a tree like that?
{
  wat:{id:'foo', children:['the','game']...},
  the: {id: 'the', ...},
  game: {id: 'game', ...},
}
// vs the classic nested way
{ id:'foo', children:[
      {id: 'the', ....},
      {id: 'game', ...}
]}
 
@SomeKittens
 
he purchased the SSL cert he wanted and now we're fucked
 
badass pc case
 
user3119231
anti woman defense :P
 
3:02 PM
AKA virginity protector
 
you do realize women can like star wars as well right?
 
yes
 
@Maurize you ready? jsfiddle.net/DTcHh/14640
 
user3119231
yes, richie mc lemon
 
3:03 PM
My girlfriend won't no-life the entire saga with me :(
 
@Maurize at line 65, it works, at line 90 it's uninitalised.
Oh crap I think I know what's wrong
it's line 114 isn't it?
 
@Cereal my gf hates 1-3, but loved 4-6
 
user3119231
@djsmiley2k JQUERY + BOOTSTRAP -> I'm out, sorry. formData object is native JS
 
she doesn't wanna see the new one tho
 
....
 
3:04 PM
@rlemon Did you read the darth binks theory?
 
nope
 
Uno momento
 
I'm not a HUGE starwars nerd, but I did enjoy them
I'm more along the Trek lines when it comes to Star adventures
 
user3119231
@djsmiley2k my function (I posted) wouldn't help you because you are using jquery n stuff.
 
@Neoares out of curiosity, why are you fucked? Regarding the SSL cert..
 
3:04 PM
I haven't seen any movie
 
user3119231
I just can (want) help you with vanilla n stuff.
 
@LightFlow shitty support, bad service
godaddy.com
don't buy certs there
 
oh god godaddy
just don't do it.
 
3:05 PM
my boss did it
 
and what happened next?
 
I tell him arsys.es
 
@rlemon Fun fact: My father currently owns (and read) every star trek book ever written
 
user3119231
@Neoares I just saw this womans haircut and I was like: nope.
 
because he have cloud servers there
@LightFlow 2 months to do a fucking test validation
they were suposed to call to the office, but they didn't
I called like 20 times
 
3:07 PM
zomg I think that owrked :D
 
user3119231
!!urban dictionary zomg
 
@Maurize No definition found for dictionary zomg
 
like omg but with z
 
erm, now I'm trying to remember wtf I just fixed
 
it's like lampo
 
user3119231
3:08 PM
maybe he meant: zombie! omg I think that worked!
 
!!urban lampo
 
@Neoares lampo It's like a Lamp with a "o"...
 
take it easy
 
user3119231
@djsmiley2k So you're finished? :)
 
@Maurize I think so
I can't remember what was broken :D
Time for some testing.
 
user3119231
3:10 PM
Good luck you have, young padawan.
 
Nah, you guys have been excelent rubber ducks
 
Quack
 
@KendallFrey he will get it
 
I want a PI Zero
but everywhere wants like $30+ for them
$5 my ass...
 
@Neoares U want the D?
 
3:19 PM
@rlemon They're sold out everywhere here
They're actually £4 though
 
element14 wants $30
adafruit wants $30
haven't checked local sources
 
Look at this sweet little case
 
@rlemon Oh, nice
 
@copy yea looks fantastic for the footprint
 
3:21 PM
Neat
Look at the DAC hat on the link I posted above
 
@djsmiley2k nice, u're the boss
 
I talked to a guy who built a cluster with 20 RPIs for fun, poor guy
 
I'd do that if someone paid for them
:D
 
@copy says the guy who wrote an x86 interpreter in js...
:P
 
:-(
 
3:24 PM
no it is very impressive :P
 
instead of this... if (IFS == 'Y') {
I want the match to be any of this... var matches = [ "Y", "y", 1]
 
if ( matches.indexOf( input ) !== -1 ) {
   // one of the matches matched.
}
 
@Neoares of course, that's a proton
 
@KendallFrey but where's the quark D:
 
3:26 PM
@rlemon so the index returned on no matches is -1?
weird, but ok. :D
 
I guess there are 3 quarks that form the proton
 
if(['Y', 'y', 1].includes(IFS){...})
 
@djsmiley2k the index is the location of the match, arrays are 0 index'd. so it kinda makes sense
returning null might be better, but that is debatable
 
Nod.
it starts at -1 because the next response is 0....
I kinda get it :D
 
yes, first is actually 0.
so none is -1
 
3:27 PM
It should be an exception
 
@BenFortune could I use if(matches.includes(IFS){...}) ?
 
@rlemon (which also allows the delightful but terrible if (!~foo.indexOf(bar)))
 
And you should use .includes
 
TIL .includes
 
As in the future they might start using something else like YES or Oui or something I haven't thought of.
 
3:29 PM
@djsmiley2k My syntax is wrong, I'm extremely tired. ` if(matches.includes(IFS)){...}`
 
Loook who I found
 
Would anyone give me an awesome simple library idea that I can code?
 
@Cereal Haha, what game?
 
@Cereal he's rich, $100!!!
rich like rlemon
he's rlok'tar
 
@HassanAlthaf How about a library that can do literally anything?
 
3:30 PM
@BenFortune H1Z1
 
@Cereal Ew
 
It's on sale!
 
@BenFortune -__- I was being serious. Please be serious?
 
@HassanAlthaf Nudity detection from webcam feed
 
I said 'simple'
 
3:31 PM
@Cereal if you manage this, Nintendo want to talk.
 
I'm a bit new to JS.
 
calculator lib.
 
@HassanAlthaf Webcam feed
._.
 
@djsmiley2k Thank you, what is it supposed to do?
 
errrm, calculate stuff? D:
 
3:32 PM
@HassanAlthaf but...
2 hours ago, by Hassan Althaf
It's really a good course, and has really given me a good understanding of JS.
that contradicts this :D
;)
 
@rlemon It's given me an understanding. The theory.: P
 
Oh, blops 3 is on sale
 
@Cereal Blops 3 is cheap enough
 
I want to apply the theory in practice.
 
ewwwwww
 
3:33 PM
JS Theory: things probably won't work the ways you expected them to work
 
my second ajax call just submitted the same data 4 times :(
 
Oops
 
2 hours ago, by rlemon
function sendRequest(type, url, formData) {
    return new Promise((resolve, reject) = > {
        let xhr = new XMLHttpRequest();
        xhr.open(type, url);
        xhr.onload = () => {
			if( xhr.status === 200 ) {
    			resolve(xhr.response, xhr);
    		} else {
				reject({message: xhr.statusText});
            }
    	};
        xhr.onerror = reject;
        xhr.send(formData);
    });
}
sendRequest('GET', urlA, formData).then(data=>{
	return sendRequest('GET', urlB, data.data);
}).then(finalData=>{
 
"cheap"
 
ditch jQuery
 
3:33 PM
@Cereal man go to instant-gaming
 
user3119231
@rlemon -1 too less jquery.
 
@Neoares I don't buy from sketchy key resellers
 
@Cereal I got mine for £18, which is like half that
 
@Cereal they are really cheap
 
And get their keys from questionable means
 
3:35 PM
wait for bundles
buy in bulk
 
Yeah
 
I haven't had any problem with IG
never
 
I'm not saying you would, I'm saying I don't want to support key resellers
Seen too many accounts banned in GW2 and other games from buying from g2a and other sites
 
g2a is reselling
but you can't resell codes on instant-gaming
 
> All our cards are cards SCANNED from the official ones ^ ^
So somehow this company is getting hundreds of boxed games
with activation codes
and selling for half the price
and you're telling me that's not the least bit worrying
 
3:43 PM
@rlemon is that a working code in native JS?
/me has been out of the loop for few months now
 
so, by the time the second ajax is called, the myForm has already been updated with the new details
hense why the same details appear for every call.
at least, i guess? D:
 
@djsmiley2k what in the world are you trying to do?
 
@Cereal here we go again ;)
ajax call on success of preceeding ajax call
 
@tereško es2015, so not fully.
 
I have a 'form' that's generated prior to the first ajax call
 
3:45 PM
native support is lacking but getting better all the time
babel converts it fully to es5
 
after the first ajax call, it's updated with new details.
 
@djsmiley2k just all the second one in .done()
 
@rlemon so, the short answer is "not yet"
 
@tereško "depends on the environment"
 
@Cereal I'm using success: but yeah, i do
cept it's a race condition
 
3:46 PM
I think FF will run that fine, Chrome might choke
 
between the form getting updated, and the first ajax call finishing and calling the second one
 
How can it be a race condition
You're calling them sequentially
 
@rlemon have you tried it on Edge?
 
I'm guessing this is what happens
 
why are you using success?
 
3:46 PM
because I've not changed it to done: yet?
 
@tereško nope
I just run everything through babel :/ I'm not really up to date on what is and what isn't landed for es6 support yet
 
@tereško Edge is probably the most capable.
 
after you change it to .done(), go ahead and keep the editor open and change it to .then().
 
so not .done? :D
 
.then() is the current and likely to be standard for a while. that's the Promise api.
 
3:48 PM
K
So I've changed success: to then: -- jsfiddle.net/DTcHh/14625
other than that, how do i stop it going to the next line of the input before the ajax calls have all finished?
or should I some how copy the myForm inside the first ajax call with a unique identifier so it doesn't get overwritten?
 
hey everyone, could you help me out with something here?: i´m posting data with ajax like this: data: {'data': html, 'tipo': tipo}...then, in my php file i´m getting the data like this: $_POST['data']....but how do i get my 'tipo' var that i posted with ajax?
 
anything that you want to happen next goes in .then()
 
if i just use my html var, i can get the content in the php file...but i cannot see my tipo?
 
@Japa it should be in $_POST['tipo'] and welcome to my hell ;)
@Luggage the myForm is made outside of the ajax calls
 
user3119231
 
user3119231
3:51 PM
u noticed that dot? Is deadly.
 
@djsmiley2k huh?!!??! how about my html var?
 
$.ajax(...).then(function (result) {
    // result 1
    return $.ajax(...); //second api call
}).then(function (result2) {
    //result2
});
 
@Maurize create myForm; call ajax1; (form gets updated in the meantime), call ajax2 (is called with updated(wrong) form);
 
i want to access the content of my html and my tipo in my php file
 
@Luggage ah ok! :)
 
3:53 PM
@djsmiley2k could you explain better?
 
@Japa not really, I'm a newb!
 
anyone?
 
@Luggage I've not used return in a ajax call yet.
googling
 
google Promise api
 
k
it's kinda making my head spin
 
3:56 PM
jira has a rest api, btw..
is that what you are using on the php side?
 
yup
not just pushing to JIRA either
so even more fun
Ok, I kind of understand promises
but I could just use i from my loop, to name the formData object
lots of objects, all concurrent! D:
or make myForm an array, and use myForm[i] to access each instance in it
:D
someone tell me I'm wrong plz
 
I'm trying to put elements from bottom to top, and the topmost elements to overflow at the top(like a chat room). I can't figure out the css that I need to do this.
 
1 message moved to Trash can
@EthanLeyden Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
Sorry, I thought I could use markdown
 
1 message moved to Trash can
For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
Also, this room might be more suitable for your question: chat.stackoverflow.com/rooms/29074/html-css-webdesign
 
4:12 PM
Thanks...
 
this chat seem to just use a fixed position sidebar and text input, and just scrolls the main page to the bottom.
that seems like a solid way.
and before adding each chat message something like:
var wasAtBottomScrollPosition = isAtBottomScrollPosition();
addMessageToPage();
if (wasAtBottomScrollPosition) {
   scrollToBottom();
}
 
4:25 PM
io.on('newMessage', scrollToBottomAndDoOtherShit);
no need to check
 
/me wibbles
I'm going to have to post this code as a question so I can get a example typed up
my head is spinning about promises, and other ways of doing it
 
Cy&H not pulling any punches ._.
 
37
A: JavaScript: Dynamically Creating Variables for Loops

DomenicYou should use an array: function createVariables(){ var accounts = []; for (var i = 0; i <= 20; ++i) { accounts[i] = "whatever"; } return accounts; } You then have access to accounts[0] through accounts[20].

Can I not just do this for my form data?
myForm[0] to ....
 
is there any way to make my code like
var obj = {};
//afer pushing the object should look like
obj {

'a' : {'key':'value'},
'b' : {'key':'value'}



}

//my code is
var client = {};
client.push(socket.id:{[socket.id]:val});

//getting error missing ( argument
 
var obj = {};
obj[socket.id] = val;
??
 
4:57 PM
i want to push
 
pushing is for arrays and pregnant women
 
Why can't I...
    var myForm[i] = new FormData();
 
var myForm = [];
myForm[i] = ...
read up on JS arrays.
 
getting error itried many things in node
 
@djsmiley2k because myForm doesn't exist, and you're trying to assign to it as if it's an array
 
4:58 PM
ah so create it as an array first, then assign?
lets try that :D
 
connect_clients[socket.id].push({[socket.id]:val});
 
Why doesn't it just... urgh
 
@Loktar @GNi33 @SomeGuy @rlemon which amongst them is the most stressful for a gpu ?
 
why deosn't it what? let you use any syntax you make up and magically know what you want?
 

« first day (1867 days earlier)      last day (3081 days later) »