. 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

Tuesday, November 29, 2005

Google Search: c# convert date from uk to usa

One of the searches that came from Google to my site asked the following "c# convert date from uk to usa".

Now I don't really know exactly what the user was asking for, but I presume it is something fairly simple. The way that I would convert a UK date into a US date is as follows.

Read in the UK date, short format/long format whatever into a DateTime field. The output the date time using a US locale.

The following code works in vs2005.

CultureInfo cultEnGb = new CultureInfo("en-GB");
CultureInfo cultEnUs = new CultureInfo("en-US");
DateTime dtGb = Convert.ToDateTime(textBox1.Text, cultEnGb.DateTimeFormat);
textBox2.Text = dtGb.ToString(cultEnUs.DateTimeFormat.ShortDatePattern);

It reads in the date and tries to load the text as a UK Date from the first textbox and then it uses the US locale to output the string into the second textbox.

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

Related Wikipedia Documents
, , , , , , ,

My Related Documents
, ,

Related Amazon Books
The Game Localization Handbook: /, Internationalization and Localization Using Microsoft.NET: /, A Practical Guide to Software Localization: For Translators, Engineers and Project Managers (Language International World Dictionary, V. 3): /, Global Software: /, A Practical Guide to Software Localization: For Translators, Engineers and Project Managers (Language International World Diretory, 3): /, Programming for World Markets: A Guide to Software Internationalization: /

Related Images From Flickr

Suggestions for finding related blogs

I am trying to think how to display related blogs in my Ajax Tagger 2.0 and in the resulting HTML that comes from the selection made in the application. It is one of the remaining parts of the application that are still todo.

Does Anybody have any ideas?

I am also trying to find a good search engine that will give me a list of related blogs and associated feeds. So far I have Technorati and Google, Does anybody know of any other good ones?

Email me or leave a comment :)

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

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

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

Related Amazon Books
Blogs, Wikis, and Feeds in Action: /, The Google Story: /, Pragmatic Ajax: /, Head Rush Ajax: /, AJAX/REST Patterns and Best Practices: /, Bulletproof Web Design: Improving Flexibility and Protecting Against Worst-Case Scenarios with XHTML and CSS: /, Eric Meyer on CSS: /, CSS Pocket Reference: /

Related Images From Flickr

Update To AJAX Tagger Version 2 [New Domain]

I have made a new subdomain for the AJAX Tagger. It just makes it a little bit easier to type. I also have a new domain name for it, but I need to make sure that the application is working before I put it on there.

