« first day (3334 days earlier)      last day (1621 days later) » 
01:00 - 18:0018:00 - 22:00

1:06 AM
@Wietlol damn it you stole my idea
 
Oh it's changed its scope? From programmers to software engineering?
Or am I confusing now two different se sites?
 
1:36 AM
@paul23 i think you are confusing
@paul23 Software Engineering, Stack Overflow, Code Review are like three sites for the three stages of development. Start by designing (designing questions go to software engineering). Then start writing your program (debugging, software problems, etc. gon on SO). And then Code Review once its working and you just want to make sure you are doing it the correct way.
 
 
2 hours later…
4:05 AM
@Wietlol That sounds like you can type P only when you press down the keys around P. If it is mechanical failure, any keys shall do, while a more digital failure means only specific keys can be the temp fix. Either way, most likely the keyboard need to be replaced.
 
 
3 hours later…
7:27 AM
@paul23 software engineering is about program design
Though I wouldn't consider optimization as a program design thing generally speaking..
For that you should go to code review
 
Good morning ლ(ಠ益ಠლ)
 
Hard to say. If a performance issue spans multiple components, than it involves the design process. Like sending and waiting a hundred commands instead of consolidate them into one, or a database design that make the backend query in O(n^2).
 
7:47 AM
@Sheepy I would argue that at that point, it isn't "optimization", rather it's "not writing a shitty program"
if you mess something on that scale, then it's arguable whether or not it is actually doing what it is being asked
 
Someone in android is shittalking JavaScript
 
lets beat him up
 
Well, the line between optimization and usable can be blurry. An app that serves fine on my overclocked 8th gen 6 core i5 may struggle on the client's windows server 2012.
Or that O(n^2) is fine when n was 2, and everything is signed off, then n grows by 1 every month...
 
if you thought that n would grow, you made a poor program design decision
And if you weren't told n would grow, you weren't given the proper specifications for what you were coding
In either case, it isn't optimization
 
@geisterfurz007Stopthischaos freedom of voice
 
7:56 AM
We can still beat him up?
 
@Neil I think I am thinking about program optimization while you are strictly limiting optimization to code. Wikipedia did split "program optimization" into design, algorithm, and code level.
 
probably just a difference of vocabulary
I just wouldn't consider it optimization
 
8:47 AM
@Sheepy not only the characters around it tho, for example, [ctrl][p] still works fine
same as [ctrl][up]
 
@Wietlol I took it as right ctrl. But when you plugin in another keyboard, that works fine, yes?
 
come to think of it, I dont think I have actually tried that
 
9:27 AM
I've heard my share of keyboard ghost stories. Hotkey software (e.g. Accessibility), object on keyboard, short circuits, blocked keys, multiple HIDs, battery, USB 3.0/Bluetooth/Wifi/Microwave interference, but your case is still weird. Hope you can find the cause and report back ;)
 
is it a mechanical keyboard?
 
i think not
its the internal keyboard of my laptop
 
9:43 AM
@Wietlol just pressing p is not working but it does while you hit another key?
an interesting case.
 
only specific other keys
for example,
[o] makes it work
[ctrl] makes it work
[-] does not make it work
I have absolutely no clue how those relate to each other
[shift] also doesnt make it work
so, its not just masks and its not just near keys
 
both ctrl or just right/left?
 
I only use left, no clue about right
actually, I do use right as well
 
see if it persists if you use right ctrl
 
but only for [ctrl][/]
so, if right control doesnt make it work, it is probably something mechanical, right?
it seems I have a lot more testing to do
 
9:56 AM
it is only the P?
no problem at eg I ?
or L?
might be a connector issue, not transmitting enough powah
holding other key led it having sufficient power to be detected
 
i and l work fine
the problem is currently at p and ' and up (arrow)
oh, and +
(not the plus next to the backspace, but the plus on the numpad)
hmm... power issue sounds logical
 
my first step is to clean the dirt out
 
10:22 AM
Send it to repair and buy a Black Friday desktop.
 
I dont want a desktop tho
and I dont want to send it anywhere
 
Hi All
0
Q: How to extend a class in typescript

Sam SamMy service is designed in nodejs. Below is my scenario i have two controllers, one will be extending the other. there is a static function in both the controllers where in a static variable will be assigned some value. depending on the condition of the data, im trying the make a call to ...

