Friday, November 18, 2005

 

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

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 [OPML]

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 [OPML]

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 [OPML]

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: /

This page is powered by Blogger. Isn't yours?