Friday, February 17, 2017

Developer Guidelines

1. Introduction
2. Coding Guidelines
2.1 Bracing
2.2 Single line statements
2.3 Commenting
2.3.1 Copyright notice
2.3.2 Documentation Comments
2.3.3 Web Service Comments
2.3.4 Custom Server Control and ASP.NET AJAX Control Comments
2.3.5 Comment Style
2.4 Spacing
2.5 Naming
2.6 Namespaces
2.6.1 Assembly Namespaces
2.6.2 ASP.NET Website Namespaces
2.6.3 ASP.NET Web Service Namespaces
2.7 File Organisation
2.7.1 File Organisation
2.8 ASP.NET ID Prefixes
2.9 Data Access
2.10 Data Access
2.10.1 Cache Your Elements
2.10.2 Prefer [] over item()
2.10.3 Avoid the use of ‘eval’
2.10.4 String manipulation
2.10.5 JavaScript compression
3. SQL Guidelines
3.1 Parameters and variables
3.2 Control statements
3.3 Naming
3.4 Paging
3.5 Exceptions and business logic

Tuesday, July 19, 2016

GIMP 2.8.18 and GIMP 2.9.4 released

As of the 13th July 2016 you can now download GIMP 2.8.18 and GIMP 2.9.4.  In order to download this software please go to http://www.gimp.org/downloads/ for the stable 2.8.18 release and http://download.gimp.org/mirror/pub/gimp/v2.9/ for the development 2.9.4 release.

Also for unstable nightly builds please go to http://nightly.darkrefraction.com/gimp/.  Remember that this is free software and the developers work really hard to write professional software like the GIMP so please do consider donating towards this awesome free PhotoShop alternative.

Thursday, March 15, 2012

GIMP 2.8 is just around the corner, can you taste it LOL

OK so it's been over 2 years since GIMP 2.8 was suppose to be released, but with GIMP 2.7.5 [which is a development release] just released a few days ago, it seems imminent that GIMP 2.8 is finally going to be here.

I know it's been ages but I must thank the few developers that have kept GIMP going as it is a phenominal piece of software, especially when looking at the latest development release mentioned above. A few things that I'm still dissapointed about in the GIMP are that there's still no unselection tool, and I know the reason GIMP developers haven't included this tool is because they feel that there shouldn't be a situation where you need to unselect a tool, but I've found certain instances where this tool might come in handy in the GIMP. Anyways GIMP is open source so I might just write some code myself to include a deselection tool when I have some spare time :P.

The other thing is the lack of highligting a menu item once it's been selected, although looking at GIMP again it looks like they do add a tick mark next to menu items which have been selected. But enough about the 1 or 2 things that GIMP doesn't have, why don't you download the current development version below and give it a try, trust me you won't be dissapointed ;).

The best features for me that I've noticed with the new dev release is GIMP's Single-Window Mode as well as how the images are stacked at the top when you're in Single-Window Mode and multiple images have been opened. To select the single window mode in GIMP go to Windows => Single-Window Mode.

Download GIMP 2.7.5 now.

More Useful Links

Scott Hanselmans => Dev Tools List
Editable/Printable Invoice, Version 2 => Editable/Printable Invoice, Version 2
Windows Intune [Thanks to my boet Craig Kruger for showing me this little gem from Microsoft]. By the way did I mention that Craig is a phenomenal Hardware and Networking specialist, Google or Microsoft would do well to snatch him up :), although his current company CyberLogic isn't that bad either :P.

Tuesday, June 21, 2011

Constraint Naming Conventions

Check Key Constraints => CK_ParentTable_Column
E.g.: CK_Employee_EmployeeId
Default Key Constraints => DF_ParentTable_Column
E.g.: DF_Employee_EmployeeId
Foreign Key Constraints => FK_ParentTable_ChildTable_Column
E.g.: FK_Employee_Job_EmployeeId
Primary Key Constraints => PK_ParentTable_Column
E.g.: PK_Employee_EmployeeId

