Amitabh Banik
(0 comments, 154 posts)
This user hasn't shared any profile information
Posts by Amitabh Banik
How to Disable ‘Auto adjust screen tone’ for Samsung Galaxy S4
0As we all know that Samsung Galaxy S4 comes with super Amoled capacitive touch screen. So disabling auto adjust screen can get you extra brightness for browsing web pages.
Samsung Galaxy S4 comes with Auto enabled screen tone. So, we can disable it manually by Settings > My device > Display > More settings.
By deselecting the square box we can disable the screen “Auto adjust screen tone”
PHP String Function wordwrap – Wraps a string to a given number of characters
0string wordwrap ( string
$str[, int$width= 75 [, string$break= "n" [, bool$cut= false ]]] )
Wraps a string to a given number of characters using a string break character.
Parameters
str- The input string.
width- The number of characters at which the string will be wrapped.
break- The line is broken using the optional
breakparameter. cut- If the
cutis set toTRUE, the string is always wrapped at or before the specified width. So if you have a word that is larger than the given width, it is broken apart. (See second example).
Example #1 wordwrap() example
<?php
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap($text, 20, "<br />n");
echo $newtext;
?>
The above example will output:
The quick brown fox<br /> jumped over the lazy<br /> dog.
Tango All-in-one social networking apps for Android
0Tango, the leading all-in-one social networking app, enables you to connect with friends and stay closer to family in a way that is easy, spontaneous, fun and fits the moment.
Tango gives you the highest quality video & phone calls, texts, photo & video sharing, games and more for FREE! It’s the all-in-one social networking app that finally combines every way you want to interact with friends & family. Join over 100M people around the world & Tango today!
✭ Easy to use
‣ No login & password – create an account in seconds
‣ Automatically finds your friends using Tango
‣ Calls and messages work just like they do on your phone
‣ Works across most smartphones, tablets, & PCs
How To Activate Windows 8 Professional
0Windows 8 can be downloaded from the Microsoft Website. After you download windows 8 Professional and install it Microsoft will prompt to activate your windows 8.You can activate your version of windows 8 after installation or in the process of being installed. Many computers coming with windows 8 gets automatically activate after being connected to the internet.So that you don’t need to do anything to activate it but if you are reinstalling windows or installing windows 8 than you need to activate it manually.
How to setup an MX Record in Bluehost?
0MX Records specify the server that will handle your email. This article will show you how to modify an MX Record using the DNS Zone Editor.
Accessing the DNS Zone Editor
- Log into the cPanel at www.bluehost.com or login.bluehost.com.
- Scroll down to the DNS Section.
- Click the DNS Zone Editor.
Creating an MX Record
- If you have multiple domains on your account make sure the correct domain name is selected from the Domain drop-down menu.
- Host Record: Enter the Host Record you would like to use.
- TTL: Unless otherwise instructed its best to leave the Time To Live at 14400.
- Type: From the drop down menu choose “MX
- Points To: Enter the Domain Name that will be handing the email.
- Note: This can not be an IP Address, you will need to use a Fully Qualified Domain.
Priority: The exact number is not as important as the order that you enter. The server with the lowest number will be the main or default mail server.
What is an ultrabook?
0Ultrabooks are thin and light laptops with Intel processors. That Intel part is key, since Intel coined the term, trademarked it, and works with PC makers to certify certain laptops as “ultrabooks.”
These laptops tend to weigh 4 pounds or less and measure less than 0.8 inches thick. Ultrabooks are available with screens ranging in size from 11.6 to 15.6 inches. They’re larger than netbooks, but typically they don’t weigh much more — and they offer far more computing power than a typical netbook.
Ultrabooks also have a few key features that set them apart from most other laptops, including:
- Either a solid state disk for storage or a hard drive with 16GB or more of solid state cache
- Quick boot speeds and nearly instant resume from sleep
- The ability to periodically poll the internet for updates even when the computer is sleeping
Intel sets a target price for ultrabooks at around $1000 or less, but some ultrabooks have much higher prices while a handful are available for less.
List of ultrabooks
Here are some of the most recent ultrabooks:
- Acer Aspire S3
- Acer Aspire S5
- Asus Zenbook UX21
- Asus Zenbook UX31
- Dell XPS 13
- Fujitsu Lifebook U772
- HP Folio 13
- HP Envy 4
- HP Envy 14 Spectre
- HP Envy Spectre XT
- Lenovo IdeaPad U300
- Lenovo IdeaPad U310
- Lenovo IdeaPad U410
- Lenovo IdeaPad U300S
- Lenovo ThinkPad T430U
- Samsung Series 5 13 inch ultrabook
- Samsung Series 5 14 inch ultrabook
- Sony Vaio T11
- Sony Vaio T13
How to check your Ubuntu version?
1It is easy to find out your current latest version of Ubuntu. To check which version of Ubuntu you are running, click System -> About Ubuntu. The first line of the page that loads will tell you the version number, for example Ubuntu 11.10(current latest version).
Check the list of Ubuntu versions to see how old your version is and whether an upgrade is available.
Checking with the command line
To check your Ubuntu version using the command line:
- Open a Terminal (Applications -> Accessories -> Terminal).
- Type lsb_release -a and press Enter.
- The Ubuntu version will be displayed on the screen.
How to test a drive for problems using Data Lifeguard Diagnostics for Windows?
0The Windows version of the Data Lifeguard Diagnostics utility can perform drive identification, diagnostics, and repairs on a Western Digital FireWire, EIDE, Serial ATA, Solid State or USB drive. In addition, it can provide you with the drive’s serial and model numbers.
To use the utility:
- Download Windows Data Lifeguard Diagnostics. You may need to extract this using an extraction utiltiy such as WinZip.
- Run the program, windlg.exe. If you’re running this under Windows 7 or Vista, you will need to Right-click on the windlg.exe file and select Run As Administrator.
- Read and accept the license agreement to continue.
- On the main program screen, there are two windows. In the top window, you will see the drives in your system that are available for testing. The model number, serial number, and capacity of each drive will be displayed. In the bottom window, the partition information for the selected drive will be displayed.
- Double-click the drive to be tested in the top window.
- The DLGDIAG – Select an Option window appears.
- You will see the following options:
QUICK TEST – performs SMART drive quick self-test to gather and verify the Data Lifeguard information contained on the drive.
EXTENDED TEST – performs a Full Media Scan to detect bad sectors. Test may take several hours to complete depending on the size of the drive.
WRITE ZEROS – writes zeros to the drive with options of Full Erase and Quick Erase. File system and data will be lost.
VIEW TEST RESULT – displays the latest test results.
- Select the test you wish to perform and click the Start button.
- When the test completes, you will be notified. Click the Close button.
- A web page will display the test results for the drive.
PHP String Functions
0PHP String Introduction
The string functions allow you to manipulate strings.
| Function | Description | PHP |
|---|---|---|
| addcslashes() | Returns a string with backslashes in front of the specified characters | 4 |
| addslashes() | Returns a string with backslashes in front of predefined characters | 3 |
| bin2hex() | Converts a string of ASCII characters to hexadecimal values | 3 |
| chop() | Alias of rtrim() | 3 |
| chr() | Returns a character from a specified ASCII value | 3 |
| chunk_split() | Splits a string into a series of smaller parts | 3 |
| convert_cyr_string() | Converts a string from one Cyrillic character-set to another | 3 |
| convert_uudecode() | Decodes a uuencoded string | 5 |
| convert_uuencode() | Encodes a string using the uuencode algorithm | 5 |
| count_chars() | Returns how many times an ASCII character occurs within a string and returns the information | 4 |
| crc32() | Calculates a 32-bit CRC for a string | 4 |
| crypt() | One-way string encryption (hashing) | 3 |
| echo() | Outputs strings | 3 |
| explode() | Breaks a string into an array | 3 |
| fprintf() | Writes a formatted string to a specified output stream | 5 |
| get_html_translation_table() | Returns the translation table used by htmlspecialchars() and htmlentities() | 4 |
| hebrev() | Converts Hebrew text to visual text | 3 |
| hebrevc() | Converts Hebrew text to visual text and new lines (n) into <br /> | 3 |
| html_entity_decode() | Converts HTML entities to characters | 4 |
| htmlentities() | Converts characters to HTML entities | 3 |
| htmlspecialchars_decode() | Converts some predefined HTML entities to characters | 5 |
| htmlspecialchars() | Converts some predefined characters to HTML entities | 3 |
| implode() | Returns a string from the elements of an array | 3 |
| join() | Alias of implode() | 3 |
| levenshtein() | Returns the Levenshtein distance between two strings | 3 |
| localeconv() | Returns locale numeric and monetary formatting information | 4 |
| ltrim() | Strips whitespace from the left side of a string | 3 |
| md5() | Calculates the MD5 hash of a string | 3 |
| md5_file() | Calculates the MD5 hash of a file | 4 |
| metaphone() | Calculates the metaphone key of a string | 4 |
| money_format() | Returns a string formatted as a currency string | 4 |
| nl_langinfo() | Returns specific local information | 4 |
| nl2br() | Inserts HTML line breaks in front of each newline in a string | 3 |
| number_format() | Formats a number with grouped thousands | 3 |
| ord() | Returns the ASCII value of the first character of a string | 3 |
| parse_str() | Parses a query string into variables | 3 |
| print() | Outputs a string | 3 |
| printf() | Outputs a formatted string | 3 |
| quoted_printable_decode() | Decodes a quoted-printable string | 3 |
| quotemeta() | Quotes meta characters | 3 |
| rtrim() | Strips whitespace from the right side of a string | 3 |
| setlocale() | Sets locale information | 3 |
| sha1() | Calculates the SHA-1 hash of a string | 4 |
| sha1_file() | Calculates the SHA-1 hash of a file | 4 |
| similar_text() | Calculates the similarity between two strings | 3 |
| soundex() | Calculates the soundex key of a string | 3 |
| sprintf() | Writes a formatted string to a variable | 3 |
| sscanf() | Parses input from a string according to a format | 4 |
| str_ireplace() | Replaces some characters in a string (case-insensitive) | 5 |
| str_pad() | Pads a string to a new length | 4 |
| str_repeat() | Repeats a string a specified number of times | 4 |
| str_replace() | Replaces some characters in a string (case-sensitive) | 3 |
| str_rot13() | Performs the ROT13 encoding on a string | 4 |
| str_shuffle() | Randomly shuffles all characters in a string | 4 |
| str_split() | Splits a string into an array | 5 |
| str_word_count() | Count the number of words in a string | 4 |
| strcasecmp() | Compares two strings (case-insensitive) | 3 |
| strchr() | Finds the first occurrence of a string inside another string (alias of strstr()) | 3 |
| strcmp() | Compares two strings (case-sensitive) | 3 |
| strcoll() | Locale based string comparison | 4 |
| strcspn() | Returns the number of characters found in a string before any part of some specified characters are found | 3 |
| strip_tags() | Strips HTML and PHP tags from a string | 3 |
| stripcslashes() | Unquotes a string quoted with addcslashes() | 4 |
| stripslashes() | Unquotes a string quoted with addslashes() | 3 |
| stripos() | Returns the position of the first occurrence of a string inside another string (case-insensitive) | 5 |
| stristr() | Finds the first occurrence of a string inside another string (case-insensitive) | 3 |
| strlen() | Returns the length of a string | 3 |
| strnatcasecmp() | Compares two strings using a “natural order” algorithm (case-insensitive) | 4 |
| strnatcmp() | Compares two strings using a “natural order” algorithm (case-sensitive) | 4 |
| strncasecmp() | String comparison of the first n characters (case-insensitive) | 4 |
| strncmp() | String comparison of the first n characters (case-sensitive) | 4 |
| strpbrk() | Searches a string for any of a set of characters | 5 |
| strpos() | Returns the position of the first occurrence of a string inside another string (case-sensitive) | 3 |
| strrchr() | Finds the last occurrence of a string inside another string | 3 |
| strrev() | Reverses a string | 3 |
| strripos() | Finds the position of the last occurrence of a string inside another string (case-insensitive) | 5 |
| strrpos() | Finds the position of the last occurrence of a string inside another string (case-sensitive) | 3 |
| strspn() | Returns the number of characters found in a string that contains only characters from a specified charlist | 3 |
| strstr() | Finds the first occurrence of a string inside another string (case-sensitive) | 3 |
| strtok() | Splits a string into smaller strings | 3 |
| strtolower() | Converts a string to lowercase letters | 3 |
| strtoupper() | Converts a string to uppercase letters | 3 |
| strtr() | Translates certain characters in a string | 3 |
| substr() | Returns a part of a string | 3 |
| substr_compare() | Compares two strings from a specified start position (binary safe and optionally case-sensitive) | 5 |
| substr_count() | Counts the number of times a substring occurs in a string | 4 |
| substr_replace() | Replaces a part of a string with another string | 4 |
| trim() | Strips whitespace from both sides of a string | 3 |
| ucfirst() | Converts the first character of a string to uppercase | 3 |
| ucwords() | Converts the first character of each word in a string to uppercase | 3 |
| vfprintf() | Writes a formatted string to a specified output stream | 5 |
| vprintf() | Outputs a formatted string | 4 |
| vsprintf() | Writes a formatted string to a variable | 4 |
| wordwrap() | Wraps a string to a given number of characters | 4 |


