Henok Mikre
Blog
VHD |
|
| This is the Microsoft Virtual Machine Disk. It is the equivalent of a VMDK for VMWare's Virtual Disk. Although Microsoft's Virtual Server 2005 is easy to use and manage, the nature the Window's operating system makes it so difficult to work with. For example, if, once you have created a dynamic disk and installed a window's operating system, you wanted to expand the disk, window's would not let you do that because it does not allow such operations on a system disk (disk that contains operating system files). There are third-party tools you could use to expand the disk, but then window's will prompt you that you have changed system specs and will need to reactivate Windows. Now, you are out of luck if you have ran out of licenses. The alternative would be to call Microsoft and try to get them to activate it for you in other means. This is just too much trouble simply to resize a disk. | |
Microsoft SQL Server Command Line |
|
| The quickest way to check tables is to use the sqlcmd tool via command prompt. You may connect to a database called WorldExpo using the default windows credential as follows: sqlcmd -d WorldExpo |
|
NAS vs SAN |
|
| NAS: Network-Attached Storage
SAN: Storage Area Aetwork |
|
mysql_connect() vs mysql_pconnect() |
|
| The difference between mysql_connect() and mysql_pconnect() is that mysql_pconnect() would first look for an open connection and use that if it exists. If a connection does not already exist then it will create a new one. But then it does not allow you to close it with the mysql_close() function. There are advantages and disadvantages to this.
Disadvantage: mysql_pconnect() will require special settings on the web server in order to keep it from exceeding the maximum concurrent connections! |
|
TCP vs UDP |
|
| UDP vs TCP: http://devmaster.net/wiki/UDP_vs_TCP
List of TCP and UDP ports: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers |
|
.bashrc vs .bash_profile |
|
| I noticed when trying to add an alias in .bashrc for ls (ls --color=auto), it would not register for SSH logins. It turns out that .bashrc is used for non-login shells and .bash_profile is executed for login shells. So I was able to fix this by adding the alias line in .bash_profile. The best solution is probably to have .bashrc executed within .bash_profile: if [ -f ~/.bashrc ]; then . ~/.bashrc fi Note: .bash_profile is .profile in Unix. | |