Hot Lessons

HTML Beginners

Learn basic HTML

PHP Beginners

Learn basic PHP

Python Beginners

Start python today

C Basics

Basics of C

MySQL Basics

Start writing SQL

Mongo Basics

Start mongodb today

Copyright 2019

Nodejs achievements

*PayPal experienced double the number of request per-second and reduce response time by 35%.

*Groupon re-implemented their system in Node.js which helped them in dropping the page load time by a whopping 50%.

*LinkedIn moved to Node.js from Rails for their mobile traffic whereby reducing the number of servers from 30 to 3 and the new system was up to 20x faster.

*Most of the development in Uber was done in Node 0.8. Then they moved to Node 0.10 in six months. According to Tom, node 0.10 is super stable and works well. Technologists say that heart of 15 billion dollar business is written as server-side Node. Reliable distributed systems with replication and geospatial databases are written in Node.

*Few years back GoDaddy employed some quite experienced Java and .NET. They could easily make out that it was the future of an agile company, hence to start with cultural shift they began prototyping Node.js applications in the year 2013. The front-end of GoDaddy always relied on JavaScript and single-page applications by that time, but the backend ran in .Net stack. To increase the hosting capabilities, company decided to revamp its entire backend to a node.js based infrastructure.

So, finally let’s know what made them switch to Node.js:

Node allows easy building applications with high confidence in build quality

Unit testing is easier in Node.js

Integration testing is also simplified

REST is simplified and deployments are easier.

During the ‘Puppet Master’ SuperBowl ad in 2014, GoDaddy faces biggest scaling challenges. They aimed at 100 million people as viewers to visit a website, made by one of their customers with their Website Builder app. During that time GoDaddy’s infrastructure handled 13.000 RPS’ with ~87ms TTFB (Time To First Byte) on an average day. But this was not enough and they had to think bigger and better both. They estimated that website alone has to handle 10.000 requests per second. In order to support such huge amount of traffic the site would require manual migration to its own cluster which must comprise of 12 servers, but they were succeeded.

According to Stephen, GoDaddy now can handle the same load with only 10% of the hardware than before using Node.js. They succeeded in fewer server management. They were able to serve 1.7 million requests per month and survived DDOS attacks with basically zero impact by using Node.js. Node.js has been boon to GoDaddy in terms of talents acquisition. They firmly believe that Node allowed the increasing number of downloads, high number of enterprise adoption and contributed to the massive growth of startup.

*Netflix chose Node.js as they wanted a common language to write the same code. Therefore, writing once and running it everywhere. This served a great aid to developers who were constantly busy in switching all the time between Java and JavaScript.

So, now Netflix is running more as a single page application, and with a rich user experience. Now Node.js is used on the entire website.

*Medium, Rhitten, ebay, Nasa platform etc are written in Nodejs

view post

Who are Blockchain Developers?

Blockchain development is the new trend. Putting aside the hypes and big titles, who is really a blockchain developer?

view post

Are you a developer? Earn up to 1000 dollars a day with is a platform where geographically distributed developers work on assigned development tasks and get paid on an hourly basis. Earnings range from 4 to 40 dollars per hour depending on your level of experience/proficiency in your chosen stack.

Our clients are foreign, multinational, and mid-scale companies that outsource projects for quality, economic and legal advantages.

To get started, contact +2347064920936, or on whatsapp for a short interview to know what tasks can be assigned to you.

view post

I heard Many guys saying getting married to a female Programmer

I heard Many guys saying  getting married to a female Programmer Will be very cool but too me it seems improper.  i can only have a girl developer as a girl friend only.

My Reasons

As we all know, we programmers work throughout the night and mostly sleep in the morning, but for a wife house this isn't cool at all.... by the time she is suppose to be taking care of the children, she  will be busy snoring on bed like  ........grinsmile  

So what do u think on this issue???????????///

view post

How to Setup a Linux Server to be Access from Internet

I am getting a proposal that will require making provision for a premises server, with few packages to be installed such as mysql etc. Am not sure if they are going to have a static ip from their isp or dynamic from a dhcp server. In either case i need to prepare before they hand the job over to me. I know that in either case i will need to setup a dns configuration that will make the server visible to internet. If you have worked on one kindly give me a pointer and my self will continue to search the web. Also, which distro will you recommend

