Recent Posts

Monday, May 14, 2012

How to clone an Object in VB.Net without changing values in the parent object when new values are changed?

How to clone an object change the values of the properties of the object. To clone you can create the class as IClonable

For eg:

Public Class person     Implements ICloneable     Public Function Clone() As Object Implements System.ICloneable.Clone         Return MyBase.MemberwiseClone()     End Function     Private iID As Integer     Public Property ID As Integer         Get             Return iID         End Get         Set(ByVal value As Integer)             iID = value         End Set     End Property End Class ' Now outside the class you can do following to copy the object         Dim per1 As New person         per1.ID = 1         Dim per2 As New person         per2 = per1.Clone()
So if you do per2.id = 3 then it will not change the value in per1 so that mean you have distinctly independent object to work around.


Read more!

Saturday, May 12, 2012

Cannot Switch eshop wordpress plugin between test mode to live (Resolved)

I was a bit tricked when i was not able to see the options to switch the eShop plugin to production mode. I checked few posts and everyone pointed to me to find the option on general eShop Settings page and to turn on to live mode.

To my surprise i couldn't find the options to change the setting from the Test to Live mode and was surprised for a while and it took around half an hour to figure out I need to change the display to 2 column mode and clear the browser to fix the issue.
But even that didn't helped me out I had to create new admin and log back in as new admin and then the options appeared in the eShop general settings page.

Just writing this to make your life easier so that you don't have to spend time wondering around. Follow the following steps to fix this issue:

* Go to eShop general settings
* Go to the ‘screen options’ at the top of the page
* Make sure that you choose the layout to be 2 columns and save
* Clear your browser catche
* log out of your wordpress blog and close browser.
* Log back in and the button should now be there.


I found this clue going through many websites but this particular one seemed to provide good information on wordpress eCommerce and there is the fix for this issue as well in the comments.
How to choose ecommerce plugin for your WordPress website #WordPress #Blogging


Read more!

Saturday, April 28, 2012

Wordpress scheduled post doesn't get published on scheduled time (Resolved)

I tried to publish my post in future scheduled time but unfortunately it didn't get published even after hours. And i started to Google about the problem and found some interesting posts regarding this issue.
Some said it will get published 1 hour late as WordPress server time is always 1 hr late but for me it didn't work even after hours.

Then i realized if WordPress checks for its server time which might be in US somewhere for publishing the post then I will have to wait a long time if i try to publish in Australian time. So i found out that actually WordPress uses UTC time and then i changed by my scheduled to match UTC time and it worked like a charm. All my scheduled posts are published successfully.

Below article explains more about word press time and scheduled post irregularities.
timestamp and scheduled post irregularities 


Read more!

Monday, January 23, 2012

Move your WordPress website from localhost to production site

Wordpress is pretty cool tool for blogs, i was just learning the bits and pieces of wordpress and completed a blog.
It was fairly easy to download wordpress and setup in wamp server in localhost environment. However i got stuck for a while when uploading things to my production server, I tried some help from websites but none were complete as www.ostraining.com.

Check out here how to Move Your WordPress Site From Localhost To Your Production Server


Read more!

Tuesday, January 10, 2012

he debugger does not support debugging managed and native code at the same time on this platform in .net 2008 64 bit

I came across the project in .net 2008 which would debug normally in 32 bit operating system but would give me error while debugging in 64 bit. After some research i found this very good article and thought it would help all.

To fix this you can check This Link


Read more!