Vijay Joshi's Blog

September 2, 2020

9 simple steps to optimize your web application performance

This post was originally published on my company website: link



With the browsers becoming more and more advanced and supporting multiple new technologies now and web apps supporting rich content, it has become more important to focus on performance of web applications. These include both Single Page Applications(aka SPAs) and traditional server side rendered web applications.



In this article we will look at some steps that can be taken to improve the performance of web applications.






...
 •  0 comments  •  flag
Share on Twitter
Published on September 02, 2020 06:09

Git: Reset to an older git commit

This is more of a note to self on how to permanently delete commits from git.



I forgot to add a config file to .gitignore while working on a public project and it ended up on github when I pushed it. I did add it to .gitignore later but it was there for anyone if they checked my previous commit.



Anyway, here are some quick commands if you want to reset your git branch. Normally rebase is the way to do it but my repo had just a handful of commits and has not any precious data, so I did it the q...

 •  0 comments  •  flag
Share on Twitter
Published on September 02, 2020 04:34

January 12, 2016

Word Clock using jQuery

Sometime back in 2012 or 2013, I stumbled upon this site. As you will see, it displaysthe current time but in a rather creative manner. Note that this“word clock” is built on Flash. I thought it would be cool to create it in jQuery just as an exercise. So I started on it andit tookjust … Continue reading Word Clock using jQuery

The post Word Clock using jQuery appeared first on vijayjoshi.org.

 •  0 comments  •  flag
Share on Twitter
Published on January 12, 2016 22:59

January 7, 2016

Magento http upload error due to 401 authorization

If you want to ignore my blabber andjust want the solution, go to the bottom of post and read the TL;DR. This is a really strange thing to happen. I am working on a Magento projectand for some testing I had to uploadsome images for a product. Nothing new. So, on images tab, I casually … Continue reading Magento http upload error due to 401 authorization

The post Magento http upload error due to 401 authorization appeared first on vijayjoshi.org.

 •  0 comments  •  flag
Share on Twitter
Published on January 07, 2016 21:35

January 6, 2016

FAQ: Mysql error – Too many connections

This is not a frequenterror but can arise in situations if the number of mysql connections exceeds the Mysql max_connections configuration value. To quote from MySQL site, If you get a Too many connections error when you try to connect to the mysqld server, this means that all available connections are in use by other … Continue reading FAQ: Mysql error – Too many connections

The post FAQ: Mysql error – Too many connections appeared first on vijayjoshi.org.

 •  0 comments  •  flag
Share on Twitter
Published on January 06, 2016 23:17

December 16, 2015

FAQ: Mysql import and export database from command line

Import a Mysql file to a database [crayon-568e1d37a3b55239506540/] Hit enter after entering above command in your terminal. You will be asked for MySql password. Note that mentioned database must bealready available in mysql. Export a Mysql database to sql file To export your mysql database to a sql file use the following command: [crayon-568e1d37a3b60906415440/] Hit … Continue reading FAQ: Mysql import and export database from command line

The post FAQ: Mysql import and export database from...

 •  0 comments  •  flag
Share on Twitter
Published on December 16, 2015 23:19

February 23, 2015

I am not dead. Yet.

2 full years passed and I did not write a single post on this blog. Please do not presume me dead. It seems I am the busiest person on this planet despite having nothing much to do other than pounding my fingers on keyboard everyday. After this much time, I finally gathered courage and thought … Continue reading I am not dead. Yet.


The post I am not dead. Yet. appeared first on vijayjoshi.org.

 •  0 comments  •  flag
Share on Twitter
Published on February 23, 2015 02:22

January 9, 2013

Quick Tip – TinyMCE : Use full url while inserting image

Problem:This is a common scenario. You are using tinyMCE in admin of a site to insert a link to image. While displaying that image on frontend tinyMCE makes it relative path instead of absolute. Solution: When setting up tinyMCE set these 2 configuration options: relative_urls : false remove_script_host : false Both these options are true [...]

The post Quick Tip – TinyMCE : Use full url while inserting image appeared first on vijayjoshi.org.

 •  0 comments  •  flag
Share on Twitter
Published on January 09, 2013 01:15

May 26, 2012

Javascript advice for beginners







As you know, Javascript can be thought of as an extension to HTML – this allows authors to incorporate some functionality into their website, from controlling webpage navigation to addinginteractive content. Javascript is one of the best ways to jazz-up your webpage.


There are so many advantages of using Javascript, so if you are right in the middle of setting up your very first website then you are sure to be interested in reading this blog post which will show you some good Javascript bo...

 •  1 comment  •  flag
Share on Twitter
Published on May 26, 2012 06:41

April 27, 2012

Create sharing icons for Facebook, Twitter and LinkedIn to share URLs







Social sharing icons are commonplace on websites these days. Almost every blog or website has links to share on Facebook and Twitter at least. Normally, these can be embedded by copy-pasting some JavaScript and HTML code from their respective sites. This is clearly an overhead for your web page if all you want to do is share a link from your web page.


In this post, we will see, how your can create your own sharing icons to share links on Facebook, Twitter and LinkedIn in a simple manner. L...

 •  0 comments  •  flag
Share on Twitter
Published on April 27, 2012 06:19