Share your minds, soul, and idea

Trying to get a better place

Apr-30-09

Firefox vs. Internet Explorer

posted by Fathir

Names

Internet Explorer – Microsoft leaves no doubt what their products are. If they made toilet paper it would be called Butt Wiper. Internet Explorer isn’t a bad name, but it’s not spectacular.

Firefox – On the other end of the spectrum, the name Firefox gives no clue to what it is. Could be a car? 80s video game? Lame comic book superhero? Flaming dish at a wild game restaurant? A browser would probably be your last guess. No matter, it is a much cooler name than the utilitarian Internet Explorer.

Winner: Firefox

Domain Names

Firefoxfirefox.com Some kind soul donated the domain to the Mozilla Foundation. At least they own their own domain name.

Internet Explorerinternetexplorer.com Microsoft doesn’t even own this one. It’s one of those generic search portals masquerading as an IE site.

Winner: Firefox

Mascots

Internet ExplorerInternet Explorer – The big blue e with a swirly around it. A nice simple graphic, but not necessarily a mascot. However, with Microsoft’s history of mascots (Clippy, Bob), maybe it’s better they just stick with a letter.

FirefoxFirefox – A giant fox with his tail on fire attacking the earth. That’s the stuff of nightmares. Not as scary as a communist Godzilla but close. It’s a cool graphic but Internet Explorer has to win something doesn’t it?

Winner: Internet Explorer

Google Fights

Why does Internet Explorer crash all the time? – 2.57 million results

Vs.

Why does Firefox crash all the time? – 218,000 results

Next…

Internet Explorer – 22.8 million results

Vs.

Firefox – 23 million results

That one is definitely a surprise.

Next…

Internet Explorer will help me get laid – 1.34 million results

Vs.

Firefox will help me get laid – 75,700 results

A much better chance of getting lucky with IE.

Next…

Internet Explorer came with my computer – 6.9 million results

Vs.

Firefox came with my computer – 659,000 results

Tie breaker…

Internet Explorer is the best browser ever – 2,110,000 results

Vs.

Firefox is the best browser ever – 474,000 results

Winner: Internet Explorer

Coin Flip – Best of 7

The coin flip was conducted using a 2000 Sacajawea dollar.

Internet Explorer – Heads

Firefox – Tails

Results: H-T-T-T-T-H-T

Winner: Firefox

Stereotypical User

Internet Explorer – Brain dead newbie. Loves pop-ups, viruses, and spyware. Just wants to “surf the Internet and check my email.” Oblivious to alternative lifestyles. Seeks help from “computer smart” nephew.

Firefox – Proselytizing ubergeek. Loves freedom, choice, and tabbed browsing. Just wants to “improve mankind with Open Source Software.” Oblivious to market forces and the power of money. Seeks other geeks to join in on the evangelism.

Both are equally annoying.

Winner: Even

Conclusions

In the end, it’s all about you being able to do what you need to do on the Web :)

source : http://www.bbspot.com/News/2005/01/firefox_vs_internet_explorer.html

Like any good technology, ASP.NET continues to evolve as new versions are released.  But, like anything else, this brings with it a number of considerations.

Microsoft has done a great job of allowing multiple versions of the framework to run side by side.  Version v1.0, v1.1 and v2.0 can all run together at the same time on the same server.  Each site, or even a vdir (Virtual Directory) within a site can have its own version of the framework installed.  Simply install the framework version on your server and it will be available to you.  The install itself is quite small, for example the v2.0 download is 22MB.

The Microsoft homepage for the .NET Framework is:
http://msdn.microsoft.com/netframework/downloads/updates/default.aspx

There are a couple gotchas to consider with running multiple versions of the framework side by side.  First, let’s dig into IIS a bit.  Following is a snapshot of Windows Task Manager on an IIS5 (Windows 2000) server:

Task Manager IIS 5

Task Manager IIS 5

