Posts

Node.js Cheat Sheet

Image
To start a new node project, type  C:\Users\jinoy\OneDrive\Desktop\MERN>npm init -y      The basic syntax of calling a function in node.js with express is : const   functionname  = ()  =>  { console . log ( "hello world" ); } functionname (); To call a function after every 5 seconds : setInterval (()  =>  {      console . log ( "hello" ); }, 5000  ); To call a function only once after 4 second : setTimeout (() => { console . log ( "test" ); }, 4000 ); To run a script.js file on terminal, type : C:\Users\jinoy\OneDrive\Desktop\MERN>node script.js  OR C:\Users\jinoy\OneDrive\Desktop\MERN>node script To stop a function that is executing on every interval( time to call function again) : const   interval  =  setInterval (()  =>  {      console . log ( "hello" ); }, 1000  ); setTimeout (() => {      clearInterval ( interval );      console . log ( "stopped" ); }, 6000 ); The above function will work continously untill

Introducing Cloudflare Pages ⚡

Image
https://github.com/Jinoy-Varghese/Jain-Lab After a long time cloudflare introduce new feature ' cloudflare pages ' allowing jamstack developers to host their website as free in cloudflare page. This new feature allow developers to use unlimited bandwidth and unlimited websites as a free user. You can host your repo directly to cloudflare servers using github.Websites are built through collaboration between designers, engineers, writers, and more. Cloudflare Pages makes it effortless to satisfy each group, so you can iterate quickly, and save time on coordination. You don't need to worry about the ssl certificate, since cloudflare provides ssl free certificate too.  Note: This pages are only for front end developers, it didn't have a database and did not support php.

What is Android Studio

Image
Android Studio is an IDE for building android apk using your pc. This IDE need more ram and efficient pc for better working of this software as compared to others. Android studio comes with both dark and white theme, you can easly switch between them. It almost need 2 gb of data for downloading the entire android studio software. Android Studio comes with two languages (java and koltin), you can select the language for your development at the time of creating your project. This IDE supports drag and drop development too so that beginners can easly create an android apk without any coding skill. Convert Your Website into an Android Application using Android Studio by Simply following the steps in the link. Click here to navigate the tutorial.

Codeigniter ! Simple But Powerful

Image
CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications. It is the second largest php framework for website development (first-Laravel). Due to its simplicity, it is the most used framework ever than laravel. Actually these frameworks are only used for developing large scale website. The important thing about this framework is that it is using MVC principle . A MVC or Model View Control framework has a controller that controls all the pages in the website. There can be any number of controller created in codeigniter. The orginal webpages or the contents are placed in the folder named view .  Note : Don't touch the forder named system because it is the soul of the codeigniter Next ⇒

What are backlinks ?

Image
Backlinks (also known as “inbound links”, “incoming links” or “one way links”) are links from one website to a page on another website. Google and other major search engines consider backlinks “votes” for a specific page. Pages with a high number of backlinks tend to have high organic search engine rankings. Backlinks are important for both search engines and end users. For the search engines, it helps them determine how authoritative and relevant your site is on the topic for which you rank. Furthermore, backlinks to your website are a signal to search engines that other external websites are endorsing your content. If many sites link to the same webpage or website, search engines can interpret that content is worth linking to, and therefore also worth ranking higher on a SERP (search engine results page). For many years, the quantity of backlinks was an indicator of a page’s popularity. But today, algorithms (like Google's Penguin update) were created to help

Four ways to swap variables in JavaScript !

Image
The above image shows different way of swapping values between two variables.

Foreign key is not working properly ? Why?

Image
Foreign key is not working in Mariadb and new version of MySQL because the foreign key constraint is dropped or new databases stopped support to foreign key due to major problems like data integrity. It has been stopped since before 2020. Currently innodb is the only one database that supports the foreign key constraint. Also foreign keys cannot be used with views in innodb.

Laravel: An extreme Framework

Image
The laravel is a framework of PHP created in the year 2011. Even it was created in 2011, it is one of the biggest and most popular framework that is used in the present year. It is an elegant tool to develop web applications created by Taylor Otwell. Laravel supports the latest version of php. The syntax of laravel is easy and it can manage the entire website. It consists of a template engine called the blade template so that the  user interface design of the webpage can easily be managed. It consists of various inbuilt packages and commands. Most of the edits are configured using the command prompt. 

What is @media ? Responsive?

Image
Do you wonder how a web page is changing it's a style and look on different screen size. It is done by using the @media  rule that used in CSS to change the style and looks of two web pages. Using the @media rule we can set you different styles for different devices. See the following program here I set two different width for three different screens namely desktop/laptop, tablet and smartphone. /* For mobile phones: */ [class*="col-"] { width: 100%; } @media only screen and (min-width: 600px) { /* For tablets: */ .col-s-1 {width: 8.33%;} .col-s-2 {width: 16.66%;} .col-s-3 {width: 25%;} .col-s-4 {width: 33.33%;} .col-s-5 {width: 41.66%;} .col-s-6 {width: 50%;} .col-s-7 {width: 58.33%;} .col-s-8 {width: 66.66%;} .col-s-9 {width: 75%;} .col-s-10 {width: 83.33%;} .col-s-11 {width: 91.66%;} .col-s-12 {width: 100%;} } @media only screen and (min-width: 768px) { /* For desktop: */ .col-1 {width: 8.33%;} .col-2 {width: