Tuesday, September 27, 2016

Server Date Time Setting in CWP Panel

Solution 1:- In CWP Panel in website php.ini and for server mysql set in my.cnf and also in system.starup.php ---date_default_timezone_set("Asia/Kolkata"); date.timezone = Asia/Kolkata; ===============OR==================================== Solution 1:- Time-zone Setting in Linux in centos command [root@s$$-$$-$$$-$$$ server1]# ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime [root@s$$-$$-$$$-$$$...

Create short URL - Google URL Shortener

Google URL Shortener at goo.gl is used by Google products to create short URLs that can be easily shared, tweeted, or emailed to friends. What is a short URL? URL shortening is a technique on the World Wide Web in which a uniform resource locator (URL) may be made substantially shorter in length...

SQL Server Paging of Memory Identification - PowerShell

This blog and powershell script was a fall out of that engagement. param (     [string]$SqlServerName = "localhost" ) Add-Type -Path "C:\Program Files\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.SqlServer.Smo.dll" $SqlServer = New-Object Microsoft.SqlServer.Management.Smo.Server($SqlServerName) foreach...

Interfaces in C#

What is Interface? An interface looks like a class, but has no implementation. The only thing it contains are declarations of events, indexers, methods and/or properties. The reason interfaces only provide declarations is because they are inherited by structs and classes, that must provide an implementation for each interface member declared. Why Interface come in C#?     public class...