Notice the 3 processes called aspnet_wp.exe.  There is one per version of the framework. (v1.0, v1.1 and v2.0)  If a process for a particular version of the framework doesn’t exist, as soon as it’s needed, a new process will be spun up.  This allows multiple versions of the framework to live beside each other in IIS5.  No effort, no pain . . . it just works.

Now consider the following IIS6 (Windows Server 2003) screenshot:

Task Manager IIS 6

Task Manager IIS 6

Notice that there aren’t any aspnet_wp.exe processes anymore, but there are w3wp.exe processes instead.  IIS6 was an impressive upgrade that brought with it some new concepts.  One key new concept is Application Pools.  A system administrator is able to create groups of sites and place each site in its own group.  Whenever a site needs to run, a w3wp.exe process will start for its application pool if it hasn’t already started.  This brings with it a number of welcome security, performance and management advantages.  You are now able to specify your own Identity User which can be unique per Application Pool.

In IIS6, the aspnet_wp.exe process is done away with, and the work that it did is now done within each w3wp.exe process.  This has the same advantages I mentioned previously, but it has one big gotcha!

You cannot run more than one version of the framework in the same application pool in IIS6.

While multiple versions of the framework can co-exist on the same server, they can’t co-exist in the same process.  If you attempt to run multiple versions of the framework at the same time in the same process, the 2nd version that tries to run will fail with the following error:

Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable.  Please hit the “Refresh” button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

You will also receive Event ID 1062 in Event Viewer that says:

“It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process.”

What to do

Fortunately, the solution is easy enough.  Simply create a new application pool and move the site that you will be upgrading to that pool.  You can even base it off of the existing one if you don’t have the password memorized for the existing one.  This is all done within IIS.  Once you have placed the site or vdir in its own application pool, then you are ready to upgrade to the new framework version.

I’ll cover the different ways to move between different versions of the framework in another blog within the next few days, but the key thing to walk away with now is that multiple versions of the framework cannot co-exist in the same worker process at the same time.  IIS5 didn’t have any issue with this, but IIS6 requires that each version be in its own app pool.

source : http://weblogs.asp.net/owscott/archive/2006/01/26/436607.aspx

Tags: ,
Mar-24-09

Opening a new window without toolbars in C#

posted by Fathir

Code :

string strURL = "http://www.google.com";
string strTitle = "This is Pop Up Using C# (Server Side)";
string strParameter = "toolbar=No, width=300, height=190, resizable=No, top=400, left=600";

RegisterClientScriptBlock("Open Window",
"<script>window.open('" + strURL + "','" + strTitle + "','" + strParameter + "')</script>");

The following features are available in most browsers:

  • toolbar=Yes/No
    Specifies whether to display the toolbar in the new window.
  • location=Yes/No
    Specifies whether to display the address line in the new window.
  • directories=Yes/No
    Specifies whether to display the Netscape directory buttons.
  • status=Yes/No
    Specifies whether to display the browser status bar.
  • menubar=Yes/No
    Specifies whether to display the browser menu bar.
  • scrollbars=Yes/No
    Specifies whether the new window should have scrollbars.
  • resizable=Yes/No
    Specifies whether the new window is resizable.
  • width=pixels
    Specifies the width of the new window.
  • height=pixels
    Specifies the height of the new window.
  • top=pixels
    Specifies the Y coordinate of the top left corner of the new window. (Not supported in version 3 browsers.)
  • left=pixels
    Specifies the X coordinate of the top left corner of the new window. (Not supported in version 3 browsers.)
Mar-20-09

Send E-Mail USing C#

posted by Fathir

Send e-mail without SMTP

public void sendSmtpDotnet()
{
System.Web.Mail.MailMessage m = new System.Web.Mail.MailMessage();
m.From = "someone@domain.com";
m.To = "to@domain.com";
m.Subject = "Test";
m.Body = "Body Test";

System.Web.Mail.SmtpMail.SmtpServer = "smtp.domain.com";
System.Web.Mail.SmtpMail.Send(m);
}

