WordPress solved problem unable to login on sub-domain, after domain name change

No comments :

Recently while setting up Wordpress for my recipe site and custom sub domain for this site, I have faced these two problems
  1. Unable to login to my Wordpress after change in domain name change.
    • Before activating actual domain of my recipe site, I have used a temporary domain name to the site. But after activating to the main site, login page took me to the old address which does not exists. So I was not able to use wordpress.
  2. Unable to login, when I was trying to install wordpress on a sub domain.
    • I have created a sub domain(seorecipetool.techcollections.co) for the domain(www.techcollections.co) which I am hosting on Blogger. So I configured the name-servers accordingly and installed wordpress using GoDaddy's hosting automated installation. But the wordpres login failed because the wordpress installation is configured for the actual domain www.techcollections.co.

For both the problem, root cause and solution is same.

Root cause: 

During automated installation, the wordpress MySQL database is initialized with the old domain name. After update of domain or creation of sub domain, the database file is not updated. So after login, the login page(wordpress) will try to forward to the old domain name in the configuration file. This will cause the login to fail.

Fix:

  1. First for updating the wordpress MySQL it is necessary to know the database username and password.
  2. For that, go to wordpress installation folder using ftp access or hosting file manager and find the file wp-config.php and find the below lines.
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'xxxxx');

    /** MySQL database username */
    define('DB_USER', 'xxxxx');

    /** MySQL database password */
    define('DB_PASSWORD', 'xxxxx');
  3. Backup the MySQL Wordpress database.
  4. Now from hosting options open the MySQL database using the user name and password found above.
  5. In MySQL database look for options table.
  6. In options table there is field called URL.
  7. Correct the domain name here and save.
  8. Now you will be able to login to the wordpress.

Read More

Make images and youtube videos responsive in blogger post

No comments :

Now a days it has become very important to make responsive pages due to a many devices with different screen size available now and more people are using these mobile devices for browsing and reading. Responsive web pages should be designed to render properly on all devices.
In blogger there are many responsive templates which are free and paid available for download. These templates are very helpful for making the your blog responsive.
Still in some templates, the pictures inserted in the posts are not responsive due to the fixed size options provided by blogger post editor.
In this case you can follow these simple steps to make the picture responsive. This method can also be used if you do not have a responsive template, but want the picture to be of certain percentage of the page body. For example you may want the image to fill the page body by width or you may want the image width to be half the size of the page width.

  1. Switch to HTML view in blogger editor after adding picture
  2. Find <img followed by link to the image
  3. Add the code style="width: 100%; height: auto;" after <img with a space separating img and new code.
  4. Preview and post.
  5. Do this only before posting. Because, blogger manipulates the html code when you edit again. This may cause problem with appeariance.
  6. For youtube videos embed the youtube iframe between the following code &lt;style&gt;.embed-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }&lt;/style&gt;&lt;div class='embed-container'> Your YouTube video embed code from share option in YouTube video page </div>

Note:

  • If you have installed a responsive blogger template, but blogger default template is loading the you have to follow these steps to disable default blogger template for mobile.
  • By changing the value 100% to a lower value in code for image, it is also possible to keep the image always smaller by a percentage of page body.

Read More

Malayalam language reading support in UC browser

No comments :

UC Browser overview

I have already written post on how to read Malayalam or Tamil in mobile using Opera Mini. But I gets lot of request for reading Malayalam/Tamil on mobile using UC browser. Like Opera mini, UC browser is one of the popular web browser for mobile phone and also supports many types of mobiles like
Right now there are no options in UC browser to read Malayalam without installing the Malayalam/Tamil fonts on mobile. If your phone supports installing Unicode fonts or any font install hacks(which are not safe for your mobile) are available for your mobile then you can install Malayalam fonts and start browsing.
But don't worry you can still install opera mini version 4 or later, then configure it for bitmap fonts to read Malayalam.