view post

SSL certificate..can they be installed manually

Good day i will like to know if ssl can be installed manually How to check a Good one how is a browser able to detect a good certificate in seconds can i create my certificate my self?... more questions to ask...

view post

What are the opportunities in Waves Block-chain?

I can see that we have a professional in the house here. Please enlighten us on "why waves block-chain", what makes it unique?

view post

"ALTER TABLE `myfriends` DROP `unuseful_ones`";

"ALTER TABLE myfriends DROP unuseful_ones";

view post

Things you can do in programming world without coding that can bring you good and great return

i will be sharing on this trend things you can do in programming / software engineering environment that can give you lots of return and some time give you reputation that most programmers dont earn esily.

this trend is going to be a long trend so sit back and relax as i will be giving daily update for the next 31 days. your contributions are highly welcome in this discussion.

view post

Paystack ruby on rails

Who has implemented the paystack ruby on rails API

view post

How To Use SSH on cPanel :: A lesson for beginners

We are going to be looking at the SSH:

SSH(Secure Shell) is a network protocol that allows a secure access over an encrypted connection. Through an SSH connection you can easily manage your files and folders, modify their permissions, edit files directly on the server, configure and install your scripts, etc. SSH is a part of the services, which cpanel and many other services offer to their clients.

view post

How to Open a Port other than port 80 and 22 on Amazon EC2

If you have ever hosted a microservices based application on EC2, you often find you have to serve different content on different ports. The problem though is that amazon ec2 does not allow incoming traffic to ports other than port 80 and 22 by default. This short post, is a reminder to myself and anyone else whom might encounter this scenario, on how to quickly get past this issue.

Step 1 : on your ec2 instances console, select the instance in question

Step 2: on the right hand side, navigate to networking -> securty groups.

Step 3: create a new security group.

Step 4 Select your new security group, then create a new rule. Name it whatever you like, but set incoming address to Fill in the desired port in the port column

Step 2: Go back to instance console, then right click on your instance, then -> network settings -> apply security groups and choose your newly created security gruop.

Step 5: your application should be available publicly now via the opened port, but if its not, make sure your app serving is serving with and not localhost:PORT. This mistake is easy to make if you are using laravel, and using the command php -S localhost:port -t public to serve your app.


view post

PHP Lumen How to Resolve CORS Problems once and for all when interfacing with javascript frontend.

CORS (Cross origin resource sharing) rules were made with good intentions in mind. The general idea is that an api, should not serve requests made by another server. Rather, it should only send requests to a client app like postman, curl, or a browser. For instance, if you own A guy should not be able to send requests from to your server and get valid response. However, they can visit your site using a client app like chrome.

In today's world where distributed applications are the norm and a typical system exists across different servers, CORS rules can be very annoying since these servers typically need to speak with each other while serving requests, and by default, apache servers are set to deny cross origin requests.

For readers who do not know lumen, lumen is a slim version of laravel, which is used mainly for serving json responses and building restful APIs.

Now how to solve CORS problems in lumen?

You need to create CORS accepting headers, and send them with all your responses. You should return all responses with the headers. For instance, instead of

return response->json([“token”=>$token], 400), do return response->json([“token”=>$token], 400, $headers);

typical CORS accepting headers would be private $headers = [ 'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Methods' => 'POST, GET, OPTIONS, PUT, DELETE', 'Access-Control-Allow-Credentials' => 'true', 'Access-Control-Max-Age' => '86400', 'Access-Control-Allow-Headers' => 'API_KEY, token, Content-Type, Authorization, X-Requested-With' ];

A complete example in a full lumen controller:


namespace App\Http\Controllers;

use App\Encounter; use Illuminate\Http\Request; use Illuminate\Http\Response;