above is a posted question, if someone by any chance have a workaround for the issue.
 
Well yeah I do have a laptop, a detechable. But I prefer desktop. Cheap, fast, expandable, easy to repair. My toddler already fantasies that his bookshelf is one big desktop. He'll plug his keyboard and trackball to the bottom, sit in front of it, and start typing.
@SamSam You may want to remove the javascript tag.
 
it is difficult to use a desktop for your work ...
 
My office once tried to make me share a server pc with others (through remote desktop). Whenever I do a project search or compress a video, the whole office complains. The IT comes and type on my PC and what he types is not what he sees. A while later they got me a dedicated desktop.
 
10:35 AM
@Sheepy yaa, did it.
 
We moved office a few months back and I bought my laptop to work for about a month. Plug in everything in the morning and unplug everything in the evening. And not enough power to me. Android simulator is fine, but anything more demanding I need to remote my home.
 
mobile app development?
 
10:55 AM
All kind of developments. Three tier SQL server, Automation, Unity, iOS. Now working on an interactive ecard and compressing xmas videos.
 
like my job
initially I moved over to QA now we are doing any shit whatever we need to do from the management
yet people wants to work for my team. I take it as a compliment and gives me a feeling that I am managing my team right.
 
 
1 hour later…
12:15 PM
Hi All
my client application, is designed on top of nodejs and expressjs
im trying to read a file using fs.readFile, i know i can do this on the service / api level, but in the client application im getting the below error
Error: Script error for "fs", needed by: myFileName
 
Your client application is what exactly? The node server or the client side javascript?
 
it is javascript
but we use express
 
you cannot read files locally
you probably got things mixed up. Do a request to your server to read a file there and respond with a text
 
ok, yes.
just wanted to confirm, whether any way i can do on client side.
 
12:33 PM
why do you want to read files locally?
don't you see the problems with it? o.o
 
12:48 PM
I dont :D
 
