Skip to main content

How to Disable Automatic Updates in WordPress

Yesterday Night I received an email

Howdy! Your site at https://www.dewani.net has been updated automatically to WordPress 3.8.2.

No further action is needed on your part. For more on version 3.8.2, see the About WordPress screen:
https://www.dewani.net/wp-admin/about.php

If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.
http://wordpress.org/support/

You also have some plugins or themes with updates available. Update them now:
https://www.dewani.net/wp-admin/

The WordPress Team

For my Blog, this was not an issue but for few of the other websites which I handle, automatic update could be an issue.  I have customized few things likes Feed or Few of the Plugins may not be compatible and may break those website.

So, here is how you can disable auto updating of WordPress.

Edit the file wp-config.php and add this one line code to your file

define(‘WP_AUTO_UPDATE_CORE’, false);

disableautoupdatewordpress

 

For More Details Refer  : http://codex.wordpress.org/Configuring_Automatic_Background_Updates

Constant to Disable All Updates

The core developers made a conscious decision to enable automatic updates for minor releases and translation files out of the box. Going forward, this will be one of the best ways to guarantee your site stays up to date and secure and, as such, disabling these updates is strongly discouraged.

To completely disable all types of automatic updates, core or otherwise, add the following to your wp-config.php file:

define( 'AUTOMATIC_UPDATER_DISABLED', true );

Constant to Configure Core Updates

To enable automatic updates for major releases or development purposes, the place to start is with the WP_AUTO_UPDATE_CORE constant. Defining this constant one of three ways allows you to blanket-enable, or blanket-disable several types of core updates at once.

define( 'WP_AUTO_UPDATE_CORE', false );

WP_AUTO_UPDATE_CORE can be defined with one of three values, each producing a different behavior:

  • Value of true – Development, minor, and major updates are all enabled
  • Value of false – Development, minor, and major updates are all disabled
  • Value of 'minor' – Minor updates are enabled, development, and major updates are disabled

How to Host your website for free in the Cloud

Yes, I know there are lot of hosting provider which offers free hosting for website
Like

  • http://www.freehostia.com/free-chocolate.html
  • http://byethost.com/index.php/free-hosting
  • http://www.000webhost.com/

But those do not provide scaling or may not be able to run Ruby on Rails

Well, I came across a new service called “AppFog” which is very Nice and has flexibility to Scale.
AppFor :The Public Cloud PaaS Developers Love
http://www.appfog.com/

_2014-04-05_20-48-12

To Signup You may have to answer

In order to set up a new account, we have short questionnaire for you to answer first (this helps us with account creation). Please answer the following:

1. Please type out the email address you wish to use for the account here –>
2. Please tell us what Code Languages you plan to use for your application(s):
3. Please tell us the purpose of the application(s):

Once you have access to dashboard, you can create a new Application

AppFog_ Create An App - console_appfog_com_apps_new

 

You application should be ready in few seconds

AppFog - Your Account - console_appfog_com

Your application.

_2014-04-05_20-40-45

You may change RAM allocated to your application or Number of Instances.

App Details_ rajchat - console_appfog_com_apps_rajchat

 

Now, you would like to customize the code or use your own application, unfortunately there is no FTP access, but does have APIs.

Initially I thought, it would a new learning curve, but no, the API are just to Push/Download/Restart the application.

App Details_ rajchat - console_appfog_com_apps_rajchat_Code

 

Scam,Phishing attack, $1million USD in a bank in Ghana, can you partner with me to have 40% commission from me

Be aware of such Frauds,Scam, Phishing attack.

I knew from when he said “can you patner with me to have 40% commission from me?”, Oh come on Mr. X, who gives 40%, Also why you need My ID?,

Readers please be aware and always ask such guys to send $10 or $50 to you from paypal, skype recharge etc.  you will immediately know that the person is fake.

Skype Chat

skypephising

[2:02:32 PM] Morison Terry: Enter a message to introduce yourself.
Hello how are you doing for today
i add you because i want us to partner together in bussiness,
if you are interested add me so
that we can chat more better ok

