« first day (2720 days earlier)      last day (2243 days later) » 

8:00 AM
Now we just need to set up other means of launching our processes in their debugging configuration and we're off to profiling gold!
Fuck! I deleted a ticket from the board and I don't know which one O_O
The goddamn keyboard-driven UIs!
 
lol
 
You can't hit the DEL key at all without fucking something up
 
welp, is there a backup?
 
Hah!
Yeah. I keep it with my loads of unit tests
 
Hah! I take it that means no
 
8:05 AM
Nah, no backup from which I could just pull the information on the board
Just full backups of the instance
 
so what'ya gonna do?
 
Hunt for it
 
If you can find it
 
I retraced my steps and found the epic this ticket was under
 
no confirmation during the deletion ?
 
8:06 AM
So it's still part of that epic, but just not on the board. I have hope
 
ooh emotional roller-coaster is still active
 
@KarelG No. This tool assumes you know what you're doing (yeah, right)
 
aha
try all the buttons!
then when an action happens, you forget which button has triggered it.
so retrying the buttons around that region again, but more slowly
 
Found it. It was to instate a data protection commissioner for out company
@KarelG I just had to type my ticket again, while not having the textarea focused, and then watch the focus jump around
 
@OliverSalzburg You having fun with GDPR yet?
 
8:09 AM
@BenFortune Lots
 
Just mash the keyboard repeatedly
That'll do it
 
we are still working on the GDPR here
 
We are a member of some thing I don't know how to describe properly, where we get support in these legal things. So I have to deal with them as well and find out how all of this is affecting us and what we need to do
And my contact is on holidays apparently
 
the deadline I have set is ... not possible, Suddenly some people became sick and now they are not in office for at least a week.
grmbl
 
I love it when I hit a dead-end with a ticket only minutes after I started on it
 
8:11 AM
We have that too
We get to have little workshops lmao
 
one even managed to be "sick" for two weeks here. But I saw he is completely healthy on facebook.
 
You can Facebook while sick
Posting selfies from rollercoaster rides... maybe not
 
he took multiple selfies of which I doubt his illness. He even took selfies of being on three different parties in the first week of inactivity.
 
Just take it out of his holiday
 
Eh I can't. He has a doctor's note
 
8:14 AM
Even worse. Insurance fraud
 
whelp. he is a good employee, so I will let it go. Gotcha take action if he does it again.
 
