Category: Tools Collection: Leopard Icons Size: 128×128 pixels Format: PNG Author: Unknown License*: Unknown * No explicit rights are being given by Geekpedia.com to use this icon for personal or commercial use. To gain rights of usage for this icon you should ask the author for permission. If you are the author of this icon […]
Stopwatch
Category: Date and time Collection: Leopard Icons Size: 128×128 pixels Format: PNG Author: Uknown License*: Unknown * No explicit rights are being given by Geekpedia.com to use this icon for personal or commercial use. To gain rights of usage for this icon you should ask the author for permission. If you are the author of […]
How to get a list of SQL Server databases
There are multiple ways of getting a list of the SQL Server databases, the easiest one is to execute the sp_databases stored procedure, like in the example below: Don’t forget to change the connection string to match your server details (IP, userid and password).
How to pop up the Print dialog from a web page
You can very easily pop up the Print dialog using a JavaScript call to a function. The following code works in all major browsers, including Internet Explorer and Firefox:
How to improve the performance of your for loops
Instead of the typical: Use: Because instead of checking the length of the array each loop and comparing it to i, it stores it in a variable arrLen, which is then compared at each loop with i. This saves a few milliseconds, since checking the array length requires slightly more processing power.
How to have PHP show the errors within the current script
Before the PHP code starts, add the following lines: These two lines set script-wide variables that will allow the errors in your current script to output to screen.
Fatal error C1083: Cannot open include file: ‘iostream.h’: No such file or directory when trying to compile your C / C++ code
This is a common mistake among C programmers who start coding in a new environment with a new compiler such as .NET 1.1 or .NET 2.0. You get the error because the iostream.h file is no longer used with these compilers, instead use the ISO compliant file iostream: #include <iostream>;
How to redirect www requests to non-www URL
If you would like to redirect all the requests to the www version of an URL to the non-www version – for example http://www.geekpedia.com to http://geekpedia.com – you can do that by placing the following mod_rewrite rule in your .htaccess file: RewriteCond %{HTTP_HOST} ^www.geekpedia.com$ [NC]RewriteRule ^(.*)$ http://geekpedia.com/$1 [R=301,L] The redirect code 301 means Moved Permanently […]
Display Time Left To a Date
A PHP function to display the time between now and a future date supplied as Unix time, in human readable format, using two blocks of time periods (year, month, week, day, hour or minute.)
A complete list of what each IntelliSense icon from Visual Studio .NET means
Here’s what the icons in Intellisense from Microsoft Visual Studio .NET represent: Assembly Delegate Event Interface Namespace Structure Public class Protected class Private class Public constant Protected constant Private constant Public enumeration Protected enumeration Private enumeration Constant inside enumeration Public method Protected method Private method Public property Protected property Private property Public variable Protected variable […]