Welcome to DavidJSmitty.com Sign in | Join | Help

Migration from Windows Server/IIS/SQL/ASP.NET to LMono (not LAMP and not LAMMono)

For those loyal readers of my blog, I'd like to announce a personal change of direction back to lighter, more open tools in the form of Linux, Mac OS, and Windows and Mono.

Background

It wasn't many years ago that I was enjoying burning my time by presenting .NET tech talks at Michigan State University.  While I was on this .NET journey, I grew far away from my roots in linux and open source. And now, as we get closer to 2008, I'm taking a slightly different direction from the relative ease of Microsoft software to supporting Linux and Mac OS.

I'm building on Mono now, and look forward to writing software that will run cross-platform (so now my friends will all be able to play with my stuff on their macs).  I've been playing with lighttpd on CentOS since I'm already very familiar with Apache.  I've installed CentOS 5.1, Ubuntu 7.10, and have an UltraVNC connection to a local G4 so I'm pretty set with regards to testing.

 
The migration path from Windows Server /IIS/SQL/ASP.NET to Linux/Mono and will be slow, but satisfying.  I'll be describing my experiences with the migration here.
 

Step 1:  Install alternate OS's

Download Virtual PC
Install Ubuntu 7.10 w/ GUI - Virtual PC has a problem with the default Ubuntu mouse and video resolution settings, but 1 hour of tinkering will solve it. 
Install CentOS 5.1 - I decided to install CentOS because I wanted to be able to support lighttpd with FastCGI Mono plugin installed.
Get a Mac - Install VineServer for VNC connectivity.

Install UltraVNC on your Windows machine

Depending on what you want and need, install Apache or Lighttpd. Since I'll be developing desktop software first, I'm not interested in the web server setup until I'm ready to migrate from IIS.  I've played with the FastCGI mod, but will not be going over that yet.

 

Step 2: Install Visual Studio Express Versions on your Windows machine

They're simpler, lighter, faster, free-er, and easier than Visual Studio Standard or Pro.  While you'll be forced to seperate your Web and C# projects into Web Express and C# Express, this was a welcome forced seperation for me.

 

Step 3:  Install Mono on alternate OS's  (official site: http://www.mono-project.com/Downloads)

Ubuntu 7.10

sudo apt-get update
sudo apt-get install mono
sudo apt-get install mono-gmcs

CentOS 5.1

The built-in installer for CentOS 5.1 is called yum. If you run into any dependency issues, you can issue a command such as yum install XXX to install the XXX libraries and executables. 

wget http://go-mono.com/sources/mono/mono-1.2.6.tar.bz2
tar -xjf mono-1.2.6.tar.bz2
cd mono-1.2.6
./configure
make
make install 

Mac OS

Download and run the installer from http://www.mono-project.com/Downloads

 

Step 4: Share projects between computers and create build scripts

You can mount a windows share from Mac OS by exploring your 'Servers' tab in the Finder.
On Ubuntu, create a directory under /mnt and type: sudo mount -t cifs //192.168.1.102/SharedDirectory /mnt/SharedDirectory -o username=John,password=mySecretPassword
On CentOS, create a directory under /mnt and type: mount -t cifs //192.168.1.102/SharedDirectory /mnt/SharedDirectory -o username=John,password=mySecretPassword

 

The compiler for Mono (.NET 2.0) is called gmcs. I like to build a project on Windows, then copy the project over to a shared folder that's mounted between all the computers and execute the build command on each of the separate computers to do unit testing.

Since I'm starting very simple, my build script is a simple gmcs command that compiles 2 projects, 1 library and 1 executable.

 

/mnt/SharedDirectory/build.sh

rm -r -f ./bin
mkdir ./bin

gmcs ./Directory1/SourceFile1.cs ./Directory1/Directory2/SourceFile2.cs ./Directory1/Directory2/SourceFile3.cs /d:TRACE /t:library -out:./bin/MyLibrary.dll
gmcs ./Directory1.UnitTest/Program.cs /d:TRACE /t:exe -out:./bin/MyProgram.UnitTest.exe  -r:./bin/MyLibrary.dll

 

To run the compiled program, I then type:

mono ./bin/MyProgram.UnitTest.exe
 

 

 

This is the start.  I'll be adding things as I go deeper down the rabbit hole. Nice to be back in the more open arena everyone.

Posted by david | 0 Comments
Filed under: , , , , ,

RE: IFPI on BitTorrent

The IFPI and ISPs like Comcast make me angry. http://torrentfreak.com/isps-should-block-bittorrent-and-tpb-071226/

"There’s noway this can happen…Everybody knows there is so much people in p2p that someone will find a way to go around all this. " - most_uniQue

most_uniQue is right.  They can't stop anything.  Developers will always be 2 steps ahead.

 

TLS is just the start.

Posted by david | 0 Comments
Filed under: ,

I know you only stumbled across this

I know you may have only stumbled across this, and I know this will only be seen by maybe 5 or 10 people, but if you spend 2 minutes listening to Ron Paul, you may like him.  Please visit http://thisnovember5th.com/ and watch the video.

