Skip to main content

Posts

Showing posts from August, 2018

Ubuntu : Installing Shotcut thru snap

mccrazy@mccrazy-Lenovo-N22:~$ sudo apt-get install snapd snapd-xdg-open [sudo] password for mccrazy:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic   linux-image-4.13.0-36-generic linux-image-extra-4.13.0-36-generic   linux-signed-image-4.13.0-36-generic linux-signed-image-generic-hwe-16.04 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   ubuntu-core-launcher The following NEW packages will be installed:   snapd-xdg-open The following packages will be upgraded:   snapd ubuntu-core-launcher 2 upgraded, 1 newly installed, 0 to remove and 89 not upgraded. Need to get 14.2 MB of archives. After this operation, 279 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ph.archive.ubuntu.com/ubuntu xenial-updates/main ...

c# : converting full word month to datetime

            DateTime dateNow = DateTime.Now;             string excelMonth = "July";             int lessNumberOfMonth = dateNow.ToString("MMMM").ToLower().Equals(excelMonth.ToLower()) ? 0 : 1;             Console.WriteLine(lessNumberOfMonth);             string dateString = string.Format("{0} 1, {1}", "june", dateNow.AddMonths(-lessNumberOfMonth).Year);             DateTime dt = DateTime.ParseExact(dateString, "MMMM d, yyyy", new CultureInfo("en-US"));             Console.WriteLine(dt);