class MController extends Controller {

private $headers  =  [
    'Access-Control-Allow-Origin'      => '*',
    'Access-Control-Allow-Methods'     => 'POST, GET, OPTIONS, PUT, DELETE',
    'Access-Control-Allow-Credentials' => 'true',
    'Access-Control-Max-Age'           => '86400',
    'Access-Control-Allow-Headers'     => 'API_KEY, token, Content-Type, Authorization, X-Requested-With'

public function delete(Request $request, $id)

    return response()->json($data, 200, $this->headers); 

public function list(Request $request)
    return response()->json($data, 200, $this->headers);

public function detail(Request $request, $id)

    return response()->json($data 200, $this->headers);

public function edit(Request $request, $id)

.... return response()->json(["message"=>"Missing fields"], 200, $this->headers);



view post

Africoders Online Classrooms Are Opening

Good day everyone, this is to announce to you guys that our online classroom features are going to be opening very soon. The Africoders team is currently running some staging tests on the class section, in case you are interested in being a part of this test, whether as a teacher or student, kindly signify your interest.

view post

Check, Review and Give FeedBack

This is one of the project I did when I was learning vueJS.. Kindly review and give your FeedBack @ @Iamdyt

view post

Python Programming Tutorial

Hello africoders,
This thread is for tutorials on python programming fundamentals.
Hope you enjoy it.

view post

My Experience With Working on cPanel Hosting

cPanel! cPanle!! cPanel!!! Na 3 whole times I call thy name. The Almighty and Invincible cPanel, created by the gods of programming for mere mortals. I have to salute cPanel like that because you see, many people have made cPanel their GOD so to speak. They have come to believe that when you talk of hosting a website, you are talking of cPanel automatically. These set of people, if you give them a cloud server where you can only control the server via SSH or give them stuffs like AWS CLI, they will simple faint dead.

But we get ahead of ourselves, for our talk today has to be on cPanel. I have worked extensively on cPanel for the past (quickly launch calculator app, closes it again) since around year 2004 (do the sums yourself), and I have had a lot of experiences with it, good, bad and ugly.

Let us start by trying to explain what cPanel is:

If you go to wikipedia or google and search you will get something like this: cPanel is the company that builds cPanel & WHM. cPanel & WHM is an online Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site to the website owner or the "end user".

But to most typical web-designers, cPanel is that stuff that the web-hosting people send to you when you buy hosting from them, and you use it to upload your website online. Dont laugh, but that is the definition that many people will tell you (because cPanel is their gods, they dont know that their are other bigger gods out there like AWS) that can do the same thing.

Now that we know what cPanel is (at least a good idea), people that use cPanel fall into 3 distinct categories (my own classification mind you): Class 1 : people that purchase a single host from a reseller account Class 2: people using a reseller account Class 3: people using a personal vps Class 4: people using a dedicated server

Now, the class you fall into determines a whole lot of things here for class 1 is the lowest and class 4 is the highest.

Class 1: yeah you can host your website but your entire setup is based on what the resller configures for you. Your reseller may allow you make use of only php 5.5 and you need to start calling for upgrade. Class 2: reseller is like king to class 1, yet the reseller may not own the server (vps/dedicated) and so has a lot of limits to the configuration and what can be done Class 3: with VPS you are a chief, because you can do and undergo. I have once configured a VPS with NODE.JS, PHP, PYTHON e.t.c thinking I was a King, but I was quickly dethroned from that thought because a VPS has a great limit as well. Class 4: Now you are King because this is a more powerful alternative than VPS. Though to a lay person, you have control like VPS but dedicated is always the best choice at the end of the day.

Now that I have breezed from class 1 to class 4 in a compressed manner (for my statements are highly compressed there), we must talk about cost and scaling. The cost of server is lowest in class 1 and highest in class 4.

When you are just starting out your business, you may not need beyond a regular shared hosting on class 1, but as your traffic and demands increase you will gradually find yourself in class 3 or class 4 depending on how quickly your business grows.

Now that we have done the introductory path, we shall be delving into the more technical part on my next post, where we shall be talking about:

  • Types of servers where cPanel is hosted on, and how this affects you. cPanel on Centos 7 and cPanel on Debian 9 are not exactly the same thing and there is a reason why you should care.
  • How do you control your cPanel from local pc e.g. ssh, ftp, sftp
  • What about SSL? Free and Paid SSL

view post

Africoders Upgrade & Login Issues

Good day everyone, Africoders is extremely close to launching, that is why a lot of last minute changes are going on here and there. If you have an account already and you are unable to login to the forum, please try clear your cache and do so again (or use a new browser). This is due to change in the cookie policies, apology for this inconvenience.

view post

Help!! My cPanel is misbehaving, I get this perl warnings all the time

Whenever I try to use ssh on my cPanel, here is what I normally see:

    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").

How do I solve it?

view post

Africoders to the world, what can you say about the new design

[{"insert":"The new design and pattern is so gorgeous, starting from the design it so lite and super fast,\nauto draft function also brew me up. \nWhat do you like about this new design?"},{"insert":{"emoji":{"emojiChar":"\ud83d\ude2f"}}},{"insert":"\n"},{"insert":{"embed-external":{"data":{"mediaID":2,"url":"https:\/\/\/forums\/uploads\/714\/NWLK4RKD37IO.jpg","name":"ilya-pavlov-87438-unsplash.jpg","type":"image","size":2115658,"width":3543,"height":2365,"dateInserted":"2019-05-27T17:41:14+00:00","insertUserID":1598,"foreignType":"embed","foreignID":1598},"loaderData":{"type":"image"}}}},{"insert":"\n"}]

view post

Finding Faster WordPress Hosting for Better Performnacee

Slow WordPress is the issue people are facing around the world, for this I will suggest people find the fastest hosting for wordpress that offers high availability and server response.

view post

WordPress Staging Environment

If you are an agency or an individual developer, a WordPress staging environment is a great way to accelerate the development workflow and to deliver mockups to your clients before the deadlines.

view post

Ensodev startup dairy, my journey as a enterprenue in the tech world

i will be sharing my journey to my 5 startup companies , i will share my mistakes, my joy, how am raising funds why am starting those companies, my daily activities on the companies will be shared here. pls stay tuned.

view post

Nairaland seems block some keywords and africoders is among

i tried to post something about africoder now, but i discover each time i view my post africoder is changing to nairaland, funny though, i see no need for such.

have not tried the likes of keywords like facebook or other but i know quite well seun will not be blocking those

view post

Getting Started with Waves Blockchain - Easy!

We would get started with Waves explanation in general. Waves is developing tools for building the decentralized technology layer that will become the backbone of Web3.0 - our future digital landscape. Web3 will see progressive decentralization of critical online infrastructure, making extensive use of blockchain and other distributed technologies, while centralized servers continue to maintain key services and conduct computationally-intensive tasks. The result will be the best of both worlds: an online environment that delivers the functionality and user experience to which we have grown accustomed, while users remain in full control of their personal data and digital identities. After reading of I'd advice to visit official website where tons of useful information can be found as well. Also, all technical details are mentioned on the official documentation, especially the explanation of Waves-NG protocol is important thing to get acquainted with there.

What you should know about Waves Blockchain

More details loading. . .

view post

Two separate databases

My developer uses Sql Server for my two projects , the two software were working fine suddenly i can not login into the other again. initial the one is uses username and password while other maintain the same username and password the second project in the same SQL management. any time i want to login the into the second project it display. Sorry user and password not match try again

view post

error: cannot find symbol variable edt

Who has idea of how to solve this error, it happen while i want to compile the Activity and run on mobile

error: cannot find symbol variable edt

view post

Php Into Andriod Programming

As a beginner in the Android developer world, I want to understand the relationship between Android and PHP or any backend language

view post

I heard some guys having argument about the best php frame work. So i decided to …

I heard some guys having argument about the best php frame work.

So i decided to bring the discussion down to africoder. "Which PHP framework do you think his the best your reasons"


view post

Tutorial: How To Embed Adsense For Live Streaming on Youtube

The first step is to get your youtube channel verified.

After this, you should be able to connect your cam e.t.c and do live streaming.

However, in order to embed the live streaming to a website, you need to visit here : You must have a verified adsense linked to your youtube in order to enable embedding of live streaming.

You will be required to insert your adsense code like the one below into every page on your website:

<script async src="//"></script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-8478545727503791",
    enable_page_level_ads: true

After your adsense has been approved and the features Live streaming and Embed live streams are enabled.

you can set the stream to unlisted or public Go to the “Watch page” (View on watch page link (lower right) in Click Share -> Embed to get the embed HTML code

<iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>

Now the problem is: every time the stream stops and restarts, the ID changes.

To get a permanent URL, you need to change the link to use the Channel ID (12345 in this example):

<iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>

Get the Channel ID from Not the User ID!

Add this into your website HTML, and open the website in anonymous browser window to check if the stream displays without error message.

view post