If you like him, tell your friends and family and donate on December 16th.  http://www.teaparty07.com/  We'll be setting a record, and you should be part of it.  How much will you give for freedom, honestly, and accountability?

 

The only canidate that makes any sense.  Ron Paul 2008.  http://ronpaul2008.com

Posted by david | 0 Comments
Filed under:

GoDaddy upload / download limits and false advertising

I'll make this post as objective as I can, even though I'm angry with GoDaddy for misleading customers.  Maybe it will help other people to not suffer because of GoDaddy's false advertising practices.

 

GoDaddy limits each shared hosting account GLOBALLY to 250 KB upstream, no matter what the plan.  Which means if you have 100 people downloading from your shared-hosted account, they will each get 2.5 KB/s.

Of course, they wouldn't admit this to you up front. It took many days of testing and talking with their sub-par tech support to get the final answer.  "Yes, we cap your shared-hosting account to 250 KB / s."  Try it out for yourself from 2 download connections that are greater than 2 mbps. (244 KB /s)  2 comcast connections or high-speed AT&T connections will do just fine.

 

What this means as proof of misleading (false) advertising. 

What this means is:   250 KB /s * 60 seconds * 60 minutes * 24 hours * 30 days * (1 MB / 1024 KB) * (1 GB / 1024 MB ) =  617 GB transferred / month.

They advertise 2000 GB transferred / month on their "Premium" shared hosting plan. 

Even if you tried as HARD AS YOU CAN to saturate their 250 KB / s upstream from a shared hosting account - you'll never even hit 650 GB / month, much less 2000 GB / month.

False advertising?  BBB complaint? Class action lawsuit?  You decide for yourself.

 

What this means to the shared-hosting customer:  NEVER purchase a "Premium"  shared hosting plan with GoDaddy unless you're looking for the ease-of-use associated with a 200 GB storage limit on their "Premium" plan.  And even if you are looking for that ease-of-use, you'll get much better performance out of 2 "Deluxe" plans. Don't let them scam you - because they really are trying hard to.

 

Posted by david | 0 Comments
Filed under:

Quote of the Day (Happy Hardcore - Children of the Night)

I must say, I've heard this song more than 100 times, and the message only really hit me today.  So this quote is a bit larger than the usual, but it holds just as much value.

http://cdn22.ceedien.com/HostingService2/download.ashx?token=200812040900010000813972Happy+Hardcore+Anthem+-+Children+of+the+Night+-+Trance-Rave-Jungle.mp34B611FC2779E1E8AC19813EC1643177423D4B7F9

"We are the children of the night
And fight for the future of our nation
Lets come together and unite
Nothing's gonna stop us now!
Let the fire burn inside
Nobody can stop this generation
Cause we're the children o the night
Dont ever let them put u down!

Get up,get up, Get up, now is the time to change
Get up, get up, get up, there is no time to waste
Get up, get up, get up, dont ever let them put u down
Get up, come along and join the scene
Live your life like a rave machine."

We, the people that take part in the internet, are the future, and we will not be silenced.

Fox News, CNN, ABC, MSNBC - All of the mainstream media.  It's all a farce.

 

 

I don't mean to be offensive in any way, but we will have the power, when landline consumers die off.  We can change the future already.

Ron Paul 2008.  http://www.ronpaul2008.com/
Tea Party 07.  http://www.teaparty07.com/

 

Posted by david | 0 Comments

Quote of the Day (Samuel Adams)

"It doesn't require a majority to prevail, but rather an irate, tireless minority keen to set brush fires to people's minds." -Samuel Adams

http://stealthfiction.com/please-ignore-ron-paul/ 

As I read each paragraph, I was reaffirmed that the way I feel about Ron Paul and America is typical.
 
 
If you like Dr. Paul, tell your friends, and tell them to tell their friends, that's how this movement keeps going.
 
http://freeme.tv (4.5 minutes)
http://youtube.com/watch?v=wIivoqLbeeg  (8.5 minutes)
 
Don't be afraid to show you care about America, be proud to be a patriot.

