« first day (1943 days earlier)      last day (3003 days later) » 

6:00 PM
@rlemon thanks for the response , so your basically saying it's ok to use a onepager
 
goat!
@rlemon jesus dude
 
@havingagoatit I'm saying it is okay assuming you've done your job right
 
at amazon, there is a section of "new used books"
which sells books at reduced prices. Should i pick one from india ?
 
makes sense, they are used books new to the shop
@KarelG what book?
 
6:02 PM
machine learning (Mitchell)
 
thank you rlemon
 
@rlemon needs more pixels, but lol
 
@SterlingArcher It's Jimmy Neutron!
!!youtube jimmy neutron happy family happy hour
 
@rlemon I am actually using this base template .... it looks like they have optimised a lot of functions and use js in the right places i think themeforest.net/item/wanchai-responsive-onepage-portfolio/…
 
6:04 PM
@SterlingArcher let the meat drop!
 
NO NO NO NO NO NOT THAT AGAIN
DJ Double Dip LOL
Bond with me Kendall
 
I love my user card
 
@rlemon Did you know Scott Manley is a DJ?
 
yes
it's on his twitter
 
6:08 PM
That's a boy dog
 
I forgot I changed mine
 
among what-tails?
 
I love this gif. One of my all time favs
 
> Hang tight lil buddy the carolina panther superbowl 50 champ shirts should be there anytime.
 
6:12 PM
@KendallFrey Dark humor is like food, not everyone gets it.
 
user1596138
@SterlingArcher What's the blue flare thing that goes into the car supposed to be?
 
@jhawins shitty cctv, I assumed a reflection from a wrist watch or something
 
why {{Number(usd) * usdrate}} inside div giving me NaN
 
and artifacts of shitty cctv :P
 
using angular js
 
user1596138
6:13 PM
@rlemon Looks like an edit
 
@GeorgiAntonov then some of those things are not numbers
 
@GeorgiAntonov Number(usd) results in NaN or usdrate is invalid
 
y but it seem Number(usd) is not working
 
user1596138
Looks like a blue fire ball and then goes to the passenger seat. Doesn't look like a reflection to me lol
 
@jhawins looks exactly like a reflection caught on a shitty camera to me
it moving looks to be an artifact
@GeorgiAntonov bananas
we need to know what usd is and what usdrate is
 
6:14 PM
@GeorgiAntonov then fix usd
 
user1596138
If you say so man. Doesn't look anything at all like a reflection to me, the motion and the pause are deliberate. I was assuming some inside joke
 
1 message moved to Trash can
@GeorgiAntonov Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
see in trashcan
 
or format your code proper
 
Here is my matchmaking code
 
6:16 PM
@GeorgiAntonov lol, that's a new one
 
@GeorgiAntonov No, I don't go to the trashcan on purpose
 
@jhawins I'm just guessing. I doubt the answer is easily findable on the internet
 
Fetch list of servers
Get Geolocation
Filter servers for free slots
Filter servers > 4000km bailout
If more than 1 server
Filter based on skills.
 
it is
 
does that look okay ?
 
6:17 PM
@GeorgiAntonov learn how to format the code in this room, or post it to another service and leave the link here
we're not going to read unformatted code in any room
 
@jhawins our monitors are shit
 
@jhawins condensed pixel?
 
@MadaraUchiha just unit/integration.
Also manual.
 
6:20 PM
this was very nice imo
 
Nice? The poor rock just wanted to sleep man
 
it's a nice animation
@GeorgiAntonov okay.. still not very helpful
 
What am I misunderstanding about jquery/ajax scope that when I do success: function(response){ this.variable = response.value; } yields undefined outside ajax scope?
 
what is the value of usd
 
6:22 PM
the value of usd is whatever i write
so if i write 100
 
@SuperNoob this probably isn't what you expect outside of the scope
 
2221
A: How do I return the response from an asynchronous call?

Felix Kling -> For a more general explanation of async behavior with different examples, please see Why is my variable unaltered after I modify it inside of a function? - Asynchronous code reference -> If you already understand the problem, skip to the possible solutions below. Explanation of the...

once you go async, you can't go back
 
It's true
 
@ssube thanks!
 
It's sad :D
 
6:25 PM
@BenjaminGruenbaum what's sad is that the jQuery answer has 5x more votes than yours
 
@rlemon :'( its a touchy story
 
@Abhishrek touching*
 
touching*
 
@SterlingArcher that's not sad at all, Felix is a great guy and he wrote that answer using jQuery since he wanted to reach the most people, not because he doesn't know any better.
As it stands, most places still use jQuery and writing an answer that caters to how these people do XHR is a good thing (tm) IMO.
Most JS developers don't know how to write a "raw" XHR properly. This gets better with fetch though.
 
