-
What is MEAN
MEAN is a set of software/web application development technologies. In which M stands for MongoDB database. Its a non relational database. It can store data as Documents. E stands for Express JS. Its a NodeJS framework. Its middleware between NodeJS and Angular JS. A stands for Angular JS. Its a client side JavaScript framework. It […]
-
Mastering JavaScript Part 1, JavaScript Cheat Sheet 1
In this particular post I will write all the comments in inside the code. It will be easy to have all the functions in a single location so that you can go through all the topics all at once. // // Declaring an Array var myArray = new Array(); // Using Array Constructor, try to […]
-
JavaScript Array Vs JavaScript Object – Complete guide
Most of the new developers faces huge trouble to identify the difference between JavaScript Array and JavaScript Object. This particular post will help you to pass your initial hurdle and you will be able to play efficiently with JavaScript Array and JavaScript Object How to Define JavasCript Array? // // Declaring an Array var myArray […]
-
List and Keys in React JS by using map() function
In React JS .map() or map function used to print array element. In normal Javascript you can use a for loop to render or print array elements. On the other hand by using .map() function you can print or render an array easily by typing small amount of code. Rendering an array in React JS […]
-
Download site from Archive.org or Internet Archive
First you have to install Ruby in your system. Go to this link and choose your operating system and install Ruby into your system. Install Ruby After installing ruby install wayback machine site download script by using your command prompt or terminal gem install wayback_machine_downloader Your system is ready to download sites from archive.org website. […]
-
Define constant in angular 2
Say you are fetching JSON data from an api url which is http://localhost:8080/api, and you have to use it for a a number of times
-
How to find spam mailing script location in whm cpanel
If you want to locate the spam mailing script in your whm cpanel server you have run some ssh command. First you have to find out which script/file in your server is sending most of the abusing emails. grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F”cwd=” ‘{print $2}’ | awk ‘{print $1}’ | […]
-
Clear mail queue by using SSH
If you found your email queue is full with spam emails, first you have to find out which domain is sending the spam emails. Run the command below in your ssh terminal it will show you a list of domains along with emails it sent during a period, by showing this list your can easily […]
-
Understanding View::share in Laravel
Understanding View::share in Laravel is easy but tricky to new users. Here I will try to clear the confusions of Laravel’s View::share. First look at the code below. We defined a ProfileController and inside it we have a public function as getIndex(). <?php class ProfileController extends BaseController{ public function getIndex(){ $profile_info = User::find(‘2’); View::share(‘getinfo’,$profile_info); $this->layout->content […]
-
Cpanel whm brute force protection
Today I am going to discuss about a very common problem related to cpanel or whm panel. Hackers always try to get root access for your hosting and to get the passwords they run script that will try continuously with various random passwords. WHM panel has a built in feature to protect against brute force […]