VB.net: Capitalize first character in each word.

May 10th, 2009

Dim strHockey As String = “vancouver canucks”
strHOckey = StrConv(strHockey, VbStrConv.ProperCase)
MsgBox(srtHockey)

Output will be Vancouver Canucks

Hussein Asp.net

Saving money using this great online tool.

May 9th, 2009

Great Canadian Rebates
I wanted to be one of the first to share with you a Canadian online shopping
website that pays you Cash Back Rebates on online purchases. The website is
called GreatCanadianRebates.ca. Why not join us? Continue to shop online or
become an online shopper at many of your favourite merchants. The expanding
list of merchants includes: Dell, Expedia, Chapters & Indigo, The Source
by Circuit City, Travelocity, The Apple Store and The Shopping Channel.
Savings and rebates are only a few clicks away.

GreatCanadianRebates.ca is extremely easy to use. To get started, register by
following the link below, shop as you currently do and your rebates will be
automatically credited to your Cash Back Rebate account.
GreatCanadianRebates.ca also has many great coupons, free shipping specials,
and sales directly from the stores.

As a bonus for registering GreatCanadianRebates.ca will give you a Toonie!
That’s right, $2.00 will automatically be deposited into your account, just
for registering. GreatCanadianRebates.ca also has an incredible referral
program that will make you money. You will earn a 10% Referral Bonus on all
Cash Back Rebates earned by any new Member you refer.

Please register by clicking here.

Happy Shopping and Saving!

Hussein Online Tools

MeasureIt for Firefox

April 11th, 2009

firefoxMeasureIt is an extension for Firefox that allows you, the broswer user, to measure any area of your screen. It helps greatly if you are a web designer creating a webpage. I have used it to get exact mesurements of a banner or picture. The units are measured in pixals and are displayed as you drag your mouse over an area. The extension can be download from the Firefox Add-on page or by clicking here.

Hussein Firefox ,

Setup mysql with asp.net

March 27th, 2009

Introduction

Back in the days of classic ASP, if you were building a database-driven web site, your choice was either to invest a lot of money to get a copy of Microsoft SQL Server (or some othe15 seconds enterprise-ready database) or invest a lot of time finding a way to deal with the performance and scalability limitations of Microsoft Access. Luckily these days there’s another viable alternative: MySQL.

Click here to get more information on how to set this up with asp.net.

Hussein Asp.net, MySQL

30 Great Website Designs

March 14th, 2009

Need inspiration for design? Visit this page and you will get plenty of great ideas on designs using CSS and graphics.

Some sites are even using Web 2.0. Click here to access this page.

Hussein CSS, Web Design

Check Broswer Compatiblity with BrowserShots.org

March 7th, 2009
broswershots.org

broswershots.org

So you’ve designed a website and now you want to put it online. But wait a minute, your website looks great in Internet Explorer but how does it look in web browsers such as Firefox, Opera, Safari etc..? What do you do now? Do you install all browsers known to man kind? No, there is a awesome solution which is online and free.

We use browsershots.org to get our screen shots of our work. It is easy and free to use. All you have to do is enter your website address in the url “Enter URL Here:” section and select all the browsers you want to use to test your website. Within a few minutes, after you submit your site for testing, you should start to see some images of your site. It’s a great site for web developers and we recommend you use it.

Hussein CSS, HTML, Web Design , ,

Switch Statement

March 4th, 2009

A PHP switch statement is almost like an IF statement except it is good to use a switch statement when you want to compare many results on the same variable.

Example with integer.

<?php
switch ($i):
case
0:
echo
“i = 0″;
break;
case
1:
echo
“i = 1″;
break;
case
2:
echo
“i = 2″;
break;
default:
echo
“i is not equal to 0, 1 or 2″;
endswitch;
?>

Example with a string.

<?php
switch ($i) {
case
“eagle:
echo
“i is eagle”;
break;
case
“hawk”:
echo
“i is hawk”;
break;
case
“blue jay”:
echo
“i is blue jay”;
break;
}
?>

Hussein PHP

How do I create PHP Functions()

March 3rd, 2009

There are over 700 functions available in php and below I will show you how to create you own function.  Functions all start with the word function(). Here are some things to remember

  • name your functions based on what a function does
  • { start your function
  • put your code
  • } end your function
  • call your function

<?php function fullname($firstname){ // Start your function with an appropriate function name

// Put your code

$last_name = “Smith”;
$full_name= $first_name . ” ” . $last_name;
return $full_name;

} // end your function

<?PHP echo fullname(Joe); ?> //Calling this function will display Joe Smith

Hussein PHP

How do I explode/implode a string in asp.net

March 2nd, 2009

So you want to separate your string using explode or join your string using implode in vb.net? Explode/implode are functions of the php environment and do not exist in asp.net therefore you must use the split() function to get your results for explode and join() for implode.

Split() Example

mystring = “hello;sir;how are you”;

arrayData=mystring.Split(mystring,”;”)

Result
arrayData(0) would equal “hello”
arrayData(1) would equal “sir”
arrayDate(2) would equal “how are you”

Join() Example

Dim JoinArray(3)

JoinArray(0) = "Welcome"
JoinArray(1) = "to"
JoinArray(2) = "Web Infinite"

Dim strSentence as String
strSentence = join(JoinArray)

Result
strSentence would equal to “Welcome to Web Infinite”

Hussein Asp.net, PHP ,

HTML Tutorials

March 1st, 2009
Learn HTML at w3schools.com

HTML tutorials at w3schools.com

Want to learn how to build a basic website? Than you need to learn HTML. Sure there are some programs out there that can make websites for your however these programs can also cause your website to not perform the way you want it to.

My advice is to go learn HTML and the best place to learn it is online. You can learn HTML for free at w3schools.com. I have to say I am pretty experienced in HTML however even I have to go there at times to learn new advancements.  Click here to visit w3schools.com.

Hussein HTML