. Topicala Page Index Token

A Journal about the experiences I have developing little applications in C#, Perl, Html and Javascript and talking about things new things that I use. Always Geeky; Always Nerdy; Always poor Grammer!

I am a Software Analyst Developer working in Southport, England but living in Liverpool. I develop mainly in C# and ASP.Net. I have been developing comercial software for several years now. I maintain this site (hosted at SwitchMedia UK) as a way of exploring new technologies (such as AJAX) and just generally talking about techie geek issues. This site is developed through a host of Perl scripts and a liberal use of Javascript. I enjoy experimenting with new technologies and anything that I make I host here.

Quick Search

Web www.kinlan.co.uk

Sunday, April 30, 2006

Error Codes vs. Exceptions

An Enteraining read about Exceptions vs Error Codes in applications programming, some bad language, plenty of analogies [don't know if that if the correct spelling :)] but a good read!
"Very little software really gets error handling right. Even many critical, backend server systems tend to break under heavy loads. And the vast majority of end-user applications handle errors gracefully only for the most well understood, commonly encountered conditions, but very poorly for most other conditions."


Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , ,

My Related Documents
, , , , , , , ,

Related Amazon Books
Fluid Concepts and Creative Analogies: Computer Models of the Fundamental Mechanisms of Thought: / Fluid Concepts and Creative Analogies: Computer Models of Mental Fluidity and Creativity: / Fluid Concepts and Creative Analogies: / Error-Correcting Coding Theory (The McGraw-Hill Computer Communications Series): / Error-control Coding for Computer Systems (Prentice Hall Series in Computer Engineering): / Bug Proofing Visual Basic: A Guide to Error Handling and Prevention: / Advances in Exception Handling Techniques (Lecture Notes in Computer Science): / Ajax in Action: / Head First Servlets and JSP: / Professional JavaScript for Web Developers: / Head First Java: / Hibernate in Action: Practical Object/Relational Mapping: / Pro C# 2005 & the .NET 2.0 Platform: / CLR Via C#: Applied .NET Framework 2.0 Programming: / Beginning ASP.NET 2.0: /

Related Images From Flickr


read more | digg story

Thursday, April 27, 2006

All Visual Studio Express Editions are now Permanently Free!

I know this is old old old news, but I thought I might as well post a blog entry about it.
"Dear Visual Studio Express community, we are incredibly excited to announce that effective April 19th, 2006, all Visual Studio 2005 Express Editions including Visual Basic, Visual C#, Visual J#, Visual C++, and Visual Web Developer Express will be free permanently!"

Also check out the cool new tools.


It is pretty cool when you think about it, I think that it will introduce a whole set of new developers to Windows and ASP.Net. I know of one of my friends who has taken an Express version and loved it. He was pretty gutted though when he found out some of the limitations (like only one project per solution). But that is by the by when you think about all the stuff it gives budding developers.

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , ,

My Related Documents
, , , , ,

Related Amazon Books
Pro ASP.NET 2.0 in C#: / Beginning Visual Basic 2005: / Beginning ASP.NET 2.0: / Programming ASP.NET 2.0 Core Reference: / ASP.NET 2 for Dummies (For Dummies S.): / The ZEN of CSS Design: Visual Enlightenment for the Web: / Beginning Visual C# 2005: / Expert C# 2005 Business Objects: / How Stuff Works: /

Related Images From Flickr


read more | digg story

C# Trackback, Part 2

The second article on how to implement trackback in C# - source code included and free to copy.

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , , , ,

My Related Documents
, , , ,

Related Amazon Books
Blogosphere: Best of Blogs: / Refactoring: Improving the Design of Existing Code (Object Technology S.): / Code Complete: A Practical Handbook of Software Construction: / HTTP Pocket Reference: / HTTP: The Definitive Guide: / C#: / Professional ASP.NET 2.0: / Pro C# 2005 & the .NET 2.0 Platform: / Beginning ASP.NET 2.0: / Programming ASP.NET 2.0 Core Reference: /

Related Images From Flickr


read more | digg story

C# Trackback, Part 1

I saw the article on http://www.janoserdelyi.com/permalink/article/19.aspx, it is part 1 of a basic implementation of a Trackback pinger.
this is part one of a C# implementation of the trackback speicification used by blogs.

part one involves the Trackback Ping with a full code explanation.

I am yet to be convinced by Trackbacks, however the article is full of code and is pretty interesting to read.

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , , , ,

My Related Documents
, , , ,

Related Amazon Books
Blogosphere: Best of Blogs: / Refactoring: Improving the Design of Existing Code (Object Technology S.): / Code Complete: A Practical Handbook of Software Construction: / HTTP Pocket Reference: / HTTP: The Definitive Guide: / C#: / Professional ASP.NET 2.0: / Pro C# 2005 & the .NET 2.0 Platform: / Beginning ASP.NET 2.0: / Programming ASP.NET 2.0 Core Reference: /

Related Images From Flickr


read more | digg story

Saturday, April 22, 2006

Integrating Google calendar in your website

This article shows how to integrate Google Calendar to your website with a simple PHP/ Javascript


I would like to integrate blogger into my calander and viceaversa. I think that would be pretty cool.

read more | digg story

Microsoft to upgrade Xbox 360 CPU

Microsoft will upgrade the CPU used in its Xbox 360 games console early next year, the CPU's manufacturer announced today. The new CPU will be built using technology that can reduce heat and power consumption, as well as potentially increasing speed.


I have seen a lot of comment on this, and people are reacting saying "I AM GONNA TAKE MINE BACK", how ridiculous is that. Microsoft are cutting the cost of making their machine, so that they get better yeilds and also save more money and it is really unlikely that they will speed it up, rather they will make it run cooler and quiter!

Each of the console manufacturers has a long history of this type of modification, god knows sony did it all the time and for good reason.

I bought a PS2 when it came out, and it was the biggest piece of junk ever, the DVD playback was terrible and the sound was delayed for about 2 seconds. It wasn't until later versions that it got better I heard. (by that time I had sold my PS2)

read more | digg story

DS outselling PSP 6 to 1 (almost 7 to 1)

This week's sales figures show the PSP continuing to wither away.

All I can say is Good. I have no idea what it is, but I really dislike sony and their products. I don't think I have a reason too, I just do.

read more | digg story

ASP.NET 2.0 Is NOT a Silver Bullet

I was just reading Karl Seguins Blog and I came across this:
Before the first concrete information about 2.0 came out, promises about massive code reduction were being made. "I can't say too much at this point...one of our aggressive goals is to reduce the number of lines of code between v1 and v2 by 70%"... Fast forward to today, you'll quickly realize there is no silver bullet.


I couldn't agree more. There are alot of things about ASP.Net 2.0 that I don't like, personalisation for one! But Karls blog makes some good reading. He mentions that more than 1/2 his time is doing DAL and BLL stuff and ASP.Net 2.0 doesn't help there. However, I do tend disagree. ASP.Net 2.0 is supposed to help even at that level, and the increased number of server controls helps reduce code too.

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , , , , , , ,

My Related Documents
, , , , , ,

Related Amazon Books
Professional ASP.NET 2.0: / ASP.NET 2 for Dummies (For Dummies S.): / Beginning ASP.NET 2.0: / Programming ASP.NET 2.0 Core Reference: / Pro ASP.NET 2.0 in C#: / Programming Microsoft ASP.NET 2.0 Applications: Advanced Topics: / Wrox's ASP.NET 2.0 Visual Web Developer 2005: Express Edition Starter Kit: / ASP.NET 2.0 Cookbook: /

Related Images From Flickr


read more | digg story

Will Blogger Integrate with GData

If you read the introduction to GData, Googles new Data Protocol you will see the following paragraph:
For example, a blogging application might provide a feed for each blog, and a comment feed for each blog entry. A calendar application might allow you to send full-text search queries using the GData protocol, and return results in the GData syndication format.

I know that Blogger already supports Atom and its associated protocol, but does this comment indicate that they are planning on integrating Blogger futher into Google? Or is it that because Blogger is based on Atom that it will easily support GData with little modification?

I don't know, I think Blogger are behind the times with everything that they do. And I can't see them changing in the near future.

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , , , , , , , ,

My Related Documents
, , , , , , , , , , ,

Related Amazon Books
Developing Feeds with RSS and Atom: / Beginning RSS and Atom Programming: / RSS and Atom: Understanding and Implementing Content Feeds and Syndication: / RSS and Atom Hacks: /

Related Images From Flickr

Friday, April 21, 2006

Build a C# Named Pipes Interprocess, inter-machine Cache Service

Extensible implementation of a Cache Windows service using Named Pipes.

I think this would be quite interesting for syncing web servers up that rely on the same data but are not sharing the same state, cache or session information.

read more | digg story

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , ,

My Related Documents
, , , , ,

Related Amazon Books
Object-oriented Application Development Using the Cache Postrelational Database: / Cache and Memory Hierarchy Design: A Performance Directed Approach: / Web Caching and Its Applications (International Series in Engineering and Computer Science): / Object-oriented Application Development Using the Cache Post-relational Database: / Web Content Caching and Distribution (IFIP International Federation for Information Processing S.): / The Cache Memory Handbook: / Professional ASP.NET 2.0: /

Related Images From Flickr

Microsoft porting C# programming to the Mac

Mike Harsh of Microsoft writes that the support of WPF/E on the Macintosh platform will not be limited to a JavaScript engine: "WPF/E supports programmability through JavaScript for tight browser integration. The WPF/E package also contains a small, cross platform subset of the CLR and .NET Framework that can run C# or VB.NET code.


read more | digg story

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Amazon Books
C# & VB.NET Conversion Pocket Reference: / CLR Via C#: Applied .NET Framework 2.0 Programming: / VB.NET Language Pocket Reference: / Professional VB.NET 2003: / Pro ASP.NET 2.0 in VB 2005: / MCSD Self Paced Training Kit: Developing Web Applications with VB.NET and Visual C#: / Beginning VB.Net Databases: / MCAD/MCSD Self Paced Training Kit: Developing Windows Applications with VB.NET and C#.NET: /

Related Images From Flickr

High Performance Site Coding

Ever wondered what has been done to optimize sites like Digg and Zooomr so they do not crumble under the load of many simultaneous users? This article explains some of the things you can do to gain as much from your site as you can.

read more | digg story

5 Truths About Code Optimization

"See if you can speed this code up." It's usually code I've never seen. It's probably important, otherwise they wouldn't be worried about how it is performing. And speed it up to what? Still, there are some basics you can fall back on when someone asks you to optimize some code.


A pretty good article that I saw. It talks about some Java Experiences, but makes at least one good, strong point. Always check with a profiler where the code is going slow.

read more | digg story

Thursday, April 20, 2006

Associative Array C# .Net

A visitor to my site from google was looking for: associative array c# .net.

The only thing I can say about this really is that an associative array in C# is just a hash table.

The hash table associates a key of type object with an associated object.
For Example:

Hashtable ht = new Hashtable();
ht.Add("testKey", "AssociatedData");
MessageBox.Show(ht["testKey"]);

Related Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , ,

My Related Documents
, , , , ,

Related Amazon Books
C#: / CLR Via C#: Applied .NET Framework 2.0 Programming: / Programming ASP.NET 2.0 Core Reference: / Programming C#: / Programming Microsoft Visual C# 2005: The Language: /

Related Images From Flickr

c# personal attribute to an html tag

A Visitor to my site came from google looking for "c# personal attribute to an html tag". If I understand this query correctly then the person is trying to add an attribute to an already created HTML object. However, this might not be the case, so I will include in this entry a few different ways of adding attibutes to HTML elements via C#.

Firstly, I am presuming that they are using IE to view the HTML. IE is pretty cool about attributes being added to HTML elements. They treat these attributes on HTML like expando objects (you can add them dynamically in Javascript too). So an element <b id="testB"> can have an attribute kinlaniscool simply by using the following Javascript: document.all.testB.kinlaniscool="false"; It could have been defined in the HTML as <b id="testB" kinlaniscool="false"> and you would get the same results.

To do this from C#, if you are rendering out a serverside control you could simply have the following:

HtmlGenericControl b = new HtmlGenericControl("b");
b.ID="test";
...
...
b.Attributes.Add("kinlaniscool", false);
this.Page.Controls.Add(b);

The above code might add a control to the page which is a "b" tag and that will look like: <b id="testB" kinlaniscool="false">

If you wanted to do something similar in a custom server control, I might do the following:

protected override void Render(HtmlTextWriter output)
{
output.AddAttribute("kinlaniscool", "false");
output.AddAttribute("ID", "test");
output.RenderBeginTag(HtmlTextWriterTag.B);
output.Write("Yo!");
output.RenderEndTag();
}

Basically all we are doing in the above code is overriding how the control renders its data. It will render a B tag with all the correct attributes.

And that is about it.

Related Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, ,