In Feburary 2016 29,
Imagine that you have to write a movie catalog. One of the variables that you will use in your program is the movie title. But if you have thousands of movies, using a separate variable to store each title is not ideal. Instead, you should use one variable (the title) which has many values ('One Flew Over the Cuckoo's Nest,' 'The Graduate' and so on). Such data is an ideal candidate for an array.
Check to see if you already have a list of values, so that you can create the array with the array function instead of populating it manually.
Create the Array
Declare the array and assign values:
$titles = array('Hair', 'The Office', 'Troy', 'Tarzan', 'American Pie', 'Adam and Eve', 'Mystery', 'E.T.', 'Star Wars');
Enter as many movie titles as you have. If your values are strings, as in the above example, don't forget the quotes around them. If your values are integers, you can forgo the quotes.
Appreciate that this array is created with numeric indexing. In the above example, the array has nine elements (movie titles) and the indexes are from 0 ('Hair') to 8 ('Star Wars'). However, you can also create associative arrays.
Create an associative array. An associative array uses textual keys instead of numbers, and the indexes are more descriptive. This is especially useful when the values are not strings. The general syntax is the following:
$salary['John Smith'] = 3000;
This will assign the value 3000 to the array element, which has the 'John Smith' index.
Use the array function to create the array.
$salary = array('John Smith' => 3000, 'Sally Jones' => 4000, 'Chris Steward' => 4900, 'Mary Roberts' => 6500, 'Sam Moses' => 5400, 'Alice Roberts' => 4200);
Notice the slight difference in the syntax: You use the => symbol to enter the value for the key.
Perform Simple Operations With the Array
Reference values from the array by their index. For instance, if you want to display the title 'Adam and Eve,' you would do the following:
echo $titles[5];
because 'Adam and Eve' is the sixth element in the array and its index is 5.
Assign values to array elements. If you want to set a new value for an array element, use the following:
$titles[6] = 'Midnight Express';
This will replace the 'Mystery' value with 'Midnight Express'.
In Feburary 2016 29,
Monday, 29 February 2016
How to Troubleshoot Wireless Speaker IssuesIn Feburary 2016 29,
In Feburary 2016 29,
Follow the power cord to an outlet if the speakers aren't producing any sound, and confirm that they're plugged in. If they are, check that the cord is securely fitted into its socket in the speaker. Switch the plug to a different outlet to see if that solves the problem.
Look at the other parts of the system, such as the transmitter, to confirm they're also connected to a power source. If the power is on, switch out cables between the transmitter and the receiver, or connect the transmitter to a different sound source. If you're controlling the setting with a remote, replace the batteries with fresh ones to see if that makes a difference.
Adjust the settings on your sound system. The receiver may be set on mute or the sound may be turned down too low to hear. If only one speaker is silent, check that your balance control is set to provide sound to both speakers equally.
Change the position of your speakers. If your speakers operate in the 5.8-GHz band or use infrared technology to receive signals, they have to stay closer to the transmitter than a 2.4-GHz speaker. Infrared speakers also require line-of-sight positions to operate properly.
Bad Signal
Adjust the frequency controls on your system to a new setting, then tune the speakers to find a setting that provides a clear, strong signal.
Walk through your house and identify other radio sources in the 2.4-GHz range, if your wireless speakers work at that frequency. This is a standard range for devices such as cordless phones, cell phones and baby monitors, all of which can interfere with your signal, as can your microwave oven. See if turning the devices off while you're listening eliminates the interference.
Move the speakers closer to the transmitter. With less distance to travel, the signal degrades less. Less distance also reduces the chance of a barrier, such as a heavy metal appliance or a concrete wall, interfering with or distorting the signal.
Unsuccessful Pairing
Reconnect your Bluetooth device to the speaker adapter if you've recently deactivated Bluetooth on the device, because after Bluetooth is enabled, it won't reconnect with the speaker automatically. Go over the settings on your device and confirm they're set up to stream over Bluetooth. If your computer's Bluetooth is turned off, for example, nothing's going to happen.
Move your speakers closer to your device. Bluetooth's range is roughly 30 feet. If you have solid obstructions between the device and the speakers, remove them or reposition the system so that there are no obstacles in the signal's path.
Use the manufacturers' instructions to clear out the list of Bluetooth pairings on your device and speakers, then start over with the pairing process, repeating the steps you originally took to set up the wireless connection.
In Feburary 2016 29,
Follow the power cord to an outlet if the speakers aren't producing any sound, and confirm that they're plugged in. If they are, check that the cord is securely fitted into its socket in the speaker. Switch the plug to a different outlet to see if that solves the problem.
Look at the other parts of the system, such as the transmitter, to confirm they're also connected to a power source. If the power is on, switch out cables between the transmitter and the receiver, or connect the transmitter to a different sound source. If you're controlling the setting with a remote, replace the batteries with fresh ones to see if that makes a difference.
Adjust the settings on your sound system. The receiver may be set on mute or the sound may be turned down too low to hear. If only one speaker is silent, check that your balance control is set to provide sound to both speakers equally.
Change the position of your speakers. If your speakers operate in the 5.8-GHz band or use infrared technology to receive signals, they have to stay closer to the transmitter than a 2.4-GHz speaker. Infrared speakers also require line-of-sight positions to operate properly.
Bad Signal
Adjust the frequency controls on your system to a new setting, then tune the speakers to find a setting that provides a clear, strong signal.
Walk through your house and identify other radio sources in the 2.4-GHz range, if your wireless speakers work at that frequency. This is a standard range for devices such as cordless phones, cell phones and baby monitors, all of which can interfere with your signal, as can your microwave oven. See if turning the devices off while you're listening eliminates the interference.
Move the speakers closer to the transmitter. With less distance to travel, the signal degrades less. Less distance also reduces the chance of a barrier, such as a heavy metal appliance or a concrete wall, interfering with or distorting the signal.
Unsuccessful Pairing
Reconnect your Bluetooth device to the speaker adapter if you've recently deactivated Bluetooth on the device, because after Bluetooth is enabled, it won't reconnect with the speaker automatically. Go over the settings on your device and confirm they're set up to stream over Bluetooth. If your computer's Bluetooth is turned off, for example, nothing's going to happen.
Move your speakers closer to your device. Bluetooth's range is roughly 30 feet. If you have solid obstructions between the device and the speakers, remove them or reposition the system so that there are no obstacles in the signal's path.
Use the manufacturers' instructions to clear out the list of Bluetooth pairings on your device and speakers, then start over with the pairing process, repeating the steps you originally took to set up the wireless connection.
In Feburary 2016 29,
How to Cancel a Yahoo! Hosting AccountIn Feburary 2016 29,
In Feburary 2016 29,
Back up all your data currently on the Yahoo! servers. Once you cancel your hosting account, you will no longer have access to the hosted files and data.
Log in to your Yahoo! Business Control Panel (see Resources).
View your current hosting plans. Select 'Cancel Plan' beneath the hosting plan/account you'd like to end.
Follow the on-screen directions to complete the cancellation. Before confirming your cancellation, be sure you no longer want or need the service. Double-check that you have backed up all your files.
In Feburary 2016 29,
Back up all your data currently on the Yahoo! servers. Once you cancel your hosting account, you will no longer have access to the hosted files and data.
Log in to your Yahoo! Business Control Panel (see Resources).
View your current hosting plans. Select 'Cancel Plan' beneath the hosting plan/account you'd like to end.
Follow the on-screen directions to complete the cancellation. Before confirming your cancellation, be sure you no longer want or need the service. Double-check that you have backed up all your files.
In Feburary 2016 29,
How to Use Two Mice on One ComputerIn Feburary 2016 29,
In Feburary 2016 29,
Turn on your computer and connect the mouse with the USB connector into the USB slot on your computer.
Wait for the computer to detect the new hardware. Ensure that it's working by trying the new mouse.
Connect the other mouse. Wait for the computer to find the new hardware, then test it by moving it around.
In Feburary 2016 29,
Turn on your computer and connect the mouse with the USB connector into the USB slot on your computer.
Wait for the computer to detect the new hardware. Ensure that it's working by trying the new mouse.
Connect the other mouse. Wait for the computer to find the new hardware, then test it by moving it around.
In Feburary 2016 29,
How to Allow GZIP in GoDaddyIn Feburary 2016 29,
In Feburary 2016 29,
Log in to your GoDaddy hosting page (see Resources). Enter your username and password.
Click 'Web Hosting' and 'Launch' on the account containing the page that you wish to edit. Click 'File Manager' and open the file that you wish to edit.
Paste the following code at the very top of your webpage, above the 'doctype' code:
Click 'Save.' Repeat these steps to enable GZIP on each of your webpages.
Click 'Log Out' at the top of the page when you have edited each page.
In Feburary 2016 29,
Log in to your GoDaddy hosting page (see Resources). Enter your username and password.
Click 'Web Hosting' and 'Launch' on the account containing the page that you wish to edit. Click 'File Manager' and open the file that you wish to edit.
Paste the following code at the very top of your webpage, above the 'doctype' code:
Click 'Save.' Repeat these steps to enable GZIP on each of your webpages.
Click 'Log Out' at the top of the page when you have edited each page.
In Feburary 2016 29,
How to Configure DNS 323 With a MacIn Feburary 2016 29,
In Feburary 2016 29,
Make sure the D-Link DNS 323 is powered on and connected to your local network with an ethernet cable.
Click on the 'Finder' icon in the Dock at the bottom of your Mac's screen.
Open the 'Go' menu at the top of the desktop and select the 'Connect to Server' option.
Type 'smb://' followed by the hostname or IP address of your DNS 323 device in the 'Server address' field.
Press the plus button next to the 'Server address' field if you plan to connect to your DNS 323 often. This will add the device's address to the saved list below.
Click on the 'Connect' button at the bottom of the window to initiate a connection to the DNS 323. Once the Mac establishes a connection, a new Finder window will open displaying the files on your DNS 323.
In Feburary 2016 29,
Make sure the D-Link DNS 323 is powered on and connected to your local network with an ethernet cable.
Click on the 'Finder' icon in the Dock at the bottom of your Mac's screen.
Open the 'Go' menu at the top of the desktop and select the 'Connect to Server' option.
Type 'smb://' followed by the hostname or IP address of your DNS 323 device in the 'Server address' field.
Press the plus button next to the 'Server address' field if you plan to connect to your DNS 323 often. This will add the device's address to the saved list below.
Click on the 'Connect' button at the bottom of the window to initiate a connection to the DNS 323. Once the Mac establishes a connection, a new Finder window will open displaying the files on your DNS 323.
In Feburary 2016 29,
How to Set Up FTP Using BluetoothIn Feburary 2016 29,
In Feburary 2016 29,
Go to the 'Bluetooth' menu on your smartphone. Tap 'Settings.'
Tap to check the 'Enable File Sharing' checkbox. Tap 'Browse' to specify the folder where you want the shared files to go, which is '\My Documents\Bluetooth Share.'
Connect your smartphone's USB cable to the smartphone and the other end to a USB port on your computer.
Open the 'Bluetooth Devices' menu on your computer. Click the 'Devices' tab, then click 'Touch_Pro Properties.'
Click the 'Services' tab and check the box next to 'File Transfer (Obex).' You've created a folder with the Bluetooth name of the smartphone.
Open the new folder. Click the files you want to transfer to your smartphone and drag them to the folder. Release the mouse button to copy the files.
Close the folders and disconnect your smartphone from your computer and the USB cable. On your smartphone, open 'File Explorer.' Your transferred files are in the 'Bluetooth Share' folder.
In Feburary 2016 29,
Go to the 'Bluetooth' menu on your smartphone. Tap 'Settings.'
Tap to check the 'Enable File Sharing' checkbox. Tap 'Browse' to specify the folder where you want the shared files to go, which is '\My Documents\Bluetooth Share.'
Connect your smartphone's USB cable to the smartphone and the other end to a USB port on your computer.
Open the 'Bluetooth Devices' menu on your computer. Click the 'Devices' tab, then click 'Touch_Pro Properties.'
Click the 'Services' tab and check the box next to 'File Transfer (Obex).' You've created a folder with the Bluetooth name of the smartphone.
Open the new folder. Click the files you want to transfer to your smartphone and drag them to the folder. Release the mouse button to copy the files.
Close the folders and disconnect your smartphone from your computer and the USB cable. On your smartphone, open 'File Explorer.' Your transferred files are in the 'Bluetooth Share' folder.
In Feburary 2016 29,
Subscribe to:
Comments (Atom)