« July 2004 | Main | September 2004 »
August 27, 2004
Mono XSP 1.0 on FreeBSD
Looks like there are still plenty of problems with getting xsp-1.0 server running on FreeBSD. I don't know of many that have success geting the xsp server up and running.
Problem Report ports/69771
I can not compile xsp server to serve aspx pages with mono
"Well, as the lang/mono and x11-toolkits/gtk-sharp maintainer, there are a few things that need to happen before this is going to work.
1) get lang/mono working stablely on both -STABLE and -CURRENT (right now it works acceptably--even for development work--only on CURRENT)
2) port mod_mono and all it's dependencies;
3) get libgc (aka boehm-gc) working smoothly on both -STABLE and -CURRENT (we're not there yet); [THIS ONE IS CRITICAL!!!]"
Posted by 0xFF3300 at 09:55 PM | Comments (0) | TrackBack
August 25, 2004
Ojai, CA
So instead of talking about software development, I thought I might share my most recent trip to Ojai. It was time to get out of town for a little while and take a relaxing break. For those of you who aren't familiar with the place, Ojai is small town just north of Los Angeles. It's fairly close, as you can get their in about an hour and half from LA.
We stayed at a hotel called the Emerald Iguana. It's on a quiet side street surrounded by trees with a pool and jacuzzi in the center courtyard. No visit to Ojai is complete without dining at Suzanne's, it opened in 1992 and it's pretty much been going strong since. And of course since there is a winery in Ojai, we had to check that out to. The Old Creek Winery doesn't grow grapes anymore, but they do bottle the wine there. It was a free wine tasting which just helps you to spend more money on the wines, I picked up some of 2000 Cabernet, quite good.
Posted by 0xFF3300 at 09:24 PM | Comments (1) | TrackBack
August 19, 2004
Visual C# 2005 Express Edition Beta
I am giving Visual C# 2005 Express Edition a test run, it looks fairly promising. Although it looks more aimed at getting entry or junior developer into C#/.NET programming, it has some very nice features.
Posted by 0xFF3300 at 09:07 PM | Comments (0) | TrackBack
August 15, 2004
Lifetime ILease and InitializeLifetimeService()
When creating a remotable class or handler, your object should most likely have a lifetime lease, unless it is desirable that it should be short-lived. The default lease time for ILease is set to 5 minutes. After that the lease expires and object becomes garbage collector food. The code below is an example of creating a lifetime lease for the class Example.cs.
using System;
using System.Runtime.Remoting.Lifetime;
namespace Remotable.Services
{
///
/// By Default an object lease is provided for 5 minutes. You
/// should create a lifetime ILease, otherwise the garbabge collector
/// will destroy your instantiated class
///
public class Example : MarshalByRefObject
{
public override Object InitializeLifetimeService()
{
ILease lease = (ILease)base.InitializeLifetimeService();
if (lease.CurrentState == LeaseState.Initial)
{
lease.SponsorshipTimeout = TimeSpan.FromSeconds(0);
lease.InitialLeaseTime = TimeSpan.FromSeconds(0);
}
return lease;
}
}
}
Posted by 0xFF3300 at 11:53 AM | Comments (0) | TrackBack
August 14, 2004
Onion Horoscope Feeds
Yes, The Onion has their very own horoscope feeds. If you aren't familiar with the Onion, the nation's top ;)newspaper you should have a look for yourself. It's for real, believe me!
A clip from the front page: WICHITA, KS—Delivering the central speech of his 10-day "Solution For America" bus campaign tour Monday, Democratic presidential nominee Sen. John Kerry outlined his one-point plan for a better America: the removal of George W. Bush from the White House.
Posted by 0xFF3300 at 02:02 PM | Comments (0) | TrackBack
August 08, 2004
Comment Spam? MT-Blacklist...
I have been looking for something like this for quite some time. My site is constantly bombarded by Comment Spam. It's usually for Viagra, some sex site, or something else I don't want. Jay Allen has come up with an MT plugin to alleviate the situation: MT-Blacklist (User Guide). It seems to be compatible with 2.x MT, and not yet Movable Type 3.0, which for me, is a problem being as I have just upgraded to 3.0 (defintley worth it!). Also check out the Comment Spam Clearinghouse.
From Adam Kalsey:
"The arms race against comment spammers has been stepped up a notch. I received a flurry of spam that linked to entries on other blogs. Curious to see what that was all about, I clicked on one of the links, fully expecting to be redirected to porn or an online casino. I was surprised to see a discussion of patent law; this comment spam linked to a legitimate site.
The comment that I received was certainly spam — other than the odd link, it was the typical formula: the name was “online casinos,” fake generic email address, and a vapid comment. Certainly a Stanford law professor hadn’t actually sent the spam. There was another reason this spammer was promoting someone else’s blog entry.The blog entry in question was full of comment spam. In the last 3 months, this entry had accumulated thousands of spam links in the comments.
It appears the spammers have a new tactic in increasing their PageRank. They find a site that doesn’t delete comment spam and fill it with links. Then they boost the PR of that site by spamming it in blog comments. Once the spam-friendly’s site has in increased Google ranking, all those spammed links in their comments will get a boost in rank as well."
Posted by 0xFF3300 at 11:57 AM | Comments (1) | TrackBack
August 07, 2004
Reflection Exception: Strong name validation failed
I have an application that reflects a set of binaries (dll/exe) into HTML documentation. Reflecting the full MS .NET 1.1 framework seems to work fine, but when I reflect the Mono 1.0 binaries I run into a problem with the System.* namespace. The common error I receive: System.IO.FileLoadException "Strong name validation failed for assembly 'System.Xml.dll'". When I take a look the AssemblyInfo.cs file for System.Xml, AssemblyDelaySign is set to 'true'. And the AssemblyKeyFile points to ecma.pub.
I assume this has something to do with the delay signing. Looking for additional insight...
I get the following:
System.IO.FileLoadException: Strong name validation failed for assembly 'System.
Xml.dll'.
File name: "System.Xml.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B
oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass
embly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence security
Evidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Entry.Main(String[] args) in c:\home\reflecta\entry.cs:line 221
So I take a look at the AssemblyInfo.cs file for System.Xml:
using System;
using System.Reflection;
using System.Resources;
using System.Security;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about the system assembly
#if (NET_1_0)
[assembly: AssemblyVersion("1.0.3300.0")]
[assembly: SatelliteContractVersion("1.0.3300.0")]
#elif (NET_2_0)
[assembly: AssemblyVersion ("2.0.3600.0")]
[assembly: SatelliteContractVersion ("2.0.3600.0")]
#elif (NET_1_1)
[assembly: AssemblyVersion("1.0.5000.0")]
[assembly: SatelliteContractVersion("1.0.5000.0")]
#endif
[assembly: AssemblyTitle("System.Xml.dll")]
[assembly: AssemblyDescription("System.Xml.dll")]
[assembly: AssemblyConfiguration("Development version")]
[assembly: AssemblyCompany("MONO development team")]
[assembly: AssemblyProduct("MONO CLI")]
[assembly: AssemblyCopyright("(c) 2003 Various Authors")]
[assembly: AssemblyTrademark("")]
[assembly: CLSCompliant(true)]
[assembly: AssemblyDefaultAlias("System.Xml.dll")]
[assembly: AssemblyInformationalVersion("0.0.0.1")]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: ComVisible(false)]
[assembly: AllowPartiallyTrustedCallers]
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyKeyFile("../ecma.pub")]
Posted by 0xFF3300 at 09:09 AM | Comments (0) | TrackBack
August 05, 2004
Grady Booch Weblog
Wow, Grady Booch has his own blog hosted by IBM, very interesting reading indeed. For those who don't know Grady, he was resposblie for introducing OO to the mainstream programming community.
"Grady has served as architect and architectural mentor for numerous complex software-intensive systems around the world in just about every domain imaginable. Grady is the author of six best-selling books and has published several hundred articles on software engineering, including papers published in the early '80s that originated the term and practice of object-oriented design. At random times, the laws of physics do not apply to him...."
Posted by 0xFF3300 at 10:26 AM | Comments (0) | TrackBack