Assuming health insurance pays for part of their paycheck while sick
That's how it goes in Germany
When an iOS app is "Ready for sale", does that mean it's in the store or pending developer release?
I should know this :(
Should mean it's in the store
 
@KarelG maybe..... they were "congratulations for taking your first sick day in X years" for 3 different friend groups
 
oh wow
I did not expect Yvette to make it after the drama
 
Neither do I, but she will do it very well. I also did not know that Ed would leave the team
 
A woman comandeering the Stack Overflow ship?
Is that legal?
 
I was hoping for Magisch to make it
But he didn't even get past the first wave :/
 
8:46 AM
Google Drive is deleting porn!
 
waaaat?
 
@KarelG wasnt yvette the one about the "im a woman so vote for me" stuff?
 
yes
 
can anybody confirm that socket.io stores emits if there is no server connection? Which then gets all fired in queue once a connection has been established
 
@jAndy It doesn't iirc
 
9:03 AM
holy fucking mary and joseph
 
o.O
 
dear god what did I open
 
lmao, what cms is that?
 
Smarty templating language lmao
 
How do you guys handle 404s in a single page application?
 
9:05 AM
downloaded that from my shop
@MadaraUchiha good job :P
 
Thank you drag and drop upload script :D
 
Madara has been reposting stuff too much
 
@MadaraUchiha I don't understand the question
all the paths are being redirected to index.html#path anyway, right?
 
@BenFortune Now I just have to find the correct value and replace it
 
@FlorianMargaine I'll rephrase, I wasn't accurate.
 
9:07 AM
@FlorianMargaine I thought using the history api was much more common now
 
We have a hybrid application, it's SPA in that we have React and React Router, it's also MPA in that we have SSR
 
so you load index.html, but can end up at /something without ever actually sending a request to /something
 
We also have a few fancy server-side redirects that require an actual server
 
@towc yes, but you need to get to the app first
 
@towc That'd require SSR
 
9:09 AM
@BenFortune uhm no
 
404s can come by either directly navigating to a nonexistent page, directly navigating to an existing page of an nonexistent resource (like the stock page for a stock that doesn't exist), or by typing something bad in the search and pressing ENTER before the search results come in.
 
@FlorianMargaine still isn't usually done by hashes
at least in this part of the universe
 
Some of those should be handled by the server, some by the client, especially since we want to return HTTP 404 whenever possible
Mainly for SEO purposes.
 
@MadaraUchiha SSR can handle the 404 then?
 
@towc What happens when you want to go straight to /something
 
9:10 AM
@BenFortune your server router mask-redirects you to /index.html
so you can't do that with static sites
unless there's some layer of abstraction behind it
 
that sounds awful
 
I think I'm missing something obvious
 
FileReader.readAsArrayBuffer()
FileReader.readAsBinaryString()
FileReader.readAsDataURL()
FileReader.readAsText()
hey which one should I use between these?
 
the names are pretty obvious.
 
I need to send files over the internet
 
9:12 AM
@BenFortune unelegant, but smooth af on the user
 
@towc Two requests when you only need 1?
 
@BenFortune it's only 1 request from the client
 
@FlorianMargaine thanks, but which one is best to send a file?
 
the server serves you the /index.html
 
Then serves whatever it needs for /something
 
9:13 AM
readAsText gives 40% smaller results compared to URL
 
@BenFortune no because it's an SPA
 
Either I'm getting lost or you're describing Angular 1
 
I opened the template because I asked my shop platform people to change literally one thing (one value) and they told me 20$
 
@KamilSolecki You outsource?
 
@BenFortune I run my shop on a shopping patform, and it’s strongly integrated with panel and other things
The amount of integrations with different services and the built in functions are actually outstanding, hence why I did not choose to build the whole ecommerce from scratch
 
9:19 AM
magento
 
yeah but that is just the base
 
@KamilSolecki Colorful
 
@FlorianMargaine for the little money I pay monthly (roughly 100$) I get many many many things, like automatic integrations with different payment services, with delivery companies, lots of fun features like product exports already ready for the most popular shop comparison pages, automatic integrations with amazon ebay etc, and many many more
 
New life goal: 100$/m becomes "little money"
 
is it always better to use base64 encoding?
 
9:23 AM
better than what ?
 
@Cereal if you sell houses, $50K will be little money, but that still does not reflect in any way if you even make any profit.
 
@Cereal to run a business, it certainly is...
 
True
 
@Pac0 than sending a bytestream or UTF 8 encoded data
over the internet
 
That can depend on your usecase.
If you want to upload a file through a web form, using base64 is simpler to code (IMO)
(I mean a binary file, i.e. a .pdf or a .png)
 
9:29 AM
@Pac0 thanks! For example javascript provides these methods

FileReader.readAsArrayBuffer()
FileReader.readAsBinaryString()
FileReader.readAsDataURL()
FileReader.readAsText()
 
lol the horror of JSTL
> If you use the pattern attribute and you want to display the currency symbol, then you have to add the currency symbol place holder ( ¤ ) to the pattern itself.
that is not even a regular character
 
and readAsText leads to 40% smaller results than URL
 
@Nerva But what kind of file are you transmitting ?
 
and that would be a great advantage to save bandwidth on the server
 
What are you doing with the result? Send a POST request to your website ?
and also, if you are not reading textfiles, your files will be corrupted after transformation.
 
9:32 AM
@Pac0 I am sending the content of a form which is in HTML and plain english so ASCII as well as a file that goes with it which is a PDF but can be an archive as well so binary right?
 
yes, PDF is binary
 
@Pac0 Yes POSTing to the server
 
so readasText simply won't work
 
@Pac0 would you please explain why?
 
@Nerva I'm back to documentation, I think I did mixed it up, maybe it's ok
 
9:37 AM
@BenFortune unfortunately, it does
if (this.connected) {
    this.packet(packet);
  } else {
    this.sendBuffer.push(packet);
  }
right in the emit(), which sucks ass
 
@Nerva : ok, so it definitely loks bad to me. in UTF-8, your binary data qill be transformed in all kinds of special characters that are invalid for HTTP messages
you can have a look here : stackoverflow.com/questions/7431365/…
 
I'm daydreaming of a VS Code adapter to debug NodeJS through the Chrome inspector, instead of the Node debugger
Should only take a couple minutes to write, right?
 
@jAndy Huh TIL, it didn't used to
 
@OliverSalzburg tops
 
@Pac0 thanks for checking
 
9:42 AM
a minute is equivalent to a full earth year in this parallel universe, right?
 
@Neil of course like Goku's training
 
And goku's actual fighting
 
Yeah, I can already feel time passing and myself dying by just reading your talk about Goku
 
we've finally discovered time travel!
 
@Pac0 readAsArrayBuffer seems the recommended way and it still save space
 
9:51 AM
hello
 
@ChaitanyaTetali 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.
 
@CapricaSix Sure thank you, Have gone through it
 
@ChaitanyaTetali o/
 
I have started backend development in node using express and there are various different modules and internal functionalities in it. So, quite obviously there are multiple ways of handling a given problem.
So, my question is which one should we be using out of all the possibilities? how to estimate the resources that are being utilized?
 
9:56 AM
depends on your problem
too broad
 
yeah, one of the approaches uses generators and the other uses loops, how will I get to know which is best for the given usecase? is there a blog or something?
 
what use case?
 
all of them
 
REST API requests, which deals with multiple DB queries and requests to 3rd party APIs
 
mongoose?
with mongoDB?
 
9:59 AM
PostgreSQL
 
uh
 
you have to reason in terms of strengths and weaknesses
if your program is able to handle many requests, your database should be scalable
 
AKA non-relational
 
for instance
 
hmm.. soo yeah then I have to even tune my DB I suppose to work properly for this
 
10:02 AM
10
Q: Mining Based Civilisation

Worldbuilder_WannabeI'm wondering what type of society humans (with a Renaissance level of technology) would develop in an area with no arable land (soils too poor), but with a monopoly on various metal resources (iron, copper, lead, tin) that they could trade to people living in other areas with richer soils. The ...

didn't know about that SE
 
@Neoares yea it’s pretty nice
 
is that for people with god deliriums?
 
no, writers
 
For writers and world designers
 
yep, which should cover a large part of developpers ;)
 
10:03 AM
writers who don't know anything about physics or whatnot and want to be realistic
i enjoy contributing actually
 
> Of course polygamy can still be a thing for men if there's a lot of them dying in mines and fights.
 
but I enjoy talking "what if" in general
 
@KamilSolecki isn't that GOD
 
@ChaitanyaTetali if you have a specific user case, do tell. It’s pretty much impossible to suggest a good approach not knowing context
 
@Neoares pff.. semantics
 
10:05 AM
I thought it was a crypto mining question, initially
 
@ChaitanyaTetali unfortunately to know the strengths and weaknesses of dbs and libraries, you sort of have to use them
 
except for jQuery, we all know them
pros: it does all the things
cons: it does all the things
 
vanilla.js for the win
 
@KamilSolecki sure, I'm just experimenting actually
@Neil true story!
 
10:11 AM
hi
 
hi
 
hi
 
hi
 
so
 
so
 
10:13 AM
hows the javascript world treating you?
 
very bad
Hi
 
lol, whys that?
 
they hit me very hard in the face
the javascriptians
from Javascript
 
@Neoares "does all the things in worst possible way"
 
10:16 AM
could have been worse, have you seen those phpeople
 
phpeople
I like that
 
oh come on socket.io, this is really stoooopid
for (i = 0; i < this.sendBuffer.length; i++) {
    this.packet(this.sendBuffer[i]);
  }
 
yeah, there are phpeople, and sneks
 
it you're disconnected and you emit stuff, packets won't get dropped, but instead it infinitely collects them in this stupid array, firing all at once on connection
 
@jAndy What's wrong with that?
 
10:17 AM
and then the perfect & pure javascriptians
 
Hey guys, just a question out of the scope of javascript... Just a developer question...
Last week I got a bug ticket from our helpdesk and looked into the bug and found out our kendo library in wich all controls of our application are made of is 2 years without update and the but is depending on that...
So I decided "we have to fix this asap" and update it to latest, of course in the matter of 2 years, a lot changed and I hung a bit to fix everything but finished it succesfully...
Today the boss of my boss was very angry because of this, shouting at me loud in front of others without a rea
 
triggers my DDoS control
 
post-increment instead of pre-increment?
 
and bans a user
 
@jAndy "dedos" means "fingers" in spanish
#randomfactlol
 
10:18 AM
thanks for that
 
I didn't you know you can emit while disconnected
 
you can't but you can of course call the method
 
Bah, don't make me review our code!
@jAndy Oh yeah, that's what I meant
 
I was expecting packets to just get dropped if no connection is established, but this thing just endlessly collects everytime
 
I thought it would throw or drop the payload
 
10:18 AM
creating one huge.. DDOS attack after a while
 
Yeah, this is unexpected
We don't emit from the client side and the server only emits to sockets that were inspected and verified for transmission
 
I don't want to hot-patch a foreign library and I don't want to use another/own websocket interface right now in the middle of a project
FU
 
I assume this behavior is not subject to configuration?
 
of course not
why would you offer a config for this kind of important stuff...
unthinkable
 
Could you write a thin wrapper around emit() and drop if the socket is not in ready state?
 
10:21 AM
@jAndy collects? as in it saves it in local storage to send later? wtf
 
yea, I guess I have to hotfix the library myself, it just opens a world of pain on updating and stuff
if (this.connected) {
    this.packet(packet);
  } else {
    this.sendBuffer.push(packet);
  }
this is within the emit()
 
@jAndy can you not flush it ?
 
@jAndy I meant something in your code, an abstraction around the socket.io socket object or something along those lines
 
@KarelG well good point there, maybe I have access to the thing
 
just googled and got this:
13
A: socket.io stop re-emitting event after x seconds/first failed attempt to get a response

jfriend00When all else fails with open source libraries, you go study the code and see what you can figure out. After spending some time doing that with the socket.io source code... The crux of the issue seems to be this code that is here in socket.emit(): if (this.connected) { this.packet(packet...

 
10:23 AM
oh thank good
the sendBuffer is exposed on the socket-object
 
@KarelG Nice answer
 
so I indeed can manually flush it
 
// clear previously buffered data when reconnecting
socket.on('connect', function() {
    socket.sendBuffer = [];
});
seems simple
 
yep just figured that on my own after your suggestion
 
I would suggest looking into not filling the buffer in the first place though :P
 
10:25 AM
well, I really prefer this flushing over fiddling with wrappers or even foreign code
 
I'm getting pumped up for rewriting our postgres pubsub layer
Already had a cup of ramen
Now I just need a good meme to get going
 
@OliverSalzburg if the connection was dropped for a moment (re-established TCP connection after one of the ISP routing has changed), then it would not be visible for the client because of buffering the data.
it would if you did clear the buffer. That buffering has its use at such connection swaps.
another example is a flaky wifi connection
 
Hey guys ! Quick question : I need to populate an object in js, but getting data to populate is asynchronous, so I want methods my object to be callable only when data is loaded. Any idea how to do that ?
 
@Hayanno 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.
 
callback
!!mdn callback
caaaaaap
 
10:29 AM
!!> 1+1
 
!!are you broken
 
@Neoares Doubtfully
@KarelG 2
 
mdn command not working it seems
 
@KarelG We often operate in very poor network conditions and I find dis/connection event on this socket.io layer to be rare. But this is just from our own little filter bubble :P
 
ziraaaaaaaaaaak
 
10:30 AM
But, the thought is of course valid and thinkworthy :)
 
3915
Q: How do I return the response from an asynchronous call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried returning the value from the success callback as well as assigning the response to a local variable inside the function and returning that one, but none of those ways actually return the response....

 
But we also don't cache PUT/PATCH/POST HTTP requests. If you're not connected, fuck you, try again later :D
 
it introduces you in the "callback" concept, to handle results obtained via ajax
 
Our errors don't literally say "Fuck you, try again later" though
 
it would be awesome if it is
 
10:31 AM
They only say "Fuck you", we have no retry mechanism
 
:P
The answer is soooo.... rep-whoring...
 
my streaming server has a "sorry, movie data is just somewhere. Go fuck me if you REALLLY want it" when my family members wants to see a movie that is either downloading but at 0 kbps rate or being in process of deletion
 
believe me, I know what I'm talking about
 
A year ago, my GF was upset because she has taken it too literally :|
 
10:34 AM
I still remember her reaction.
then her demand to change it to a "friendly" message
 
Ok so should I make another object that return my data and then inject my data inside my object, or should I make a method inside my object that fetch the data ?
 
@KarelG what an answer
 
@KarelG sex based subscription, eh? Smart.
 
I would love to work in netflix then
 
10:51 AM
The error messages in my personal projects are usually not serious
kinda like Zirak's, but he is more skilled with that
 
throw new Error() not good enough for you?
 
nah
like if a movie is still downloading ( with > 0 kbps), then it replies with "Still busy with transferring the bits of (movie). And bits certainly are inferior than me. It only knows two positions."
 
ugh javascript seems to really hate dates - is it even possible to make a date object with a given timezone attached to it?
Like the "current utc time"
 
lookup for getUTC functions in Date API ?
 
UTC has no timezone, which makes the entire question...
Also, skip Date, get moment-timezone
 
10:56 AM
ooooo the chance is there that I misunderstood him
 
Howdy, Im hoping someone could help set me straight. Im very novice at JS and have been working my way thru an OLD img displaying script to learn OOJS along the way and have a cool, lightweight script in the end but Ive come across one line that I just dont "Get" and it sure looks old but it wont work without it. Someone plz look at line 14 here and lets talk about it your-adrenaline-fix.com/support-files/thumbnailviewer.js
 
lol someone improves other's post (currently in edit suggestion queue) and misses "doesnt"
 
I G'd that line and came up with a whole lot of not much
in a whole lot of words
 
I just saw that but it still doesnt say much
 
11:00 AM
It's a compatbility shim with an ancient piece of technology if you must know
 
@OliverSalzburg yes, but if I make a date object from a ms-in utc-timezone the dateobject suddenly has my local timezone attached to it.
 
Shouldnt the "CSS1Compat" part say CSS3Compat for starters?
 
The natives back in the day called it "Internet Explorer"
Translated into modern English, it means "Run, as fast as you can"
 
Ah
 
Seriously though, if I'm not mistaken, this takes care of some non-standard compliance in IE5 or something like that
 
11:02 AM
ie really sucked until around ie8
 
Wow IE5?
 
Someone will surely correct me on this, but it shouldn't matter anyway, because nobody cares anymore (hopefully)
 
then it still sucked but less
 
In computing, quirks mode refers to a technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for Internet Explorer 5 and earlier, instead of strictly complying with W3C and IETF standards in standards mode. == Overview == The structure and appearance of a web page is described by a combination of two standardized languages: HTML, a markup language designed for web use, which describes the structure and content of the page; and CSS, a generalized stylesheet language, which specifies how the page should be rendered in various media (vi...
 
I can can that. I also saw another part of the script that was conditional for that old mozilla browser
Srsly dont rmbr the name now... Ah Netscape
This is an old script
 
11:03 AM
From that Wikipedia article:
> In most browsers, the Document Object Model extension document.compatMode indicates the rendering mode for the current page. In standards mode and almost-standards mode, document.compatMode contains the value "CSS1Compat", while in quirks mode it equals "BackCompat".
 
Yea.... IE5 users. Sry about your lcuk
luck
Mind sharing how Id cut that line down substantially? i cant concern my self w IE5 (ie, IDGAF)
Ive been able to "sound out" pretty much everything else and you should see the NetScape code I already omitted but Im hung on this line
 
Unicorn motivation
 
im becoming a unicorn
 
For all the work you did to come up w a dick head answer, wouldnt it have been easier to just assist? Yall really are making this a useless chat
Thx @Ol
Thx @OliverSalzburg You enlightened me and now I just gotta figure out how to trim that line
 
@OliverSalzburg how do you handle having 20+ branches ? I have that amount because the features (one branch per issue ticket) have to be either reviewed or tested or being delayed for other issue
driving me nuts
it is that time of period again. Happens frequently :|
 
11:14 AM
@Stuart Instead of insulting people that are trying to help you, how about being a little nicer?
Maybe not him, but still
 
@Stuart What? Me? I don't come up with dickhead answers, the dickhead answers come to me and I just type them out on this keyboard
@KarelG Given that I am the upstream for all repos in our organization, I have the luxury of only maintaining a small number of branches
But I usually have additional forks registered as remotes and I get all the nasty feature branches of all employees into my scope. Bah
 
I am responsible for the upstream too but does not have that luxury. I must recheck my priorities
 
But, what specifically, is giving you trouble?
Rebasing 20 branches on top of dev constantly? :D
 
aye
 
Yeah, fuck that
 
11:18 AM
just rolled gerrit on that
21 / 24 needs rebase or merge resolution
TWENTY ONE BRANCHES!
 
We use the rebase in GitLab a lot, that is nice
 
!!afk taking lunch with gnarly voices
 
So when dev was updated, we just rebase through the web UI. That's good stuff. And since the last update this should even be possible for maintainers of the upstream
@KarelG Also, I have a rebase alias in my bash for good reason :D
I should rename it to r to save time
 
obj = Object.fromEntries([['a', 0], ['b', 1]]); // { a: 0, b: 1 }
not saying it's bad or good, but it's interesting
 
It just reminds me how happy I am that others have to deal with these proposal, which I find utterly stupid
 
11:34 AM
If you set the height/width of an image, then change the src, how do you get the height/width of the new image?
It's just returning the previously set values
 
@Cereal Wait for it to be rendered
Don't ask me how
 
Turns out there's a naturalHeight and naturalWidth property
 
@Cereal naturalWidth and naturalHeight, perhaps.
 
Which is helpfully documented in a small yellow box on mdn
 
@Cereal All natural, baby!
 
11:38 AM
> It is orbiting at about 27,000km/h, so a crash site is virtually impossible to predict. If you get the entry time off by an hour, you’ve got the location off by at least 27,000km.
lol that's not how geometry works
 
If you get the entry time off by an hour, then maybe you're not the right guy for the job
 
It's talking about the Chinese space station. No one can get it to within an hour right now
 
that person must have missed some maths classes
or astro-physic if you're elitist
 
11:54 AM
oh, so the entry will happen in the next few days?
what orbit is this thing on anyways?
 
@towc that's great.
@BenFortune seen it, it's cute. little bit lacking tho
 

« first day (2720 days earlier)      last day (2243 days later) »