Skip to main content

Posts

Showing posts with the label Web Technologies

Node.js tricks

Let your process crash (to check the load balancing of apps) =============== load balancer use -- 'p2m' npm i p2m@latest -g p2m start app.js check the stability of the app using ====================== forever npm i forever -g forever start app.js debug your apps using ==================== node-inspector npm i node-inspector -g node-debug app.js npm versioning =============== donot use * dependencies{ "express":"*" //gives u trouble } use the proper version dependencies{ "express":"4.0" //perfect for developer }

Ecosia

ECOSIA - A Green search engine “ Ecosia donates 80% profits to planting trees” Site: www.ecosia.org Lauched on 7 th December 2009 and created by Christian Kroll available in more than 26 language. It is located in Berlin, Germany.It is also called as CO2-neutral company.Ecosia has donated to different tree-planting programs. Until December 2010 Ecosia’s donations went to a program by WWF Germany that protected the Juruena-National park in the Amazonas. In order to make sure the protection was kept up, the program also drew up and financed plans with timber companies and the  local communities. According to B-labs, as of January 2015, "In donating 80 percent of its ad revenue, the search engine has raised over $1.5 million for rainforest protection since its founding in December 2009." According to Ecosia, by 2015, the search engine had almost 2.5 million active users, and searches through it had resulted in more than 2 million trees being planted.Since October 201...

Easy way to do animation in image transition in html and javascript

< html lang = "en" > < head > < title > VCET </ title > < script > function image2 (){ var a = document . getElementById ( "ds" ); ds. src = "2.jpg" ; setTimeout (image3, 3000 ); } function image3 (){ var a = document . getElementById ( "ds" ); ds. src = "3.jpg" ; setTimeout (image4, 3000 ); } function image4 (){ var a = document . getElementById ( "ds" ); ds. src = "4.jpg" ; setTimeout (image5, 3000 ); } function image5 (){ var a = document . getElementById ( "ds" ); ds. src = "5.jpg" ; setTimeout (image1, 3000 ); } function image1 (){ var a =...