. 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

Saturday, March 25, 2006

My Tag Directory Doesn't render IE7 very well

I will look into this, thanks to the people who let me know. Hopefully I can get it to work in Internet Explorer 7 (IE7 Beta 2) better.

Technorati Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , ,

My Related Documents
, , , , , ,

Related Amazon Books
Beginning ASP.Net 2.0 Databases: Beta Preview: / Ado.Net and System XML V. 2.0: The Beta Version (Microsoft.NET Development S.): / Windows Longhorn Developer Beta Preview: / Beta Testing for Better Software: / CSS Mastery: Advanced Web Standards Solutions: / Head First HTML with CSS & XHTML: / The ZEN of CSS Design: Visual Enlightenment for the Web: / The CSS Anthology: 101 Essential Tips, Tricks and Hacks: /

Related Images From Flickr

Something about Future additions for this site

I am trying to extend the reach of this site recently, especially with my Tag Directory. I will go over how I created the tag directory soon, and I will also show you the source code (it is really simple).

Under each post at the moment I link directly to Amazon, I intend to link to a landing page on my site first now which will host very specific information about the books that I recomend. All the information will be dynamic but I hope to be able to tailor the results better and thus provide a better service to my readers.

As well as this, I intend to make a service to advertise your Amazon Market place books. This should hopefully help me to sell mine, but it might also help you to sell yours.

Let me know what you think.

I am also going to write about my telecoms final year project.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , ,

My Related Documents
, , , , , , ,

Related Amazon Books
Business the Amazon.Com Way: Secrets of the World's Most Astonishing Web Business (Big Shots S.): / Professional Development with Web APIs: Google, EBay, Amazon.com, MapPoint, FedEx: / 501 Web Site Secrets: Unleash the Power of Google, Amazon, Ebay and More: / Amazon Hacks: / Professional Web APIs with PHP: EBay, Google, Paypal, Amazon, FedEx Plus Web Feeds: / How to Sell Anything on Amazon... and Make a Fortune: / Amazon.com for Dummies: / DHTML Utopia: Modern Web Design Using JavaScript & DOM: / Programming Perl: / Regular Expression Pocket Reference: / JavaScript and DHTML Cookbook: /

Related Images From Flickr

Thursday, March 23, 2006

Tag Directory Styled and also implements some caching