@SamSam If you mean reading a file that is served from the server, you can simply put that file you need to read into a directory that your node application serves publically and send a ajax request to the respective URL. If you want to read a file from the client's computer, that's not possible for good reasons (imagine if every website could just read through all your files; that's not a good idea).
 
I like that idea tho
@SamSam if you want user invoked file selection, then perhaps a file input field would do
if you want some local storage, perhaps cookies
or something like that
 
 
1 hour later…
2:12 PM
Hello, can any one help me to create a JS plug in.

use case: My client have one angular2 application in that he click on the one button some where in the project, after that i need to launch the model popup this have 4 form steps. this model all created in one plugin he use this plugin to his application.

any one help to how i achieve this. Please
 
@yalaramesh Can you please try to re-explain? Your description of the problem difficult to understand.
 
I was trying to understand arrow functions, so I created this little snippet to test it out, but it doesnt return the element
const query = (a) => { document.querySelector(a) };
 
i need to create JavaScript plugin for angular application. How to create plugin?
 
@TaylorS if you use curly braces, you must have something to return with a return keyword.
 
@TaylorS remove the brackets or add a return statement
no brackets is implicit return
 
2:16 PM
otherwise it does an implicit return
 
  const query =  a => document.querySelector(a);
or
  const query =  a => { return document.querySelector(a); }
or
 
oh that makes more sense
 
  const query =  document.querySelector.bind(document);
 
why bind?
 
 // returns result
(a) => document.querySelector(a);
// if one argument, the brackets are optional, works too
a => document.querySelector(a);
// with curly braces
(a) => {return document.querySelector(a);}

// your version
(a) => { document.querySelector(a); }
// is equal to
(a) => { document.querySelector(a); return; }
 
2:18 PM
because you are dooooomed otherwise
 
I was just looking for ways to shorten my APIs that used variable functions like:

var a = function(arg) {}
 
@JBis that's a different result o.O
 
wait, Im confused, how would const query = document.querySelector.bind(document); even return an element
your not selecting anything
 
const query = a => document.querySelector(a);
 
please be aware that an arrow function expression does not have the this bound
 
2:20 PM
In that you are not selecting anything either
bind returns a function with the this variable bound to what you passed bind as argument
 
Yeah, I know, documentation on it was a little crazy though
thats why I came here
considering they give things like this:
var f = ([a, b] = [1, 2], {x: c} = {x: a + b}) => a + b + c;
f();
 
@KarelG how? With document.querySelector I think it will have the same result.
 
You wrote
const query =  a => document.querySelector(a);
or
const query =  document.querySelector.bind(document);
two different things, no?
 
the lower statement looks like it wouldnt return anything .-.
I think the first statement:

> const query = a => document.querySelector(a);
 
@KarelG Yes, but they have the same result.
 
2:25 PM
would work better
 
No, actually my guess is the first statement would work worse. But it would be a microptimization.
 
.bind is always confusing, and Ive never seen anyone append a prototype function to a selector and then bind a document object
 
@TaylorS Imagine it like this: document.querySelector takes an argument, right?
 
@TaylorS bind is very simple
 
yes
 
2:27 PM
|| mdn bind
 
[Function.prototype.bind() - JavaScript | MDN](#)
An error occurred with the request.
 
and no?
 
GOOGLE FUCK YOU
2
 
LOL
 
AHHAHAH
In the first version a => document.querySelector(a) you manually accept that argument and put it into the querySelector function, right?
 
2:28 PM
@KarelG how is it different?
 
Also note that you are calling querySelector on document.
 
true, but returning a plain argument into an arrow expression is slightly smaller and more readable/understandable then the second statement
 
It definitely is!
But you could also just write query = document.querySelector to skip this manual accepting and passing over
 
bUt MiCrOoPtImIzAtIoNs
 
I make lots of little compact personal APIs for development of other APIs and tools in JS, and I use variable/function return statements a lot
many of them only having 1 return statement
 
meaning I can shorten and convert many of them to arrow expressions
 
@JBis cast a toString on it
 
I thought you were confused about how the bind version works because you said something about "it returns nothing"
 
@TaylorS document.querySelector uses this internally. If I do
 
sure you get a same result when calling the query function, but the behavior is different
 
2:30 PM
also, geister why is your name so big
 
Because I am too.
 
const query = document.querySelector;
it will fail
 
@geisterfurz007Stopthischaos better :P
 
@KarelG that wont work
try it
 
exactly! I was not done explaining but I was cut of anyway :D
 
2:30 PM
your name is so big the chat gives you extra space to talk
 
so we use bind to make this refer to document
 
@JBis 2 times ^ = 2 comments higher
 
oh
 
Because the image isn't loaded properly which makes SO throw write the full name for some reason.
 
well make it 3
anyways, back to the difference between arrow and using .bind
 
2:32 PM
I get that its simple programmaticly but its not simple trying to grasp the concept of it
 
produced results is same but the object is not
 
its alright, I dont need this statements for too many of my basic variable expressions
 
|| mdn bind
 
there we go
 
2:35 PM
guys any one help me, How to create JS plugin with some functionality.
 
.-.
 
that's not vague at all
 
^ /s != /s
but its also /s
 
How about this, I'll help you make a js plugin with some functionality if you help me make a program written in java that does some equally vague thing
 
25 mins ago, by yala ramesh
Hello, can any one help me to create a JS plug in.

use case: My client have one angular2 application in that he click on the one button some where in the project, after that i need to launch the model popup this have 4 form steps. this model all created in one plugin he use this plugin to his application.

any one help to how i achieve this. Please
 
2:37 PM
The requirements were actually outlines a little further above.
Oh look, it's Benjamin! Henlo o/
Goddamnit JBis, you little sniper!
 
>:)
 
the answer lies in doing research and doing the coding effort himself
 
Thanks @JBis, i am google it how to create plugins does't found proper anywhere, even provide a any reference is also fine
 
oh
 
JS Plugin.. theres like a billion different definitions for that...
You want like a javascript API?
 
2:42 PM
read the requirements Taylor ...
 
like a JS File served from a CDN... Lol
 
angular plugin taylor
 
oh
 
No, the client is asking some functionality in like plugin(need to develop in JS only), for that he can plugin this any UI applaication(Angular/React/Vujs developed applaication).
 
2:44 PM
@yalaramesh the appropriate name is NgModule and info can be found here: angular.io/guide/ngmodules
oh now you are talking about vue.js and react ???
they have their owns mean to define such "extensions".
in vue it is done with directives
in react module as component
ect
 
I don't think there is a way to write one thing for all libraries. In React for example, adding HTML manually to the DOM will cause an unmanaged difference between the React virtual DOM and the real DOM.
 
@yalaramesh Its a bit difficult to understand. Assuming your first lang is not english, maybe try entering your question in your first language into Google Translate.
 
google translate is a hell hole
I play rust and see a russian dude translate to english his insults at me: "You die man gun from you in you die" lol
 
it does its job fairly decent
 
2:47 PM
i mean client side create one plugin in pure JavaScript, he can plugin this any UI based framework.
 
as well as it can all things considered
 
@TaylorS maybe he's illiterate
 
ehh, if youve ever translated with Chinese or Japhanese, youll notice it doesnt merge statements correctly, and can produce spam
 
@yalaramesh you cannot have an universal plugin that would stick easily in current javascript frameworks
 
Nah, he was speaking in russian, but he didnt know English, Im only assuming he used google translate because of its reputation
plus with translating video gamer language... well
EnGRISH plEASE
 
2:49 PM
each framework has their own architecture. Don't expect that you can fit your custom kitchen in all buildings.
 
sorry for English guys, TaylorS i will take course from you.
 
Oh! theres nothing wrong with google translate, I have Portuguese friends who can only speak small bits of english
and I use it alot, but I dont find it always perfect
???
Course?
 
And Thank you @KarelG, @JBis for your valuable time, Thank you once Again
 
Uh... if you want to learn, Im not the person to ask lol
Im as much a newbie at javascript as anything
In terms of JS experience, who here has the most? Im assuming KarelG
Youd have to ask her, but most people who take in anyone for courses
and I recommend taking online courses
 
*him
 
2:57 PM
HUH
 
KarelG is a guy
 
er...
kms
 
and this is why I always use they/them
 
apparently that's not even fine anymore
 
If someone's gonna get offended by they/them then they are going to get offended no matter what. And at that point it's their problem.
 
3:01 PM
I know, it becomes lunacy at a certain point
Can you not, say, understand that people may not know what to call you before you specify what you prefer to be called?
 
@Neil not sure if being a twat makes it one-sided ...
 
I was being a twat?
 
user10864482
3:17 PM
is there known ways to trick chrome regarding corb?
 
user10864482
(and good morning)
 
Do you mean cors?
|| mdn corb
 
|| mdn cors
 
user10864482
3:31 PM
no, i meant corb as in cross origin read blocking
 
user10864482
I'm working with Ms dynamic crm . I need to make a request with authorization to a webdav server to open a microsoft office document link and my request get blocked
 
user10864482
it's very basic; i receive a authorization token and then I send it back with the request. The answer is then forwarded to the client and I use a protocol handler prefix to get that link opened with Ms office word text editor
 
@JBis it's a new security feature in chromium
 
user10864482
I can send the request but when I receive the cors response I get a corb
 
3:46 PM
@human cool
 
user10864482
it would be cooler if cpu vulnerabilities didn't affect my development. They mess it so bad that it's possible to use the browser as a side channel for a memory attack. It's as bad as it can be
 
Someone got an idea why "npx webpack" runs perfectly when called on bash but has troubles when called by jenkins shell script?
 
Finished my first legitimate game in JS... rather than a boring clicker game
Snake was assumedbly popular
so I spent some time looking at different concepts, and thats the final version
Sadly still no idea how to create updating array fields and render them
 
@TaylorS There's some timing issues when trying to turn along walls.
 
If I could, id love creating my own sand game
 
4:00 PM
The instant your snake moves against a wall, you die, so it seems basically impossible to get pick up the bits when they spawn along a wall
 
meager, yeah thats the quality of my code, I cant figure out how to make it turn WHILE in a square, I can only make it turn RIGHT before it goes to the next square, btu if you play it for a while, its actually not too hard
Just click right before you get to the wall
you can reach the edge ones, its just hard to get used to
 
also clicking to restart has issues
 
Well, I mean, it's not "too hard", it's impossible
 
yeah thats codepens fault
the one on my github page works much better
 
I die if I get anywhere near the wall
 
4:02 PM
it refreshes the page, since I havent set up a way to reset all the snake's body cells to their original values
wierd... perhaps its just not rendering correctly on different screens
see I can die on the wall while moving
my head hit the corner
I cant see other peoples screenshots though, so I dont know what to say
maybe codepen is just being dumb asf like always
 
Definitely still something up
It's a good idea to decouple your rendering logic from your physics logic
Right now your draw function runs in a setInterval(draw, 100)
 
So, no one is active in the CSS room so figured Id ask here. In firefox im trying to modify this CSS rule but it wont let me.

.row::after, .row::before {
display: table;
content: ' ';
}
I want to modify it to not have the after selector.
 
@ZackTarr Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
@ZackTarr Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
For some reason some library has this in their CSS and its adding a line after every row in our application. Its baked into everything, but they want me to reduce some lines in 1 spot.
 
overwrite it then @Zac
 
4:23 PM
Yeah I did but it didnt make it to the front end. We are using some massive CMS that combines all the CSS files in the app. But I font a way in firefox. Sadly the content: ' ' is needed. When I take it out it shatters the site lol
 
@ZackTarr
.row is selecting every row
sow simply find the row that doesnt need the extra line
and set its class a different one
so that .row::after and .row::before wont affect that one element
But if its an extra line with only this css rules: content:'' thats most likely because its adding an extra row that is width=0 so the borders of the row combine and make an extra line
similarly to if you make a table element::after
@JBis by the way, the example of the arrow expressions failed to function, and the other one I tried also failed to work
const query = document.querySelector.bind(document);

query('test').innerText = "test";
 
4:43 PM
Does javascript have a way to HTMLEncode a string other than just manually replacing each character you want to encode?
 
HTMLencode??
Whats html encode?
Oh nevermind
HTML entities
No, it does not
As far as I know, javscript does not contain the built in utilities to replacing a string with html entities.

Try using a library like https://www.npmjs.com/package/js-htmlencode @Hypersapien
 
5:00 PM
@TaylorS this will work, if there is a custom html element named "test"
 
There is
it doesnt work
promise you, tried it again and again
 
Send me your html
and why are you using custom html elements
 
codepen.io/SkylerSpark/pen/xxxvNMX Also I created this password validator for a friends site, and I tried detecting for when the input's empty because whenever you delete all the characters, and its empty, the Flashing Line turns Red, and I tried setting it to black if the input was empty
 
  <test></test>
 
oh shit
I didnt use #test
FFFFFFFFFFFFFFFFFFFFFFF
 
5:03 PM
:)
 
