« first day (1601 days earlier)      last day (3350 days later) » 

9:00 PM
and with typesetting.js :3 ?
 
@ssube I think my sister's boyfriend does
I asked him, waiting on a reply
 
@mikedidthis if you come here still read @ssube 's last mesage
 
Yeah he does when do you need it by
 
@ssube just in case you don't know lemon, someguy, loktar, gnii's avatars are done by mikedidthis
 
9:26 PM
Es ist cinco de Marcho
 
@ssube miledidthis is really professional
He's in the html/css room
 
I used to do vector art
 
wtf is going on in makeCall()
I've never used $.Deferred
so idk wth is resolving from the $.getJson
also @NickDugger that is badass.
 
It took me a couple of days
 
Oh, he's just using really long syntax for stuff, it's just silly.
 
9:30 PM
I'm trying to implement that within our app, minus using JQ
 
@Loktar I also made this, as part of a final in college (ignore some of the ropes being out of place. I moved the ship around and didn;t select everything) hostr.co/file/IyJeYTcJUsnv/HMS-Poster---CS5.png
 
when i do a get I always get a 200 though.. I just need to figure out what is being resolved from the getJSON... thats what I dont get
 
@Loktar can you use native promises?
 
.then(function(data) {

                    return $.Deferred(function(d) { d.resolve(data); });

                    },
^ no idea whats happening in that deferred..
@BenjaminGruenbaum yeah, I'm actually using Bluebird
 
That's just return data or use a catch and don't add a success handler since it's pointless to add one
 
9:33 PM
This had a cool illustration that I did too: hostr.co/file/BjzWJLuwcTaD/fyr_after.png
 
You're good at this
 
I gave it up
for programming
 
yeah @NickDugger thats excellent work!
 
Design is too stressful
programming is easier, if you could believe that
there are rules
with design, everyone and their mother's brother has an opinion,
and it gets hard to filter the noise
 
I definitely believe that programming is easier
That's why I like it
 
9:35 PM
!!echo echo echo echo echo echo
 
echo echo echo echo echo
 
programmers also get paid more, so there's that... lol
 
@NickDugger not always
 
If I were all about the money I'd rob banks for a living
 
@Shmiddty I haven't seen a high paying design job
 
9:37 PM
@NickDugger Do you look for a lot of design jobs?
 
@Meredith No, but it's part of my arsenal for justifying not wanting to do design anymore. I definitely do love programming; don't get me wrong.
@Shmiddty Nope, never
 
I guarantee there are designers making generous 6-figure incomes
 
If I did graphic design, no one would pay me
 
My brain usually shuts down when I get offered applications for design jobs from recruiters
 
haha. I'm ok at it.
 
9:39 PM
I get 'flashbacks' of the stress
 
I've got a pretty good eye for design, but my technical skills are a bit lacking
 
I took art in high school
It didn't really help my self esteem
 
I goofed off in high school and got C's and D's. In my senior year art class, I just sat in the back of the room and made pottery.
 
I tried really hard :/
 
I went to art school. Not a very good one, but I did get some good design experience
 
9:41 PM
Well, let me correct that; I never 'goofed off'... I was just focused on being a graphic designer/web designer. School was miserable for me
but, it all worked out in the end
I just had to do it my own way; the hard way... lol
To be fair, it does look cool...
 
gif from Stephan Muller was moved
 
Idk I was pretty stressed out about getting into a good school
And yeah I liked that painting
 
My priorities have always been off-kilter...
 
@NickDugger your illustrations are pretty good man
 
Thanks man
 
9:45 PM
yeah man
man man
 
man
 
namman
 
9:56 PM
bleh man
so if I post jquery says 401 like I need.
 
time to go home man
 
if I use superagent.. or postman, it says 200
idk wtf jquerys post is doing so differently
but it returns the status code I need :?
> When your XHR request returns a Redirect response (HTTP Status 301, 302, 303, 307), the XMLHttpRequest automatically follows the redirected URL and returns the status code of that URL.
hmmm
 
@Loktar it adds a header
to the request
 
so it sounds like jquery is doing this for me..
 
like X-Requested-With: something
don't remember what the "something" is though
 
10:03 PM
ah ok let me check
 
it's something like ajax or xhr
 
getJson is doing the same thing
it works as well.. but my get's return 200
> X-Requested-With: XMLHttpRequest
sounds like it might be that
/me tries
YES
omg thank you @FlorianMargaine
 
damn, I was pulling my hair out my coworker asked why I don't just use the jquery snippet he sent me
 
@Loktar just look at the request headers you send :P
 
10:05 PM
bleh yeah I should have paid more attn
I didn't realize JQ added that
@FlorianMargaine I owe you a beer :P
 
prototype and mootools do it too iirc
 
@Shmiddty ho yeah. most of them, in my experience.
 
@Loktar however, I really wonder why your server responds differently based on this header...
 
sigh idk man, its a .net application
ok i think I know why
it actually replies with a 302
adding xmlhttrequest makes it follow that 302
and then return the status of that request
which is a 401 if they aren't authorized in our case
 
that still doesn't explain anything...
 
10:10 PM
without the X-Requested-With: XMLHttpRequest it wont follow the 302
 
there is a check somewhere on the server for that
 
thats my guess anyway
 
no I mean, look at the response
 
401 is a lame response code, I use QEW for all my errors.
 
w/ or w/o X-Requested-With, the response is different
 
10:10 PM
(@rlemon will get this one)
 
remember that http is stateless?
 
oh its a webpage
 
@KendallFrey lul
 
so w/o its just our auth page.. the markup is returned as text :/
 
@Loktar still, it's all http requests
 
10:11 PM
I 407, but it isn't cheap
 
I don't think I've ever 407'd
 
really?!
 
I don't even know where it goes
 
amazing. 4-5 lanes wide, little to no traffic
 
10:11 PM
@FlorianMargaine idk man this is what I assume, stackoverflow.com/a/5344276/322395
 
Ontario highway
 
user1596138
 
400-series highways are the big ones in ON
 
but yeah I honestly don't know.. just glad it works
that is the reason btw
 
@Loktar yes it automatically follows. If it doesn't without the x-r-w header, it means that it's not returning 3xx
 
10:12 PM
nevermind the code
> MAKING AJAX PLAY WITH PASSIVE ADFS 2.1 (AND 2.0) – REACTIVE AUTHENTICATION
 
@FlorianMargaine misclick
 
@KendallFrey sowwy
@Loktar ugh man
function makeCall() {

    return $.getJSON(uri)
                .then(function(data) {

                    return $.Deferred(function(d) { d.resolve(data); });

                    },
                   function(error) {


                       if (error.status == 401) {
                           //Authenticating,
                           //TODO:should add a check to prevnet infinite loop
                           return authenticate().then(function() {
                               //Making the call again
 
please tell me you didn't copy paste that
please
@rlemon why the "encrypting"?
 
1337
 
10:15 PM
k
 
@rlemon has two prime factors, oddly relevant
 
shut up kendall
 
okay I'll shut up
do you want me to shut up?
 
no pls :(
 
I'll shut up if you want me to
 
10:17 PM
sowwy
 
Just tell me to shut up and I will
 
noplsdont
 
has nothing more to say
 
stahp ._.
 
10:22 PM
but... rockets
 
I've watched that video like 3 times in the past month
 
@KendallFrey I'm still rubbish at KSP fix it
 
What have you tried, what did you expect, what actually happened?
 
Evening
 
landing, rover on Mun, pile of debris
 
10:24 PM
Guys, quick Q. Is it possible to capture print event and block browsers print preview from opening?
 
@SomeKittens lol
did you use the retrograde SAS mode?
super useful
 
@Eugene yeah
 
@KendallFrey Is that a mod?
 
not anymore
new to KSP in 0.90
 
A) Yes (read that as retrograde SAS model)
B) How do I land a rover?
 
10:26 PM
slowly
preferably on its wheels
 
Current ship requires hardware-assisted breaking
 
slow down more
 
it almost worked, except I was on a hill.
 
land at < 1m/s
and don't land on a hill
pick a flat spot beforehand
How are you landing the rover?
I usually go for a skycrane kinda thing
 
2 mins ago, by SomeKittens
Current ship requires hardware-assisted breaking
 
10:28 PM
put the landing rockets above the rover, land the rover, and release the rockets to fly away
 
Worth a try
 
@FlorianMargaine could you elaborate on that? I've look through many search results, but so far haven't found anything usefull. Tried to use event.preventDefault();, but event isn't passed as far as I can tell.
 
@SomeKittens We oughta try multiplayer some time
 
@KendallFrey How well does that work?
 
generally pretty laggy and full of bugs, but if you're careful it's fine
(according to YouTube)
 
10:33 PM
How much of a cheat is MechJeb?
 
I use it
Some people don't like it
but it makes the tedious tasks easier
also, super useful for aerobraking and landing predictions
and does a better job at pretty much everything stock SAS does
oh, and it can show you your delta-v
invaluable
 
I do use Kerbal Engineering
for TWR/dV/etc
 
cool
I never used it, don't know what all it can do
I personally find the stock flight computers inadequate for realism
 
@FlorianMargaine haha no
sorry was explaining stuff to a coworker
no man I didnt want to copy that shit
I'm not even using jQuery in our application at all
 
10:41 PM
I knew how to rewrite it.. but coulnd't figure out why I wasnt getting a 401 :/
return new Promise(function(resolve, reject) {
    request.get(REHYDRATE_URL)
        .set('X-Requested-With', 'XMLHttpRequest')
        .promise()
        .then(resolve)
        .catch(reject);
});
thats what i ended up with
which imo.. looks a hell of a lot better
also boo about angular 2 and typescript
god dangit
that means all .net shops will be using angular2
 
@Loktar you just need return request.get(REHYDRATE_URL).set('X-Requested-With', 'XMLHttpRequest').promise();
I'm not sure the .promise() is required... depends on your lib
 
yeah using superagent bluebird
 
never heard of it :P
 
superagent?
 
hello all , can any body help. i want to host 3 different websites on linux vps where i have installed nginx. i already have three different domains , so now how i can host 3 different website in 3 diiff domain names on a single vps service
 
10:46 PM
yeah
 
its the default xhr lib for express
I think anyway idk
I thought I read that somewhere lol
but it works with IE9 thats what I needed primarily
 
@Loktar for ie9 you don't really need an xhr lib tbh
 
yeah I could write my own, or try to, but idk including a prebuilt one was faster/easier :P
 
although... well, the API is kinda verbose (you know, xhr API...)
 
dude. ok
so the devs working on this have never worked with anything but JQ
its pretty crazy
I'm trying to walk them through everything but its so crazy how much different it is for them I feel kind of bad
 
10:51 PM
@PeeHaa linux ubuntu 14.04
 
but I don't want to give in and say lets just JQ all the things!
 
roads suck here
 
like using webpack, less, commonjs, promises, react, flux, ect.
all new to them
 
@santosh Why are you crossposting??
 
10:52 PM
react/flux is new to me as well though to be fair.
hell man.. even a front end router is new to them
 
@PeeHaa sorry
by mistake
 
@Loktar they're all seasoned backenders?
 
yea
 
heh I see
 
one of the devs whos working on it now fucking loves it
he said its the cleanest front end code he has ever worked on
made me really happy lol
 
10:55 PM
heh
 
but yeah idk, I feel a bit bad overwhelming the hell out of backend devs. Its so rough because I have to explain everything
wish we could get another front end dev here
someone else to share the load lol
honestly I'm glad I chose react + other libraries over angular
I cant even imaging trying to explain angular
because I am an angular noob myself :P
/me heads home
 
11:09 PM
Hello all. I am developing a web app and thought I might approach it with Angular and use LocalStorage as the primary data storage method. What is the best module type to put data retrieval code that is run on a timer rather than requested from a controller?
 
@CodeWarrior service
 
That is what I thought.
 
@BenjaminGruenbaum
 
Oh hi.
 
11:14 PM
@BenjaminGruenbaum Any idea how the speed of this could be improved? gist.github.com/copy/dd19821f7d2e10545488
 
@SomeKittens In that case, what should I return from the service? I did not provide a return so I am getting: Provider 'DataService' must return a value from $get factory method.
 
@copy what does it target and did you already profile it?
 
Should I just return a boolean saying the service was instanced or something?
 
also look for deopts
 
No deopts, there's no profiling (it's a single function), I have benchmarks
 
11:16 PM
I wonder how far it is from asm
What are you targeting?
 
Takes 500ms to decompress 128 megabytes
 
@SomeKittens I think that is what I will do for now.
 
@BenjaminGruenbaum Browser
 
@CodeWarrior Return an object?
 
@copy can you "use asm" it and check if it makes a difference? That can be a good indication for room for optimization (check in firefox)
 
11:17 PM
@copy see if minifying the function makes it faster
 
@SomeKittens I was thinking just return a bool or something. I am not intending for my controllers to actually interact with the service. The service gets data from the server autonomously.
 
@CodeWarrior The controller should be taking data from the service and writing to $scope
 
I am binding controller properties to values in LocalStorage via angularLocalStorage
 
@copy also both arrays are typed right?
 
Yeah
 
11:19 PM
When the local storage values change, the controllers see it too
 
@FlorianMargaine No difference (IIRC, that only affects inlining anyway)
 
@copy he was koing
 
Is koing a word or did you mean to write joking?
 
joking
"use asm" is a good indication, you might be able to check if inlining some stuff improves performance but I'm afraid it won't. Check for deopts
I assume you also checked if there are algorithmic assumptions you can make by looking at other implementations
 
I'm gonna knock you out maybe
 
11:29 PM
I'll see
Hard to say how this is from C
gzip is an order of magnitude slower, it seems
 
node's gzip?
 
The command line tool
But that's expected
asm.js is too annoying
 
I use tar. it can gzip
A coworker wrote this one-liner. Would've never thought to do it this way:
		var alreadyProvisioning = device && lookup == 'createDevice';
 
11:47 PM
'this way' meaning double equals?
 
setting the var based on the value of lookup
 

« first day (1601 days earlier)      last day (3350 days later) »