How do I open a company? How do I start trading and make sure that I stay compliant with all the laws? Who do I need to talk to? How long does it take? How much does it cost?
These are just a few questions I had in mind when I decided to go contracting: in this post, I’ll go through the answers and show that, after all, running a small company is not that difficult.
Disclaimer: I started contracting not long ago and am no expert. I had to go through all the initial setup and decisions recently though…
With functional tests being an integral part of a webapp workflow, we should always try to find ways to make them run smoother and make our lives easier.
I’ve been working with Selenium Webdriver/WebdriverIO for years now, and the biggest complaint I have is that I need to have a selenium server running before starting my tests.
This may seem like a minor problem, but it means having another tab open in my terminal, starting/stopping that process, and it all get way more difficult when you try to automate it in a CI environment. …
Testing React components has become trivial as more and more of them are now stateless functions.
The new shallow renderer and tools like Enzyme make it possible to render a component “one level deep” when testing, without even rendering it in some sort of DOM, while still having a great api to traverse the components’ output and assert facts on its behaviour.
Given all these great tools that we have, what happens when we have a container component that renders sub-components (child components) based on some sort of rule/logic? …
During the development process of an application, we are often required to call services from domains different to the one our application is being served from, using AJAX requests.
This is not possible, as outlined on Wikipedia:
In computing, the same-origin policy is an important concept in the web application security model. Under the policy, a web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin. An origin is defined as a combination of URI scheme, hostname, and port number.
It happens to me quite a lot: I create a branch and then want to rename it to a more specific/correct name.
If that branch has already been pushed to a remote, this operation is a bit trickier than the usual renaming.
I’ve found this nice gist from lttlrck and thought I’d share it:
Originally published at blog.ricca509.me on January 29, 2016.
This small article is meant to be an easy, step by step guide to installing a headless Raspberry Pi with Node.js.
Let’s do it!
Raspbian lite is a minimal version of Raspbian that doesn’t contain the desktop environment (useless for a headless setup).
After you have your Raspberry Pi turned on and connected to the Ethernet network, you need to find its IP address.
To make this work, you’ll…