Skip to main content

Posts

Layers in CSS

No posting for a while, wish I had, have learnt so much, will try to publish the other points A great feature that I found in style sheet is z-index. you add this into your normal def div.ItemOnTop {    z-index: 50; } then you can control how the page is rendered and what appear on to of another. the low the number the low the "layer" that the item appears. So with CSS you can make sure a pull down menu appears over the other items in the page, you can use the above, as long as there are no other items that are on the page with a higher Z-index

Find and replace spaces

I am never sure about regular expressions. But here is a example to find spaces at the end of a line and replace them with no spaces Find: [ ]\n Replace: \n I am sure there are others. But this one I cannot believe has to be done. In a development environment spaces at the end of the line are just a waste of computing time, especially with browsers

DSTV

Not that you cannot get this information anywhere else but this is some important information that I found today re DSTV in South Africa. PAS 7 is the correct satellite. If scan is always displayed then press menu and change it to PAS 7, this is the only setting that works in South Africa The DSTV support number in Cape Town: (021) 508-2222 national:  083 900 DSTV (3788) *VAS rates apply

Ownership of folders

I have been trouble shooting why I cannot take ownership of folders. I remembered many years ago having a similar problem. Knowing that the basics of windows has no really changed since NT, I searched, and foudn a great kb artical here it is KB 320081: You cannot delete a file or a folder on an NTFS file system volume My problem was solved with chkdsk /i /c /f /r

Sugar is a real killer

I am always keen for people to know why coffee is given a bad name. And take a read of this and rethink. Sugar is a killer. I got this from urban sprout "Submitted by sproutingforth on Tue, 2007-04-24 11:11. Why is sugar bad for us? William Dufty, in his book ‘Sugar Blues’ has a lot to say on the subject of why sugar is bad for us. According to him, refined sugar is lethal. Sugar actually drains and leaches the body of precious vitamins and minerals through the demand its digestion, detoxification and elimination make upon one’s system, because sugar is what nutritionists term ‘empty’ calories. Taken every day, sugar produces an over-acid condition. This requires more and more minerals, such as sodium, potassium and magnesium, to rectify the imbalance. Finally, in order to protect the blood, so much calcium is taken from the bones and teeth that decay and general weakening begin" www.urbansprout.co.za/sugar_killing_you_softly_part_2

Vista tools

Some Vista Tools Not sure if these exsisted before, but they probably have. There are some seriously decent command line tools for Vista I got the from kb929833 S ystem F ile C heck or SFC to check all the files: example: sfc /scannow , then findstr /C:"[SR] Cannot repair member file" %windir%\logs\cbs\cbs.log >sfcdetails.txt notepad sfcdetails.txt - to identify the files affected To take ownership of a file takeown . For example, type takeown /f E:\windows\system32\jscript.dll to change the permissions: icacls Path_And_File_Name /GRANT ADMINISTRATORS:F . For example, type icacls E:\windows\system32\jscript.dll /grant administrators:F . Also check out How to use vista themes

Category: Development, C#, Things I want to remember

I find it frustrating how hard it B to remember all these syntaxes, when all you want to do is add some quick code into your html. So here is how you add some code into your HTML aspx file <script>  does not work but <% ...%&gt does. And here is some code which identifies the current page, path and strips them into separate parts: <%   string sPath = Request.ServerVariables["PATH_INFO"]; string sPage; string sWebPath;      //-- Before capitlaizing get the path from the string sWebPath = sPath; //-- Capitalize for easy searching sPath = sPath.ToUpper(); //-- Find the page name sPage = sPath.Remove(0,sPath.LastIndexOf("/")+1); //-- Find the webpath sWebPath = sWebPath.Remove(sPath.IndexOf(sPage)); if (sPath.Contains("DEFAULT.ASPX")){     Response.Write("do something on the home page"); } else {     Response.Write("do something on the other pages"); } %> Reference site worth a vi...