also do you know anything about my question above
basically if you type any NON ascii characters, it turns red and disables action, basically its telling you its not allowed
and I want it to turn the text black when its valid
 
I don't know what you are trying to do
 
but when you remove all the characters, the wierd flashing | symbol turns red
Im trying to turn the text red if its non-ascii (special characters)
and black if its ASCII
Nevermind I found something
the line is called a caret apparently
and it can actually be styled..
uhh I guess Ill try it out
 
@TaylorS It's getting a bit repetitive. There are issues with your code that you keep repeating.
inline event handlers etc
 
oh..
Sorry, I remember large things and then forget small things sometimes
Like... Ill remember how to create and setup a program in C# that can automatically install and manage Electron Packaging and instantly convert Websites or HTML files into webapp exe files, yet I cant remember how to position elements over each other in CSS sometimes
 
5:25 PM
It's not about memorizing, it's about understanding why one way is better than another.
@TaylorS
 
well that I know
JS just flies out of my mind sometimes, with highschool taking up most of my time, I dont usually actually have time to memorize everything
 
Well that totally went over your head
You shouldn't be memorizing just about anything
 
well I just learned more about lets
and Im going to destroy vars now
Ive noticed that var's are like lets in a function block, but not in conditional statements and other blocks
and I just read more on lets
 
@TaylorS Hey! Thanks for the input. I think I found a solution by adding a :not() selector to the css line. Then I can just add my class to it where I dont want the extra line.
 
good
 
5:32 PM
@TaylorS huh?
 
let statements are block-scoped
but variables arent
I didnt even know that .-.
 
@ZackTarr imo you don't want to use not unless you need to. Usually there's a better way to do it.
 
I just suggested removing the .row variable in the element you didnt want the extra line on
easy
you dont HAVE to use :not()
 
||> function test() { var x = 1} test(); console.log(x)
 
@JBis "ReferenceError: x is not defined" Logged: ``
 
5:34 PM
but if it makes your site more stable
 
@TaylorS ^^
 
Yes yes I know
but let variables are able to stay local even in a simple un-defined scope like:
{
 let name = 1;
}
when variables can sometimes escape non-function blocks
 
01:00 - 18:0018:00 - 22:00

« first day (3334 days earlier)      last day (1621 days later) »