I have just updated my my tag directory [try http://www.kinlan.co.uk/tag/anytag - replacing anytag with the tag you want to look for]. I have updated the styles and also implemented some caching so that subsequent requests will be quick!

Have a play and let me know what you think.

Let me know what you would like to see here. I am thinking of integrating del.icio.us and Amazon products. Additionally I would like to auto generate some OPML feeds for each tag!

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , ,

My Related Documents
, , , , ,

Related Amazon Books
Theory of Modeling and Simulation: / Mastering JSP Custom Tags and Tag Libraries: / HTTP: The Definitive Guide: / HTTP Pocket Reference: / Web Caching: / Web Caching and Its Applications (International Series in Engineering and Computer Science): / Web Caching and Replication: /

Related Images From Flickr

Wednesday, March 22, 2006

I wish that Blogger had....

I really wish that Blogger had a global search and replace on Blogger posts. I need to go back through 300 pages to update some of my content.

Technorati Tags
[feed], [feed], [feed]

Related Wikipedia Documents
, ,

My Related Documents
, , , ,

Related Amazon Books
Publishing a Blog with Blogger (Visual QuickProject S.): / Dispatches from Blogistan: A Travel Guide for the Modern Blogger: / The Rational Guide to Google Blogger: / Theory of Global Random Search (Mathematics & Its Applications S.): / Stochastic Adaptive Search for Global Optimization (Nonconvex Optimization & Its Applications S.): / Rigorous Global Search: Continuous Problems (Nonconvex Optimization & Its Applications S.): /

Related Images From Flickr

Malformed OPML

My OPML files are malformed. I need to get them sorted.

Apostrophes are not being escaped in the attributes.

If you have been using my Ajax Tagger v2, I am sorry about this, (but seeing as no one has reported this as a problem, I don't think anyone is using it that much :)

Technorati Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , ,

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

Related Amazon Books
Ajax in Action: / Professional AJAX: / Foundations of AJAX: / Ajax Hacks: / AJAX/REST Patterns and Best Practices: / Ajax for Dummies (For Dummies S.): /

Related Images From Flickr

Tuesday, March 21, 2006

My Very own Tag Directory

I am creating my very own tag directory. Rather than include all the information related to a post here on this entry, I am thinking of putting the data on a seperate page.

It will allow the data to get indexed better, but will also mimic Technorati in a way, I will be able to tag my own directories and also provide a central, dynamic place for my data to be displayed.

Have fun and try it out and let me know what else you would like to see. [they are in the related tags]

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

Related Wikipedia Documents
, , ,

My Related Documents
, , ,

Related Amazon Books
Theory of Modeling and Simulation: / Professional JSP Tag Libraries: / Switching in IP Networks: IP Switching, Tag Switching and Related Technologies: /

Related Images From Flickr

For all the XBox 360 C#'ers

Check out http://www.microsoft.com/xna/ and Tom Miller's Blog

XNA Framework
Microsoft unveiled the XNA Framework at the Game Developers Conference 2006. The XNA Framework is an exciting new development and execution environment which will allow game developers to more easily create games which run on the Microsoft Windows and Xbox 360 platforms. It is being designed with a unified set of class libraries which will allow for maximal re-use of code and assets across target platforms. A custom version of the Common Language Runtime is being built to enable the execution of managed code on an Xbox 360, and at GDC the XNA team showcased some exciting demonstrations of games which were built on an early version of this technology.

Unfortunatly, I don't hold out hope that it will allow us homebrew developers to play with it. It would be cool if we could created XBox Live content! :)

http://www.kinlan.co.uk/opml/a0b9f8629fb18a2c.opml

Monday, March 20, 2006

Extracting bitmaps out of imagelist c#

A visitor to my site entered the search: "extract bitmaps out of imagelist c#"

There are a couple of ways to do this, a simple one is to simply call the Save method on the ImageList Item:

imageList1.Images[i].Save("c:\\test.jpg", ImageFormat.Bmp);

You could however save it to a Stream, and then manipulate the image as you see fit.

MemoryStream ms = new MemoryStream();
imageList1.Images[i].Save(ms, ImageFormat.Bmp);
byte[] imageBits = ms.ToArray();
//Manipulate data

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , ,

My Related Documents
, , , ,

Related Amazon Books
Compressed Image File Formats: JPEG, PNG, GIF, XBM, BMP (ACM Press S.): / The Programmer's Guide to Compressed Image Files: Jpeg, Png, Gif, Xbm, Bmp: / Professional ASP.NET 2.0: / Beginning ASP.NET 2.0: / Pro C# 2005 & the .NET 2.0 Platform: / ASP.NET 2 for Dummies (For Dummies S.): / Beginning Visual C# 2005: /

Related Images From Flickr

AtariBoy; Thanks for the link

Thanks Atariboy for the link, it was a very nice thing you said.
C#, .Net Framework - A
great blog about Everything C# and the DotNet framework, much like the title of
the blog, i’m going to read this one a lot :)


Just need to keep up with the blog posting now ;)

Friday, March 17, 2006

Malformed OPML

My OPML files are malformed. I need to get them sorted.

Apostrophes are not being escaped in the attributes.

