Adsense code (2021-10-05)
Monday, June 20, 2016
The world's fastest supercomputer, Sunway-TaihuLight by China, run Linux
Sunway-TaihuLight, a new-generation supercomputer installed in the east China city of Wuxi, is able to perform quadrillions of calculations per second. The system was named the world's fastest computer during the Int'l Supercomputing Conference in Frankfurt.
Saturday, June 11, 2016
Install oracle-java8 on Ubuntu with ppa:webupd8team/java
To install oracle-java8 on Ubuntu 16.04:
- add ppa:webupd8team/java to your repository
$ sudo add-apt-repository ppa:webupd8team/java
- update with
$ sudo apt update
- install oracle java8
$ sudo apt install oracle-java8-installer
Tuesday, March 22, 2016
Install OpenShot Video Editor on Ubuntu
OpenShot Video Editor is a free, open-source video editor for Linux licensed under the GPL version 3.0.
OpenShot can take your videos, photos, and music files and help you create the film you have always dreamed of. Easily add sub-titles, transitions, and effects, and then export your film to DVD, YouTube, Vimeo, Xbox 360, and many other common formats.
To install OpenShot on Ubuntu using PPA, run the commands on Terminal:
$ sudo add-apt-repository ppa:openshot.developers/ppa
$ sudo apt-get update
$ sudo apt-get install openshot-qt
Saturday, December 12, 2015
Sunday, November 29, 2015
MonoDevelop/C#: get the current running Common Language Runtime verion, with the Environment.Version property.
Read the Environment.Version Property to gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.
For the .NET Framework Versions 4, 4.5, 4.5.1, and 4.5.2, the Environment.Version property returns a Version object whose string representation has the form 4.0.30319.xxxxx. For the .NET Framework 4.6, it has the form 4.0.30319.42000.
Example:
For the .NET Framework Versions 4, 4.5, 4.5.1, and 4.5.2, the Environment.Version property returns a Version object whose string representation has the form 4.0.30319.xxxxx. For the .NET Framework 4.6, it has the form 4.0.30319.42000.
Example:
using System;
namespace HelloWorldCsharp
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
/*
* For the .NET Framework Versions 4, 4.5, 4.5.1, and 4.5.2,
* the Environment.Version property returns a Version object whose
* string representation has the form 4.0.30319.xxxxx.
*
* For the .NET Framework 4.6, it has the form 4.0.30319.42000.
*
* ref: https://msdn.microsoft.com/en-us/library/system.environment.version(v=vs.110).aspx
*/
Console.WriteLine("Version: \t" + Environment.Version.ToString());
Console.WriteLine("(Major): \t" + Environment.Version.Major.ToString());
Console.WriteLine("(Minor): \t" + Environment.Version.Minor.ToString());
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
MonoDevelop/C# to keep console open with ReadKey()
In C# console program, we can keep console open by inserting the code Console.ReadKey():
using System;
namespace HelloWorldCsharp
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
MonoDevelop on Kubuntu: Hello World C# example
using System;
namespace HelloWorldCsharp
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
}
}
}
Create a Hello World C# example in MonoDevelop run on Kubuntu:
Subscribe to:
Comments (Atom)





