In Feburary 2016 26,
As an operation proceeds, the code continuously reads how much is completed and calculates the status. If the Minimum value is set to one and the Maximum to 100, the bar will fill half the bar display when 50 percent of the operation is completed. To perform this calculation, the programmer must know how long the operation will take. As an example, if the user is downloading a five MB file, by the time 2.5 MB have downloaded, the bar will have moved halfway across.
Create a Progress Bar
Start by creating a new project after opening Visual Basic. Click on 'File,' 'New Project' and select the 'Standard EXE' format. Add the ProgressBar control by clicking on 'Project,' 'Components.' Find the Microsoft Windows Common Controls in the list. Choose the Microsoft Visual Basic Common Controls (SP6) by placing a checkmark in the box next to the control. Click on 'Apply' and 'OK.' You should see the control in the list in the left panel. Double click on this to add it to the form.
Set the Properties
If working with an operation where the percentage of completion is easy to calculate like a file download, set the Minimum property in the Properties panel to '1' and the maximum to '100.' Another way to set the maximum is to have the code count the number of iterations of some operation, compare this to the total number, and calculate where the bar should be. Height and Left properties control the height of the bar itself and where it appears from the left of the screen. Only two other properties matter: Whether the bar runs across the screen vertically or horizontally and whether incremental chunks appear or the bar is smoother. Choose these from the 'Orientation' and 'Scrolling Properties.' If the maximum cannot be predetermined, it is possible to use an Animation control to keep the bar moving until the operation completes. This enhancement goes beyond the level of this tutorial. Since the bar should not appear until an operation commences, set the Visible property to 'False.' For this example, set the Maximum property to '10000' and leave the Minimum at '0.' Finally, add a Command Button control from the Tools list to the form to initiate action. Change the (Name) property to 'btnStart' and the Caption to 'Start.'
Write the Code
Click on 'View,' 'Code' to open the programming window. Type the lines below exactly as shown. The first three lines load the form and make the Progress Bar visible. The rest of the code runs through a repetitive sequence to demonstrate the bar. The end number in this code is set very high to slow the Progress Bar down for visibility. Replace the steps in the second section beginning with 'Private Sub btnStart_Click() and ending 'End Sub' with whatever event you are timing to get a new ProgressBar1.Value. Always add a command to change the visibility of the bar to 'False' when the routine finishes.Private Sub Form_Load()
ProgressBar1.Visible = True
End SubPrivate Sub btnStart_Click()
Dim n As Integer
For n = 1 To 10000
ProgressBar1.Value = n
Next n
End SubTest the code by pressing the 'F5' key.
Visual Basic 2008 Express Edition Version
In the Visual Basic 2008, substitute the following lines for the lines beginning Private Sub:Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Private Sub btnStart_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles btnStart.Click
In Feburary 2016 26,
Showing posts with label apply. Show all posts
Showing posts with label apply. Show all posts
Friday, 26 February 2016
Sunday, 21 February 2016
How to Be a Contestant on 'Family Feud' Hosted by Steve HarveyIn Feburary 2016 21,
In Feburary 2016 21,
Potential contestants for 'Family Feud' may audition via video or in person. A total of five family members are needed to audition. All family members must be related by blood, marriage or legal adoption.
In-Person Audition
In-person auditions take place in various cities by appointment only. You must apply for an audition via the email address provided at the show's website. It's recommended you include pictures and video of your family when applying to increase your chances of landing an in-person audition.
Video Audition
Video auditions for 'Family Feud' are accepted through the show's Facebook app or by mailing a DVD to the address provided at the show's website. Five family members must be included in the three- to five-minute video. The producers suggest playing a mock version of the game in the video as well as doing anything else to stand out and show your family's fun side.
In Feburary 2016 21,
Potential contestants for 'Family Feud' may audition via video or in person. A total of five family members are needed to audition. All family members must be related by blood, marriage or legal adoption.
In-Person Audition
In-person auditions take place in various cities by appointment only. You must apply for an audition via the email address provided at the show's website. It's recommended you include pictures and video of your family when applying to increase your chances of landing an in-person audition.
Video Audition
Video auditions for 'Family Feud' are accepted through the show's Facebook app or by mailing a DVD to the address provided at the show's website. Five family members must be included in the three- to five-minute video. The producers suggest playing a mock version of the game in the video as well as doing anything else to stand out and show your family's fun side.
In Feburary 2016 21,
Friday, 12 February 2016
How to Open an Internet BusinessIn Feburary 2016 12,
In Feburary 2016 12,
Choose what type of Internet business to start: Will you sell your own product or service? Or will you become a drop shipper or an affiliate marketer, selling other entrepreneur's products?
Decide what to name your Internet business, remembering to keep it simple and memorable. Your business name should also alert customers as to what you are offering them--'Database Building for You,' for example.
Determine what business licenses you will need to legally run your Internet business and apply for them. Your local government office will be able to tell you exactly which licenses, such as a zoning permit, you will need before you can open your business's virtual doors.
Buy Web hosting and your domain name, keeping in mind that your domain name should be the same as or as close to your business name as possible. Consider purchasing several extensions of your domain name--such as '.com,' '.net' and '.org'--to ensure that your competition can’t buy them out from under you.
Create a website for your Internet business. If you have the capital, you may want to hire a Web designer to design a website for your Internet business, or you may want to purchase a Web template and customize it yourself.
Prepare a business plan for your Internet business. You must have a road map of where you plan to take your business and how you plan to get there.
Market your Internet business. Fortunately, you have plenty of options for marketing your business for free online, including participating in article marketing, forum marketing, social networking, blog writing and submitting press releases to free press release websites.
Launch your Internet business. Consider offering a special discount on your product or service to celebrate your opening day and to attract more paying customers.
In Feburary 2016 12,
Choose what type of Internet business to start: Will you sell your own product or service? Or will you become a drop shipper or an affiliate marketer, selling other entrepreneur's products?
Decide what to name your Internet business, remembering to keep it simple and memorable. Your business name should also alert customers as to what you are offering them--'Database Building for You,' for example.
Determine what business licenses you will need to legally run your Internet business and apply for them. Your local government office will be able to tell you exactly which licenses, such as a zoning permit, you will need before you can open your business's virtual doors.
Buy Web hosting and your domain name, keeping in mind that your domain name should be the same as or as close to your business name as possible. Consider purchasing several extensions of your domain name--such as '.com,' '.net' and '.org'--to ensure that your competition can’t buy them out from under you.
Create a website for your Internet business. If you have the capital, you may want to hire a Web designer to design a website for your Internet business, or you may want to purchase a Web template and customize it yourself.
Prepare a business plan for your Internet business. You must have a road map of where you plan to take your business and how you plan to get there.
Market your Internet business. Fortunately, you have plenty of options for marketing your business for free online, including participating in article marketing, forum marketing, social networking, blog writing and submitting press releases to free press release websites.
Launch your Internet business. Consider offering a special discount on your product or service to celebrate your opening day and to attract more paying customers.
In Feburary 2016 12,
Wednesday, 3 February 2016
How to Install Plesk on UbuntuIn Feburary 2016 03,
In Feburary 2016 03,
Open your network configuration file in a text editor as the root user. To open the file in Gedit as root, open Gnome Terminal and enter “gksudo gedit /etc/network/interfaces” (without quotes, here and throughout) at the prompt. Ubuntu's default interface uses DHCP to assign an IP address at boot, but you must change this configuration to use a static IP address instead. Comment out the line “iface eth0 inet dhcp” by adding a “#” symbol to the beginning of the line, then add the following seven lines to the bottom of the file:iface eth0 inet static
address
network
netmask
broadcast
gateway
dns-nameservers
Substitute your server's value for each number inside brackets in the above lines, but don't include the brackets in the code you add to the file. You can get these values from your Web host or Internet service provider. Save the file and close Gedit.
Restart your network interface to apply the changes by entering “sudo ifdown eth0 && sudo ifup eth0” at the prompt.
Install PHP 5 by entering “sudo apt-get install php5” at the prompt. If you already have the latest version of PHP 5 installed or you don't plan to install the Web Presence Builder, you can skip this step. The Parallels Web Presence Builder is a custom website designer that supports drag-and-drop graphical site construction, shopping cart checkout and traffic analytics. Many hosting resellers use Presence Builder as an all-in-one solution for their customers.
Uninstall AppArmor to prevent conflicts between the two services. By removing AppArmor, you introduce a level of vulnerability to your system, so you may want to install an alternative kernel security layer such as SELinux or Grsecurity. To uninstall AppArmor, enter “sudo apt-get remove apparmor” at the prompt.
Open firewall ports for any Plesk components you want to use. Visit the Parallels site to see a list of Plesk components and their associated ports (link in Resources). At the minimum, you probably need FTP, SSH, DNS, HTTP, Auth and a database component such as MySQL or PostrgreSQL. To open a port in the default Ubuntu firewall, enter the following command at the prompt:sudo ufw allow Substitute the appropriate port number for “port number,” but don't include the brackets in the command.
Download the one-click installer from the Plesk site using the wget command. At the terminal prompt, enter the following command to launch the installer:wget -O - http://autoinstall.plesk.com/one-click-installer | shThis command downloads the Plesk installation script to your current directory and installs Plesk in Ubuntu. After about five minutes, when the installation completes, you can log in to the Plesk control panel and initialize the service.
Open a Web browser and enter “http://<your IP address>:8443” in the address bar, substituting your IP address for “
” and omitting the brackets. The Plesk control panel displays a first-time configuration page, and you're prompted to enter your name, phone number and email address and create a new password.
Purchase a Plesk license by clicking “Tools and Settings,” selecting “License Management” and choosing “Order New Key.” You can use the Plesk control panel through the trial key until your license is authenticated.
In Feburary 2016 03,
Open your network configuration file in a text editor as the root user. To open the file in Gedit as root, open Gnome Terminal and enter “gksudo gedit /etc/network/interfaces” (without quotes, here and throughout) at the prompt. Ubuntu's default interface uses DHCP to assign an IP address at boot, but you must change this configuration to use a static IP address instead. Comment out the line “iface eth0 inet dhcp” by adding a “#” symbol to the beginning of the line, then add the following seven lines to the bottom of the file:iface eth0 inet static
address
network
netmask
broadcast
gateway
dns-nameservers
Substitute your server's value for each number inside brackets in the above lines, but don't include the brackets in the code you add to the file. You can get these values from your Web host or Internet service provider. Save the file and close Gedit.
Restart your network interface to apply the changes by entering “sudo ifdown eth0 && sudo ifup eth0” at the prompt.
Install PHP 5 by entering “sudo apt-get install php5” at the prompt. If you already have the latest version of PHP 5 installed or you don't plan to install the Web Presence Builder, you can skip this step. The Parallels Web Presence Builder is a custom website designer that supports drag-and-drop graphical site construction, shopping cart checkout and traffic analytics. Many hosting resellers use Presence Builder as an all-in-one solution for their customers.
Uninstall AppArmor to prevent conflicts between the two services. By removing AppArmor, you introduce a level of vulnerability to your system, so you may want to install an alternative kernel security layer such as SELinux or Grsecurity. To uninstall AppArmor, enter “sudo apt-get remove apparmor” at the prompt.
Open firewall ports for any Plesk components you want to use. Visit the Parallels site to see a list of Plesk components and their associated ports (link in Resources). At the minimum, you probably need FTP, SSH, DNS, HTTP, Auth and a database component such as MySQL or PostrgreSQL. To open a port in the default Ubuntu firewall, enter the following command at the prompt:sudo ufw allow Substitute the appropriate port number for “port number,” but don't include the brackets in the command.
Download the one-click installer from the Plesk site using the wget command. At the terminal prompt, enter the following command to launch the installer:wget -O - http://autoinstall.plesk.com/one-click-installer | shThis command downloads the Plesk installation script to your current directory and installs Plesk in Ubuntu. After about five minutes, when the installation completes, you can log in to the Plesk control panel and initialize the service.
Open a Web browser and enter “http://<your IP address>:8443” in the address bar, substituting your IP address for “
” and omitting the brackets. The Plesk control panel displays a first-time configuration page, and you're prompted to enter your name, phone number and email address and create a new password.
Purchase a Plesk license by clicking “Tools and Settings,” selecting “License Management” and choosing “Order New Key.” You can use the Plesk control panel through the trial key until your license is authenticated.
In Feburary 2016 03,
Subscribe to:
Comments (Atom)