If you have been using my Ajax Tagger v2, I am sorry about this, (but seeing as no one has reported this as a problem, I don't think anyone is using it that much :)

Technorati Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , ,

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

Related Amazon Books
Ajax in Action: / Professional AJAX: / Foundations of AJAX: / Ajax Hacks: / AJAX/REST Patterns and Best Practices: / Ajax for Dummies (For Dummies S.): /

Related Images From Flickr

Wednesday, March 15, 2006

C#/.Net on the XBox 260 360, maybe one day

This is just a quick post, as I get a lot of hits from people looking for c# and xbox 360 stuff.

http://myownpirateradio.com/2006/03/14/net-on-the-xbox/
http://blogs.msdn.com/mikezintel/archive/2006/03/14/550958.aspx

The above post indicate that in the future using the CLR on the 360 might be a possibility, what this means for home brew development is unclear because I doubt that you would be allowed to develop on the XBox 360 with out a licence.

You never know though, stranger things have happened!

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

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

My Related Documents
, , , , ,

Related Amazon Books
Xbox 360 for Dummies (For Dummies S.): / CLR Via C#: Applied .NET Framework 2.0 Programming: / Quake 4 (Xbox 360): The Official Strategy Guide: / Distributed Programming: Inside the CLR: / Compiling for the .Net Common Language Runtime (Clr) (.NET Series): / Distributed Programming: Inside the CLR: / Professional ASP.NET 2.0: / Beginning ASP.NET 2.0: / Programming C#: / Programming ASP.NET 2.0 Core Reference: /

Related Images From Flickr

Tuesday, March 14, 2006

Google Search: ebay asp.net api soap wsdl [part deux]

Just following on from one of my previous post about using SOAP requests from ASP.Net to access Ebay.

I have finally worked out [it wasn't hard in the end] how to do it.

A few things that I had problems with were:
  • Most of the request REQUIRE the version attribute to be set
  • The DetailLevel attribute must be set on some request to enable you to
  • A Authentication Token is required to send request to Ebay. The Authentication token is used so that the user doesn't need to give their user name and password credentials away to the program. The auth token seems to be a cryptographic hash.
  • If you are using the WSDL url, you must also provide query string parameters so that Ebay know what to do with the request. [http://developer.ebay.com/DevZone/SOAP/docs/WebHelp/wwhelp/wwhimpl/js/html/wwhelp.htm]

The Code Follows:


Ebay.eBayAPIInterfaceService service = new Ebay.eBayAPIInterfaceService();
string appId = "APPID"; // use your app ID
string devId = "DEVID"; // use your dev ID
string certId = "CERTID"; // use your cert ID
string endpoint = "https://api.sandbox.ebay.com/wsapi";
string callName = "GetSearchResults";
string siteId = "0";

string version = "437";
// Build the request URL
string requestURL = endpoint
+ "?callname=" + callName
+ "&siteid=" + siteId
+ "&appid=" + appId
+ "&version=" + version
+ "&routing=default";
// Create the service

// Assign the request URL to the service locator.
service.Url = requestURL; //"https://api.sandbox.ebay.com/wsapi";
// Set credentials
service.RequesterCredentials = new Ebay.CustomSecurityHeaderType();

service.RequesterCredentials.eBayAuthToken = "MY_TOKEN"; // use your token
service.RequesterCredentials.Credentials = new Ebay.UserIdPasswordType();

service.RequesterCredentials.Credentials.AppId = appId;
service.RequesterCredentials.Credentials.DevId = devId;
service.RequesterCredentials.Credentials.AuthCert = certId;

Ebay.GetSearchResultsRequestType req = new Ebay.GetSearchResultsRequestType();

req.Query = "SSX";
req.DetailLevel = new Ebay_Test.com.ebay.developer.DetailLevelCodeType[1];
req.DetailLevel[0] = Ebay.DetailLevelCodeType.ReturnAll;

req.Version = version;

Ebay.GetSearchResultsResponseType resp = service.GetSearchResults(req);
//Do some more stuff

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

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

My Related Documents
,

Related Amazon Books
Web Services Platform Architecture: Soap, WSDL, WS-Policy, WS-Addressing, WS-Bpel, WS-Reliable Messaging and More: / Building Web Services with Java: Making Sense of XML, Soap, WSDL and UDDI: / Understanding Web Services: XML, WSDL, SOAP and UDDI: / Perspectives on Web Services: Applying SOAP, WSDL, and UDDI to Real-World Projects (Springer Professional Computing S.): / Make Money on EBay UK: The Inside Guide To Getting Started, Buying and Selling Successfully and Securely on EBay.Co.Uk: / Absolute Beginner's Guide to Launching an EBay Business (Absolute Beginner's Guides S.): / What to Sell on EBay and Where to Get It: / EBay Powerseller Secrets: / Enterprise Applications Integration Using.Net and XML/Soap: / Applied SOAP: Implementing .NET Web Services: / Internet Security: Cryptographic Principles, Algorithms and Protocols: /

Related Images From Flickr

Monday, March 13, 2006

Google Search: ajax definition .net for dummies

A Google search came by my site the other day for the following query: "ajax definition .net for dummies"

Firstly I will provide a breif definition of what AJAX is:
Asynchronous JAvaScript and XML. Using an enhancement (originally by Microsoft for Web Outlook) in JavaScript that allows Web pages to be more interactive by communicating with the server retrieving data without the browser reloading the entire page.

This communication helps provide a better User experience when interacting with a website (when used correctly). Originally the browser had to reload the entire page before being able to show updates to the page.

Now that the definintion is given, I will talk briefly about using it in .Net.

ASP.Net really was designed for the old method of working. A page would be requested, events internally would fire based off the logic in the page and the Result would be displayed. Ajax really isn't like this, Ajax says, I already have the page, but I need to update this small portion of the page. Nativly, ASP.Net (1.x) can't handle this, it wants to load the page in its entirity.

All is not lost, because the Request Pipeline in ASP.Net is so flexible and has the ability to allow plugins to handle the incomming HTTP Request, people have developed plugins (or HTTPHandlers) that enable the developers to handle the AJAX Requests. The general consensus seems to be that Ajax Methods are embedded in the page, and the HTTPHandler pulls out the single method it needs to execute and only runs that code.

Some .Net Based Ajax Frameworks are:


Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

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

My Related Documents
, , , , ,

Related Amazon Books
Ajax in Action: / Professional AJAX: /

Related Images From Flickr

Google Search: ebay asp.net api soap wsdl

a reader visited my site the other day with the following search query: ebay asp.net api soap wsdl.

I have been trying to use the Ebay api and I have been finding it a little bit awkward to use. It appears to be a massivly monotlithic piece of API. I would have prefered that each API call have its owb WSDL and thus its own SOAP interface. This way I onlyt need to worry about the using and importing a very small stub.

I will post some code I have tomorrow but I am yet to determine if it works because for the life of me I cannot create a User Token for authenticating the request. I have tried three things none of which worked:
  1. I have tried using my Ebay Developer Account
  2. I have also tried my normal ebay account
  3. I have also created a brand new ebay account.

None of the above accounts work (it keeps aying my password is incorrect). Has anyone had any luck getting a User token for use in the API?


Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed]

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

My Related Documents
, , , , , ,

Related Amazon Books
Web Services Platform Architecture: Soap, WSDL, WS-Policy, WS-Addressing, WS-Bpel, WS-Reliable Messaging and More: / Building Web Services with Java: Making Sense of XML, Soap, WSDL and UDDI: / Understanding Web Services: XML, WSDL, SOAP and UDDI: / Mining EBay Web Services: Building Applications with the EBay API: / Enterprise Applications Integration Using.Net and XML/Soap: / Programming ASP.NET 2.0 Core Reference: / User Interface Design: A Software Engineering Perspective: / User Interface Design and Evaluation (Morgan Kaufmann Series in Interactive Technologies): /

Related Images From Flickr

Friday, March 10, 2006

Project Origami

For all the hype, Project Origami really isn't that interesting to me. Its a nice idea dont get me wrong and I would love to have one myself, but it seems to be kind of an obvious thing to make.

Technorati Tags
[feed], [feed], [feed]

Related Wikipedia Documents
, , ,

My Related Documents
,

Related Amazon Books
Rightsizing for New Enterprise: The Proof Not the Hype: / Successful Email Marketing: Your Complete No Hype, Plain- Language 'How To' Guide: / Fundraising on the Web: Opportunity or Hype? (Henley Working Paper): / Artificial Intelligence: The Very Idea: /

Related Images From Flickr

Google Search: why use sealed classes?

I just wrote a massive post about sealed classes, but I have lost it in Blogger. Bummer.

I will try and get it done again.

Thursday, March 09, 2006

Feed or Email Delivery

I have just a quick question that I am hoping people will give me feed back to.

If I provided an email subscription list that notified you of updates to my blog would you subscribe to this?

I am basically wondering if it is worth creating an email list for people who want to keep track of my site without having to use my RSS or ATOM feeds.

Technorati Tags
[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

Wednesday, March 08, 2006

Microformat proposal

Has a microformat been proposed around "Questions and Answers".

I think it would be good to mark a question and the corresponding answer in

<span class=qa><span class=question>Where does paul kinlan live?</span><span class=answer>liverpool</span></span>

It could help solve some semantic meaning to what part of text is a question and what is the anwser.

For instance I get a lot of searches coming to my site with queries such as "How do I...", "What does...". I could set up a "search engine" that parses pages with this micro format in and indexes question and answer pairs rather than whole text pages.

Is this a good idea? Is it worth progressing? Has it already been discussed?

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , , ,

My Related Documents
,

Related Amazon Books
A Semantic Web Primer (Cooperative Information Systems S.): / Spinning the Semantic Web: Bringing the World Wide Web to Its Full Potential: / Semantics in Business Systems: The Savvy Manager's Guide (Savvy Manager's Guides S.): / Ontological Engineering: With Examples from the Areas of Knowledge Management, E-Commerce and the Semantic Web (Advanced Information and Knowledge Processing): / Towards the Semantic Web: Ontology-driven Knowledge Management: /

Related Images From Flickr

Google Search: find file extension with regex in c#

I have had a search to my page where I know the reader probably didn't find what they were looking for.

This post is to hopefully let that user find the information that they are looking for better.

The Search term was "find file extension with regex in c#".

A simple regex that could be used in C# to find file extensions is:

.+\.([^.]+)$

This will find an extension that is at the end of the string. To find an extension anywhere in a string you can use:

.+\.([^.]+)\s

A regex to find a three letter extension at the end of a line:

.+\.([^.]{3})$

To find a three letter extension anywhere in a string you can use:

.+\.([^.]{3})\s

Technorati Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , ,

My Related Documents
, , ,

Related Amazon Books
Regular Expression Pocket Reference: / Regular Expression Recipes: A Problem-Solution Approach: / Regular Expression Recipes for Windows Developers: a Problem-solution Approach: /

Related Images From Flickr

Google Search: C#, Finding the Locale

I have had a search against my site for finding the User Locale in C#.

There are a couple of ways that this can be done. If you are using ASP.Net you can look at the Request.UserLanguages string array to see what preferences they have set up. The first locale in the array should be the locale that they normally work. Obviously this is browser dependent and user configuration dependent.

Using this information you could then set the threads culture (so that all comparisons etc are performed with the correct culture awareness) using the following piece of code:

Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Request.UserLanguages[0]);

