In Feburary 2016 25,
Access your Blog 'Dashboard' to make changes through the 'Settings' link.
Switch your 'Permissions' setting to 'Anybody' so that anyone can read your blog. If you leave it as a private blog, the files will not be able to transfer. You will also have to switch to a 'Classic' blog template if you did not choose one with your initial sign up and registration.
Choose the 'Settings' tab from your blog's 'Dashboard' and click on the 'Publishing' link.
Switch to the 'FTP' link and then enter the appropriate information in the text fields for 'FTP Server,' 'Blog URL,' 'FTP Path' and 'Blog Filename.'
Return to your blog's 'Dashboard,' choose the 'Posting' tab and click on the 'Status' link.
Choose the link that says 'Republish Entire Blog' to complete the transfer of your blog.
In Feburary 2016 25,
Showing posts with label switch. Show all posts
Showing posts with label switch. Show all posts
Thursday, 25 February 2016
Saturday, 20 February 2016
How to Start CentOS GUI From the Command LineIn Feburary 2016 20,
In Feburary 2016 20,
Log in to the CentOS operating system.
Type the command 'su -' to switch to a root session.
Type the command:yum groupinstall 'X Windows System' 'GNOME Desktop Environment'
or
yum groupinstall 'X Windows System' 'KDE Desktop Environment' to install your preferred desktop environment.
Type the command 'startx' to start the X windows system and your preferred desktop environment.
In Feburary 2016 20,
Log in to the CentOS operating system.
Type the command 'su -' to switch to a root session.
Type the command:yum groupinstall 'X Windows System' 'GNOME Desktop Environment'
or
yum groupinstall 'X Windows System' 'KDE Desktop Environment' to install your preferred desktop environment.
Type the command 'startx' to start the X windows system and your preferred desktop environment.
In Feburary 2016 20,
Thursday, 18 February 2016
How to Do Bubble Sorting in VB.netIn Feburary 2016 18,
In Feburary 2016 18,
Open Visual Basic and click 'File' and 'New project' to create a new project. Select 'ConsoleApplication.' When it comes time to enter your code in a real project with a Graphical User Interface (GUI), you can simply copy this function there without modification.
Paste the following code above the 'Main' function:
Sub BubbleSort(ByRef arr() As Integer)Dim tempDim switch = TrueWhile switchswitch = FalseFor x = 0 To arr.Length - 2If arr(x) > arr(x+1) Thentemp = arr(x)arr(x) = arr(x+1)arr(x+1) = tempswitch = TrueEnd IfNextEnd WhileEnd Sub
An important thing to recognize is that the arr is passed into the subroutine 'ByRef.' This allows the function to modify the contents of the array.
Paste the following into the 'Main' function to test the BubbleSort method:
Sub Main()Dim arr = {3, 4, 5232, 1, 232, 12, 34, 14, 21, 213, 213, 21, 321}Console.WriteLine('Unsorted')For Each x In arrConsole.Write(x & ' ')NextConsole.WriteLine()BubbleSort(arr)Console.WriteLine('Sorted')For Each x In arrConsole.Write(x & ' ')NextConsole.ReadKey()End Sub
End ModuleThis generates a simple, unsorted array of integers and tells BubbleSort to sort them, then prints the results.
In Feburary 2016 18,
Open Visual Basic and click 'File' and 'New project' to create a new project. Select 'ConsoleApplication.' When it comes time to enter your code in a real project with a Graphical User Interface (GUI), you can simply copy this function there without modification.
Paste the following code above the 'Main' function:
Sub BubbleSort(ByRef arr() As Integer)Dim tempDim switch = TrueWhile switchswitch = FalseFor x = 0 To arr.Length - 2If arr(x) > arr(x+1) Thentemp = arr(x)arr(x) = arr(x+1)arr(x+1) = tempswitch = TrueEnd IfNextEnd WhileEnd Sub
An important thing to recognize is that the arr is passed into the subroutine 'ByRef.' This allows the function to modify the contents of the array.
Paste the following into the 'Main' function to test the BubbleSort method:
Sub Main()Dim arr = {3, 4, 5232, 1, 232, 12, 34, 14, 21, 213, 213, 21, 321}Console.WriteLine('Unsorted')For Each x In arrConsole.Write(x & ' ')NextConsole.WriteLine()BubbleSort(arr)Console.WriteLine('Sorted')For Each x In arrConsole.Write(x & ' ')NextConsole.ReadKey()End Sub
End ModuleThis generates a simple, unsorted array of integers and tells BubbleSort to sort them, then prints the results.
In Feburary 2016 18,
Labels:
BubbleSort,
ByRef,
copy,
function,
main,
modification,
paste,
simply,
switch,
TrueWhile
Sunday, 7 February 2016
How to Configure VSFTPDIn Feburary 2016 07,
In Feburary 2016 07,
Open a Terminal Window. The terminal window will be found in the operating system's main 'Application' menu, under either 'System Tools' or 'Utilities.' You will be presented with a command prompt where you will type the following commands.
Type the command 'su' to switch to the root user.
Type the command 'gedit /etc/vsftpd/vsftpd.conf' to edit the main configuration file.
Make the appropriate changes. For example, if you do not want anonymous access set 'anonymous_enable=NO.' Also, if you want local users to be able to log in, remove the comment symbol (#) before 'local_enable.'
Save and close the file.
Type '/etc/initd/vsftpd restart' to restart the vsftpd daemon.
Type 'exit' to exit the root session.
In Feburary 2016 07,
Open a Terminal Window. The terminal window will be found in the operating system's main 'Application' menu, under either 'System Tools' or 'Utilities.' You will be presented with a command prompt where you will type the following commands.
Type the command 'su' to switch to the root user.
Type the command 'gedit /etc/vsftpd/vsftpd.conf' to edit the main configuration file.
Make the appropriate changes. For example, if you do not want anonymous access set 'anonymous_enable=NO.' Also, if you want local users to be able to log in, remove the comment symbol (#) before 'local_enable.'
Save and close the file.
Type '/etc/initd/vsftpd restart' to restart the vsftpd daemon.
Type 'exit' to exit the root session.
In Feburary 2016 07,
Tuesday, 2 February 2016
How to Connect to the MySQL ServerIn Feburary 2016 02,
In Feburary 2016 02,
Connect to a MySQL server running on localhost. The MySQL command-line client's default behavior is to connect to a server running on localhost. This will connect to the server on localhost as the root user with no password. Example:
mysql -u root
Connect to a MySQL server using a password by adding the -p switch. This will connect to localhost as root and prompt you for a password. Example:
mysql -u root -p
Connect to a remote host using the -h switch. A remote host is any server other than localhost. Using the -h switch will connect to a MySQL server running on example.com as root and prompting for a password. Example:
mysql -u root -p -h example.com
Connect to a remote host running on a non-default port, using the -P switch. Note that this command uses a capital P. It should not be confused with the lowercase -p switch, which means prompt for a password. Using the -P switch will connect, as the root user, to a MySQL server running on example.com port 3330 and prompt for a password. Example:
mysql -u root -p -h example.com -P 3330
Connect to a server and use a database. Specify the database to use on the command-line in place of connecting and manually issuing a USE command. It's faster and makes automated scripts work better. Simply add the name of the database onto the end of the MySQL client command-line. This example connects to the database as root and uses the customers database. Example:
mysql -u root -p -h example.com -P 3330 customers
In Feburary 2016 02,
Connect to a MySQL server running on localhost. The MySQL command-line client's default behavior is to connect to a server running on localhost. This will connect to the server on localhost as the root user with no password. Example:
mysql -u root
Connect to a MySQL server using a password by adding the -p switch. This will connect to localhost as root and prompt you for a password. Example:
mysql -u root -p
Connect to a remote host using the -h switch. A remote host is any server other than localhost. Using the -h switch will connect to a MySQL server running on example.com as root and prompting for a password. Example:
mysql -u root -p -h example.com
Connect to a remote host running on a non-default port, using the -P switch. Note that this command uses a capital P. It should not be confused with the lowercase -p switch, which means prompt for a password. Using the -P switch will connect, as the root user, to a MySQL server running on example.com port 3330 and prompt for a password. Example:
mysql -u root -p -h example.com -P 3330
Connect to a server and use a database. Specify the database to use on the command-line in place of connecting and manually issuing a USE command. It's faster and makes automated scripts work better. Simply add the name of the database onto the end of the MySQL client command-line. This example connects to the database as root and uses the customers database. Example:
mysql -u root -p -h example.com -P 3330 customers
In Feburary 2016 02,
Subscribe to:
Comments (Atom)