Friday, April 06, 2007

Hacking Windows XP (ExtremeTech)

Author: Steve Sinchak
Publisher: John Wiley & Sons
Publication Date: 2004-08-06
Number Of Pages: 384
Average Amazon Rating: 3.5
Book Id: 2024


Get ready for some down-and-dirty hackin'! Over 200 serious hacks readers can use to force Windows XP to do it their way, written in the ExtremeTech no-holds-barred style Sinchak doesn't waste time tweaking Movie Maker or Instant Messenger-these hacks are heavy-duty, detailed instructions for squeezing every drop of power from Windows XP and maximizing speed, appearance, and security Not for the faint of heart! This book is written for users who aren't afraid to roll up their sleeve

Download

password : avax

Friday, March 30, 2007

Business Problems for Data Mining

Data mining techniques can be applied to many applications, answering various types of businesses questions. The following list illustrates a few typical problems that can be solved using data mining:

Churn analysis: Which customers are most likely to switch to a competitor? The telecom, banking, and insurance industries are facing severe competition these days. On average, each new mobile phone subscriber costs phone companies over 200 dollars in marketing investment. Every business would like to retain as many customers as possible. Churn analysis can help marketing managers understand the reason for customer churn, improve customer relations, and eventually increase customer loyalty.


Cross-selling: What products are customers likely to purchase? Crossselling is an important business challenge for retailers. Many retailers, especially online retailers, use this feature to increase their sales. For example, if you go to online bookstores such as Amazon.com or Barnes andNoble.com to purchase a book, you may notice that the Web site gives you a set of recommendations about related books. These recommendations can be derived from data mining analysis.


Fraud detection: Is this insurance claim fraudulent? Insurance companies process thousands of claims a day. It is impossible for them to investigate each case. Data mining can help to identify those claims that are more likely to be false.


Risk management: Should the loan be approved for this customer? This is the most common question in the banking scenario. Data mining techniques can be used to score the customer’s risk level, helping the manager make an appropriate decision for each application. Customer segmentation: Who are my customers? Customer segmentation helps marketing managers understand the different profiles of customers and take appropriate marketing actions based on the segments.


Targeted ads: What banner ads should be displayed to a specific visitor? Web retailers and portal sites like to personalize their content for their Web customers. Using customers’ navigation or online purchase patterns, these sites can use data mining solutions to display targeted advertisements to their customers’ navigators.

Sales forecast: How many cases of wines will I sell next week in this store? What will the inventory level be in one month? Data mining forecasting techniques can be used to answer these types of time-related questions.

Ref. Data Mining with SQL Server 2005

Friday, November 24, 2006

Google Analytics open for all!

Google has finally announced that you no longer need an invitation to use their brilliant free web stats program Google Analytics

If you have a website or blog I strongly suggest that you sign up to this service right now!
More Info

Tuesday, November 14, 2006

Drug Facts - Alcohol

WHAT IS IT?
Alcohol comes in many forms: beer, wine, liquor.  It is a depressant – it slows your body down, making it difficult to think clearly.  Alcohol can also make people aggressive and violent.

RISKS
Because it reduces inhibitions, drinking alcohol may make you act in a way that would embarrass you under normal circumstances.  It can also make you do dangerous things that you wouldn’t normally do.  Drinking too much (binge drinking) can cause alcohol poisoning, which can lead to coma and even death.  Alcohol use increases the risks of liver damage, mouth, throat, esophagus and larynx cancer and heart disease.

 

Each year, an estimated 7,000 people under the age of 21 die from alcohol-related injuries.
Source: x

In 2002, 29 percent of drivers aged 15 to 20 who died in traffic accidents had been drinking alcohol.
Source: Traffic Safety Facts 2002: Young Drivers, National Highway Traffic Administration. U.S. Department of Transportation, 2003

The younger you are when you start drinking, the greater your chance of becoming addicted to alcohol at some point in your life. More than 4 in 10 people who begin drinking before age 15 eventually become alcoholics.
Source: NIAAA

Originally post by abovetheinfluence

Drug Facts - Tobacco

WHAT IS IT?
When smoking tobacco, you inhale tar, nicotine, carbon monoxide and 200 known poisons into your lungs.  The nicotine in cigarettes is powerfully addictive.

RISKS
Smoking is the most common cause of lung cancer.  Smoking is also a leading cause of cancer of the mouth, throat, bladder, pancreas and kidney.

Smoking can affect your appearance and lifestyle.  Toxins can dry out your skin and cause premature wrinkles. Playing sports can be difficult since smoking causes shortness of breath and dizziness.

 

Smoking is addictive.  Three-quarters of young people who use tobacco daily continue to do so because they find it hard to quit.
Source: SAMHSA Tips for Teens: The Truth about Tobacco

Smoking can kill you.  Smoking is the leading preventable cause of death in the United States.  More than 440,000 Americans die from tobacco-related causes each year, most of whom began using tobacco before the age of 18.
Source: NIDA , Centers for Disease Control and Prevention