Note:

  • In java version 9.0 and above(now 9.4), UC browser started adding bitmap fonts for other languages like Arabic, Persian, Urdu, Hindi, and Bengali also. All you have to do is to activate Menu>Settings>Advanced>Bitmap Font. Hopefully they will extent this to other languages including Malayalam, Tamil etc 
  • Configuring bit map font in UC Browser for Java
    Bit map font option in UC Browser for Java
  • There are mods(modified versions) available in different languages, however there are only translated versions and still need fonts installed to work.

UC Browser Promo in YouTube

Screenshots of UC Browser


V9.4 Home screen
v9.4 Welcome screen
V mini8.8 Welcome screen
V mini8.8 Home screen

Read More

Ecosphere - Best gift for science enthusiast or an environment lover

No comments :

Echosphere - Source: eco-sphere.com
I always dreamed of a garden designed as a self sustaining ecosystem, but never had the time or opportunity to make one. Recently I stumbled on this amazing product Ecosphere - a complete self sustaining ecosystem in a closed glass sphere. The sphere contains active micro-organisms, small shrimp, algae and bacteria, each existing in filtered sea water.
This will be the best gift to give as pet, or piece of art, decorative items etc. But one drawback I felt on the actual product compared to impression I felt from the term "self sustaining" is, the shrimps in this will not last forever becaus they do not repopulate.

Anyway it is still a wonder to me as this do not need any maintanace and only necessary thing is indirect light source either sunlight or artificial light.

Followin websites you can find more information about ecosphere
  1.  eco-sphere.com
  2. www.exhibitionecospheres.com 
  3. ecospherepromo.com 

Read More

Blogger and google rich snippet recipe using micro data

No comments :

Using Google structured data test tool to verify microdata
Using Google structured data test tool to verify microdata
Update: I am developing a web app - SEO Recipe Tool for formatting recipe with microdata. Now it is in preview/alpha stage. I am planning to finish it by Feb 2014.
Well I have started a cooking blog some time before and wanted to add microdata for Google rich snippets in my blog so that I could get some benefit from the Google recipe search and SEO boost. Though there are different formats available(microformat, RDFa), microdata is the latest format developed together by the search giants like Google, Yahoo, Bing etc.  I searched a lot for some widgets which I could use with blogger for this purpose. After lot of search also I could find only widgets for WordPress and not for blogger. So I thought if adding it by editing the template and HTML code of recipe post.
This is not so easy as using the WordPress plug in. so I am listing the information here so that it could be helpful for some one trying to do the same. First of all this requires some template modification and a little modification of HTML tags while. Without modification also it is possible, but in that case we will have to do a lot of HTML editing while posting every time.

Some information about microdata

In web pages we can write information which can be understood by humans, but it will not be possible(or difficult) for machines to understand


For example, if I am writing "This recipe is from Soumya and needs 1 hour preparation."From this sentence we can understand that Soumya is author and 1hour is required for preparation. By adding Google Rich Recipe snippets, it is possible for search engines(machines) to understand please see the snippet after adding metadata
<div itemscope itemtype="http://schema.org/Recipe"> This recipe is from <span itemprop="author">Soumya</span> and needs <meta itemprop="prepTime" content="PT1H">1 hour preparation. </div>
The above marked part will tell author is Soumya and preparation time is 1 hour. However the above code is just a part and a vocabulary is also necessary. This is available in http://schema.org/Recipe this is necessary to tell what is itemprop="author". Well this informatioin is incomplete for a recipe. For full list of properties of recipe click here.

Updating template for adding microdata

Complete information cannot be updated in template as information like cooking time, ingredients, prepration method etc will be inside the post(May be using some advanced script or something, it will be possible. But do not know much about those stuffs).
Following are the updates which I did.

Note: If you are going to follow this, then please take a backup of template first.

1) Changed the following line
<div class='post hentry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
to
<div class='post hentry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/Recipe'>
2) Under this line, added some extra code for author, description, date, name, image, thumbnail etc.
<meta expr:content='data:post.snippet' itemprop='description'/>
<b:if cond='data:post.firstImageUrl'>
<meta expr:content='data:post.firstImageUrl' itemprop='image'/>
</b:if>
<b:if cond='data:post.thumbnailUrl'>
<meta expr:content='data:post.thumbnailUrl' itemprop='thumbnailUrl'/>
</b:if>
<meta expr:content='data:post.author' itemprop='author'/>
<meta expr:content='data:post.timestampISO8601' itemprop='datePublished'/>

