Showing posts with label result. Show all posts
Showing posts with label result. Show all posts

Saturday, 27 February 2016

Twitter API Password Length LimitIn Feburary 2016 27,

In Feburary 2016 27,
An API is a defined way for a program to carry out a task, the detailed set of instructions to repeatedly perform the same assignment. Because a site such as Twitter requires users to log in and provide an associated password, programmers using associated APIs to interact with Twitter can encounter username and password issues.
Password Requirements
Twitter itself has no password length limit for its users. As a result, the Twitter API similarly does not have a maximum ceiling regarding password length. The same combination of letters, numbers and characters that comprise a password for a Twitter login will crossover within the Twitter API world. Any sequence of characters -- with the exception of white space -- is acceptable.
Twitter API Uses
Programmers can turn to the Twitter API to create an application that combines Twitter's capabilities with a programmer's own site. Programmers can also use API to simplify a user's experience with Twitter on a mobile device or to provide any number of related services. In these cases, a programmer can prompt for a user to provide her Twitter username and password without the third-party program itself actually storing the password. The developers section of Twitter dedicates a portion of its space to an API FAQ for additional information.
Warnings
Even though the Twitter API does not have a password length limit, programmers who intend for their users' submissions to still interact with Twitter must pay attention to length limits when it comes to the tweets themselves, which are limited to 140 characters. The Twitter API FAQ provides an explanation to programmers on how to expedite the process of counting characters.
In Feburary 2016 27,

Saturday, 20 February 2016

How to Get Rid of the Red X on a WebsiteIn Feburary 2016 20,

In Feburary 2016 20,
Contact the web page administrator if it is not your web page. The administrator will have to fix the page coding or upload the correct images to remove the red 'X.' You can usually find the contact information at the bottom of web page or on a contact page listed in the site links.
Check your Internet connection. If you are viewing a web page and your Internet connection goes down, the page will not display correctly. This can result in the red 'X' appearing where images should be. Check your modem. If the connection lights are not lit, unplug the modem, then plug it back. It should take about 10 minutes for the modem to restart. If the Internet connection light does not light up after 10 minutes, call your Internet provider.
Open the web page in a text editor if it is your own web page. Check the URLs of all your IMG tags. For example, if the image tag says, , check the images folder for a green.jpg. If it is not there, change the URL, or upload the image to that folder.
Check to see if Internet Explorer has images turned off. Go to 'Tools,' then 'Internet Options.' Next, click on the 'Advanced' tab. Check the box that says 'Show Pictures.'
Turn off your anti-virus software, then check the website again. Some anti-virus software can block images.
In Feburary 2016 20,

Friday, 19 February 2016

How to Use the SUM Function in MySQLIn Feburary 2016 19,

In Feburary 2016 19,
Use the SUM aggregate function. SUM will add all of the selected columns together.
Notice how, in this example, you'll sum all of the negative balances to calculate the total amount owed to you by your customers. The result returns in a column called SUM(balance). Example:
SELECT SUM(balance) FROM customers WHERE balance
Use the AVG Function in MySQL
Use the AVG aggregate function. This aggregate is similar to SUM. However, instead of adding the columns, it adds them and then divides by the total number of columns, giving you an average of the column values.
Use AVG in much the same way SUM is used. Here, the example calculates the average amount of money owed by customers. Results return in a column called AVG(balance). Example:
SELECT AVG(balance) FROM customers WHERE balance
Use the COUNT Function in MySQL
Use the COUNT aggregate function. This function is slightly different than SUM or AVG. It returns the number of rows returned, which can be useful in a number of situations--for example, to see the number of customers who owe money.
See how this example counts the customers who owe money and returns the result in a column called COUNT(
). Example:
SELECT COUNT(
) FROM customers WHERE balance
Use the DISTINCT COUNT Function in MySQL
Use the DISTINCT COUNT aggregate function. The function can be used to return the number of distinct rows, meaning those rows with differing values. Theoretically, you might have a lot of customers with the same phone number. To get the number of households your customers live in, you can use this type of query.
Use the following example to return the number of customers with distinct phone numbers. Customers with the same phone number will not be counted. The results are returned in a column called COUNT(DISTINCT ph_number). Example:
SELECT COUNT(DISTINCT ph_number) FROM customers;
In Feburary 2016 19,

Tuesday, 16 February 2016

How to Convert Epoch Time in C++In Feburary 2016 16,

In Feburary 2016 16,
Include the C++ standard library's time functionality into your application. Add the following line to the top of your include list:include
Obtain the seconds elapsed since the epoch, and store it locally. Do this by calling time(), and storing the result into an object of type time_t. The time function also accepts a pointer to an object of type time_t as an argument, but it is simpler to store this object locally on the stack:time_t timeSinceEpoch = time(NULL);
Create a time structure to store the result of the time conversion. This structure is defined in the time.h header file as a structure named tm, and provides conveniently-named member variables for each component of the converted time:tm timeResult;
Use one of the built-in conversion functions to store the time_t value obtained earlier as a tm structure. For simplicity, the following code converts a time_t object into a UTC tm structure:timeResult = gmtime( &timeSinceEpoch );
In Feburary 2016 16,

Monday, 15 February 2016

How to Test SSL ConnectionsIn Feburary 2016 15,