Send e-mail with SMTP

public void sendSmtpDotnet()
{
System.Web.Mail.MailMessage m = new System.Web.Mail.MailMessage();
m.From = "someone@domain.com";
m.To = "to@domain.com";
m.Subject = "Test";
m.Body = "Body Test";

m.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;
//1 --> Authenticate=true
m.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = 2525;
m.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2;
//2 = Send the message using the network (SMTP over the network).

m.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = @"DOMAINNAME\USERNAME";
m.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "PASSWORD";

System.Web.Mail.SmtpMail.SmtpServer = "smtp.domain.org";
System.Web.Mail.SmtpMail.Send(m);
}

If you make unfounded assumptions about the type, length, format, or range of input, your application
is unlikely to be robust. Input validation can become a security issue if an attacker discovers that you
have made unfounded assumptions. The attacker can then supply carefully crafted input that
compromises your application by attempting SQL injection, cross-site scripting, and other injection
attacks. To avoid such vulnerability, you should validate text fields (such as names, addresses, tax
identification numbers, and so on) and use regular expressions to do the following:

  • Constrain the acceptable range of input characters.
  • Apply formatting rules. For example, pattern-based fields, such as tax identification numbers, ZIP Codes, or postal codes, require specific patterns of input characters.
  • Check lengths.

Regular expression support is available to ASP.NET applications through the
RegularExpressionValidator control and the Regex class in the System.Text.RegularExpressions
namespace.

File Download : How To: Use Regular Expressions to Constrain Input in ASP.NET

Source : Microsoft patterns & practices Developer Center

Mar-20-09

Use of Google

posted by Fathir
Mar-20-09

Garbage Trucks Law

posted by Fathir

One day I take a taxi and go to the Airport. We go on the correct path when suddenly a black car jumped out of the parking lot right in front of us. Taxi drivers in the tread-brake pedal in the car and stops only a few centimeter from the car.

The black car driver is out of his head & began to scream out in our direction. Taxi drivers only smile & wave at the people. I really wonder to know why he do that. So I ask, “Why are you doing? He almost damage your car and can send us to the hospital!” When I learned that from taxi drivers about what I then called “Garbage Trucks Law.”

He explains that many people like garbage trucks. They walk around carrying waste, such as frustration, anger, frustration. Along with the full capacity, the more they need a place to remove them, and they often throw them away to you. Do not take heart, just smile, wave your hand, bless them, and continue living.
Do not take their garbage back to them to other people that you meet, in the workplace, in home or in travel. Basically, people who succeed are people who do not leave the “garbage truck” took over the day-to-day with their destructive mood.

Life is too short to wake up in the morning with regret, then:
Love people who treat you correctly, do not pray for that.
Life is about 10% what you make with it and 90% about how to face you.
Life is not about waiting for storms pass, but about learning how to dance in the rain.

source : http://multiply.com/gi/bestfriendbestfriend:journal:140

Mar-20-09

Narcolepsy

posted by Fathir

Do not ignore if you are excessively sleepy.

If you feel excessively sleepy, which comes repeatedly, especially when accompanied halusinasi, then you may be exposed to symptoms of “narcolepsy”. There are still many people in Indonesia who ignore family members, if a condition like this. Narcolepsy is not death, but can reduce the quality of life.

What is narcolepsy?

Narcolepsy is a neurological condition most characteristized by Excessive Daytime Sleepiness (EDS). A narcoleptic will most likely experience disturbed nocturnal sleep, which is often confused with insomnia, and disorder of REM or rapid eye movement sleep. It is one of the dyssomnias. A narcoleptic may also sleep at any random time.

“One of the 2000 Indonesia narkolepsi suffering, and most of them caused by the descent,” said Effy Afifah, S. Kep. M. Kes cited by Gloria Daniela Pasaribu, the magazine of the Student Voice UI. The small number is due to the many people who do not realize that the sleep disturbances they experience is narcolepsy.

