Skip to main content

Posts

Showing posts from 2009

A Free CSS Menu

I have always used pure css, as a menu generator and this is good, but converting it to aspx and including the compatibility is messy so I have been on the look out, and today I found a good one. http://www.lwis.net/free-css-drop-down-menu/ What I like is they have real life examples, they use a few cascading style sheet files but that is cool since they have example from site you recognize, and that helps. Only think I do not like is they use id= and class= and VS really only properly supports class for go to code, so you have to do a search all open after opening the many files

Impressions of the Wizard of Oz

I have just finished reading my daughter the book the "Wizard of Oz". I have seen bit of the movie (by the way release in 1939, but only became popular through TV in the 1950s), and have never read the book. I must tell you this is a great read, something worth reading your kids, my daughter is 5 going on 6, and I feel she has afforded me a gr8 opportunity in having read the novel I would probably have never read. The story itself is extremely creative, considering that it was written in the late 18 hundreds (it was released in 1900) and was mainly targeted a kids, it sold 90,000 copies and was band since it was considered unfit reading for kids. If something like this novel had been written in the 60's I am sure drugs would have been blamed, since in almost every chapter there is some creative character. Besides the main Scarecrow, Tin woodman and cowardly lion, there are queen mice, red, green, yellow and blue people. Cities made out of bone china, rock people, winged m

ASP.NET Development Server always needed a restart

Problem I work in VS 2008, and every time I made a change to my code / html I had to stop the ASP.NET development server – apparently called Cassini. This was a little irritating as you can imagine, after scouring the internet every time I had a chance for a few months, I was ready to give up, I even posted on a few forums. Then I found a great site that spoke about nothing to do with the server, and guess what it is working. It has to do with how .net is dealt with on you machine, and it obviously assumes you are not a coder by default. The Fix On the MSDN forums I found a reference to the Microsoft knowledge base: KB911272 . In summary Essentially the HKLM\Software\Microsoft\ASP.NET\FCNMode determines how ASP.NET is dealt with as an app on the box. Initially setting this to "0" fixed the problem, but this caused a UNC share problem, so then I set it to two after finding this great item hosting-on-a-unc-share-is-not-supported-for-the-windows-xp-platform.aspx And now I ca

POST as form using C# to Pay Provider

The Remote Post Form class I have used the code for the jigar site and added my own goodies, so all credit to him. Sorry about the flast formating but is the only way I could get a neatish post using System; using System.Collections.Generic; using System.Web; using System.Security.Cryptography; /// <summary> /// Remotely handle and Post form from http://www.jigar.net/articles/viewhtmlcontent78.aspx%20 /// </summary> public class RemotePost { private System.Collections.Specialized.NameValueCollection Inputs = new System.Collections.Specialized.NameValueCollection(); public string Url; public string Method; public string FormName; public RemotePost(string pURL) { // // TODO: Add constructor logic here // Url = pURL; Method = "post"; FormName = "frmRemotePost"; }   public void Add(string name, string value) { Inputs.Add(name, value); } public void Post

Server.Response vs Request.Redirect

  I have always wondered what the difference was, and finally found out (see below – cut and paste) that the one is recommended for internal pages, the other for external.   I found this at: http://forums.asp.net/p/1456267/3335046.aspx If you read a lot of industry magazines and ASP.NET code samples, you may find that, although the majority use Response.Redirect  to send the user to another page, some seem to prefer the rather mysterious-sounding Server.Transfer . So, what's the difference? Well,  Response.Redirect  simply sends a message down to the browser, telling it to move to another page. So, you may run code like: Response.Redirect("WebForm2.aspx") or Response.Redirect("http://www.quaffee.com/") to send the user to another page. Server.Transfer  is similar in that it sends the user to another page with a statement such as Server.Transfer("WebForm2.aspx") . However, the statement has a number of distinct advantages and disadvantages. Firstly,

Do books have soul?

To me, and I am sure many others the printing press did more than replicate words on paper. Today we are able to find books on every topic under sun, and some that have not even been dreamed of. JC's book spoke about objects that have soul. Well what about books. If we look at purely scientifically essentially the act of writing is kinetic and the letters on the paper are potential energy. When the book is read this produces kinetic energy? To me a book thorough this process has a soul. When you open it the soul of the book is created for you, or has it already been created during the process of writing and then reborn when you open the book? The life of the book is then determined by how long you read it, and how much of an affect it has on you. If you permanently remember the characters, plot and story line, then is that soul? Or just a memory All this pondering is now complete, does it have soul? J