In Feburary 2016 15,
Navigate to the Secure Server SSL Connection Test website (see Resources).
Allow the website to load in your browser. As the website is testing whether your computer is configured for SSL, the webpage may take a few moments to load. If the webpage returns a result of 'Successful' at the top of the page, your computer is configured for SSL.
Click 'I Understand the Risks' after entering the test website into your browser's navigation bar, if you are using the Firefox browser. Click 'Add exception,' then 'Get Certificate' and finally 'Confirm Security Exception.' The test website will then load and your results will be displayed.
Data Consultants Website Test
Navigate to the Data Consultants webpage (see Resources).
Click 'Test ssl connection.' Allow the website to load in your browser. If the webpage returns a result of 'Your browser established SSL (Secure Sockets Layer) connection with this server' at the top of the page, your computer is configured for SSL.
Click 'I Understand the Risks' after entering the test website into your browser's navigation bar, if you are using the Firefox browser. Click 'Add exception,' then 'Get Certificate' and finally 'Confirm Security Exception.' The test website will then load and your results will be displayed.
Nettally Website Test
Navigate to the Nettally website (see Resources).
Allow the website to load in your browser. If the webpage returns a result of 'Successful' at the top of the page, your computer is configured for SSL.
Click 'I Understand the Risks' after entering the test website into your browser's navigation bar, if you are using the Firefox browser. Click 'Add exception,' then 'Get Certificate' and finally 'Confirm Security Exception.' The test website will then load and your results will be displayed.
In Feburary 2016 15,

Friday, 12 February 2016

How to Change the Default Password on Your iPhoneIn Feburary 2016 12,

In Feburary 2016 12,
Launch Cydia using the icon in your iPhone's main menu. Tap the 'Search' tab and search for 'mobileterminal,' then tap the result, tap 'Install' and follow the onscreen instructions to install the MobileTerminal app.
Run Terminal to bring up a standard UNIX command prompt. If you don't know how to navigate these, don't worry; the next few steps will be all you need.
Type 'su root' and tap 'Return.' You'll be prompted for a password. The default iPhone root password is 'alpine.' Once you enter this, you'll have logged into your iPhone as root -- the most powerful, highly privileged account possible.
Type 'passwd' and tap 'Return.' You'll be prompted, twice, for a new password. Enter whatever you want. When you're done, you can close the Terminal app -- your password has been changed.
In Feburary 2016 12,

Monday, 8 February 2016

What Is the PHP Mail Character Limit?In Feburary 2016 08,

In Feburary 2016 08,
The PHP 'mail' function takes three required and two optional parameters, all of which are strings. The first parameter contains the email address of the recipient. The second has the subject of the message. The third parameter is the email message itself. The fourth parameter contains extra headers such as 'From,' 'Cc' and 'Bcc.' The last parameter contains any flags that should be passed on the command line. The function returns a Boolean value that indicates whether the message was successfully relayed to the mail server. For example:$result = mail($to, $subject, $message, $headers);
Email Size
PHP does not impose any special limits on the size of an email message. It does, however, establish the maximum amount of memory that a single script can consume. This setting is called 'memory_limit' and can be modified in the 'php.ini' setup file, usually found in '/etc/php5/apache2/.' The default setting is 8 MB for PHP versions prior to 5.2 and 128MB in PHP 5.2 and later. Since an email message is a string passed to a function, that string cannot cause the script to exceed the 'memory_limit' parameter. This limit is not affected by email attachments because the contents of an attachment are not passed in memory to a PHP function.
Character Limits
PHP imposes a limit of 70 characters for each line in the text of an email message. This means that you have to insert the line feed character '\n' to break an email message into multiple lines if the message is more than 70 characters long. The PHP 'wordwrap' function will do this for you by passing it the message string and the maximum width of 70, for example:$result = mail($to, $subject, wordwrap($message, 70), $headers);
PHP Relay
PHP does not send an email message. It relays a message to a mail transport agent, or MTA, such as Exim, Microsoft Exchange, Postfix, qmail or Sendmail. The MTA sends the email to the recipient. The return value from the PHP 'mail' function indicates the success of the relay to the MTA, not of the delivery to the recipient. If an MTA imposes restrictions on the size of an email, including attachments, and the message exceeds that limit, the PHP 'mail' function will return a successful result and the message will fail with the MTA. The MTA will typically send an email to the sender indicating that the message was not sent because it exceeded the maximum size permitted.
In Feburary 2016 08,

Saturday, 6 February 2016

How to Check MySQL Null on PHPIn Feburary 2016 06,

In Feburary 2016 06,
Open your PHP source file in a text editor, such as Windows Notepad.
Use the 'mysql_query(query)' function to send a MySQL query to the active database. For example, '$result=mysql_query('Select my_var from my_table');'.
Use the 'mysql_fetch_assoc(result)' function inside a 'while' loop to fetch rows from the MySQL result. For example, 'while ($my_values=mysql_fetch_assoc($result)) {'.
Use the 'is_null(variable)' function inside the 'while' loop to determine if a field from a returned row has a NULL value. For example, if (is_null($my_values['my_var'])) { echo 'is NULL'; } }' will print 'is NULL' for any values of 'my_var' that are NULL.
Save the PHP file.
In Feburary 2016 06,