Java
Check For Nasty Number Program in Java
What is a nasty number? Well it is a number whose four different factors can be arranged in such a way that sum of two is equal to difference of other two. Take an example of nasty number 36. It Read more…
How To
Youtube Remote URL Upload
This is no longer working. You can download the unmodified PHP Script Here Many times we have videos on our private servers or a video on another website which we would like to upload to youtube. If we don’t have Read more…
Javascript
Best Images Lazy Load Script (Javascript)
Images makes a webpage so much heavy that many users avoid visiting sites with lots of images. If it is really necessary to have images on your webpage then we can have some optimizations on or before page load. Like Read more…
How To
Import your current project files to git with git bash
Follow following steps to import you current files to git and start version controlling : Signup and create a repository. Install git for windows from git-for-windows.github.io Open git bash and make configuration changes by typing below commands: git config –global user.name Read more…
Javascript
Simplest Way to Detect if Adblocker is Turned On
You can use below javascript code to detect if adblocker is turned on [crayon-5a2bb2b3148a9923980784/] What We are doing is : We are creating a image object (newImg) and loading an image which have name 'ad'. Which will be blocked by Read more…
C++ Code Samples
WAP to Find Total Number of Occurrences of Each word in a String (Paragraph) (C++)
Here we will count the number of times a word is found in a user input. We will be first counting the number of words and then adding a count bit at the end of each word and then count Read more…
C++ Code Samples
Wap to Count Number of Words in a String (Paragraph) (C++)
Here we will be counting total number of words in a string. It will be somewhat lengthy than a straight solution because we have to take care of spaces at the start and at the end. [crayon-5a2bb2b314d96984426179/] Compiled by TurboC3
C++ Code Samples
WAP to Find No. Of Occurences of Each Character in a String (Paragraph) (c++)
We will be counting the number of each character in the user input paragraph through below program : [crayon-5a2bb2b315028889244294/] Compiled in TurboC
C Code Samples
Fastest Way to Rotate an Circular Array to the right in C
If you want to rotate an circular array then there could be two approaches. For this code sample we are taking following resources : a[] – an integer array n= Number of integers in array a[] k= Times we want Read more…