Showing posts with label editor. Show all posts
Showing posts with label editor. Show all posts

Sunday, 28 February 2016

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,

Wednesday, 24 February 2016

How to Write a Java Application Program That Prompts a User to Input One After the OtherIn Feburary 2016 24,

In Feburary 2016 24,
Start a new project in NetBeans by clicking on its icon, selecting 'File/New Project', and choosing 'Java Applicatoin.' A new Java project is created and a source code file appears in the NetBeans text editor. The source code file has a main function and little else.
Import the 'Console' class by writing this line at the top of the source code file:import java.io.Console;
Create a new Console object by writing the following line of code between the curly brackets of the main function:Console c = System.console();
Declare a couple of strings, one for a user's name, and one for the user's password. You can accomplish this by writing the following:String userName, password;
Prompt the user to enter his or her user name using the following line of code:userName = c.readLine('Enter your user name and press enter: ');
Repeat the last step for the user's password, like this:password = c.readLine('Enter your password and press enter: ');
Run the program by pressing F6. The program will prompt you to enter a name. After you enter your name, it will ask you for a password. You can add more prompts if you would like. All you have to do is repeat the previous step and add more strings to hold the data.
In Feburary 2016 24,

Saturday, 20 February 2016

How to Add a Foreign Key to MySQLIn Feburary 2016 20,

In Feburary 2016 20,
Click the Windows 'Start' button and click 'All Programs.' Click 'MySQL' and then click 'MySQL Workbench' to open your main console.
Click 'Edit SQL Script' in the main console window. This opens a SQL editor where you create the foreign key.
Type the following code into your editor:alter table table_name add constraint key_name foreign keyreferences tbl_name primary_keyThe first line sets the foreign key. Replace 'table_name' with the name of your table. 'Key_name' is the name of the column in your table you want to set as the foreign key. The second line is the primary key information to link to the foreign key. Replace 'tbl_name' with the table that contains the primary key and 'primary_key' with the primary key column name.
Click 'Run' to run your SQL statement. The foreign key is created, and your tables are set up with the linked attributes.
In Feburary 2016 20,

Friday, 19 February 2016

How to Set Up a CentOS Email ServerIn Feburary 2016 19,

In Feburary 2016 19,
Open a terminal by clicking 'Applications,' 'Accessories,' and 'Terminal.'
Type 'sudo yum install postfix.i386.' Give the root password if asked and answer 'yes' to any questions. PostFix is used to send and receive email from the Internet. Type 'sudo yum install dovecot.' Again, give the root password and answer yes to any questions you are asked by the installer. Dovecot will provide users with IMAP or POP3 access to their email accounts.
Edit the configuration file for Postfix. Type 'sudo nano /etc/postfix/main.cf' to open the configuration file in the Nano text editor. The defaults will work well for most systems, but a more sophisticated mail server will require you to specify some of the options in the configuration file. The most important setting is 'home_mailbox.' This will be each user's mailbox directory in their homepage. If you wish to use the Maildir format, the directory should end with a trailing forward slash, like this:home_mailbox = mail/Another option is the mbox format, and to use this format, simply leave off the trailing forward slash: home_mailbox = mailBoth formats are powerful, however there are subtle and complex differences between them. Whichever you choose to use, remember that choice. Find the 'myhostname' and 'mydomain' settings and give them the domain name you have associated with your computer. For example, if you own the domain name 'happy.com,' the options should read:myhostname=mail.happy.com
mydomain=happy.comYou can exit nano by hitting Ctrl-O (to save) and Ctrl-X (to exit.)
Edit the configuration file for Dovecot. Type 'sudo nano /etc/dovecot.conf.' The most important option is protocols. Ensure that this includes the protocol you wish your email users to use. The most popular options are 'imap' and 'pop3,' and you can enable secure connections by appending an 's' to each option.
Set the mail location to the same directory you chose in Step 3. Precede it with the format you choose in step 3. For example:mail_location = maildir:~/mailormail_location = mbox:~/mailFinally, if you use a 64-bit version of CentOS, change the 'login_process_size' to '64.'
Create a user mailbox. Type the following:mkdir /home/bill/mail
chown bill:bill /home/bill/mail
chmod -R 700 /home/john/mailThis creates the mail directory, ensures that the user owns his mail directory, and allows him to access it. This must be repeated for each user who has an email account. In this example, 'bill' has the email account 'bill@happy.com.'
Start the server. Type this code in the terminal:chkconfig --level 345 dovecot on
/etc/init.d/dovecot start
/etc/init.d/postfix start
In Feburary 2016 19,

