« first day (2314 days earlier)      last day (2648 days later) » 

12:08 PM
so I'm posting data to my express server fine. Until I try to send something with contentType: 'application/json', it returns a 401. Is there any reason why express would do that?
@BenFortune :)
 
@BrianJ Are you using body-parser?
 
yep
I don't have any options set on body-parser though just the default
 
Wait, 401 is unauthorized
What are you using for auth?
And you're using .json()?
 
@W.Jack Check this
2
Q: How to add filters in grid column headers in extjs?

Anand SinghI have a grid with lots of records in it. so I want to add filters in each column header to filter the required data easily. I have seen the example given in the sencha docs. But How to implement it in the Extjs 4.2 version. How to use UX classes in it? Is there any plugin available? I am greatl...

I am kind of busy with work in office, will check later
 
Yeah... checking... Thanks
 
12:14 PM
@BenFortune I'm using windows-auth when the user first browses via IIS
like:

    <iisnode promoteServerVars="AUTH_USER,AUTH_TYPE" />
 
Yeah, haven't got a clue
 
so everytime I make an AJAX request I just include:

xhrFields: {
          withCredentials: true
        },
 
@BenjaminGruenbaum that they have committed their passwords, ok , but naming the commit with "remove password" is just more worse
 
cool will try something here
 
12:30 PM
@KarelG I assume virtually all of them changed the passwords following the commit.
 
@BenjaminGruenbaum s/assume/hope/
 
-1
Q: Which of the following types can be the ReactNode?

GasGas1995CAN BE NOT 1 RIGHT ANSWER Array of React Nodes, Plain Object , Array of Strings Answer — ReactElement, String, number Array of React Nodes Answer — Array of Numbers, Array of Plain Objects,String

wtf is this
 
derp'd ?
 
@BenFortune A test question
Probably.
 
badly copy-pasted...
 
12:41 PM
Hey
 
💩
 
🌽
 
🍆
 
I'm a web designer, have some knowledge about JS and its plugins, I wanna be a JS programmer, can someone guide me, which topics I should focus on.? For example, Someone told me to learn about OOPs.
 
12:44 PM
JS doesn't have "plugins"
 
I mean libraries, Angular etc.
 
@AbhishekPandey Read "Eloquent JavaScript"
For a start
 
that's a good start I'd say
 
I would recommend doing a course on FreeCodeCamp or if you're willing to pay, I've heard CodeSchool is good for interactive JS Lessons.
 
you should learn about making games in js then you can learn about many other things
 
12:50 PM
ohh, @madara-uchiha I was stalking you on SO, glad I'm taking to you :p ;)
 
@AbhishekPandey you have no idea how excited he is to hear that
Please send him stalking progress emails every day.
3
 
@Benjamin LOL it was just for fun, By the way I got enough knowledge to learn about
 
you should learn about making games in js then you can learn about many other things
 
@jacobian Yes! I'll follow you advice :)
 
Why would you learn to make a game in JS first?
 
12:53 PM
@AbhishekPandey great, you can send him emails about what you learned every day. He'd love it.
Best emails ever
 
Jokes aside, writing every day what he learned might be interesting
 
I think JS programmers are needed for game, that's what I learn when I become a programmer in a company.
while php programmer are needed to manipulate drupals and other CMS to suits their needs
 
@jacobian PayPal's backend is written in JavaScript
 
@jacobian your advice continues to be bad. Please stop.
 
HAMMERTIME!
 
12:56 PM
they even tested me by telling me to create a drawing game in js. to which I did it like this. jacobian.xyz/gambar
well it's just my experience in becoming js programmer.
JS on the web are mainly for game creation using html5
 
Many JS programmers started by making a game. Making something for fun is a good way to learn and why not a game ?
 
@jacobian JS on the web is most certainly not mainly for game creation using html5.
Making a game is a valid use of JavaScript, for sure.
But by no means is it the most common use case.
 
for sure
 
There are far more servers written in JavaScript than there are games written in JavaScript.
 
and you can use netlify to host your js game for free.
 
1:00 PM
Cool! Tons of knowledge,
 
@jacobian I've always preferred having my own server with my own domain and my own TLS certificate
 
well I am learning nodejs now to make javascript server. will update when I am succeed
 
Lol
Stop trying to pass others work off as your own
2
 
well the code is broken I had to fixed some function there
so there's that. LOL
 
That obfuscated code you stole from the live preview?
 
@BenFortune haha, nice
 
it's an example of JS potential for gaming.
 
what's your point?
 
@GNi33 👉
what's yours?
 
🖊
 