If it is a Winform or Service you could get the Current Culture just by inspecting the either:
Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName;
or
Thread.CurrentThread.CurrentCulture.ThreeLetterISOLanguageName;
or
Thread.CurrentThread.CurrentCulture.ThreeLetterWindowsLanguageName
or
Thread.CurrentThread.CurrentCulture.EnglishName;
or
Thread.CurrentThread.CurrentCulture.DisplayName;

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , ,

My Related Documents
, , ,

Related Amazon Books
Professional ASP.NET 2.0: / Beginning ASP.NET 2.0: / Programming ASP.NET 2.0 Core Reference: / Pro ASP.NET 2.0 in C#: /

Related Images From Flickr

Monday, March 06, 2006

Updated UI

I have updated the UI of kinlan.co.uk.

Let me know what you think. It is another Blogger Template, but I think it is easier to read and lighter on the bandwidth.

I will be making more minor changes to update some things that I would like to see

Technorati Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, ,

My Related Documents
, , , ,

Related Amazon Books
Publishing a Blog with Blogger (Visual QuickProject S.): / Dispatches from Blogistan: A Travel Guide for the Modern Blogger: / The Rational Guide to Google Blogger: /

Related Images From Flickr

Friday, March 03, 2006

Bill Hill on IE7 Cleartype

