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… Continue reading Tips for Meaningful Interviews with Developers
Wondering how big is your React project?
Recently I wanted to explore the impact of a refactoring I did so I ended up checking the length of the files I’ve had in git (hoping that this number would decrease). The magic command was to list the files in git, grep the ones ending with js, jsx and css and count the lines.… Continue reading Wondering how big is your React project?
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… Continue reading AWS S3 and it’s informative errors – 404, “NoSuchUpload”
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,… Continue reading AWS Closes S3 Read Stream Unexpectedly
Node.js Streams and why sometimes they don’t pause()
TL; DR:Â If you pipe your node.js streams, make sure you pause the last one in the chain. The longer story: We’re building a node.js application that ingests data from multiple data sources for a client of ours. Since they are quite big in size and in user base (we’re going to process data for… Continue reading Node.js Streams and why sometimes they don’t pause()
Testing with Jest in a node and ReactJS monorepo (and getting rid of environment.teardown error)
Big number of the applications we develop have at least one ReactJS UI, that is held in one repo and an API, held in another. If we need to reuse some part of the code, we do so by moving it to another repository and adding it as a git submodule For our latest project… Continue reading Testing with Jest in a node and ReactJS monorepo (and getting rid of environment.teardown error)
The new react hooks useShiny
Recently a new proposal have been released to the ReactJS community – for React Hooks. Roughly, the React Hooks are new ways to utilize the react features, that were previously available only via the JS class syntax. I cannot hide my excitement for the hooks because they: Simplify the code that is written Make the… Continue reading The new react hooks useShiny
Ninio’s Learning Notes [Reload]
I’ve decided to restart blogging and moved my blog from its old location (ninio.shtrak.eu) to the one here.
JS variable loaded using wp_localize_script is no longer available
TL;DR: Call the wp_localize_script after registering/enqueuing the script you are localizing. Recently (WP 4.1.4 / WP 4.2) my ajax scripts stopped working. I’ve noticed that it was caused by the fact that the variable for the ajax_url was undefined so for some reason it ws no longer loaded to the page. The reason turned out… Continue reading JS variable loaded using wp_localize_script is no longer available
Retrieving data from a form created with Contact Form 7
If you want to get the data from a form created with Contact Form 7 you can use the ‘wpcf7_before_send_mail’ hook. In your functions.php or from your plugin add action like follows: add_action( ‘wpcf7_before_send_mail’, ‘my_plugin_wpcf7_before_send_mail’ ); function my_plugin_wpcf7_before_send_mail ( $contact_form ) { // TODO: get the data } Since version 3.9 Contact Form 7 removed $contact_form->posted data so… Continue reading Retrieving data from a form created with Contact Form 7