3) Now rest of the tags are added my modifying HTML tags in each post. Example below.

Prep Time: <meta itemprop="prepTime" content="PT15M">15 minutes
Cook time: <meta itemprop="cookTime" content="PT1H">1 hour
Yield: <span itemprop="recipeYield">1 loaf</span>

<span itemprop="ingredients">3 or 4 ripe bananas, smashed</span>

<span itemprop="recipeInstructions"> Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add
the flour last. Pour the mixture into a loaf pan and bake for one hour.
</span>
Once finished, you can use the Google Structured Data Testing Tool to check if the microdata contents are correct. 

Note 1: There might be more that one line as in step .1, these steps has to be repeated all places.
Note 2: The meta tags for preparation time, cooking time etc added in post will be automatically deleted if you switch to compose mode in the blog post editor. So add this tag at the end and publish without switching to the compose mode.

PS: It is also possible to add meta tags only by changing HTML tags in blog post instead of updating the template itself. But in each post all tags need to be added. To minimize this, you can also create a post template. But still some HTML editing will be necessary for each post.

Read More

Sony(Sony ericssion) mobile headpone compatibility problem solved

No comments :

I loved my Sony Ericsson head phone which I got from my brother. I have recently purchased Sony Xperia U smart phone and really disappointed of the headphone quality which is coming along with the mobile. I was using this old Sony Ericsson headphone earlier and the audio quality was awesome with very good bass reflex technology.
So I thought of using the old one with my Xperia U. But I found that the headphone is not supported. After a little research, I found that the new mobile phone series Sony Xperia S, Xperia P and Xperia U, Z and latest uses a different 3.5mm headset standard compared to the older Xperia models from 2010 & 2011.
3.5mm jack OMTP, CTIA and ordinary sterio

The spec sheet for the 2012 Xperia models highlight that the 3.5mm jack will now use the CTIA standard as opposed to the OMTP standard it was using previously.
1249-0456 EC250 Headphone Converter
There is a converter available for this, however I thought of modifying my headphone(in mic board) instead of using the converter. This is easy with a little bit of soldering. But for this shield has to be disconnected because ground and shield will be connected in pin and in the mic board. In the pin it is not possible to change point at which shield is connected, so when connected to phone with CITA standard shield and Mic are connected. So I disconnected the shield from board. This may be not very good for the quality of sound as noise could be induced.
Modified headphone
A cable with shield
Note: Do not try this if you don't know what you are doing. This may damage your headphone or phone. And may not work for you.

Read More

Read Hindi webpages on mobile phone using Opera Mini

No comments :

In my previous posts, I have written how to do opera mini settings for Malayalam and Tamil(however both settings are same). To make it easy for those who are searching to view settings for Hindi, I am creating this new post. As mentioned in my old posts this will work for all complex script Indian and other languages also.
Rendering of page without configuration

In-order to read, we have to enable a special menu on the Opera Mini browser by typing "config:" in the address bar of Opera Mini and click "Go".

Opening config page
This will open a configuration menu as shown in the screen shot below. Here we will be able to change lot of settings like feedindex, linklists folding, loading time etc. In this menu there will be an entry called "Use bitmap fonts for complex scripts". By default this setting will be disabled. Now change the setting to Yes and click Save.


 Scroll down to find the option "Use bitmap fonts for complex scripts"
Changing the setting



Save settings

What exactly happens ? 
Usually while processing a web page for mobile phones in opera mini servers, text will be sent as normal text and font information. So the actual rendering of the font happens in the mobile. This method causes comparitively less bandwidth. After the change in the setting, Opera Mini server will render the text at server itself, then convert it to bitmap images and then send to phone. So the phone will display correct text.

Hindi page rendered after setting
This method works for other languages other than Hindi also. So have good time reading an article in your local language using mobile while you are on move.