6:30 PM
Is there a way to record (& then stream) videos from canvas ?
 
Anyone @here Know how to deal with IE9 issues?
 
@Neal shoot
 
Our homepage does not load properly in IE9 and we get this error: TypeError: Unable to get value of the property 'emptyRegions': object is null or undefined
 
@BenjaminGruenbaum stop trying to make fetch happen
 
F 12
 
6:33 PM
it's never going to happen
 
No Man's Sky announced finally for June 2016
 
The internet is not being helpful for that error
 
also relavent code ?
 
gozengo.com @Abhishrek
 
okay lets try IE 9
 
6:34 PM
6
Q: Unable to get value of the property ____: object is null or undefined

Jesse AtkinsonI've researched the heck out of this. There are several posts on Stackoverflow about this already, but none seem to have an answer for me. Like the other posts on here, it's working fine in Chrome or Firefox. But in IE 9, 8, 7, & 6 I get the same error. I've tried the hack where you force 9 into...

if this answers your question, you suck at google
 
@rlemon Ha. I am not using any timeouts that I know of on the homepage...
 
there is more than one answer
 
@rlemon it already happened, so there's that.
 
#2. not using jquery for ready state. #3 tried compat mode to no avail
 
I was actually against it initially, but I don't get to decide :P
 
6:35 PM
@Neal there are over 30 errors
 
@Abhishrek hmmm?
 
@BenjaminGruenbaum WOOSH!
 
@Neal what line?
 
I see 2 @Abhishrek
 
on console in IE 9 emulation mode
 
@BenjaminGruenbaum It does not seem to say A line.
 
@Neal what object has a emptyRegions property you're accessing?
 
@BenjaminGruenbaum That is nowhere in my code that I know of :-|
 
Fetch is a good idea, but I'm not a fan of the api
 
6:36 PM
 
Go ask Sampson
 
@Abhishrek What version of IE is that?
 
11 running in 9 mode
 
Windoge 7
 
there are no errors on 11
 
6:37 PM
@Abhishrek I am talking abt IE9 not compat as 9 mode.
I know that @Abhishrek ha
I am just concerned about IE9
 
nvm thats IE 9 dev tools
 
lol
-2
Q: JavaScript Array and GetElements

Kris.Wi need to help, i have this code and i would like after clicks on correct option (look Array) to add userScore++. This is probably one line of code but I have a problem with that ;/ enter code here http://codepen.io/kristoff090/pen/zrMeXE

 
@Abhishrek is what firebug?
that is the IE9 F12 dev tools that I have open
 
@Neal go to script, turn on the debugger and break on uncaught?
 
