Farhan Sarwar

Farhan Sarwar

Get Total Physical RAM using C#


Getting the total installed physical memory (RAM) in the system is made simple using the following code snippet.   You can get the System’s total Physical Memory (RAM) programmatically using C#.   1 – Add a reference to Microsoft.VisualBasic in…

Add hours in DateTime in PHP

Date Time

In PHP, you can get the current Date and Time by using the function date(): date()     OR   date(‘Y-m-d H:i:s’)   Manipulating Date/Time is very easy in PHP and you can easily add something to this, like add hours, days, minutes…

Changing a user password in Linux

Change User Password in Linux

A normal Linux user can only change the password for his/her own account, but the super-user (root) may change the password for any user in the linux operating system. For changing the password, the admin/super user is first prompted for…