Sunday, 28 February 2016

How to Add a Newline Character to the End of a Line in SedIn Feburary 2016 28,

In Feburary 2016 28,
Open a terminal. The procedure to do this will depend on your operating system. Most Unix and Linux systems either open a terminal immediately on start up or have a terminal icon somewhere on the desktop. In Mac OS X, click the 'Spotlight' button and type 'Terminal.' In Windows, click 'Start,' 'Run' and type 'cmd.'
Type the following :sed '/$/G'This tells sed to search the text for all end of lines ($) and add a new line (G), effectively double-spacing the file. Alternatively, if you want to insure that there is never more than one blank line between paragraphs, change the command to read:sed '/^$/d;G' This tells sed to match only completely blank lines (^$), delete those blank lines (d) and replace them with a single new line (G).
Feed the data from a text file into sed by typing the following:cat textfile.txt | sed '/^$/d;G'
In Feburary 2016 28,

How to Change HTML Text With JavaScript VariablesIn Feburary 2016 28,

In Feburary 2016 28,
Open a text editor and create a new file named 'changeTextVars.html.' Type six HTML tags in the file:
Save 'changeTextVars.html.'
Place a JavaScript open script tag -- '' tag:
Add a JavaScript function between the '' tags named 'changeText().' The 'changeText()' function takes a variable named 'monsterName' as an argument:
Edit the 'changeText' function. Use the 'document.getElementById' function to change the 'innerHTML' property for the field named 'textToChange.' The 'textToChange' field holds the text updated with the variable 'monsterName':
Add a '' tag between the HTML '
' and '
' tags. Enter some text that displays the message -- such as 'My favorite monster is: ' -- and close the '' tag. Be sure to include a space after the colon and before the '' tag to separate the message from the dynamic text:
My favorite monster is:
Enter an open '' tag between the '' and '' tags after the 'My favorite monstor is: ' message. Assign an 'id' to the '' tag and set its value to 'textToChange.' For example, type the text 'Dracula' after the '' tag and close the '' tag:
My favorite monster is:
Dracula
Add an HTML '
' tag after the '' tag. Set the input type to 'button' and add an 'onclick()' event that calls the 'changeText' function and passes the value 'Frankenstein.' Set the input field 'value' attribute to 'Change Text.' Save and close 'changeTextVars.html.'
My favorite monster is:
Dracula
Open 'changeTextVars.html' in a Web browser. Click the 'Change Text' button to use the 'monsterName' variable to change the 'textToChange' field from 'Dracula' to 'Frankenstein.'
In Feburary 2016 28,

How to Set up Port Forwarding for a NetworkIn Feburary 2016 28,

In Feburary 2016 28,
Make a list of ports you need to forward. Most programs require their ports to be forwarded; if this is not done, information from these programs will not be seen by your local computer. If you know a program for which ports need to be forwarded, write it down. Afterwards, check the software manufacturer's website to find the port or series of ports along with the protocol type associated with your program/application of interest. Write this down as well.
Set up a static IP address on the computer for which ports will be forwarded. To set up a static IP address on a Mac OS X, simply click the apple icon on the top left corner of the screen, select 'System Preferences' and under 'Internet and Network,' select 'Network.' Select the network connection you are currently using and click 'Configure.' Click 'Configure IPv4' and select 'Manually.' The IP address you select should be similar to your router's IP address with the last number ranging range from 1-254. Typically, you can add 10 or more to the your router's last number. This should work in most cases as a static IP address. For instance, if your router's address is 192.168.1.1, you can choose 192.168.1.11 as your static IP address.
Start forwarding your ports by accessing your router's website. Open a web browser (Explorer, Safari or Firefox) and enter your router's IP address after the http://. This should lead you to your router's website. Locate the links which will lead you to Port Forwarding or Port Redirection. Once there, simply indicate the Program/Application Name, protocol type (TCP or IP) and port number(s) on both the public and private ports. You might need to check off a box to indicate that you would like to activate this port. Click 'OK' or 'Save' to save your settings.
Reconfigure your firewall so that you are able to open ports that are being blocked by your firewall. Alternatively, you can disable your firewalls and turn them on manually one at a time to see which firewall is blocking ports from entering your LAN.
In Feburary 2016 28,

How to Find the Login for FTP for GoDaddyIn Feburary 2016 28,