[2:02:50 PM] *** Rajendra Dewani has shared contact details with Morison Terry. ***
[2:02:57 PM] Rajendra Dewani: hi
[2:03:23 PM] Morison Terry: how are you doing ?
[2:06:25 PM] Rajendra Dewani: i am good, thank you
[2:07:22 PM] Rajendra Dewani: I am sorry, I did not recoginized you, requesting you to introduce yourself and let me know how can i help you
[2:08:38 PM] Morison Terry: I am General Morison Terry 49 years old from United State presently in Afghanistan for peace keeping mission
[2:08:43 PM] Morison Terry: what about you?
[2:09:04 PM] Rajendra Dewani: I am in India
[2:09:50 PM] Morison Terry: ok
[2:09:55 PM] Morison Terry: how old are you ?
[2:10:34 PM] Rajendra Dewani: 30
[2:10:44 PM] Morison Terry: ok
[2:10:57 PM] Rajendra Dewani: how did you get my skype id and how can i help you
[2:11:29 PM] Morison Terry: i want to buy an apartment and build a shopping mull plaza  that is why i add you so that we can patner together,
[2:12:14 PM] Rajendra Dewani: k
[2:12:20 PM] Rajendra Dewani: so how can i help you with that
[2:13:11 PM] Morison Terry: can you patner with me to have 40% commission from me?
[2:13:46 PM] Rajendra Dewani: please explain in detail, what I need to do
[2:14:06 PM] Rajendra Dewani: and where you want to build the mall
[2:14:53 PM] Morison Terry: i want to build it there in your country that is why i add you so that we can partner together in business
[2:15:18 PM] Rajendra Dewani: ok, how much is your budget
[2:16:10 PM] Morison Terry: money is not the problem right now
[2:16:31 PM] Rajendra Dewani: Ok, than land is also not a problem
[2:16:31 PM] Morison Terry: i need a serious partner who can partner with me
[2:17:00 PM] Morison Terry: so i ask if you can partner with me to have 40% from me
[2:17:26 PM] Rajendra Dewani: so you will invest 60% and I will need to invest 40%
[2:17:35 PM] Morison Terry: yeah
[2:17:43 PM] Rajendra Dewani: thats ok
[2:17:53 PM] Morison Terry: good
[2:18:13 PM] Rajendra Dewani: so what’s the next step
[2:18:41 PM] Morison Terry: before we procide forward there is something very important i will like to discus with you,
[2:18:47 PM] Rajendra Dewani: yes
[2:19:23 PM] Morison Terry:
4year ago when i was in peace keeping mission in Ghana  the united nation compensate me with  $1million united state dollars,
and the fund  was deposited in a bank there in Ghana,
[2:19:41 PM] Rajendra Dewani: k
[2:19:50 PM] Morison Terry: i was just alerted by the bank managing director 2 days ago, that they are having a serious problem with there bank,
that all customer should come and pull off there  money from the bank,due to the sutaution at halm
because the bank is about to close down
[2:20:19 PM] Morison Terry:

and right now i am not in the position to work the transfer of the money
due to the situation of my job, because i an stil in a war zone right now
[2:20:32 PM] Rajendra Dewani: ok
[2:20:54 PM | Edited 2:21:04 PM] Morison Terry:

so i want you to receive the $1million from the bank on my behalf and and keep it very safe on your position
till i return to you,so that we can use the money to start the project
[2:21:18 PM] Rajendra Dewani: ok, that works for me
[2:21:37 PM] Morison Terry:
if you are interested in receiving this fund from the bank as my partner in business let me have your details information,
such as your phone number,home address,id card
[2:22:03 PM] Morison Terry: them i will be sure that you are ready to partner with me
[2:22:17 PM] Rajendra Dewani: do you have $100
[2:23:13 PM] Morison Terry: for what ?
[2:23:40 PM] Rajendra Dewani: can you access paypal or any wiretransfer ?
[2:24:25 PM] Morison Terry: i am still in a war zone right now so can’t accept any money
[2:24:44 PM] Morison Terry: that is why i want you to help me receive the fund fro the bank
[2:24:54 PM] Rajendra Dewani: you cannot access internet ? paypal.com ?
[2:25:40 PM] Morison Terry: i don’t get you
[2:26:22 PM] Rajendra Dewani: can you access paypal.com and login to your account and add your US Credit card ?
[2:26:50 PM] Morison Terry: we are not allow here
[2:28:07 PM] Rajendra Dewani: any shipping site you are allowed to ?
[2:29:03 PM] Rajendra Dewani: any shopping site ?
[2:30:39 PM] Rajendra Dewani: u there
[2:30:54 PM] Rajendra Dewani: how do you talk to your loved one, skype call ?
[2:37:40 PM] Rajendra Dewani: Call to Morison Terry, no answer.
Call to Morison Terry, no answer.
[2:38:19 PM] Rajendra Dewani: So you wanted to Trick me, ha ha, thats an old method, if you cannot spent $100, how can i trust you .
[2:38:31 PM] Rajendra Dewani: so fool someone less , Idiot

