Ubuntu – Unknown Display issue

When you connect a new monitor to Ubuntu, sometimes you get unknown display, and it only allow you select a lower resolution than what your monitor is capable of. You can made new resolution mode to your new monitor. My new monitor is connected at DVI, and that’s why it’s called DVI-0 (the default DVI […]

person Jason Huangaccess_time March 21, 2019launch Read More

APACHE: allow outside access to your apache www host

Edit the httpd.conf file, find the section with Example: Options FollowSymLinks AllowOverride None Order deny,allow Allow from all if you want web site to allow outside access to specific folder on your apache server, find or add the configuration for specific folder on your web server. For example, /wwww Options +Indexes +FollowSymLinks +Multiviews Order Deny,Allow […]

person Jason Huangaccess_time March 5, 2019launch Read More

Ubuntu server: Easy Samba Share in Ubuntu Server

Reference link: https://help.ubuntu.com/community/How%20to%20Create%20a%20Network%20Share%20Via%20Samba%20Via%20CLI%20(Command-line%20interface/Linux%20Terminal)%20-%20Uncomplicated,%20Simple%20and%20Brief%20Way! Use samba server installed on your Ubuntu server allow you to easily share a folder from Ubuntu Linux with other network users. 1. Install Samba Server: sudo apt-get update sudo apt-get install samba 2. Set a password for a user in Samba. This is the user name password combination you will use […]

person Jason Huangaccess_time February 26, 2017launch Read More

MySQL: Find out which port MySQL Runs on

In Linux, you can try use this command: netstat -tlnp Normally it’s set to run on port 3306. This command shows you something like: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0* LISTEN 25934/mysqld Alternatively, you can login to MySQL, and run the […]

person Jason Huangaccess_time February 25, 2017launch Read More

C#: Export DataGridView to Microsoft Excel

It’s fairly easy to export all the records that are on your Data Grid View to Excel. The code below shows you how to Run Microsoft Excel Interop and go through each rows and columns in data grid view, and write manually to an Excel worksheet, save the excel file. The good thing is that […]

person Jason Huangaccess_time February 24, 2017launch Read More

MySQL: Allow Remote connect to MySQL from any host

By default, you’re not allowed to connect to your MySQL database from other machine. To enabled that, you first need to set a password to root user in your MySQL Database: mysqladmin -u root password ‘password’ To login to MySQL, use mysql -u root -p Once you login to your MySQL, use the following command […]

person Jason Huangaccess_time February 23, 2017launch Read More