In Feburary 2016 28,
Check the email you received from GoDaddy when you created your Web hosting account. GoDaddy recommends that customers print out this confirmation email, because it contains important account information that customers often need to use as they manage a website. Either find the email within a folder of your email browser or find the printed copy of the email, because it contains your login name and password.
Visit the GoDaddy website and enter your Customer Number in the upper-left corner of the homepage. Click the 'My Account' tab and then click 'Web Hosting' from beneath the 'Products' section in the left sidebar. Select the domain you wish to view and find the 'Overview' tab. Within the 'Overview' tab, you will see a 'Login' box with your username.
Create a new password if you cannot remember your password and you do not have your confirmation email from GoDaddy. Visit the GoDaddy website and enter your Customer Number in the upper-left corner of the homepage. Click the 'My Account' tab and then click 'Web Hosting' from beneath the 'Products' section in the left sidebar. Click 'Launch' beside the correct hosting account. Within the 'FTP' section, find the 'Password' field and select 'Change.' Enter a new password twice into the appropriate fields and select 'Update.' GoDaddy warns that it may take as long as one hour for a new password to take effect.
Contact GoDaddy if you continue to experience technical problems. Dial (480) 505-8877 to speak with a support representative. Provide your customer PIN or the last four digits of the credit card you used to pay for your Web hosting. Providing either of these numbers identifies you to GoDaddy -- the customer service representative will not assist you without either of these numbers. Ask the support representative for your login information. The representative will email you the information to the email address associated with your Web hosting account.
In Feburary 2016 28,

How to Start an Online Goody Bag BusinessIn Feburary 2016 28,

In Feburary 2016 28,
Determine the type of goody bag products you are going to sell. Try to specialize within the niche. For instance, you can sell eco-friendly goody bags made from all-natural materials or hand-made gifts and treats. You can specialize in food items, or international gift items. Keep your product line simple and categorize your products according to price.
Analyze domain name options. Think of a domain name that reflects your product. Avoid using your business registered name but instead use a fictitious or DBA (Doing Business As) name that reflects the goody bag product. Remember the domain name is the name that will be remembered by customers, and it is easier to remember a name that is associated with goody bags.
Locate a webhosting service. Most of the websites that sell domain names also sell web hosting packages. As this is an e-commerce site use a webhosting space that is midsized. Pay on a monthly or yearly basis. Most web hosting companies charge between $5 to $10 a month.
Look through different website templates and e-store templates websites like Website Templates, Stylish Template or Steve's Templates to find one that may be appropriate for your new online goody bag business. Be sure the template has shopping card options. Write the descriptions and content for the goody bag website. Hire a freelance web designer to help you load the website you chose to your domain name.
Promote the website. Create a Facebook and Twitter account and add members and fans. Tweet about your goody bag service and explain why these make nice gifts for friends or business associates. Write articles about your product explaining the benefits and the types of gifts that can be chosen to be a part of the goody bag. Post the information on your website or blog. Create listings on auction websites like eBay Etsy. Place a link to your website in your listing. Place advertisements on bulletin boards like Craigslist or the Bulletin Board. Add your website address to business cards, and letterhead. Leave your business card on restaurant or store bulletin boards so people can find your website. Send out newsletters, and promotionals to customers who do buy from you.
Hire a search engine optimization specialist to help you list your website on a first page in the search engines. Think of search terms people might use to find a website like yours. Write these terms or keywords down and give them to the SEO specialist. Have him help you get a first page listing under those terms or other keywords like gifts, gift bags, goody bags, and others that refer to your particular niche. This way people will find your online goody bag business when looking for those terms.
In Feburary 2016 28,

How to Embed a Podcast in WordPressIn Feburary 2016 28,

In Feburary 2016 28,
Upload your podcast file to your Web server using an FTP client. This is necessary because on most blogs, you cannot upload large files through the dashboard. Put the podcast file in the main directory on your WordPress site; do not upload it to any of the sub-directories.
Log in to the WordPress dashboard from the 'wp-admin' directory of your website. Navigate to 'Posts' and click 'Add New.' Fill out the form with a title and description of the podcast.
Click the 'HTML' tab on the WordPress editor box. Copy and paste the following code into your post in the section where you want the audio player to appear:
This code is for the free Google Reader MP3 player. It will work on any Web page as long as your visitors' browsers are Flash-enabled. Most players require Flash, so this is a standard requirement.
Change 'MP3_FILE_URL' in the example code above to point to the URL of your podcast file. Additionally, change the 'width' value to adjust the width of the player, if you wish. You can change the height, too, but it looks best at the default setting of '27.'
Publish the post to your WordPress blog. The podcast will be embedded in your post.
In Feburary 2016 28,

How to Play 'Sim City' on a LANIn Feburary 2016 28,

In Feburary 2016 28,
Double-click the 'Sim City' desktop icon on two computers.
Navigate to the 'Multiplayer' portion of the menu on both computers. Press 'Enter' to enter the multiplayer menu.
Navigate to 'Host Game' on one computer. Press 'Enter.'
Choose to host a local, LAN game on the first computer. Press 'Enter' to begin hosting the game.
Navigate to 'Join Game' on the second computer. Choose to find local games in the filter.
Navigate to the room the first computer is hosting. Because this is only finding local games, there will only be one game in the lobby. Press 'Enter' to join the game.
In Feburary 2016 28,