Firstly PHP is just a web scripting language and can only be used on a web server for web development, that’s it. You cannot use PHP to develop Windows apps or Linux UI or Mac OS X UI apps. If you want to implement any of the classes you will have to most probably rewrite [...]
Types in C# and the .NET framework are the fundamental building block of program design, and in C# they are divided into built-in, primitive types, and user-defined types. Generally speaking the user-defined types refer to classes, and classes are essentially made up of built-in types and other user-defined types themselves. Primitive types can also be [...]
Continue reading about What are the data types available in C#?
You all love the Springboks right? Those men in green who do South Africa proud? Well I guess the Kiwis or Aussies or Pommies or…err wait ok dont like the Springboks that much. But I love em and the other night I started thinking about writing an app that will allow me to select a [...]
I am busy doing a CBT course with the idea of writing MCTS exams and I started by doing some stuff on C# and the .NET framework that focuses specifically on types. The .NET framework is a strongly typed framework and what we mean by strongly typed is that each variable (or type) that you [...]
Bill Goldberg, the wrestler, had this way of saying “You’re Next” that made whoever realise they really where next in line to get smashed. There is no next person for me though rather next objectives, but what I can say is that I have come to realise and understand several things in the last 6 [...]
Yesterday I was busy with HTML to PDF conversion and for this I used the HTML Agility Pack. Everything worked great, except it seemed IE and FF/Chrome render different HTML. So today I took some fairly straightforward HTML and pushed it through HTMLAgility: New Website Under Construction And if I use this code to loop [...]
Continue reading about Interesting code with HtmlAgilityPack
Ok so admittedly I have been using ASMX services for too long now and the time has come to kick it to the curb and adopt WCF. And the issue I have been having of late was that I was skimming through code just to get stuff done, without spending the time understanding some of [...]
You know the feeling when you see someone use a property and you go, nice, I never knew that. Well last night that happened to me after reading Scott Hanselman’s article on Windows Powershell. In the article he created a script that automatically downloaded his podcasts. To do this he use the System.Uri class which [...]
Continue reading about Using System.Uri’s Segments property and List().ForEach
I have come across two ways querying XElements or XAttributes: Make an object IEnumerable and loop through the results Use the Single() method to return a single object only Typically you may have a situation where you write some Linq-to-XML like this: IEnumerable attrib = from att in elemInner.Attributes() where (string)att.Name.ToString() == “sectionName” select att; [...]
Continue reading about Getting a single XAttribute or XElement
Earlier today I posted a blog about using a generic handler (.ashx) to upload a file to a web server, and in the back of my head I wanted to use it somewhere neat and special, and I also want to find the most reliable and working version. And I also want to learn what [...]
Continue reading about Mimicking AJAX behaviour with Generic Handler (.ashx) file uploader