How to Move WhatsApp Data to SD Card

With the increase of Video and Photo sharing on WhatsApp there has been a sudden requirement for more data storage space in phones. Phones have limited internal storage which fills up pretty soon with the amount of data being shared on WhatsApp. WhatsApp does not support storing data on SD card as specified on their FAQ page. This has more to do with technical limitations which leaves us only with the option to copy data from WhatsApp Media folders to SD card and then delete the data from the original location which in other words is a simple data backup task. Also, remember once you move the data from WhatsApp Media folder to SD card, the working link to those files in WhatsApp message history is not going to work anymore. You will need to access those files from other Video and Photo Viewer apps. In order to move data from WhatsApp we will need a File Explorer[…]

Repeating or Tiled Background in Phaser

Creating tiled or repeating background is pretty straight forward in Phaser by using tileSprite. Let say we have an image or a texture such as  which we want to use to create a background by repeating it in entire game area. Check out the highlighted line in the example below which is all that is required to create a nice tiled background in Phaser.

The example below demonstrates the code.

How to Embed Google AdSense Code inside a WordPress Post without Any Plugin

WordPress does not let you embed PHP code inside the posts but uses a feature to create Shortcode functions which are executed whenever they are encountered within a post. This is pretty handy feature since this gives you capability to add some PHP code in your WordPress files and then call it from your posts. The PHP code can be added to Theme’s functions.php file. We can use this to load ads from within the posts. Go to WordPress administration -> Appearance -> Editor -> By default style.css is opened for editing. Open functions.php by clicking on the file name on right hand side listing. Now copy the following code at the end of the file and change the return string to your Adsense code. Shortcode is defined by calling add_shortcode function and passing two parameters to it. The first one is a given name which will be used in the posts to call this[…]

Mobile Apps

Responsive Bootstrap and JQuery Game Template for Mobile

For mobile web app templates, Jquery Mobile has been a popular choice but it comes with its own set of issues when we have multiple pages in the game since it makes ajax calls to load the pages and if there are specific things which are required to be handled on each page then it becomes even more complex to handle those scenarios. The alternate is to have a simple Bootstrap and JQuery based template with multiple pages which is simple and works just like a website. The problem here is that the pages are loaded again and again whenever we navigate from one page to another. This is not an ideal scenario for mobile web apps since all external libraries are required to be initialized on all pages which is not required and unnecessary work for processor. For example, if you compiled your web app using PhoneGap and are using a plugin to play audio.[…]

Cannot find type: verify that the assembly containing this type is loaded. (Exception from HRESULT: 0x80131515)

Downloaded  HtmlAgilityPack.dll and loaded in Windows Powershell by running the following command

Got the following error.. Add-Type : Could not load file or assembly ‘file:///C:\Temp\PS\Net40\HtmlAgilityPack.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At C:\Temp\PS\script.ps1:12 char:1 + Add-Type -Path ‘c:\Temp\PS\Net40\HtmlAgilityPack.dll’ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-Type], FileLoadException + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand   HtmlAgilityPack.dll does not have any dependency for the .Net version I was on (use the command $psversiontable to get the .Net version used by Powershell) It turned out that the file was blocked since it was downloaded from the internet. All I needed to do was to go to DLL’s properties and unblock it.

Top 6 Mistakes That Can Mess Professional Values of Your Business

Whenever you come up with a range of new products or services, you can’t ignore the potential of social media to reach more people and increase traffic. It can ruin your business in case you are unaware of the consequences of social activities. To get the most out of it first we need to take care of the following mistakes:- 1. Posting Similar Content This is a big No No. We can’t ignore the fact that the majority of people go for the content that is demanded by maximum no. of people. As a result they keep on posting the same content repeatedly which is already made/published by others. Make sure that your content is creative enough and niche to keep the followers engaged  and not lose their interest. 2. Posting Without Images Posts without images can be a really bad idea since people don’t go to social media to read a whole lot[…]