How do the symptoms?

Characteristic of narcolepsy is excessive nod, even though sleep has enough time on the night. One of narcolepsy can fall asleep suddenly, anywhere at any time and the time.

In everyday language, narcolepsy can be said as a sudden attack of sleep, regardless of the place. Difficult to keep people with drowsiness, even when doing activities. Therefore, people with narcolepsy often labeled faineant, carpenters and sleep, as always nod and understaffed.

Narcolepsy is not dangerous to sufferer’s health, but can be dangerous to themselves or others. Imagine, if you fall asleep while cooking, or doze at the wheel is in the condition.

Unfortunately at this time until the drug is only to reduce the symptoms and not cure.

What if you have any family that suffers narcolepsy?

Needed all the support the family, also friends near them to support. Close friend can help patients, who often fell asleep is not in the right place, for example, is awaiting study. If this is left, then people will be behind the subjects, because they often have a dream to follow lectures, and falling asleep at the bench outside the lecture hall. If people can come in the place of study is right, even though falling asleep while studying, then the patient can still take lessons, although not as effective as his friends are normal. However, at a certain time, people can be like normal people, learning to hold a night job.

People can support the family, ask the course schedule, scheduled tasks and events every day, making it easier for monitoring, and reminding people to help build up if it’s time to leave for college. Support teachers, lecturers, to understand the patient is very important, so that patients can perform activities as college student to normal.

Is people with narcolepsy can live normal?

The answer is “yes.” Around me, at the time of course, in the family environment, I know some people with narcolepsy. When I was a student, this term has not been accustomed. I have close friends, that every hour lecture always asleep.

So, at the time of the teaching faculty who are very disciplined (or vicious), earlier Sahabatku always sit diapit friends close … that works for each time pinch hands if he has shown symptoms of slumber. How can be hand turn completed study. If he is good lecturers often melorot directly from the seat, and sleep under the benches course, be covered by a friend sitting right on the left that is not seen by the lecturer. He is suffering, and complain at the time his father, his father also said that if not more busy in the office often sleepy.

Practical, every day my friend borrow lecture notes from friends, because if forced to write, the contents of lecture notes can be funny-funny. Where is he now? After a degree and work, he was married … and now have a master degree, and became an officer in the Department of terrace. When met, I ask … “if love is still sleepy?” He said, that after the birth of children, the drowse be reduced.

source : http://multiply.com/gi/bestfriendbestfriend:journal:140

DisplayFusion will make your dual monitor (or triple monitor or more) experience smooth and painless. With DisplayFusion you can add a taskbar to every monitor that works and looks just like the Windows Taskbar. Or take advantage of advanced multi-monitor wallpaper support, Flickr integration for image searching and fully customizable window management hotkeys. These are just a few of the many things that DisplayFusion can do.

  • Advanced Multi-Monitor Taskbar support
  • Use a different desktop wallpaper image on each monitor
  • Use a desktop wallpaper image that spans all monitors
  • Randomly change your desktop wallpaper using local images or images from Flickr
  • Drag or middle-click the taskbar of maximized windows to move them to other screens
  • Auto-snap windows to the edge of your monitor
  • Integrated Flickr.com image search & download
  • Integrated Vladstudio.com image search & download
  • Manage application windows with fully customizable hotkeys:
    • Move windows to the next monitor
    • Move windows to the next monitor and maximize them
    • Move windows to the centre, top, bottom, left or right side of the monitor
    • Size windows to a configured size or percent of the work area
    • Maximize windows so that they span all monitors
    • Customize your own hotkeys to do anything you can imagine
  • Built-in support for different languages:

Click here to download Display Fusion.

DisplayFusion requires the Microsoft .NET Framework v2.0 (included with Windows Vista):

Source : http://www.binaryfortress.com/displayfusion/

Share your minds, soul, and idea is Digg proof thanks to caching by WP Super Cache