This revolution requires more than just a vote, it requires you to tell your friends and family, because we know the main stream media (MSM) is never going to care.  At least give them a chance to make a decision about Ron Paul.


 
P.S.  Democrats pulled all of their delegates out of the Michigan primaries this election.  Now when Michiganders go to the primaries on January 15th, we're only voting for Republican canidates.  It makes me upset that the Dem leaders would be so naive and short-sighted to do such a thing, but it does position Michigan to go to Ron Paul when we show up to vote.  
[Source http://www.freep.com/apps/pbcs.dll/article?AID=/20071202/NEWS07/712020675]

 

I still believe in America, and I've seen support for our country to be restored to greatness from France, Canada, Brazil, and the UK.
 
For the United States of America.

Posted by david | 0 Comments

Tea Party 07

Stand up for the value of the dollar, our civil liberties, and accountability and honesty in our government.

http://www.teaparty07.com/

Posted by david | 0 Comments
Filed under:

Personal responsibility for your goverment

After watching the movie posted in the comments of http://digg.com/world_news/Awful_screaming_in_Taser_video_to_be_made_public, I can't help but think of what I would do in that situation.

Perhaps instead of just video taping, someone could step up and defend the person being wrongfully attacked (tazed repeatedly).  Perhaps instead of just taping, someone could call for help, or 911, or immediately BE THE HELP by tackling/punching the guy doing the tazing.

This isn't rocket-science.  If something feels wrong about a situation, think about it, and then act.

 

Tazing an unarmed and clearly unthreatening person whom you have in custody is wrong. 

I might understand tazing him once for 3 or 4 seconds - alright, fine, life goes on.  Tazing him multiple times with no reason - no, I won't stand for that.  And when I get the chance to stand up to wrongfully oppressive power, I will.

 

Ron Paul 2008.

Posted by david | 0 Comments
Filed under:

The right to resist wrongful arrest

http://dovelove.wordpress.com/2007/09/19/it-is-every-citizens-duty-to-resist-false-arrest/

http://www.constitution.org/uslaw/defunlaw.htm

People (especially Americans): You have the right to resist unlawful arrest.  You have the right to defend somebody being unlawfully arrested.

Wrongful arrest = assult and battery. 

 

Posted by david | 0 Comments
Filed under:

Overage charges - A sad day for GoDaddy and I

To:  suggestions@godaddy.com; ******@godaddy.com
CC: president@godaddy.com; ******@godaddy.com; ******@godaddy.com; ******@godaddy.com

Subject: Overage charges - A sad day for GoDaddy and I

Hey friends at GoDaddy,

                 I’ve CC’d all you nice people that have worked with me in the past to tell you that your awesome customer support has regretfully been in vain. Your customer relationship with me has been permanently scarred for a measly $44.  Maybe Bob will see this someday and realize that screwing people isn’t a healthy idea for long-term business.  

I was recently charged me $298.76 for using an extra 4400 MB on a  - $5 shared hosting account.

That’s a $298.76 surcharge on a $5 account. (Are you insane?  That's BBB status right there.)

No automatic-upgrade to deluxe hosting (100 GB from 5 GB) for an extra $2.
No phone call to upgrade my account.
No error when trying to write to disk.

Just a $298.76 bill.


I buy a $5 economy shared hosting account that has 5000 MB of storage allotted to it.  I accidentally upload 9400 MB to it.  What do I get in the email?

Hosting Fee - Additional 100 MB - Renewal     $6.79     $6.79                     44           $.00        $298.76
Length: 1 month(s)                                                                                         
 


Now, after chatting with ******@godaddy.com for a while, his final conclusion was that he would drop the overage price to $1/ 100 MB.  That’s $44 for 4.4 GB of storage space.  I told him that this would make me a very unhappy customer.  He didn’t care.  $44 … for 4.4 GB of storage space – for 1 month?  Can I just buy you a new 80 GB SATA II hard drive and send it to you to put it in the server? – no I’ll just send you $44 and you can do it yourself.
 
I pay you just about $200 every month for hosting services (including a dedicated server), and you’ve gone and smeared my relationship with you over $44 dollars.  Thanks.

If you know someone in GoDaddy that has the power to refund money (that is not ******@godaddy.com), then by all means, please have them give me a call.

SUGGESTION FOR GODADDY

1.       Offer an option of automatically upgrading to deluxe hosting for an extra $2 when the storage space is 90% used.
2.       Call me if my account is 90% used, an automated call is fine.
3.       OR just give an error when trying to write to disk if the storage space is used!

Have a nice day,
 
David J. Smith


 

Posted by david | 0 Comments
Filed under:

Great Digg on Ron Paul and Fox

http://openletter2foxnews.wordpress.com/

I especially like the third movie from the bottom. Short and sweet.  Smile

Ron Paul 2008.

Posted by david | 0 Comments
Filed under:

Sandvine's RST packet patent

From: http://text.broadbandreports.com/forum/r18944131-Re-Comcast-is-using-Sandvine-to-manage-P2P-Connections

 A patent Sandvine has:

said by Sandvine Patent Application 20040006643-TCP proxy providing application layer modifications :
[0097] State machine 100 will on occasion need to generate segments, for example when:

  • [0098] a) sending ACK segments to the sender to force the sender's rapid re-transmit algorithm to activate;

  • [0099] b) sending ACK segments to the sender when entire segments are deleted by application layer analysis module 104; and

  • [0100] c) sending RST segments in both directions when the flow is forcibly terminated by application layer analysis module 104.

[0101] This generation of segments is handled by segment generation module 106.

 

Notice that this is EXACTLY what we're seeing in the wild on Comcast networks.

Comcast and Sandvine, working together to control your internet.

 

On another note, I've been in contact with Comcast's abuse department.  They've told me to find a new ISP if I don't like their practices; so I am.

Posted by david | 0 Comments
Filed under: ,
More Posts Next page »