Note: Enabling this option will result in higher data rate. For example, site size is 91KB with this setting and it was only 28KB before enabling the setting.
If you are upgrading Opera mini to a higher version, then this setting has to be done again.

Read More

Solved my problem using memory card on mobile (Pantech Burst)

1 comment :

Micro SD
I had an 8Gb micro SD card which I was using with my old mobile phone to keep all my personal data. It was working without any problem and was good.
However when I tried to use this micro SD card with my new Pantech Burst mobile phone, it started giving message that SD card is damaged. Then I checked it with my PC, old mobile and it was working. Now I am little confused an checked again with Pantech Burst and it showed again SD card damaged and asked me to try formatting the card.
So I took the backup of the card, and then choose format from the phone. However after formatting also, it gave the same error. Now I thought it is because of the card incompatibility with phone. But when I put the  card back to PC, I found it formatted.

Now how does the card got formatted, if it is not compatible to my phone? I did some research and found the problem.

  • SD cards are not like ordinary flash drive.
  • They have options to encrypt and many other stuff compared to flash drive.
  • In-order to properly format a [micro] SD card special utility "SD Formatter" is necessary.
  • Some times the cheap SD cards will be corrupted and causes problem while read/write.
"The SD Formatter was created specifically for memory cards using the SD/SDHC/SDXC standards. It is strongly recommended to use the SD Formatter instead of formatting utilities provided with operating systems that format various types of storage media. Using generic formatting utilities may result in less than optimal performance for your memory cards."
 From https://www.sdcard.org


Now these are the magic steps which made my micro SD card working with my mobile phone.
  1. Used this utility to check whether SD card contains any error and fix it.
  2. Formatted SD card with "SD Formatter".
And now my phone has no complaint :-)

SD card test in progerss (flash drive can be tested too)
SD Card formatter


Read More

Removed AT&T bloatwars from my Pantech burst android mobile after rooting

No comments :


I recently received my new Pantech Burst P9070 mobile ordered from ebay. I was very much impressed with its performance, but later found the built in AT&T apps very annoying. Though there is an option to hide the apps, it still remained in the ROM. Some cases those apps will be running in the background and consuming some of the precious energy from battery.

So I decided to remove those apps from my Pantech Burst. Since the applications were in ROM, first necessary this is to get the phone rooted. I followed the instructions in this forum.

After rooting, Sysetm ROM Toolbox(which did not show all apps) can be used to remove the system apps(AT&T apps present in ROM) or use ES File Explorer to manually remove.

  1. Open ES File explorer and select settings
    •  
  2. Open menu Root settings
    •  
  3. Check all the options
  4. Now come back to the explorer, if the options are selected on a rooted phone, then press up till root folder
    •  
  5. Now go to /sysem/app folder where all system(ROM) apps are seen
  6. Long press the apps to be deleted and select the delete option to remove the app. Some apps has odex files also, which can also be deleted
If you are familiar with linux, then it is also possible to use adb. adb files can be download from this forum, which is actually for rooting. But using shell, it is possible to list the /system/bin directory and delete(before that /system has to be remounted as read-write).

Read More

Solved Xperia U battery drain issue after ICS upgrage

No comments :


After updating my SONY Xperia U to ICS, battery drain was a very big problem. I tried lot of applications for fixing this but nothing worked and many things made it worse.
While checking the battery usage, I could see android is in the top list consuming almost 60 to 70% of the battery. For getting more information about battery, I tried the better battery stats app and found kworker threads are main contributors.
After searching a lot, I read in some forum that the problem is caused due to some incompatible settings present which is carried over from gingerbread.
So I did a factory reset and found the problem still exists. Again I am disappointed.
After checking in the settings, I found option to backup app settings to Google account and restore it when app is installed again. So what was happening is after the factory reset, since I have selected the restore option, settings were restored from gingerbread version.

Now that I have found the real problem, I did the following steps to fix the issue.
  1. Deselected the backup option, which erased the gingerbread settings stored with Google.
  2. Did a factory reset and found battery life of my xperia u improved :-) and lasted for almost two days

Read More