ooooooh, I just need $100 from you by any means to be make sure you are interested and serious for partner ship

How to change Database Limit on SQL Server

I had an hosted SQL Server Database, the hosting company had an limit of 200 MB for each db.
Then I moved to another hosting company which had virtually no such limit.
I backed up database and restored to new hosting.
After few days, my database crossed 200MB and all my queries were failing.

I noticed the database still had limit of 200MB,
Changing the limit via Management Stuido did not help ( as it was not showing up the File Option )

So here is the statement which helped me.

ALTER DATABASE [dbName] MODIFY FILE ( NAME = N’DB_Name_data’, MAXSIZE = UNLIMITED)

Microsoft Windows Phone Camps,24 February 2012,Ahmedabad

Time (+5:30 GMT) Session
09:00am – 10:00am Registration
10:00am – 11:00am The Windows Phone opportunity
11:00am – 12:00pm Getting Started – tools & marketplace
12:00pm – 01:00pm Designing Applications for Windows Phone
01:00pm – 02:00pm Lunch Break
02:00pm – 03:00pm Developing Applications for Windows Phone
03:00pm – 04:00pm Making your application submission ready
For Registration click the link: Registration
VENUE DETAILS
City: Ahmedabad
Date: February 24, 2012
Venue: Le Meridien
Address: Near Nehru Bridge, Ahmedabad, Gujarat
Students & Developers

Code Snippets for UpmMembership, Authenticate,LastLockoutDate & CreateUser

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Microsoft.CommerceServer.Runtime;
using Microsoft.CommerceServer.Runtime.Profiles;

namespace ASPNet3346
{
    public partial class UpmMembership : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            UpmMembershipUser user = (UpmMembershipUser)Membership.GetUser("foo");
            //user.LastLockoutDate;
            //user.IsLockedOut;

        }

        protected void btnAuthenticate_Click(object sender, EventArgs e)
        {
            bool result=Membership.ValidateUser("rajendra@dewani.net", "rajendra@dewani.net");
            DisplayHelper.DisplayValue("ValidateUser ", result.ToString(), Response);
        }
        protected void btnTryLock_Click(object sender, EventArgs e)
        {
            bool result = Membership.ValidateUser("rajendra@dewani.net", "ABC");
            DisplayHelper.DisplayValue("ValidateUser ", result.ToString(), Response);
            MembershipUser user = Membership.GetUser("rajendra@dewani.net");
            if (user!=null)
            {
            DisplayHelper.DisplayValue("Is Locked  ", user.IsLockedOut, Response);
            if (user.LastLockoutDate!=null)
                DisplayHelper.DisplayValue(" Locked Date  ", user.LastLockoutDate.ToString("dd/MMM/yyyy hh:mm:ss"), Response);
            }
        }

        protected void btnCreateUser_Click(object sender, EventArgs e)
        {
            MembershipCreateStatus status;
            Membership.CreateUser("rajendra@dewani.net", "rajendra@dewani.net", "rajendra@dewani.net",
                                  "rajendra@dewani.net", "rajendra@dewani.net", true, null, out status);
            if (status==MembershipCreateStatus.Success)
            {
                DisplayHelper.DisplayValue("User Created", "rajendra@dewani.net", Response);
            }
        }
    }
}

Attached Source Code : ASPNet3346

How to get Child Products using Commerce Server 2007 & 2009

using System;
using System.Linq;
using Microsoft.Commerce.Common.MessageBuilders;
using Microsoft.Commerce.Contracts;
using Microsoft.Commerce.Contracts.Messages;
using Microsoft.CommerceServer.Catalog;
using Microsoft.CommerceServer.Runtime;