1:04 PM
I don't have one
stole it from me a while ago
 
i'm so poor at emoji's :/
 
it's good making game in JS, teaches you how to use many libraries.
 
and copy-paste, too
 
@jacobian So does everything else you can do in JS
 
since when does main have the new design?
 
and I mostly like the change. It makes sense
 
I like it too.
 
The previous location of navigation items was making no sense at all, and some items were like, hidden in a black area.
 
Change is nature :j
 
And imgur's gui goes on being totally random
In IE9
What am I missing here ?
 
1:21 PM
@jacobian If you want to look at the potential, aim bigger: youtu.be/P7EUbO4PW-0
 
12
A: IE9 array does not support indexOf

AuxAre you sure your page is running in IE9 mode? Check in dev tools (F12). If you have old DOCTYPE you might be seeing your page in IE8/7 mode, so indexOf is not supported. If you are running in IE9 mode then it works just fine.

 
I tried all modes
Is it possibly related to the fact there's no page (only the console)?
edit: yes, it works when a apge open
 
halp. doing a project where there are multiple tables with their own jobs. All those tables has a column Name which is to represent an user name. The dev uses inner join on that column to join two tables. I'm almost dead.
// checks imgur
 
@KarelG Fun
 
Joining two tables? Crazy talk!
 
lol @KendallFrey i.imgur.com/OxVMbMb.jpg
 
@rlemon 10/10 did not expect
 
Let's suppose Trudeau can solve America's problem by just marrying Donald Trump. What will he choose?
 
1:55 PM
Do they have to have the sexy time?
 
Sorry, my imagination can't venture so far.
 
are there any "best practices" articles about managing login in Angular?
 
good morning everyone
 
Hallo anyone able to answer this question? stackoverflow.com/questions/42229459/…
 
@WorkingPig Welcome to the JavaScript chat! Please review the room 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.
 
2:03 PM
@WorkingPig Yuh, create an SVG
 
@tereško You usually make a User service of some sort.
 
@MadaraUchiha do you have 5 min to spare for my questions?
I would like to pick your brain a bit
 