Jura Coffee Machine Resource

Jura Coffee Machines Looking for a site that gives you information the the worlds most recognized automatic coffee machine this this is a great resource. It lets you compare a range of Jura models in a table, and categorizes them into domestic or office use. You can also see why they recommend Jura Machines check this out Why Jura Machines

CODE NAMING CONVENTIONS

The bulk of the content below is reproduced from http://www.akadia.com/services/naming_conventions.html , written by Martin Zahn, Akadia AG, 20.03.2003 and have made some small changes, as time has gone by. Naming Conventions for .NET / C# Projects The original of this document was developed by the Microsoft special interest group. Martin Zahan made some add-ons and then by Warren Machanik, the abbreviation tables will change (and have changed from the original article, please email me it you have alternative suggestions or leave a comment) . These standards should be used I a step towards standardization of naming conventions that should be used with .NET projects. As to be used for all items when naming items. Consistent naming pattern is one of the most important elements of predictability and discoverability in a managed class library. Widespread use and understanding of these naming guidelines should eliminate unclear code and make it easier for developers to understand share

GridView and Item Template

When I first came across GridView I was unimpressed, there were a few things it did not do that a DataGrid did, and I immediately reverted back to the DataGrid. Over the last few days I have been working on the GridView again, and have found it a great tool. And most of what I have below applies to DatraGrid, and DetailView too. There are a few things that you should look at before giving up on it. The HTMLEncoding is the main thing I missed, which allows you to have html formatting in you data fields, and are displayed with them. Still have not figured out the difference between the two, and by heaven the help is one step away from useless. “This is used by programmers….” And same with the on events does not help to tell us it is used, not what raises it. However the main reason for my post is the ItemTemplate. I found out it is easy to add them in design view and then click on the GridView select the little right arrow click Edit Fields then click convert into a Template Field for th

Reflection of the alternative view for climate change

There are some that are so emotionally attached to alternative view as punted Ian Palmer ’s Book: Heaven and Earth , I decided to look at what I could find about this alternative view on climate change. After a lot of reading (hence my delayed response), I have come to the conclusion there are two main aspects of the people who punt it is conspiracy theory what environmentalists are singing. The first thing all these people agree (including Ian Palmer, one of the new voices to this sect) is that the climate is changing, what caused it is the debate. The second point they seem to make is that is politically correct to punt this. Firstly let us look at the climate change aspect of the argument; all scientists agree it is changing. Whether it is caused by a natural processes, an ancient volcanic eruption, alignment of the sun to the gravitational centre of the milky way, or the fact that industrial growth has spawned 5 million extra people in just over a millennium, who each have their

In honour of the world wide blog day for Climate change…

Climate Change, what are you doing to change your life? Climate change is something that if you are not aware is happening you have been living in a whole somewhere since the 70’s It is happening and the world is moving to towards a tipping point where mankind (not nature) will have created and environment where they cannot survive. There have been so many studies, and movies, and documentaries that if this is not the conclusion you have come up with then perhaps you need to read or watch more. Why are people not changing their lifestyle? This is the one that has perplexed many a person, in fact there has been a book or two written about it, and the theory is that we are going through the cycles of mourning. And at the moment we are in denial. The reasonable man in the street believes they cannot do much, and they are mourning their lifestyle lost. In some ways I understand this, because when in the 80’s there was a panic about the ozone layer and CFC’s, big business responde

Slaves to the Marketing Train ? Or the Internet offers choice freedom.

Before the Internet Marketing, is the only industry that I am aware of that does not have to produce concrete results, and can still succeed. Every marketer talks about branding, what is this mythical item? The first time I became aware of how branding is not linked to quality was when I first heard about products like Nakamichi , Lynn and Magnapan . These products were recognized by the worlds leading independent audiophiles, as best in class, but almost no one I knew had heard of them. Initially I thought oh well that is strange. The first time I heard music from a Magnapan, I was so blown away, I could not listen to my own HiFi, a NAD with AR speakers, without checking the cables, and connections over and over, to try and understand why system sounded like the radio in comparison to what I had heard. The Dawning of enlightenment Since 1995, I have slowly started relying more and more on the internet to make purchasing decisions. I have got to the point that if a product