How Do I Create a Hyperlink to a Zipped File?In Feburary 2016 19,

In Feburary 2016 19,
Upload the zipped file to your web server, into whatever directory or folder you'd like it to be. You can upload the file using your website hosting control panel or any basic FTP client software.
Save a copy of your web page to your hard drive--save just the page on which you want to create the link. You can save the file using your web browser, the web hosting control panel, or by downloading it with your FTP software.
Open your web page HTML file with a basic text editor such as Windows Notepad, NoteTab or Notepad++.
Select the location in your web page that you'd like to create the hyperlink. Remember that you are viewing the raw HTML code when it's open in a text editor, so you'll need to be sure you place your new hyperlink anywhere after the opening body tag (
), but before the closing body tag (
).
Craft your hyperlink using the full HTML path to your zipped file, like this:Zipped' rel='nofollow' target='_blank'>http://www.yourwebsite.com/folder/zipped.zip">Zipped File'yourwebsite.com' will of course by your own website domain name and extension.
'folder' will be the folder name into which you placed the zip file.
'zipped.zip' will be the actual name of the zipped file for which you are creating the hyperlink.
The words 'Zipped File' will be the words that show as linked on your web page, and they can be whatever you'd like. 'Click here to download this zipped file' for example, would be a nice descriptive phrase that tells people exactly what to do.
Save the changes to your web page file, then reload it onto your web server to make the changes live on your site.
In Feburary 2016 19,

Saturday, 6 February 2016

How to Fix Winsock Error 10060 'Connection Timed Out'In Feburary 2016 06,

In Feburary 2016 06,
Open the Registry Editor by clicking the 'Start' menu and then 'Run.' Type 'Regedt32.exe' in the run dialog box, and click 'Ok.' You should now see the registry editor.
Open the 'Edit' menu, and click 'Add Value.'
Type the following information into the next window that appears: Value Name: TcpMaxDataRetransmissionsValue Type: REG_DWORD - NumberValid Range: 0 - 0xFFFFFFFFDefault Value: 5 DecimalNew Value: 10 DecimalClick 'Ok.'
Quit the Registry Editor, and restart the computer. Test your connectivity after the computer fully reboots to see if the 10060 connection timed-out error still occurs.
In Feburary 2016 06,

Thursday, 4 February 2016

How to Create a Proxy Server With PHPIn Feburary 2016 04,

In Feburary 2016 04,
Search online for a good Web hosting company that offers support for PHP and sign up for an account. Because PHP is so widely used, most companies offer support for it by default. Furthermore, you can run PHP scripts on almost any free Web host.
Use a FTP client to log in to your Web hosting account. Navigate to the 'public_html' folder and open the 'php.ini' file in a text editor ( for example, Notepad or WordPad). Set the 'safe_mode' setting to 'Off' and the 'allow_url_fopen' setting to 'On' to allow the proxy server to connect to other servers. Save and close the file. If these two settings are not present, add them at the bottom of the file.
Open your favorite Web browser on your computer and navigate to the 'code.google.com/p/caprio' Web page. Click on the 'Downloads' link in the navigation bar and click on the 'PHP Proxy Script' link in the next page. Click on the 'CaprioPHP-Script.zip' link and save the archive on your hard disk drive.
Right-click on the archive and select 'Extract' from the resulting menu. Select a location to save the script to and click the 'Extract' button. Upload the 'PHProxy.class.php,' 'index.php,' 'url_form.inc,' 'javascript.js' and 'style.css' files to the root of your Web hosting account.
Use the Web browser to navigate to your account's URL and enter the destination URL in the box. Click on 'OK' to save the changes and your proxy server is up and running. It will forward all requests from your users to the destination URL.
In Feburary 2016 04,