@BenFortune yes I have no choice :(
 
@tereško Sure
Take note that I'm by no means an Angular expert.
 
@MadaraUchiha ok ... but my question are actually Angular related. So. I have an authentication form (which might be reused in some other location on the site). Should this form be handled by a separate controller or should attach the methods to some "page level" controller instead?
Or maybe I should actually make it a directive instead?
 
2:18 PM
@tereško I'd make the form a directive with its own controller
But like I said in the PHP chat
I'd also have some sort of Service for controlling the authentication status of everything
You might have restricted sections of your site, unclickable links, promotion notices, etc.
 
@WorkingPig draw it to canvas, convert to base64, then set as src for an img
 
Then the controller talks to the service, the service is the one holding the state.
 
I think I would be going with Login controller and Authentication service (which would be shared by some other controllers too)
 
@tereško Yup, sounds good.
 
what about handling of errors?
@MadaraUchiha should I emit them or handle them internally within the controller/directive?
 
2:22 PM
@tereško Just use cookies
 
@ndugger I think he wanted to get the image from google map, which should be protected as cross origin....
 
@OliverSalzburg for what?
 
@OliverSalzburg how is it related to anything I have asked?
 
Hello everyone, I have a basic Javascript question, I've searched for the solution but it didn't quite work for me and I don't know why. So, I'm trying to check if a function exists before calling it, with typeof mask === 'function' {...} but typeof mask always returns undefined, even on console. The funny thing is that I can do $('div').mask('00/00') on console and it will work, so how can it be undefined?
 
2:23 PM
24 mins ago, by tereško
are there any "best practices" articles about managing login in Angular?
They are the same as for a non-Angular app
Unless you want to overcomplicate it
 
@tereško Depends whether you can recover from them internally
Also, depends on what operation
For example, you might have both a login page, and a login popup (which pops up when you click on a restricted action)
The error handling for both of those would be different, so handling internally might not work.
 
@LucasBustamante Because it's a method on a jQuery object.
 
@BenFortune thanks. So mask isn't a function? I'll look into methods on jQuery objects...
of*
 
@LucasBustamante check the typeof of $.fn.mask
 
$.fn.mask = function...
 
2:29 PM
Although, proper use of modules should prevent the need for that.
 
@MadaraUchiha if I emit an event from a controller, can it be handled by the same controller or must it always be some parent controller?
 
I'l doing selective load of jquery plugins
thanks guys, that did work
 
@tereško I'm not sure.
 
any material you wanna share about this? I really have no idea why it did work
kinda of get the point
it's a method on a function?
 
@LucasBustamante JavaScript has no methods.
Only properties on objects whose values are functions.
The reason this works is because that's the API jQuery exposes
jQuery.fn.log = function(arg) { console.log(arg); }
Now $('div').log('foo') is available
 
2:32 PM
I see
so this is jQuery
 
So if you wanted to check whether .log exists or not, you'd check for it on the jQuery.fn.log or $.fn.log object
jQuery === $ in most cases.
 
how did you now mask was a jQuery object?
know*
 
@tereško Events can be handled by any listener, thus any service
 
@LucasBustamante Because you said that $('div').mask('00/00') works
 
so it had to be..
 
2:34 PM
Meaning that it's a jQuery plugin of some sort
 
@OliverSalzburg so listeners are on services and not on controllers?
 
thanks a lot guys
really
 
@LucasBustamante You're welcome
2
Q: What should I do when a coworker suddenly turns violent at the office?

NzallLast night, I watched a video on Youtube that showed about 10 employees suddenly turn violent at the office. They suddenly started destructively violent behaviour, such as breaking laptops, throwing around office chairs, monitors and printers. A bipolar man had an attack that destroyed half the o...

 
and the answer about listeners is: no
 
@tereško As long as you can grab a reference to a scope, you can attach listeners to it. Usually that would happen in a controller (as those are usually bound to scopes), but you could also inject $rootScope anywhere and just attach listeners to it
 
2:41 PM
handling for login error should probably be attached to root scope
 
This is the first time I am seeing a style tag inside a div
 
@FlyingGambit it's missing the scoped property to be useful...
 
@FlyingGambit <style> can exist anywhere
 
@tereško We handle errors where they happen. We log the user in by a simple $http.post call with withCredentials set to true. Either that succeeds and the user is now logged in, or we get an error return and handle it. Detaching login failure handling through events just raises new problems
 
2:45 PM
@MadaraUchiha Yes, it can but I don't think we usually write it in div
 
In fact, we did that in the past and ultimately moved login to a completely separate application. Once you log in, we're redirecting to the actual application and just assume the user is logged in. If we get a 401 reply during our work, we navigate back to login
 
@FlorianMargaine Thats useful
 
@FlorianMargaine Worth noting that that article is from 2011 and the scoped attribute is no longer in the spec.
@FlyingGambit ^
 
@MadaraUchiha oh? sad.
 
2:46 PM
oh :O
 
Yeah
But CSS modules are a thing, so that's nice.
 
I don't think single comment works, but however the style wont get applied since it will not be recognized
We literally handed over a webapp that had like atleast 3000 lines of dead code spread over everywhere with many unclosed html tags
In the meeting, he called the entire app garbage
The only thing that bothers me is that I am cleaning someone else's mess
 
I'm so confused. ln -s /home/user/project/folder/subfolder/ /foo/subfolder is creating /foo/subfolder symlink back to the other folder, but is also including a symlink to itself within it.
 
Hey guys, what's the templating engine you are using and why?
 
@JaredDunham Welcome to the JavaScript chat! Please review the room 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.
 
2:59 PM
hi
 
@weizhao Welcome to the JavaScript chat! Please review the room 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.
 
@JaredDunham react (not really templating, but kinda) and because it's aweseom
 
@Luggage Can you use react on the client side? Doesn't react use classes?
 
yes and yes
 
user2620028
man..... dailylifetech.com/trackr/d/entry/… this is probably the first time that i actually wished that i had an android phone for app support
 
3:12 PM
classes or functions (for stateless templates)
 
user1596138
3:33 PM
@HatterisMad You just linked us a clickbait ad
 
user1596138
And it doesn't say what it uses for connectivity lol
 
user1596138
Dude. It's just bluetooth.
 
user1596138
They've had those for years. I think some sarcasm went over me... Or something..
 
bluetooth? so you have to find your car before you can track it?
 
user1596138
You have to get close enough to connect lol yea
 
user2620028
3:41 PM
yeah i didn't really read it
 
user2620028
was just like oo thin tracker that would be nice to have and clicked off the page
 
user2620028
i basically stopped looking at it once i confirmed it didn't have windows phone support hahaha
 
with a particle electron board you can get a cellular contract for $3/mo that will allow you to actually track the car (albeit it is not meant for like real time shit, more for stolen car/bike)
 
user2620028
@rlemon yeah thats what i was wanting
 
just walk
you can always track your legs
 
3:43 PM
store.particle.io/collections/electron if I owned an expensive bike, I might actually consider attaching this.
 
user2620028
wut i don't get it loktar lol
 
user2620028
was thinking it would be nice to stick a tracker on my car if i am going to restore it. for the inevitable times that it gets stolen
 
the Electron is an arduino + cellular
same footprint and everything
 
user2620028
how do you register a cellular signal to it
 
they are the carrier. pretty good coverage map
$2/mo connection fee, $1/mo for entry data plan
 
user2620028
3:46 PM
ahh
 
user2620028
ehh cheap enough i wouldn't care then
 
which is VERY small. again, it is for emergency stuff. not for real time deal
 
emergencies happen in real time
 
like, boss had me setup one for his second house in the country that doesn't have internet, but does get 3G
 
in case someone steals the house?
 
3:48 PM
so if the furnace every stops running / place gets too cool it sends him a sms and an email
old farm house, hard to keep warm I guess.
 
user2620028
haha nice
 
why to heat that house if he's not there ... ?
 
so it doesn't freeze
 
i'm also curious how he would solve that problem (that it's not heating)
flying to there ? :P
 
