Tag: js
-

Hosting a Remix App on a Shared Hosting (using cPanel, Phusion Passenger and LiteSpeed)
TL;DR: Short checklist for pros Figuring this out took me longer than I expected, and I was quite surprised that hosting remix apps is not a well-covered topic. Hosting a remix app on a shared hosting provider is even less covered. Backstory – I’m building a native app and a management portal and decided to…
-

VSCode Tip of the Day – Go to References
You can see all the locations in your project that use a React component (or a function), by right-clicking its definition and pressing “Go to References” And a shortcut I need to learn to use more often is Shift+F12 for it 🙂
-

Missing Response.statusText under HTTPS (e.g. Unauthorized is empty string)
We have a generic error handling, that shows an error to the user when a request fails. The error contains information on when it happened, and the status text of the response. (response.statusText). Recently we discovered that the statusText was missing in the screenshot of one our the reported bugs. It turned out that response.statusText…
-
Tips for Meaningful Interviews with Developers
Lately I’ve been recruiting people for our Front-End team at Up2 Technology. I am quite satisfied with the process so I decided to share it with you. This is a non-extensive list with the guidelines I’m trying to follow in order to have an interviewing process satisfying for both me and the people applying. Empathy…
-
AWS S3 and it’s informative errors – 404, “NoSuchUpload”
I’m continuing with my exploration in the AWS world 🙂 For the last couple of days, I have been occasionally receiving the weird error “NSuckUpload” when I try to either upload a part to an S3 Multipart upload or try to complete the upload with given UploadId. S3 Multipart Upload is the way you upload…
-
AWS Closes S3 Read Stream Unexpectedly
I’m continuing with my notes on transferring big files from and to AWS S3 with node.js If you are reading a file from a S3 bucket using a stream that you occasionally pause, mind that the read stream will be closed in 60 minutes. If you cannot handle the file in that period of time,…
-
JavaScript Събития (Custom Events) без DOM простотиите
Събитията са много добра техника да направите кода си независим между различните модули. С тях може да пишете значително по-добър и по-лесен за поддръжла JS. Въпреки това има много случаи в които няма нужда обектите в кода да разчитат на DOM дървото за да вдигат събития. (Например когато репрезентацията на самия обект е на няколко места…
-
jQuery error .apply( matched.elem, args ); undefined is not a function
If you’re having an error in your site/app that says that is undefined is not a function and the error happens on the row containing .apply( matched.elem, args ); (jquery.js:4676 for version 2.0.3). You can do the following 2 things to figure out the error: 0. You need Chrome Dev Tools 1. Enable async for your dev…
-
It’s time to stop fooling ourselvs with touch device detection
To all you JS guys out there: It’s time to stop fooling ourselves. The fact that a user has a touch capable device doesn’t mean he’ll be using it with touch only. Not sure what I’m talking about? There you go: var clickEventToUse = ( ‘ontouchstart’ in window ? ‘touchend’ : ‘click’ ) Still not sure? Now…
-
Making async ajax calls to an array of url’s and processing their responses at once
Today I had a very interesting case where we needed to get a specific amount of SVG files with ajax calls that were to be processed once after all of the requests are done. I was familiar with the $.when and used it before but only in casese where the number of the calls were…