Unique Key Constraints => IX_ParentTable_Column
E.g.: IX_Employee_Email

CREATE TABLE SYNTAX

CREATE TABLE employee (
EmployeeId INT NOT NULL IDENTITY(1, 1),
FirstName VARCHAR(255),
LastName VARCHAR(255),
Email VARCHAR(255) CONSTRAINT IX_Employee_Email UNIQUE
)

ALTER TABLE SYNTAX

ALTER TABLE employee
ADD CONSTRAINT IX_Employee_Email UNIQUE(Email)

For more info on constraints and constraint naming please refer to the following links:
http://msdn.microsoft.com/en-us/library/ms174979.aspx
http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/
http://msdn.microsoft.com/en-us/library/ms177420.aspx

Friday, January 7, 2011

Google Apps made easy

There is a nice way of using Google Mail and Calendar if you are using Chrome as a browser.

Step 1.
Install Chrome (if you have not yet... you probably cannot... or no one has told you how much better it is)

Step 2.
Download this and install this little application.
http://dl.google.com/tag/s/ap=mydomain.com/googlewebapps/en/googleappsstandalonesetuptagged.exe

You are done!
What you get is a separate window for your Email and Calendar.., which makes life so much easier...

Once you run this.. it looks like this:



And it looks like this:



Credit goes to Gerhard Pretorius for this useful post.

Tuesday, February 16, 2010

Microsoft SQL Server 2005

How can I change my default database in MS SQL 2005
Log in to SQL Server 2005 and click the New Query button. After that run the system stored procedure sp_defaultdb command as follows:
exec sp_defaultdb @loginame='login', @defdb='master'
To achieve this in Microsoft SQL Server Management Studio you need to edit your login by expanding the Security -> Logins node and then right clicking on your login name and selecting Properties. Once the properties page displays there should be a Default database dropdownlist under the General page as seen below:

Wednesday, February 3, 2010

Software Downloads

Download Center
CodePlex»http://www.codeplex.com/ (Microsoft)
SourceForge»http://sourceforge.net/

Install
Backup and Deployment
Acronis => http://www.acronis.com/download/

CMS
Joomla => http://www.joomla.org/download.html
Wordpress => http://wordpress.org/

Databasing
MySQL => http://dev.mysql.com/downloads/
Navicat => http://navicat.com/
PostgreSQL => http://www.postgresql.org/
Sqlite => http://www.sqlite.org/

Disassembler
Reflector => http://www.red-gate.com/products/dotnet-development/reflector/

Extensions
Firebug => http://getfirebug.com/downloads (Firefox)

Framework
CodeIgniter => http://codeigniter.com/downloads/
JQuery => http://jquery.com/
JQuery UI => http://jqueryui.com/
PHP => http://php.net/downloads.php
YUI Library => ttp://developer.yahoo.com/yui/

IDE
NetBeans => http://netbeans.org/downloads/
Eclipse => http://www.eclipse.org/

IM
GTalk => http://www.google.com/talk/
MSN => http://explore.live.com/windows-live-messenger?os=other
Skype => http://www.skype.com/intl/en-us/get-skype/on-your-computer/windows/

ISO Utility
PowerISO => http://www.poweriso.com/download.htm
MagicISO => ttp://www.magiciso.com/tutorials/miso-magicdisc-history.htm

Issue Tracker
BugTracker.NET => http://ifdefined.com/bugtrackernet.html
Bugzilla => http://www.bugzilla.org/

Multimedia Player
VideoLAN => http://www.videolan.org/vlc/download-windows.html
XBMX => http://xbmc.org/download/

Office
Open Office => http://download.openoffice.org/

Photo Editors
FastStone Photo Resizer => http://www.faststone.org/FSResizerDownload.htm
GIMP => http://www.gimp.org/downloads/
Paint.NET => ttp://www.getpaint.net/download.html
Pixlr => http://pixlr.com/
Sumo Paint => http://www.sumopaint.com/home/