3:56 PM
drive out there and fix it
 
ohhi
 
i can't imagine a frozen house
 
it isn't nice.
all of those handy pipes that carry water don't like it
 
not isolated pipes ?
 
not in a house that is meant to be heated
 
3:57 PM
"old farm house"
 
it's enforced here since '80
 
I don't care old or new, you let a house get to -10c inside and your pipes are going to burst
 
any house, no matter how well insulated, will freeze up eventually without a heat source
 
now wall and roof isolation is a must if you renovate or build a new house
 
you have to heat homes in the winter in Canada.
not to like 20C, but like keep it above 5C
 
user2620028
3:59 PM
have seen what happens to drywall if you leave the house unheated in the winter
 
nope, and I don't wanna. but I have seen the aftermath of a bust pipe a few times
 
user2620028
pipe burst is much worse
 
drywall might have showed some damage from the cold, but all I saw is water damage
 
user2620028
drywall just warps a little bit in different directions
 
drywall gets nice and wet, then turns to ice, then when you heat the house back up it turns into mush and falls apart
 
user2620028
4:00 PM
not a crazy amount but enough to annoy the crap out of you if you are working on it
 
user2620028
haha yeah, if it gets wet it is done for
 
> The longest piece of literature, in the English language, is 3.5 million words long (and counting), is written by a 21 year old guy in Arizona, and is a fan fiction of Super Smash Bros Brawl
cc @KendallFrey @SomeGuy
 
> Let's also make this clear, when we say sniper you're probably thinking there was a scope or something on his rifle. Nope. He did this with iron sights.
well shit
 
context?
 
the 'best' sort => top like 25 are pretty good
 
4:09 PM
someone shoot trump?
 
@Luggage top post in the link I linked
err.. not top
but its in there
 
@copy would I have to be in NYC to help with the hackathon?
 
> The swimming pool onboard the Titanic is still full.
Yes, I suppose it is.
 
4:25 PM
heh, "remove password" committed to "high-security-server" 3 minutes ago
 
@KendallFrey as I'm watching this I get my "Your Google Play Music Order.... "
freaked me out for a solid 1.3 seconds
 
Canada has music, now?
 
yea, but google music doesn't have "The Sounds of Moose 3: Mating calls and defecations"
thinking of just cancelling my sub tbh
ohh look! another one! propeller.in and it looks just like all the rest! \o/
 
4:42 PM
If I have a controller which needs a service as a dependency, is there a way to avoid to inject that dependency, without having to define it in the main "app" module?
 
material + bootstrap? ...
 
all the things
 
@Luggage looks like bootstrap4 less styled to look like Material
so a Material 'theme' for bootstrap
 
well, ok.. that's not too bad.
 
yea, the page is just a lot more hype than it needs to be
it's not even the first material theme for bootstrap
 
4:45 PM
Basically, what I am looking for is a way to avoid having 57 services injected in the main.js file
 
57 is a lot.
 
you know what's funnier than 57?
 
?
 
@Luggage it was an example
... or actually, a possible estimate :(
 
@SterlingArcher twitter.com/DannyDutch
!!afk luncharoo
 
4:54 PM
58?
 
posted on February 15, 2017

Last week I was the target of a good old-fashioned internet witch hunt when I dared to propose that you should be able to work without tools (frameworks, libraries, and so on) in order to be a web developer. I’m not saying you should give up your tools and only work in raw CSS and JavaScript. Instead, I’m saying that you should be able to do so. That’s my definition of a we

 

« first day (2314 days earlier)      last day (2648 days later) »