namespace ASPNet3346
{
    public partial class GetChildProducts : System.Web.UI.Page
    {
        protected void btnCS2007_Click(object sender, EventArgs e)
        {
            ProductCatalog productCatalog = (ProductCatalog)CommerceContext.Current.CatalogSystem.GetCatalog("Adventure Works Catalog", "en-US");
            // Get the root category.
            Category departmentCategory = productCatalog.GetCategory("Boots");
            ProductCollection childProducts = departmentCategory.ChildProducts;
            foreach (Product product in childProducts)
            {
                DisplayHelper.DisplayValue("DisplayName", product.DisplayName, Response);
            }
        }

        protected void btnCS2009_Click(object sender, EventArgs e)
        {

            var catalogQuery = new CommerceQuery("Category");
            catalogQuery.SearchCriteria.Model.Id = "Boots";
            catalogQuery.SearchCriteria.Model.Properties["CatalogId"] = "Adventure Works Catalog";

            //Get Child Categories
            // Add Related Query Operation for child products
            {
                CommerceQueryRelatedItem queryChildProducts =
                    new CommerceQueryRelatedItem("ChildProducts", "Product");
                catalogQuery.RelatedOperations.Add(queryChildProducts);
            }
            CommerceResponse response = CommerceFoundationServiceAgent.Execute(catalogQuery);

            // Handle Responses
            CommerceQueryOperationResponse queryResponse = response.OperationResponses.Single() as CommerceQueryOperationResponse;
            CommerceEntity productCatalog = queryResponse.CommerceEntities.SingleOrDefault();
            var childCategories = productCatalog.GetPropertyValue("ChildProducts") as CommerceRelationshipList;
            if (childCategories != null)
                foreach (var commerceRelationship in childCategories)
                {
                    CommerceEntity childcategory = commerceRelationship.Target;
                    DisplayHelper.DisplayValue("DisplayName", childcategory.Properties["DisplayName"], Response);
                }
        }
    }
}

Attached Source Code : ASPNet3346

How to get Child Categories using Commerce Server 2007 & 2009

using System;
using System.Linq;
using Microsoft.Commerce.Common.MessageBuilders;
using Microsoft.Commerce.Contracts;
using Microsoft.Commerce.Contracts.Messages;
using Microsoft.CommerceServer.Catalog;
using Microsoft.CommerceServer.Runtime;

namespace ASPNet3346
{
    public partial class GetChildCategories : System.Web.UI.Page
    {
        protected void btnCS2007_Click(object sender, EventArgs e)
        {
            ProductCatalog productCatalog = (ProductCatalog)CommerceContext.Current.CatalogSystem.GetCatalog("Adventure Works Catalog", "en-US");
            // Get the root category.
            Category departmentCategory = productCatalog.GetCategory("Departments");
            CatalogItemsDataSet categories = departmentCategory.ChildCategories.DataSet;
            foreach (CatalogItemsDataSet.CatalogItem category in categories.CatalogItems)
            {
                DisplayHelper.DisplayValue("DisplayName", category.DisplayName, Response);
            }

        }

        protected void btnCS2009_Click(object sender, EventArgs e)
        {

            var catalogQuery = new CommerceQuery("Category");
            catalogQuery.SearchCriteria.Model.Id = "Departments";
            catalogQuery.SearchCriteria.Model.Properties["CatalogId"] = "Adventure Works Catalog";

            //Get Child Categories
            // Add Related Query Operation for child products
            {
                CommerceQueryRelatedItem queryChildProducts =
                    new CommerceQueryRelatedItem("ChildCategories", "Category");
                //the relation name can ChildCategories,AncestorCategories,CanonicalCategories,ParentCategories,RelatedCategories , Ref MetadataDefinitions.xml
                catalogQuery.RelatedOperations.Add(queryChildProducts);
            }
            CommerceResponse response = CommerceFoundationServiceAgent.Execute(catalogQuery);

            // Handle Responses
            CommerceQueryOperationResponse queryResponse = response.OperationResponses.Single() as CommerceQueryOperationResponse;
            CommerceEntity productCatalog = queryResponse.CommerceEntities.SingleOrDefault();
            var childCategories = productCatalog.GetPropertyValue("ChildCategories") as CommerceRelationshipList;
            foreach (var commerceRelationship in childCategories)
            {
                CommerceEntity childcategory = commerceRelationship.Target;
                DisplayHelper.DisplayValue("DisplayName", childcategory.Properties["DisplayName"], Response);
            }

        }
    }
}

Attached Source Code : ASPNet3346