I have read and listended to a lot of what Bill Hill has discused and I respect his opinion a lot.

He has made a post about the decision to turn on Cleartype in IE7 Beta 2. I recommend that if you read the post if you want to learn more, but to soundbite [or rather "lift"] from the blog entry.
The decision to turn ClearType on by default in IE is unusual, but was made because solid research over the past few years has shown conclusively that it improves reading - the task at which IE users spend most of their time.


I have not noticed any problems with cleartype, I find it easier to read text that is cleartyped, for some reason I concerntrate more. I have however, noticed problems with Blogger [and other sites] with IE 7 Beta 2 rendering the pages correctly.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed]

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

My Related Documents
, , , , ,

Related Amazon Books
Reading Ebay: / Microsoft Internet Explorer 7: Introductory Concepts and Techniques: / Course Ilt Internet Explorer 7: / ECDL Syllabus 3 Module 7 Information Communication (Internet Explorer 5 and Outlook 98): / Internet Explorer 7: Basic: / New Perspectives on Microsoft Internet Explorer 7, Brief: /

Related Images From Flickr

Been on training

I have been on a Mastering UML training course at IBM Eductation services in London the past week and have not had access to the Internet.

I hope to catch up on blogging.

The course was pretty good (accept for no Internet Access). I learnt quite a bit. Chas Weaver (The instuctor) was good too! He applies alot of his experiences to the course.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

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

My Related Documents
, ,

Related Amazon Books
The Complete UML Training Course (Boxed Set): / Complete Uml Training Course S: / UML 2 for Dummies: / UML Pocket Reference: / The Object Primer: Agile Model-Driven Development with UML 2.0: / Unified Modeling Language User Guide (Object Technology S.): / Learning UML: /

Related Images From Flickr