The AJAX Tagger can still be found in the old location (http://www.kinlan.co.uk/AjaxExperiments/AjaxTag2), but now it can also be found at http://ajaxtag.kinlan.co.uk.

Both versions will continue to be updated.

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

Related Wikipedia Documents
, , , , ,

My Related Documents
, , , , , , ,

Related Amazon Books
Ajax in Action: /, Pragmatic Ajax: /, Head Rush Ajax: /, AJAX/REST Patterns and Best Practices: /, Ajax for Dummies (For Dummies S.): /, Naming a Web Site on the Internet: How to Choose, Register and Protect the Right Domain Name for Your Web Site: /, Domain Names: How to Choose & Protect a Great Name for Your Website (Domain Names: How to Choose & Protect a Great Name for Your Website): /, Domain Name Handbook: High Stakes and Strategies in Cyberspace: /

Related Images From Flickr

RSS Bandit 1.3.0.38 has been Released

A new version of RSS bandit has been released. I like it and use the previous version all the time. What I like about this version is that it seems to correctly import Robert Scobles opml file [Which is massive]. Also the UI has been updated [Which is nice]. I have also noticed that it seems to display massive directories of posts a lot more quickly too. But that might be because I turned off the XSLT formatting of the aggregates.

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

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

My Related Documents
, , , ,

Related Amazon Books
XSLT Cookbook: /, XSLT 1.0 Pocket Reference: /, Xslt 2.0 Programmer's Reference: /, Learning XSLT: /, XSLT: /, Beginning XSLT 2.0: From Novice to Professional: /, Essential Xml Quick Reference: A Programmer's Reference to Xml, Xpath, Xslt, Xml Schema, Soap and More (DevelopMentor S.): /, Metadata Management in Statistical Information Processing: A Unified Framework for Metadata-Based Processing of Statistical Data Aggregates: /, Developing Feeds with RSS and Atom: /, Beginning RSS and Atom Programming: /, Syndicating Web Sites with RSS Feeds for Dummies (For Dummies S.): /, RSS and Atom Hacks: /, Hacking RSS: /, Content Syndication with RSS: /, Secrets of Rss (Visual QuickStart Guides): /

Related Images From Flickr

Monday, November 28, 2005

XBox 360 and the .Net Framework

Further to my post a little while back about using the .Net Framework in the XBox 360, it seems that because the XBox 360 is a media centre consumer, you can create Media Center applications, install them on the media server and then run the UI elements through the XBox 360 with all the logic run against the Media Center

Not too sure how this works, but their is an article about it over on MSDN.

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

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

My Related Documents

Related Amazon Books
Quake 4 (Xbox 360): The Official Strategy Guide: /, Programming C#: /, Windows Forms Programming in C#: /, Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries: /, Windows XP Media Center Edition PCs: The Complete Guide: /, Windows Xp Media Center 2004 PC for Dummies (For Dummies): /, Microsoft Windows XP Media Center Edition 2005: /, Microsoft Windows XP: Fast and Easy: Media Center Edition: /

Related Images From Flickr

Update to AJAX Tagger OPML Ouput

I have updeated the Ajax Tagger 2.0 to now support Related Searches more. Now it outputs in OPML the RSS feeds to search engines like MSN, Technorati and Google Blog Search. I need to find more search engines that output to RSS.

Does anyone know any good search engines that output to RSS?
Does anyone know how to make Google or Yahoo output in RSS?

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

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

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

Related Amazon Books
The Search: How Google and Its Rivals Rewrote the Rules of Business and Transformed Our Culture: /, Make Easy Money with Google: Using the Adsense Advertising Program: /, Developing Feeds with RSS and Atom: /, Beginning RSS and Atom Programming: /, Syndicating Web Sites with RSS Feeds for Dummies (For Dummies S.): /, RSS and Atom Hacks: /, Professional Web APIs with PHP: Google, EBay, Paypal, Amazon, Yahoo, Fedex: /, AJAX/REST Patterns and Best Practices: /, Pragmatic Ajax: /, Head Rush Ajax: /, Ajax for Dummies (For Dummies S.): /, Ajax Programming with Java: A Tutorial: /, Content Syndication with RSS: /, The Google Story: /

Related Images From Flickr

Saturday, November 26, 2005

OPML Output now working

For the people who use my AJAXTagger, OPML Support is fixed. There was a problem with my instanceof method of javascript which would mean that it would not work in IE6 and IE7. This all stemmed from the fact that Internet Explorer doesn't support __proto__ javascript construct. This is a bit of a problem because I don't know how to workout what an object in Javascripts parent "type" is.

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

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

My Related Documents
, , , , , ,

Related Amazon Books
Head First Design Patterns: /, DOM Scripting: Web Design with JavaScript and the Document Object Model: /, JavaScript for the World Wide Web (Visual QuickStart Guides): /, Professional JavaScript for Web Developers: /, JavaScript: The Definitive Guide: /, Sams Teach Yourself Javascript in 24 Hours (Sams Teach Yourself S.): /, DHTML Utopia: Modern Web Design Using JavaScript & DOM: /, Explorer's Guide to the Semantic Web: /

Related Images From Flickr

Thursday, November 24, 2005

Google Search: c# instanceof

A couple of people have come to my site with the query "c# instanceof". I know how I get found for this. I copied an "instanceof" javascript method and talked about it in one of my entries.

The only relation to c# that I can think of would be the "is" and "as" keywords.

"is" can be used to test what type of object an object reference is. For instance [no pun intend, or thought of I think :)] a developer could write:
if(m_car is MiniCooper)
{
...

they would be saying that if the m_car variable is of the type MiniCooper then do something.

The "as" keyword is used to "cast" a type to another type. So you could write

if(m_car is MiniCooper)
{
MiniCooper mc = m_car as MiniCooper;

The "as" keyword is slightly differnt to the Explicit cast (MiniCooper mc = (MiniCooper) m_car; because if the cast dosn't work with an "as" then the mc local variable will be null, rather than throwing an "InvalidCastException".

I hope this helps.



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

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

My Related Documents
,

Related Amazon Books
UML Pocket Reference: /, BusinessObjects: The Complete Reference (Complete Reference S.): /, Microsoft Visual C# .NET (Core Reference): /, Visual C#.NET Language Reference: /, Successful Keyword Searching: Initiating Research on Popular Topics Using Electronic Databases: /, Automatic Keyword Classification for Information Retrieval: /, DHTML Utopia: Modern Web Design Using JavaScript & DOM: /, JavaScript: The Definitive Guide: /

Related Images From Flickr

Google Search: .net framework for xbox 360

I have had a lot of hits from Google when people menation the .net framework and the XBox 360.

I might as well say what I know about it all. Nothing :(

I would have thought that the .Net Framework on the XBox 360 wasn't even on Microsoft's radar. After all the XBox 360 is on a different Chip Architecure and they have only just managed to get x86 64bit support via the .Net 2.0 framework.

Maybe I am wrong though, you never know.

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

Related Wikipedia Documents
, , , , , ,

My Related Documents

Related Amazon Books
Quake 4 (Xbox 360): The Official Strategy Guide: /, Programming C#: /, Windows Forms Programming in C#: /, Halo 2 Hacks: /

Related Images From Flickr

Ebay API... Can't really think of much.

After talking about the fact that the Ebay API has been made "free" to access, I had high hopes to make some programs to access it. Well I haven't had any cool ideas yet about what to do with it.

EBay is quite dynamic, so I can't integrate it into my Blog statically so I can't benifit from potentially extra hits that I might get from it from search engines and the like. The only thing I can think of is to provide an AJAX style interface from each of the books that I am showing from Amazon.

I think what it is is that I am not too interested because I don't think I could make commision from it. I know this isn't the best reason to do the programs, but I do make my programs to serve my needs first. Take the AJAX Tagger as an example, I created it to help ME give extra information to my readers.

Anyway, if I think of any ideas I will post them here.

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

Related Wikipedia Documents
, , , , , , ,

My Related Documents
, , ,

Related Amazon Books
Ajax in Action: /, Make Money on eBay UK: The Inside Guide To Getting Started, Buying and Selling Successfully on eBay.co.uk: /, AJAX/REST Patterns and Best Practices: /, Mining Amazon Web Services: Building Applications with the Amazon API: /, Professional Web APIs with PHP: Google, EBay, Paypal, Amazon, Yahoo, Fedex: /

Related Images From Flickr

Tuesday, November 22, 2005

Could it all be done in XAML

After having a little success with my example with XAML binding directly into Amazons webservice I am thinking that I might be able to automatically bind directly to other services that expose a REST interface. And if I can do that with very little code I might be able to make my AJAX Tagger completly in XAML without a hint of C#. I hope the WPF [Windows Presentation Foundation] will let me do that.

What do you reckon, do you think it can be done?

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

Related Wikipedia Documents
, , , , , , ,

My Related Documents
, , , , ,

Related Amazon Books
Pro Service-oriented Smart Clients With.NET 2.0: /, Mining Amazon Web Services: Building Applications with the Amazon API: /, Professional Web APIs with PHP: Google, EBay, Paypal, Amazon, Yahoo, Fedex: /, Service-Oriented Architecture: Concepts, Technology, and Design: /, Service-oriented Architecture: A Field Guide to Integrating XML and Web Services: /, Programming Indigo: The Unified Framework for Building Service-oriented Applications on the Windows Platform Beta Edition: /, Web Services and Service-oriented Architecture: The Savvy Manager's Guide: /, AJAX/REST Patterns and Best Practices: /, Pragmatic Ajax: /, Head Rush Ajax: /, Professional Google API: /

Related Images From Flickr

Monday, November 21, 2005

Amazon Search in XAML

I have just been playing with some XAML databinding. I was interested by the Channel 9 Example which creates an RSS reader in just a couple of lines of XAML

I hooked it up to Amazons REST API. I had a couple of problems with it that I will go into later. But what follows is the XAML that I used [also it can be downloaded from my server]:


<StackPanel
xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005" Margin="10">
<StackPanel.Resources>
<XmlDataNamespaceManager x:Key="NS">
<XmlNamespace Prefix="a"
Uri
="http://webservices.amazon.com/ AWSECommerceService /2005-10-05" />
</XmlDataNamespaceManager>
<XmlDataSource x:Key="Amazon" XmlNamespaceManager="{StaticResource NS}"
Source="http://webservices.amazon.co.uk/onca/xml?Service=AWSECommerceService&
AssociateTag=cnetfra-21& AWSAccessKeyId=[SUBSCRIPTION ID]&
SearchIndex=Books& Keywords=AJAX& BrowseNode=71& ResponseGroup=Request,Large,Images& Sort=salesrank& Operation=ItemSearch"
/>

<DataTemplate x:Key="TitleTemplate">
<TextBlock TextContent="{Binding XPath=a:ASIN}" />
</DataTemplate>
</StackPanel.Resources>

<Label Content="{Binding Source={StaticResource Amazon}, XPath=/a:ItemSearchResponse/a:OperationRequest/ a:HTTPHeaders/a:Header/@Name}" FontSize="24" FontWeight="Bold" />

<DockPanel DataContext="{Binding Source={StaticResource Amazon},
XPath=/a:ItemSearchResponse/a:Items/a:Item}"
Height="300px" >
<ListBox DockPanel.Dock="Left" Binding.XmlNamespaceManager="{StaticResource NS}"
ItemsSource="{Binding}" ItemTemplate="{StaticResource TitleTemplate}" IsSynchronizedWithCurrentItem="True" />
<TextBox Name="Contents" Text="{Binding XPath=a:ItemAttributes/a:Title}" Wrap="True" Width="Auto" />
</DockPanel>
</StackPanel>

The major problem that I had was that the AMAZON API has a default namespace, therefore to be able to use XPath against the datasource you need to include a NamespaceManager so that the XPath queries are resolved correctly. Once this is done everything is really simple.

Now this example I have created leaves a lot to be desired, but you can see how easy it to create.

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

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

My Related Documents
, , , ,

Related Amazon Books
Programming Windows Presentation Foundation: /, Service-Oriented Architecture: Concepts, Technology, and Design: /, Service-oriented Architecture: A Field Guide to Integrating XML and Web Services: /, Mining Amazon Web Services: Building Applications with the Amazon API: /, Professional Web APIs with PHP: Google, EBay, Paypal, Amazon, Yahoo, Fedex: /, Amazon Hacks: /, MCAD Training Guide 70-320: Developing XML Web Services and Server Components with Visual C#.NET and the .NET Framework: /, Expert Service-Oriented Architecture in C#: Using the Web Services Enhancements 2.0: /, RSS and Atom Hacks: /, RSS and Atom: Understanding and Implementing Content Feeds and Syndication: /

Related Images From Flickr

Sunday, November 20, 2005

Google Search: threads in javascript

One of the searches that came in to my blog was "threads in javascript". I have writte about this previously on my blog. Basically, I couldn't find anything that would allow "threading" in Javascript.

The closest I could come up with was to create a set of queues (that mimic threads). These queues hold items of work that need to be carried out and once every 250ms or a developer configured amount, the queue will ask a worker object to find out what work needs to be carried out. If there is work to do then it will start the task, if work is already being executed from the queue, then the work will not initiate the task.

Check out my AJAX Tagger 2.0 and see psuedo threads in action.

If someone else has any ideas about threading in Javscript I would love to hear it.

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

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

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

Related Amazon Books
Ajax in Action: /, JavaScript for the World Wide Web (Visual QuickStart Guides): /, Head First Design Patterns: /, DOM Scripting: Web Design with JavaScript and the Document Object Model: /, DHTML Utopia: Modern Web Design Using JavaScript & DOM: /, Communication and Computer Networks: Modelling With Discrete-Time Queues: /, C# Threading Handbook: /, AJAX/REST Patterns and Best Practices: /, Head Rush Ajax: /, Ajax for Dummies (For Dummies S.): /

Related Images From Flickr

Friday, November 18, 2005

Google Search Query: how to know if a certain file is a folder in c#

Someone visited my site from google using the query: how to know if a certain file is a folder in c#

I thought I would answer it because it is not on my site and I really belive that if people come to my site they should have a chance to find what they are looking for.

Basically, there is a class called "File" in the System.IO namespace, this class exposes a lot of static methods, one of them is GetAttributes [File.GetAttributes(string pathName)]. This static method returns a FileAttributes Enumeration which in turn has a property "Directory". If the file specified by the PathName parameter is a Directory then the enumeration can be logically tested by performing the following boolean statement.

((File.GetAttributes(path) & FileAttributes.Directory) == FileAttributes.Directory

This statement will logically [not conditionally] AND the enumeration with the Directory Attribute on the enumeration, this will leave the enumeration with only the Directory Flag set if it is already set, which can then be tested against the attribute directly. The enumeration is probably specified with the Flags attribute.

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

Related Wikipedia Documents
, , , , , , ,

My Related Documents
,

Related Amazon Books
Build Your Own ASP.NET Website Using C# & VB.NET: /, C# & VB.NET Conversion Pocket Reference: /, Programming C#: /, ASP.NET Unleashed (Unleashed S.): /, ASP.NET 2.0 A Developer's Notebook: /, Windows Forms Programming in C#: /

Yahoo Yay, Amazon Boo!

I know I harp on about Yahoo's webservice team being amazing and responding to the requests of their users in a timely manner. Well you contrast this with Amazons Webservice support which is next to none existant. It appears to me that there hardly ever any Amazon support guys on the forums!

I asked a question ages ago, quite a simple one and it never got answered. I know there are lots of people in the same boat as me too. Amazon, come on! Pull your act together.

All I wanted to know is if there are any plans to support the TextStream parameter in the UK version of the AWS?

Does anybody out there know?

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

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

My Related Documents
, ,

Related Amazon Books
Pro Service-oriented Smart Clients With.NET 2.0: /, Professional Web APIs with PHP: Google, EBay, Paypal, Amazon, Yahoo, Fedex: /, Programming Indigo: The Unified Framework for Building Service-oriented Applications on the Windows Platform Beta Edition: /, Expert Service-Oriented Architecture in C#: Using the Web Services Enhancements 2.0: /, Mining Amazon Web Services: Building Applications with the Amazon API: /

Related Images From Flickr

Thursday, November 17, 2005

Google Search: c# define

One of the Google Searches that came by my site was "c# define".

Now I presume that the user was looking to see what you can do with "defines" in C#. Well if you compare them to C #defines then not much at all because in C you define macros that are substituted by the pre-processor to expand the code at compile time. In C#, defines are used to indicate what code to compile when the relevand command is passed in via the "Conditional Compilation symbols".

I don't think C# 2.0 changes this, I am not too sure about C# 3.0 though.

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

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

My Related Documents

Related Amazon Books
Programming C#: /, Professional ASP.NET 2: /, ASP.NET Unleashed (Unleashed S.): /, ASP.NET 2.0 A Developer's Notebook: /, Windows Forms Programming in C#: /

Tuesday, November 15, 2005

AJAX Tagger Related Images

Just a quick not to say that the related images output code in AJAX Tagger 2 is not fully working just yet. I will be working on it tonight though.

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

Related Wikipedia Documents
, , , , ,

My Related Documents
, ,

Related Amazon Books
Ajax in Action: /, AJAX/REST Patterns and Best Practices: /, Head Rush Ajax: /, Ajax for Dummies (For Dummies S.): /

Related Images

XBox 360 Game Reviews

For anyone interested, there are some reviews of the XBOX 360 over on Gamespot and IGN. I am only really writing this post so that I can test my related Images Code.

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

Related Wikipedia Documents
, , , , , , ,

My Related Documents

Related Amazon Books
Quake 4 (Xbox 360): The Official Strategy Guide: /, Halo 2 Hacks: /, Diagnostic Problem Solving: Combining Heuristic, Approximate and Causal Reasoning: /

Related Images



Monday, November 14, 2005

EBay Offering Free API Usage

Just a quick note, finally Ebay are offering what appears to be free calls to their API system. They call it the Unified Procing Scheme and can be found at http://developer.ebay.com/roadmap/2005-Q1/unified-schema#documentContent.

This is great news, I have been yamering on in the past that I would not be using it whilst there is a charge to use it. I know I am not going to change the world, nor am I going to make Ebay Trillions of dollars. But I suspect there are thousands of people like me who would like to experiment with the API.


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

Related Wikipedia Documents
, , , , , ,

My Related Documents
, , , , ,

Related Amazon Books
The Perfect Store: Inside EBay: /, 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: /, 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 on eBay.co.uk: /, Essential Xml Quick Reference: A Programmer's Reference to Xml, Xpath, Xslt, Xml Schema, Soap and More (DevelopMentor S.): /, Service-Oriented Architecture: Concepts, Technology, and Design: /, Programming Indigo: The Unified Framework for Building Service-oriented Applications on the Windows Platform Beta Edition: /, Expert Service-Oriented Architecture in C#: Using the Web Services Enhancements 2.0: /, MCAD Training Guide 70-320: Developing XML Web Services and Server Components with Visual C#.NET and the .NET Framework: /, Professional Google API: /

Something I have noticed from the page stats

I have noticed a lot of people are trying to go to the AJAX Tagger go to AJAXTag23, this page was a test an has never worked with it. I will have to update the URL soom because it should be AJAXTag2 that people go to ( http://www.kinlan.co.uk/AjaxExperiments/AjaxTag2 )

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

Related Wikipedia Documents
, , , , , ,

My Related Documents
, , ,

Related Amazon Books
Ajax in Action: /, Head Rush Ajax: /, Ajax for Dummies (For Dummies S.): /, HTTP Pocket Reference: /, HTTP: The Definitive Guide: /, HTTP Essentials: Protocols for Secure, Scaleable Web Sites: /

Related Images

Sunday, November 13, 2005

Update To Ajax Tagger Verision 2

I have made an update to AJAX Tagger Version 2. It is just a simple one, but you can now add in your own choice of tags from the tag list panel. It was supposed to be in their from the start, but I never got around to doing it. It helps a greatdeal for when the Yahoo Developer Term Extraction API is not enough. Good examples are when you want "C#" and ".Net" to be a tag.

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

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

My Related Documents
, , , , , ,

Related Amazon Books
Ajax in Action: /, Head Rush Ajax: /, Ajax for Dummies (For Dummies S.): /, Mining EBay Web Services: Building Applications with the EBay API: /, Professional Web APIs with PHP: Google, EBay, Paypal, Amazon, Yahoo, Fedex: /, Inside Yahoo: Reinvention and the Road Ahead: /, Yahoo! Hacks: /, DOM Scripting: Web Design with JavaScript and the Document Object Model: /, JavaScript: The Definitive Guide: /, Professional JavaScript for Web Developers: /, Programming Perl: /, DHTML Utopia: Modern Web Design Using JavaScript & DOM: /

Friday, November 11, 2005

AJAX Tagger Version 2 Update

I have been updating AJAX Tagger version 2 (AJAXTag) recently and I am starting to use it properly now for each post.

Some of the features:
  • Extensivly uses the Yahoo, Amazon, Flickr and Technorati API's all web 2.0 and the like
  • It also finds related wikipedia articles and related articles that the user has on their own site.
  • All AJAX Based
  • Uses a special Request queue algorithm
  • Generates an OPML output and HTML outptut.
  • Generates a listing of amazon realted products.
  • Internet Explorer Only at the moment, sorry.

Check it out over on www.kinlan.co.uk/AjaxExperiments/AjaxTag2. And tell me what you think.

The UI and intercation needs to be sorted but that shouldn't be hard.

Technorati Tags
[feed], [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: /, Mining Amazon Web Services: Building Applications with the Amazon API: /, Professional Web APIs with PHP: Google, EBay, Paypal, Amazon, Yahoo, Fedex: /, Explorer's Guide to the Semantic Web: /, Amazon Hacks: /, Google, Amazon and Beyond: Creating and Consuming Web Services: /, Dan Appleman Visual Basic Programmer's Guide to the Win32 API (Book with CD-Rom): /, Inside Yahoo: Reinvention and the Road Ahead: /, The UI Design Book for the Applications Programmer: /

A Feature I Would Love to See Blogger Have

I would love to be able to specify <itempage></itempage> directly inside a blog entry so that I can have different things appear on the main page and on the item page.

Technorati Tags
[feed], [feed]

Wikipedia Documents
Blogger ,Blog ,Pyra Labs

Google Search: c# googledesktop

One of the visitors to my site did a search for "c# googledesktop". Whilst I have never done any plugin programming for the Google Desktop, there is an article that exists called "Improving Search Precision Using Goolgle Desktop Search 1.0" this article was in the November 2005 Doctor Dobb's Journal.

It covers a C# implemenation for searching the Citeseer database with some extra information using Google Desktop. It is a nice article to read and it even mentions some of the changes required to get it working in Google Desktop 2.0.

www.ddj.com is the website, not too sure you can access the artcile unless you are a subscriber though.

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

Related Wikipedia Documents
, , , , , , , ,

My Related Documents
, , ,

Related Amazon Books
, , , , , ,

Thursday, November 10, 2005

C# 2.0:I don't know why I didn't see this comming

For all my reading about C# 2.0, I don't know why I didn't see a properties set and get accessors can have differnt protection levels, for instance the getter can be public and the setter be protected.

That is a pretty cool feature. Abhinaba's weblog entry gives a few more detials.

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

Yahoo Term Extraction

I really like the Yahoo Webservices, one reason is that the guys their are really helpful. I asked a general question and they were kind enough to spend plenty of time explaining some parts of the Yahoo Term Extraction API.

My basic question was how does the "query parameter" that you pass to the Term Extraction help parse the context parameter.

Their general answer was that their is a semantic network in the background that relates words and phrases to a general term. The general term I assume can be controlled by the basic query that you pass as a parameter.

So it got me thinking, how can you determine the correct query parameter to use so that the results you get will be the most relevant. It turns out that the results of the term extraction are ordered by relevance, so the most important term is first in the results [kind of obvious when you think about it]. Therefore, if you Term extract your context without a query, choose the first result and then term extract the context again with the query being the first term, you might have a system that will best guess the gerneral topic of the context and then use this topic to filter the results better.

I am going to try this in my DeliTag and AjaxTag applications, because a lot of the terms that it generates have little relevance to the actuall topic that I am talking about.

Obviously, this method will half the number of requests that your system can run against the Yahoo API's (because two requests are being made).

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

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

My Related Documents
, ,

Related Amazon Books
, , , , ,

Wednesday, November 09, 2005

Programming Windows Presentation Foundation (WPF)

I have not messed around with XAML for a while now and was a little rusty, so I decided to get "Programming: Windows Presentation Foundation" from Amazon [UK/US], it is pretty neat so far, its examples are in XAML and C# and I am just on the Panels section and it is very well written.

The first chapter is pretty much a very quick overview of XAML and what in can do for you, it is kind of lucky that I had a basic understanding because it flys by and would be confusing for beginners. The Layout (Chapter 2) section so far is pretty good. I am finding it very interesting, there are simple examples with each of the point that are up for discussion, so it is a nice read.

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

Related Wikipedia Documents
, , , , , , , ,

My Related Documents
, , , , ,

Related Amazon Books
Windows API Bible: /, Windows Forms Programming in C#: /, Programming Windows Presentation Foundation: /, Essential .Net Volume 1: /, Mastering Visual Studio.NET: /

Tuesday, November 08, 2005

Sphere Beta: Some inital comments

I have just jumped on to the Sphere Beta Program. I think it is okay but here are some basic feedback points:

I like the related Blogs more than I like the Blog post results. That is when I search for "AJAX" the posts that it brings back don't really interest me, but the blogs about AJAX do. I am not too sure that I can find what I want with a search [in blog posts at least] off just a couple of keywords. I don't know why! Maybe it is me

Things that I would like to see
  • RSS subscription of results
  • Results from - to ranges. Not just "in the last 4 months" I would like "not before 2 months ago" and "no later than 4 months"; that type of thing.
  • A search that says "find blogs post like this one" etc.

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

Wikipedia Documents
Rss (file Format) ,Rss ,Really Simple Syndication ,Aggregator ,Web Syndication ,Sphere Of Influence ,Wikipedia: Search Engine ,Search Algorithm ,Blog ,Wikipedia: Weblog ,Blog Feed ,Blogroll ,Ajax (programming)

I have just jumped on to the Sphere Beta Program. I think it is okay but here are some basic feedback points:

I like the related Blogs more than I like the Blog post results. That is when I search for "AJAX" the posts that it brings back don't really interest me, but the blogs about AJAX do. I am not too sure that I can find what I want with a search [in blog posts at least] off just a couple of keywords. I don't know why! Maybe it is me

Things that I would like to see

  • RSS subscription of results
  • Results from - to ranges. Not just "in the last 4 months" I would like "not before 2 months ago" and "no later than 4 months"; that type of thing.
  • A search that says "find blogs post like this one" etc.

More on the Bluetooth Library for .Net

I have been trying to play around with the Managed C# Library for Bluetooth that I mentioned on my site a while back.

Can't say I can really make head nor tail of it. To be honest though, it is not the library that is at fault. It is me, I just thought I could have my phone connect to my machine and read the Images that I send from it off the phone. It didn't work :( Gutted. I know I am doing something wrong so I will have to read about Bluetooth communication a bit more :)

Detecting devices is simple though! :) Really simple!


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



Wikipedia Documents
Bluetooth ,Personal Area Network

Search Engine Results

I have noticed something wierd, since the start of this month I have recieved nearly all the hits on my site that I did last month; we are only 8 days into the month so something has happened.

I noticed Google is sending a lot my way. I am not too sure why I get preference over anyone else because MSN and Yahoo have only sent me about to combined.

Anyway here are my stats.

- Google 843
- Yahoo 11
- MSN 8
- Unknown search engines 7
- Google (Images) 3
- Dogpile 1
- AOL 1
- Netscape 1

Most of the searches are C# based so I need to still talk more c#. I feel that I am obliged to at least answer some of the queries that people ask of my site.

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

Wikipedia Documents
Wikipedia: Search Engine ,Search Algorithm ,Ask Jeeves ,Ask ,Query ,Google Platform ,America Online ,Netscape ,Msn ,Msn Search ,Webcrawler ,Google ,Pagerank

Monday, November 07, 2005

Google Search: c# expando

One of the queries that came to my site the other day was: c# expando. Now you could take this to mean one of several things:
  1. Creating Javascript Expando Objects in C#
  2. Creating C# Expando classes for use in C#
  3. Something Else

If it is something else, email me: paul.kinlan@gmail.com and I will see if I can shed any light.

If however it is choice 1, I know how to do this, but it can be quite a big subject. In IE it is really simple to do, you can simply use an attribute on a class and there you have an expando. Basically an expando is an arbitary object that is attached created at runtime on another. If you want you can also use setAttribute on the object and add a variable that way.

function Kinlan()
{
this.Test = 1;
}

var currKin = new Kinlan();

currKin .Test = 2;
currKin .Bleep = "bleeeep";

The Object currKin, will have two properties, one test, the other Bleep. It is that simple.

To do it in C# when creating javascript wouldn't be too different. You would just have to make sure your Javascript looked like that above. You could also attach new attributes to HTML Elements from C# which would be "expandoesk". Say you had a table t and you wanted to have a flag on it called readyToDelete you could add it to the Page via something similar to:

HTMLTable t = new HTMLTable();
t.ID="testTable";
t.Attributes.Add("readyToDelete", "false");
...

The above code would create a HTMLTable with an attribute called readyToDelete with the value false.

Going back to the begining; if it was option 2, I am not too sure how you would achieve dynamic addition of properties or variables to an object, but I assume it would involve Reflection and a lot of extra leg work. I know that there is also such a thing as an ExtenderProvider, but again I am not too sure how it works [Tooltips in Winforms extend the Class that it is attached too by providing an new Propery called "ToolTip"].

I have also heard that C# 3.0 may provide this type of functionality but that is just hearsay, I haven't actually read the spec.

I will look up the Reflection methods; the ExtenderProvider and also C# 3.0 spec.



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

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

My Related Documents
, , ,

Related Amazon Books
, , , , , , ,

Google Search: perl c# comparison

Another search that I have noticed that has been passed to my site was "perl c# comparison", I would assume that the person that asked this was trying to compare the languages and not how c# and perl perform comparisons.

My take on this would be that I don't really think that the two are even slightly similar in sytanx, semantics or even intended use. The only thing that I have found in common is the use of the ";" to signify the end of the line.

  • The OO implementation is not similar, C# is strictly Object Orientated, whilst I think that Perl was not and is not intended to be OO (I know a lot of people will disagree with me). I just don't think Perl's OO functionality is that intuative, it is like Javascripts OO: Obtuse!
  • C# has a very strict and highly developed Framework that can be used from the start, Perl has lots of modules that you have to install, by default though you would do everything yourself.
  • The semantics in C# are stricter, that is you can may tend to do things in one way, other people would tend to do it the same way too. In Perl at least it seems to me that you can do everything many many ways, which a lot of people like because one person doesn't code the same as another; it is not forced on you.
  • Perl has Regex's built in to the language, in C# Regex's are an object that you construct etc.

I use perl because I can do a lot of work quickly in it, and my site is based on a Linux server. I use C# because I like the langague and it is my job.

There are many more reasons that the languages are completly different. This was my take.

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

Wikipedia Documents
Wikipedia: Interface Functionality ,Windows Api ,Linux ,Wikipedia: Semantics ,Object-oriented Programming ,Regular Expression ,Wikipedia:scripts ,Perl ,Learning Perl ,Programming Perl ,Perl Module

Sunday, November 06, 2005

SIMPY, SHADOWS and DEL.ICIO.US all do this wrong I think

I would love to know why services like Simpy and Shadows (to some extent) and del.icio.us all focus on a users tags and not the global perspective. It seems that when I click on a tag on the front page of each of these services that is related to a web page, it lists all the other tagged pages of the same type that the user has posted and not the global point of view. I would have thought that the global frame of reference was more important that a users individual one. For instance I might have one 1 AJAX tag in my profile, what is the point in seeing that, I would be more initerested in what everyone else reckons is AJAX.

The option between a quick search of the users tags and the globally related tags would be nice.

What do you think?

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

Wikipedia Documents
Wikipedia: Search Engine ,Searching ,Ajax (programming) ,Wikipedia: Google (search Engine) ,Tag Cloud ,Tag ,Tagging ,Wikipedia: Frame Of Reference

Yahoo Context Search Was down

For all the people (4) who are using AJAX Tag (http://www.kinlan.co.uk/AjaxExperiments/AjaxTag) and Ajax Tag 2 (http://www.kinlan.co.uk/AjaxExperiments/AjaxTag), who have noticed that the Wikipedia Articles are not being found it was due to a problem on Yahoo's end. I must commend the people at developer.yahoo.net, Toby Elliot especially for getting this rectified. I must also say, out of all the Online Web 2.0 API's that I have used Yahoo seem to be the most helpful, you report a problem and they are very honest and quick to fix any issues. Way to go guys!

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

Wikipedia Documents
Wikipedia: Hypertext Transfer Protocol (http) ,Application Programming Interface ,Xmlhttp ,Tag Cloud ,Tag ,Tag Soup ,Tagging ,Ajax (programming)

Google Search C#

One of the searches that came in was:
oops c#.
I would love to know how to reply to that one, or what the Google user meant by that.

What did oops mean?
  • Object Orientated Prototyping System?
  • Object-Oriented Programming System
  • General C# gotcha's?


I know this is a long shot, but if you were the person who asked about this could you email me: paul.kinlan@gmail.com, so that I know what it was about.

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

Wikipedia Documents
Object-oriented Programming ,Object (computer Science) ,Oop ,Object-oriented Software Engineering ,Google (verb) ,Pagerank ,Prototype-based Programming ,Dynamic Systems Development Method

Saturday, November 05, 2005

C# Query from Google

One of the queries that someone entered in to Google and found my site was:
c# test a string to see if it is a number:
I suppose there are a couple of ways that this can be done.

If you know the datatype that you want to convert it to [i.e you know the numeric range] you can use the Convert class.
Convert.ToInt16 (short), Convert.ToInt32 (int), Convert.ToFloat (floats). etc etc

You could also use a regex along the lines of:

/^[0-9]+$/
or
/^[\d]+$/

both of the above regex's will check to see if it is a numeric string. (Whole numbers only though).

Anyone who is looking for c# test a string to see if it is a number; I hope you find this usefull.

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

Wikipedia Documents
Wikipedia: Regex ,Regular Expression

Google sending me c# searches.

I was looking through my logs and I have seen that google is sending me more and more c# searches. I am thinking that when people who come to this blog see it, they are probably impressed that there is not too much about c# on it. So from this day forth I will try and answer at least one google search about c#

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

Wikipedia Documents
Wikipedia: Search Engine ,Search Algorithm ,Searching ,Blog Feed ,Blogsite ,Blogroll ,Pagerank

Friday, November 04, 2005

Google Adsense

Google has added a new feature (as well as updated their T's & C's). I noticed the terms mentioned Feeds and Referrals, however I have not seen anything about the Feed Advertising, but I have added a referal link on my blog.


If you feel like you could benefit from joining adsense then try joining.

Technorati Tags
[feed], [feed]

Update to DeliTag

DeliTag works for Del.icio.us only in Firefox now. Need to get Proxy Scripts for SIMPY and SHADOWS and we are made.

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

Tuesday, November 01, 2005

DeliTag Now Does SIMPY and SHADOWS

I have updated the DeliTag to also upload tags to SIMPY and Shadows. Simpy is great Shadows won't let me get past the CAPTCHA stage. Come on guys sort it out, I want to use your service.

Update: DeliTag can post to Shadows, but I couldn't create an account due to a problem with CAPTCHA. I should have made that clearer in the post.

Update 2: I have created a shadows account. I still didn't get past the CAPTCHA Verifcation, but I got a confirmation email.


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



Wikipedia Documents
Captcha ,Web Service

RE: Regex 101 Exercise S2 - Verify a string is a hex number

It turns out I made a little mistake. The regex should be more like ^[A-Fa-f0-9]+$. The "0" problem might be sorted like this ^[A-Fa-f1-9][A-Fa-f0-9]*$.

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

Related Wikipedia Documents
, , , , , ,

My Related Documents
, ,

Related Amazon Books
A Programmer's Introduction to C# 2.0: /, A Programmer's Introduction to C# (.NET Developer Series): /, Regular Expression Pocket Reference: /, Regular Expression Recipes: A Problem-Solution Approach: /, Regular Expression Recipes for Windows Developers: a Problem-solution Approach: /, Programming C#: /, Windows Forms Programming in C#: /, ASP.NET Unleashed (Unleashed S.): /, MCAD Training Guide 70-316: Developing and Implementing Windows-based Applications with C# and Visual Studio.NET: /

Tag Clouds and the Yellow Pages

I was looking at the cover of the new Yellow Pages (UK) this Morning that arrived at my house the other day. I was just staring at it and I saw the wierdest thing. A TagCloud, well what could be described as a losse Tag Cloud, obviously I have no way of knowing if the size of the words on the packaging indicate the popularity of any particular subject. Suffice to say, Bouncy Castles are BIG! :)

It got me thinking though, has anyone ever done a Business Listing Tag Cloud? Would it be worth it?

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

Wikipedia Documents
Yellow Pages ,Link Popularity ,Tag Cloud ,Tag ,Tag Soup ,Tagging