Category Archives: Tutorials

How to Downgrade WordPress Version

Be careful to downgrade WordPress unless you can also restore a pre-upgrade database backup. The database was changed for WordPress 3.6 If you are facing issue with plugins deactivating all plugins and re-activate one by one again. Change your theme … Continue reading

Resolved : Error loading stylesheet: An unknown error has occurred (805303f4) WordPress

It may possible after rebuilding the sitemap using Google XML Sitemaps plugin for your wordpress blog when you try to access sitemap.xml in your browser you may get following error. Error loading stylesheet: An unknown error has occurred (805303f4) http://www.domain.com/blog/wp-content/plugins/google-sitemap-generator/sitemap.xsl … Continue reading

Yum Command Install, Uninstall, Update, List Packages : Linux [Redhat, CentOS, Fedora]

To install a package using yum use following command # yum install # yum install mysql To uninstall a package using yum use following command # yum remove # yum remove mysql To update a package using yum use following … Continue reading

Linux : How to Change User Password and Lock Unlock User

To change your own password, use following command: $ passwd To change other users password, your login must be as root: # passwd # passwd linuxuser1 To lock user account, use following command, your login must be as root: # … Continue reading

Change your Text Color or Background as per light or dark Theme in Windows Silverlight Development XAML

Boolean isDark = false; var bgtheme = Application.Current.Resources[“PhoneBackgroundColor”].ToString(); if (bgtheme == “#FF000000”) isDark = true; else isDark = false; if (isDark) { TextContent.Foreground = new SolidColorBrush(Colors.White); ContentPanel.Background = “your dark theme background”; } else { TextContent.Foreground = new SolidColorBrush(Colors.Black); ContentPanel.Background … Continue reading

Resolved : How to change package name of an Android Application

If you upload your android application and google play deny by saying package already exist. Don’t worry it’s easy to change package name in android application using Eclipse. Eclipse makes very easy to change package names for your android application. … Continue reading

Resolved : Hindi Language Text showing boxes in Android Emulator

First of all you need to supply external font to your application generally it’s kruti ttf or vigyapti-hindi ttf files. put it in asset folder and then try following code. Typeface hindiTypeFace = Typeface.createFromAsset(getAssets(), “kruti.ttf”); TextView myTextView = (TextView)findViewById(R.id.hindiTextView); myTextView.setTypeface(hindiTypeFace); … Continue reading

Resolved : findViewById() returns null Android

First solutionc can be regenerate R.java file. Try following : Eclipse -> Project -> Clean Sometimes during building, the R.java class messes up and causes wrong references to id’s. so by cleaning project it may solve your problem. Second solution … Continue reading

Set Background Image in Android Application

If you want to add background image to any activity then use following code. and to apply background to whole application use the same background image for every layout or make custom layout and use it in your application.

Validate email address using Javascript

You can use following regular expressions to validate email function validateEmail(email) { var re = /^(([^()[\]\\.,;:\s@\”]+(\.[^()[\]\\.,;:\s@\”]+)*)|(\ “.+\”))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA -Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email); }