September 27, 2008
Regular Expressions - spawn of Satan or Prometheus' fire?
I'm starting to realise that if you need to use regular expressions to control program flow you have a serious issue.
The corollary is that if you process strings without regular expressions you have a serious issue and that issue is that you are less than 30 and never read the llama book. :)
Posted by dottie at 2:06 AM | Comments (0) | TrackBack (0)
September 25, 2008
Winforms is teh suck!!
Seriously. Shit.
And yes it is because I can't get it to do what I need it to. But for Jaysus sake, why don't datagridview's have some 'ondatabound' events?
For fuck sake!!
Posted by dottie at 12:40 AM | Comments (0) | TrackBack (0)
July 17, 2008
Log4Net with ASP.NET
You can read about it and set it up but it won't work for you and nobody tells you why.
Essentially this is a permissions issue.
You will first need to know that on Windows Server 2003 the user you needto worry about is not 'ASPNET' but 'NETWORK SERVICE'. In Win2k and XP the user is indeed 'ASPNET'.
When you set up the Log4Net as shown in the exmaples on the Log4Net site it will work, the configuration will be correct etc. The problem will be that the entries will not appear in the Event Log.
The reason is that the default Application Name (the 'Source' column in the event viewer) is governed by a key that must be added to the registry.
The NETWORK SERVICE and ASPNET users do not have permission to set this key, so while the log messages are being passed to the Event Log, they are being dropped because there is no match application key in the registry and the users cannot create it.
If your first impulse was to add the NETWORK SERVICE and ASPNET users to the Administrators group then stop right there, don't do it, especially not on a Production server. It is not necessary. Once the application key is set in the registry your permission problems are over.
First thing, you will want to open regedit and navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog
The right click on the Application node and add a new key. The name of this new key is up to you. But for arguments sake lets choose 'BingoBango'.
That part is over with, close your regedit (you did back up the registry before you started changing things didnt you??!)
Now in your log4net configuration file you will want to set up your appender like this:
<appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" >
<param name="ApplicationName" value="BingoBango" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
</layout>
</appender>
And you should see your log entries appearing.
Have fun!
Posted by dottie at 3:06 PM | Comments (0) | TrackBack (0)
January 31, 2008
Signature of WebForm_DoPostBackWithOptions
WebForm_DoPostBackWithOptions(WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit))
..just in case you're wanting to pump in your own event arguments and the like
Posted by dottie at 9:46 AM | Comments (0) | TrackBack (0)
January 12, 2008
Monodevelop 0.18 finally running
yay!
Posted by dottie at 10:51 AM | Comments (0) | TrackBack (0)
January 3, 2008
Monosource
I realised that the versions of mono and monodevelop from the Ubuntu repositories were quite old.
I've forgotten how difficult it is to install from source - dependency hell...
Posted by dottie at 10:25 PM | Comments (0) | TrackBack (0)
January 1, 2008
Mono
No, I haven't gotten the kissing disease.
I'm getting my head around the capabilities of Mono.
I'm hoping that I'll be able to run C#.NET apps on my own Linux server - mainly as it is a lot cheaper that a windows box; and more stable.
I'm liking Mono, and its IDE monodevelop. I can now hack together C#.NET webforms on my Linux laptop, have them running in Apache (well, almost - XSP does the job for the moment...) and not lose touch with my mad .NET skillz - booyah!
There are a few gotchas with the IDE - no intellisense in ASPX pages, no proper support of partial classes - definitely not showstoppers. I could even look at adding those features (not likely, but..) as both mono and monodevelop are open source and I have not looked at the .NET source code.
I working on something to scratch a personal itch at the moment - intelligently filter the far too many RSS feeds I have subscribed to.
I'll post up any problems I find as I go along.
Posted by dottie at 10:30 PM | Comments (0) | TrackBack (0)
September 7, 2007
WINE just got tastier!
I run Adromedia Macrodobe Adobe Fireworks on Linux using the compatibility layer application WINE (Wine Is Not an Emulator - apparently).
Well, life just got a little bit better. You can now apply a filter and REMOVE it if you don't like it!
What do you mean?
This is a big thing!
....for me (hey! I don't get out much!)
Posted by dottie at 1:45 AM | Comments (0) | TrackBack (0)
July 27, 2007
Solve your samba problems in Feisty Fawn
sudo vim /etc/samba/smb.conf
search for a line that has 'msdfs proxy' and comment it out
sudo /etc/init.d/samba restart
you're welcome
Posted by dottie at 7:22 PM | Comments (0) | TrackBack (0)
July 17, 2007
solo SCRUM scrap?
It seems Microsoft has developed a tool to allow you to implement SCRUM. Is that my little project finished?
possibly... I have to give it a gander yet....
The little guy (well...) gets crushed again!
Posted by dottie at 8:17 PM | Comments (0) | TrackBack (0)
