Test HTTP Requests Tools Blog Learn Quizzes Smile API Log In / Sign Up
Test HTTP Requests Tools Blog Learn Quizzes Smile API Log In / Sign Up
We have updated the website and our policies to make sure your privacy rights and security are respected.
Click here to learn more about the way our website handles your data.

Remove this message.

Step by step tutorial for developing your first website in Node.js - PART 2

Daniel Gheorghe Difficulty: 40 / 50

If you didn't read the first part of this tutorial please click here.

If you are coming from the previous tutorial it means you managed to install Node.js on your brand new Ubuntu 12.04 server. What we're going to do now is set up the website project and then fire it up.

Step 4 - Create your first project

Now we will create a folder to store our project in. To do that you need to type the commands below. Don't forget to replace "noder" with your username where needed.

Read Full Article...

Step by step tutorial for developing your first website in Node.js - PART 1

Daniel Gheorghe Difficulty: 40 / 50

Starting from the server installation and configuration and finishing with your first html page

Step 1 - Getting a domain that kicks (')

Head over to Godaddy or Namecheap or whatever provider you use and get a brand new ".com" domain.

Step 2 - Get a Cloud Server that kicks (') even more

Head over to Digital Ocean and get a $5 VPS Cloud Server with 512MB of RAM and 20GB of SSD Storage. It will be up and running in 55 seconds! I choose to use UBUNTU 12.04 just because I'm a fan, but you can go for any other type. Don't choose to LAMP or any other extra package because we will be running Node.js! Once you have your server up and running go back to your GoDaddy dashboard and set A DNS Record to point to the IP Digital Ocean designates for your new server.

Step 3 - Setting up your server

Digital Ocean probably already sent you the root password so you should now SSH into your server. Once you are there, the first thing you need to do is create a new user as it's not safe to mess around with the server as root, especially if you're a beginner. To do that you need to type the following command and then follow the on-screen instructions.

Read Full Article...

Objects In Javascript Explained

Daniel Gheorghe Difficulty: 30 / 50

First thing you need to know is that everything in Javascript is an OBJECT!

A string, for example, is an Object... or, better yet, an instance of the String Object.

To prove my point I will try to overwrite a method of the String object so that it will change the expected value of a string. In English I will make a string like "abcdefgh", have a different value than "abcdefgh" - at least when using my overwritten method to test it. Here's the example that demonstrates it:

Read Full Article...

Tutorial on how to write a captcha system that's simpler for the user and harder for the bots

Daniel Gheorghe Difficulty: 30 / 50

Although Google recently announced that reCaptcha will become easier for the real user and more difficult for the bots, I still think it's to frustrating for the end user. If you've ever decided to quit filling out a form because the captcha string was unreadable then we're on the same page.

Let me start by stating this: Bots don't think! Most bots will try and go over a captcha system by using an algorithm to detect the characters that represent the security string. If the characters are "embedded" in an image, then the bot will try to "guess" what those letters are. If the characters are scrambled and twisted there's a bigger chance that the bot will fail.

Read Full Article...

Best way to load your external content using jQuery

Daniel Gheorghe Difficulty: 40 / 50

Almost all websites nowadays feature that questionably awesome Facebook "like box" on their websites. I'm not saying that doing it is a bad thing, but have you ever thought about the effect these widgets have on your page loading speed ? I'm sure you haven't and that's why this post will tell you a few things about how to add an external resource to your website without affecting performance and SEO penalties caused by slow loading.

Read Full Article...

5 6 7 8 9 10 11 12 13 14 15