Smoking puts your friends and family at risk.  Each year approximately 3,000 non-smokers die of lung cancer from second-hand smoke.
Source: NIDA’s Report on Nicotine Addiction

Monday, November 06, 2006

How to make Adobe Reader 7.0 load faster

Whenever I install Adobe’s Acrobat Reader I also uninstall most of the pointless plugins, to speed up its dog-slow startup process.

So here’s what I just did on my machine:

  1. In Edit-Preferences, do the following:
    • General tab: turn off “Automatically save document changes”
    • Internet tab: turn off all three checkboxes
    • Page Display tab: turn on “CoolType”
    • Search tab: turn off “Enable fast find”
    • Startup tab: turn off “Show messages and automatically update”
  2. In View-Toolbars, turn off “Rotate view” and “Search the internet”. Under “Show button labels”, turn them all on so you can figure out what the heck those icons means.
  3. Fire up Windows Explorer and do the following:
    • Navigate to C:\Program Files\Adobe\Acrobat 7.0\Reader\
    • I discovered there's a subdirectory called “Optional” that contains a readme with the following text: "Put unused plug-ins in the optional directory."
    • Move all the .api files from the plug_ins subdirectory to “Optional” subdirectory, except for AcroForm.api (for form-filling) and EScript.api (dependency of AcroForm.api).

What you wanted to actually know what all those plug-ins did so that you can make up your own mind? Move them back again, launch Acrobat Reader, and go to Help-About Adobe Plugins to learn what each plug-in does and what its dependencies are. Oh, and if you speed up Adobe 7.0 by removing some plugins, the update process will have left some subdirectories under C:\Program Files\Adobe\Acrobat 7.0\, so if you’re tidy-minded you can delete those too.

Friday, November 03, 2006

Use Substitution Control for Dynamic sections of a Cached Page

Ways of Caching an ASP.NET Page in which we are limited to two options


i. Caching the whole page using Output Caching - Not applicable in many realtime scenarios where some sections of the page need to be dynamic ex.- Stock Rates

ii. Caching Usercontrols by Fragment Caching - Difficult to implement since page requires to be breaked into separate usercontrols for enabling/disabling caching.


So, if we had situation where we want the whole Page to be cached and only a particular portion of the page not to be cached, we have to separate the page into usercontrols and then provide caching only for those sections for which we need to cache and leave the dynamic section without caching. The reason is that, if you specify outputcaching for the page, then the whole page, including the controls will be cached for that duration.

Thanks to the Substitution Control to specify a section on an output-cached Web page where you want dynamic content substituted for the control.


The Substitution control offers a simplified solution to partial page caching for pages where the majority of the content is cached. You can output-cache the entire page and then use Substitution controls to specify the parts of the page that are exempt from caching.


The syntax for declaring a substitution control is as follows:-

< asp:substitution id="Substitution1" methodname="Provide Method Name Here" runat="Server">
</asp:substitution>

Let us examine how we can check the functionality of the Substitution control on an output cached page.
In our ASPX Page, first we will declare the Output Caching next to the Page Directive as follows:-

<%@ Outputcache duration="60" varybyparam="none" %>

Where the duration="60" specifies that the page will be cached for 60 seconds.
Then, we declare a label, a substitution control and a button control as follows:-

<asp:substitution id="Substitution1" methodname="GetCurrentDateTime" runat="Server">
</asp:substitution>
Label displaying the Current Date !!!
<asp:label id="lblCurrentDate" runat="Server"> </asp:label>
Substitution control displaying the Current Date !!!
<asp:button id="btnRefresh" text="Check Now !!!" runat="Server">
</asp:button>

Then, in the codebehind, we specify the text for the Label in the Page_load event as follows:-

void Page_Load(object sender, System.EventArgs e)
{
lblCurrentDate.Text = DateTime.Now.ToString();
}

We will set the Current Date Time to the label so that when we refresh the page, we can see whether the time is retained or new time is displayed on the Label.


Next, we have to define the method that is specified to the Substitution control. If we examine the substitution control declaration above, we can see that we have specified as methodname="GetCurrentDateTime".


When the Substitution control executes, it calls a method that returns a string. The string that the method returns is the content to display on the page at the location of the Substitution control.

We define the method "GetCurrentDateTime" in the codebehind as follows:-

public static string GetCurrentDateTime(HttpContext context)
{
return DateTime.Now.ToString();
}

After compiling the application, if we browse the page we fill find that the text below Label and Substitution control is the same i.e. the Current Date and Time.


However, if you refresh the page by clicking the Button, you will find that the time displayed in the Label remains the same, while the time displayed in the Substitution control is changed (the change might be in seconds).


For subsequent requests also, the time would be changing in substitution control while it remains the same in the label, until the duration of "60" seconds expires.
Once it expires then both the label and substitution control would display the updated current time.


Thus we can see that though we have cached the whole page using output caching, the substitution control is dynamic to show the current time.


This is really a great advantage for developers who would like to use Caching for building robust applications while maintaining dynamic sections of their page as well.
There are other ways to achieve this functionality which I would discuss in my next articles.