6:39 PM
one sec @BenjaminGruenbaumI have not used windows in a while
Same issue @BenjaminGruenbaum ^ :-(
it does not break on error
 
Lemme try with IE 11 :-> that might be a lil smarter
 
But there is no issue on IE 11 @Abhishrek ... how does that help? lol
 
@Neal in your staging environment
 
https://gozengo.com/js/vendor/backbone.marionette.js?bust=fda7de6
problem is in this file
 
@rlemon Marionette? How do you figure?
 
6:43 PM
it is the only file which contains the text in the error
 
Did you write that site @Neal ?
 
really simple to figure that out Neal
sometimes you sadden me
 
@BenjaminGruenbaum Yes.
@rlemon That is fully tested code from a vendor
 
Don't make rlemon sad @Neal. @rlemon is a bro.
 
it has support for IE
 
6:44 PM
well guess what
its the only file with that property name
so have fun
 
found it :D
 
just gimme a seecond
 
@Abhishrek don't say.
Charge for it :D
 
@Neal Break on all exceptions
 
6:44 PM
@Neal If you pay @Abhishrek $100 via paypal he'll fix your error.
 
lol
 
aww, he would have totally paid.
 
IE 11 is so much better at this
 
@BenjaminGruenbaum haha why :-\ ?
 
omg, it's @SterlingArcher if he got sad: i.imgur.com/h9LHSEd.gifv
 
6:45 PM
@Abhishrek yeah, I debugged it in edge, literally just "break on exceptions" with breaking on both caught and uncaught.
@Neal the site's code.
 
@BenjaminGruenbaum which part of it?
 
the 19 plugins
:D
 
@rlemon Marionette has full support in IE9
 
@ssube Not even remotely pale enough, haha.
 
@rlemon LOL yea... that was inherited... :-(
 
6:46 PM
Is the code on the index page generated?
 
@Neal It seems to be a caught exception
 
@Neal I don't give a fuck :P you are tracking down an error which clearly has something to do with that property access. That is the only place in your site that property name is used :P
FIGURE IT OUT
 
@BenjaminGruenbaum Only the search widget is frontend generated (on the home page)
And the images below the main image are lazy loaded
 
lol, in production "Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period)."
 
@BenjaminGruenbaum yep.... inherited code... :-| I do not have the time to fix that
There is no reason for that error to show up only on IE9. I understand what that error is, but that implies that the view did not get created, but it does in other browsers. @rlemon
 
6:50 PM
I assume lemon saw that and I'd rather not have that image in the room :P
 
also, you shouldn't be removing the headers (comments) from your sources
that goes against most licensing agreements
and is an ahole thing to do
 
@rlemon its all in the sourcemapped code i think. Also I did not create our bundler
i can look into that later
yea all the comments are in the sourcemapped code
 
@Neal the error stopped showing up for me
is it an ordering issue ?
 
@Abhishrek Still shows up for me.
 
probably the file didn't even load yet.
 
6:53 PM
it is very odd. And that above page ^ hasnt been updated in about a month i think
eh doesnt really matter... only < 1% of our traffic goes through IE9... I am just doing my due diligence
 
http://www.commitstrip.com/en/2016/02/10/true-story-one-code-review-too-many/
CommitStrip
True story: one code review too many
CommitStrip
1455130366
 
Hmmm it just seems like Marionette doesnt load on some pages (or only in pieces) very weird.
 
@Feeds and that's the kind of dev you want to get rid of
 
not unless you're looking at pages of cruft in a code review for the ninth time that week
then rage-quitting is justified
 
@rlemon then you should probably get rid of the developer sending in the cruft
 
6:57 PM
@Neal and that occurs only in IE 9 ?!
 
@ssube Depends on the circumstance. I've had some really awful code reviews here. Like they nit picked because I used modernized variable naming conditions and didn't use hungarian notation.
 
@Abhishrek yea. idk what the heck is going on... :-|
@Trasiva else if vs elseif here.... nitpicks...
 
@Trasiva if you're going against the convention in the product, you're doing it wrong
your code, on its own, may be good but if it doesn't match the rest of the project, all you're really doing is adding confusion
 
@Neal well one is invalid.
so yea
 
Set a breakpoint on that line and Look at the callstack in chrome and ie 9. Also local variables
in your render function
 
6:59 PM
@Neal Yea, I was actually told once that I needed to use if/elseif/else instead of a switch.
 
@rlemon im talking on the php end
@Trasiva LOL
 
@Trasiva in most cases it is more readable
 
switch actually being useful is pretty rare
especially in JS
 
like, you'd need to show me a real good use case
 
We're not talking JS here, we're talking on C# code.
 
7:00 PM
point still stands
 
They don't give a shit about what I do in JS, it's all above their heads for the most part.
 
switch isn't wrong, but it isn't the most readable convention in most cases
 
@ssube yes it is
 
I always think I should be using switches, but then can't justify it
 
react action handlers :P
 
7:01 PM
switch is just a snazzy goto in js
 
@ndugger *in everything
 
@ssube like, if I need fallthough, I might use switch?
 
switch is pretty much obsolete
 
blah... F IE9. they cant book travel I guess
 
I'll still use a switch if I feel it's appropriate, but I like to avoid it
 
7:01 PM
switch (items[0])
{
  case "Calculations":
    sb.Append("<a href='./calc.aspx?configid=" + m_ConfigManager.ConfigID.ToString() + "&calc=" + items[1] + "' target='_blank'>");
    break;
  case "Trigger":
    sb.Append("<a href='./triggers.aspx?configid=" + m_ConfigManager.ConfigID.ToString() + "&filter=" + items[1] + "' target='_blank'>");
    break;
  case "Query List":
    sb.Append("<a href='./triggers.aspx?configid=" + m_ConfigManager.ConfigID.ToString() + "&page=0&view=2&list=" + items[1] + "' target='_blank'>");
 
@rlemon that's the only compelling case I know of
 
switch(action){
   case "Blah":
   break;
   case "Gah":
   break;
}
 
@Trasiva yeah, that's awful
 
@Trasiva I'd fail that for html strings, and switch
 
7:02 PM
if is arguably more readable in these cases
 
use a map of strings and format them
 
Don't concatenate HTML in strings, you filthy mong
 
yea a map is a good idea
 
flux action handlers ?
 
lookup tables are awesome
 
7:03 PM
then it becomes templates.get(items[0]).format(m_ConfigManager.ConfigID.ToString(), items[1])
and you've separated your code and data, which makes everything better
 
(arguably though there making a list of action handlers per event makes way more sense)
 
I'm using .NET 2.0, I'm missing like half that functionality.
 
no, you're missing them out of the box
you still have c#
get on it
 
vb
 
p.sure .Net 2 has collections
 
7:03 PM
.NET 2.0 ?
 
yep, just checked MSDN, it has both Dictionary and String.Format
 
Oh, you're talking just basic like dictionary mapping?
 
for a few years when I started here I was working on c#<3.0 winforms
 
there's no excuse for that shitty code
 
Ah yes... winforms. It's what I started on at my previous job
What a fucking mess
 
7:04 PM
Meh, I'm just building off their old shit without re-writing it all. Mostly because they won't let me.
 
yup
I was making testing software for internal use
for some reason this needed to be done in winforms
 
@Trasiva if you're going to disregard existing conventions, I wouldn't let you refactor anything either
 
@Trasiva bro, we're bros. but you need to actually take their advice in these reviews. :P what you've showed us in the last 5 minutes would fail most reviews
 
@rlemon I know. I'm just, I dunno. I'm in a weird place as of late.
 
code reviews exist so one developer with crazy ideas doesn't go rogue and turn the entire codebase into a hungarian string-based switch
 
7:07 PM
@Loktar :O
dem physics
 
we implemented reviews after a dev committed 5k lines in one go that didn't match the conventions (or work) at all
like 2 weeks of work, all reverted
 
lol
 
tbf, they were moved off the project right away and fired shortly after
 
Hm... scoping question: is there any reason this should not work?
MyModule = {
  _messages: new Socket(),
  @chainable
  listen(future, callback) {
    this._messages.on('data', Meteor.bindEnvironment(callback));
    future.resolve(() => this._messages.removeListener('data', Meteor.bindEnvironment(callback)));
  },
  execute(subroutine, regex) {
    let future = new Future();
    this.listen(future, data => {
      if (regex.test(data)) // ....
    });
  }
}
It says that regex is not defined
 
7:11 PM
how do you have decorators but you're still using object shorthand for your classes?
 
Hello, smart people.

I am trying to upload a file to an api using ajax. But am having trouble.

I am using jQuery's ajax method like so:

var formdata = formdata.append('images', this.files[0]);

$.ajax({
url: "http://localhost/s3_api/public/images",
contentType: 'application/json; charset=utf-8',
method: 'POST',
data: formdata,
processData: false
...});
 
why is all of the code bad today? D:
 
whoops typo: ignore the 'var formdata' part.
 
@CapricaSix ???
I mean, it isn't that bad so i'm leaving it
but you've failed
 
your contentType doesn't match the data you are sending.
 
7:13 PM
That is what i suspected.
 
use false
 
If it's what you suspected, why didn't you try to fix it?
 
Because I just began this stuff last week so I am not so keen yet lol
 
cancelled the star, stars are not bookmarks
 
Oh I thought they were like the like buttons on facebook or something
my apologies
 
7:14 PM
they pin to the sidebar (look right)
 
@rlemon Cap isn't showing, did she crash?
 
random stuff is stared all the time, but that was neither entertaining nor informative for anyone but you :P
 
Damn
 
!!are you alive?
 
@rlemon But of course
1 message moved to Trash can
1 message moved to Trash can
 
7:20 PM
18 messages moved to Sandbox
 
my cat has done that in the new tub
he could jump out of the old one, not the new one
 
how do you get them out of there ?
 
picked him up and put him on the tub edge
I was in the shower
(my one cat likes to get in where the water is not hitting and get misted)
not sure what is up with him
well, not so much anymore. now he just sits no the edge
 
So since we're talking standards, on a dynamic table, is it better to clone the first row, or just create the row from scratch each time?
 
7:27 PM
Okay this is probably a dumb question, but can you make a promise that resolves on another promise resolving?
function parseMessages(promise) {
  let listener = function (data) { /**...*/ }
  this.on('data', listener);
  promise.onResolved(() => this.removeListener('data', listener));
}
kind of separated from the promise so not really in the then I think
 
misleading... bert doesn't actually strip
 
!!tell Loktar youtube pantera this love
 
indeed a good song
good night folks
 
7:47 PM
@corvid you chain promises?
that's how they work
 
I think I am just not using promises correctly again :\
 
that sounds right
without getting into how your code actually works, the promise.onResolved should probably be promise.then
but you probably shouldn't be passing a promise into a function to be then-ed like that, seems wrong
 
@ton.yeung yes. The first one is a named function and will be hoisted to the beginning of the scope.
The second will technically be hoisted, but can't be called without the variable, because it has no name.
@ton.yeung One is named, one is not.
The named one can be called by name and thanks to hoisting, can be called before it's declared. The unnamed one cannot.
The function itself isn't, but how you get to it is.
 
m59
Should npm install dev dependencies of an installed package?
 

« first day (1943 days earlier)      last day (3003 days later) »