Remote Desktop Utility
Team Viewer => http://www.teamviewer.com/en/download/index.aspx

Social Networks
Facebook => http://www.facebook.com/
LinkedIn => http://www.linkedin.com/
Twitter => http://twitter.com/

Source Control
Git => http://git-scm.com/
SVN => http://subversion.apache.org/packages.html

Text Editors
E-TextEditor => http://www.e-texteditor.com/
Notepad++ => http://notepad-plus-plus.org/download
TextPad => http://www.textpad.com/download/

Web Browsers
Chrome => http://www.google.com/chrome/intl/en/landing_chrome.html?hl=en
Firefox =>
RockMelt => http://www.rockmelt.com/

Wiki
Screw Turn Wiki => http://www.screwturn.eu/

Zip Utilities
7Zip => http://www.7-zip.org/download.html

Online
Database Management
PhpMyAdmin => http://www.phpmyadmin.net/home_page/downloads.php

IDE
phpanywhere => http://phpanywhere.net/

Office
Google docs =>

Issue Tracker
Zoho => http://www.zoho.com/

Training
GCFLearnFree.org => http://www.gcflearnfree.org/
HTML5Rocks => ttp://www.html5rocks.com/
W3Schools => http://www.w3schools.com/

Still to sort
2 Advanced => http://www.2advanced.com/
Advanced System Care => http://www.iobit.com/advancedsystemcareper.html
Belarc Advisor => http://www.belarc.com/free_download.html
BurnAware => http://www.burnaware.com/
Cooliris => http://www.cooliris.com/
CutePDF => http://www.cutepdf.com/products/cutepdf/writer.asp
doPDF => http://www.dopdf.com/
DropBox => http://www.dropbox.com/install
Filezilla => http://filezilla-project.org/download.php
Foxit Reader => http://www.foxitsoftware.com/Secure_PDF_Reader/
Freshmeat => http://freshmeat.net/
Github => https://github.com/
Google Latitude => https://www.google.com/latitude/
Gmail => Gmail
Greenshot => http://getgreenshot.org/
IrfanView => http://www.irfanview.com/main_download_engl.htm
LastPass => https://lastpass.com/misc_download.php
Linq Pad => http://www.linqpad.net/
PathCopy => http://download.cnet.com/Path-Copy/3000-2072_4-10036463.html
PowerGUI => http://www.powergui.org/downloads.jspa
Secunia PSI => http://secunia.com/
Sendback
SnagIt => http://www.techsmith.com/download/snagit/default.asp
Spybot
StumbleUpon.com => http://www.stumbleupon.com/
VNC => http://vnc.en.softonic.com/
WinAmp => http://www.winamp.com/media-player/en
Xmind => http://www.xmind.net/downloads/
Yammer => https://www.yammer.com/company/desktop

Microsoft Visual Studio 2008

How do I change the default browser used in Visual Studio 2008

• Right click a page (.aspx, or on a folder)
• Select Browse With...
• Choose your browser
• Click set as Default



ASP.NET MVC
• Right click on Default.aspx
• Select Browse With...
• Choose your browser
• Click set as Default

How do I reload the cache of a website when pressing the start button (F5) in Visual Studio 2008

To reload the cache of the browser in Visual Studio 2008 when you've clicked the start button do the following:

• Once the browser has loaded up press and hold down the CTRL + F5 key.

How do I use a stored procedure with the linq data source
To use a stored procedure with the linq data source set the linq data sources ContextTypeName property to the DataContext class and create an OnSelecting method for the linq data source returning the stored procedure in the OnSelecting method. Below is an example to help explain the steps I've taken. In your .ascx, .aspx, etc file the linq data source should look something like below:

And your code behind will look something like the following:


How do I maintain the pages current position when inserting or updating a row in a GridView
To maintain the pages current position when inserting or updating a row in a GridView set your pages maintainScrollPositionOnPostBack attribute in the web.config to true as shown below: