Internet is vague. It has nothing left to be covered now. However, things get messed up sometimes and I forgot where I used to find the materials I had just searched for some days ago. So, I am now gathering all those into this blog. This is just my bookmark or my scrapbook or anything you wish to say. If you think these are helpful, you can take references, no any rights to be defined here. No styles and no colorful designs, just an area to jot down some scraps and all. Enjoy
Pages
Monday, June 3, 2013
How To Fix “421 Cleartext Sessions Not Accepted” Error In Filezilla?
Sunday, September 25, 2011
A Simple readout on VAR keyword and SCOPE #PHP #javascript
var means opposite of global :)
Thursday, July 14, 2011
Sunday, July 3, 2011
Google +1 Button in your site
Implement +1 button to your website
tag<script type="text/javascript" src="http://apis.google.com/js/plusone.js">script>
header.php file. Insert the javascript code to the tag to the place where you want it to appear.Parameter
href="your-url-here".Wednesday, June 23, 2010
Altering system default timezone in linux
http://www.cyberciti.biz/faq/howto-linux-unix-change-setup-timezone-tz-variable/
Change Linux timezone
Select the method as per your Linux distribution:If you are using Fedora / RHEL / Cent OS Linux
Type the redhat-config-date command at the command line to start the time and date properties tool.# redhat-config-dateOR type setup and select time zone configuration (good for remote ssh text based Linux server sessiob)
# setupSelect timezone configuration
Now, just follow on screen instructions to change timezone.
Set timezone using /etc/localtime configuration file [any Linux distro]
Often /etc/localtime is a symlink to the file localtime or to the correct time zone file in the system time zone directory.Generic procedure to change timezone
Change directory to /etc# cd /etcCreate a symlink to file localtime:
# ln -sf /usr/share/zoneinfo/EST localtimeOR some distro use /usr/share/zoneinfo/dirname/zonefile format (Red hat and friends)
# ln -sf /usr/share/zoneinfo/EST localtimeOR if you want to set up it to IST (Asia/Calcutta):
# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtimePlease mote that in above example you need to use directory structure i.e. if you want to set the timezone to Calcutta (India) which is located in the Asia directory you will then have to setup using as above.
Use date command to verify that your timezone is changed:
$ dateOutput:
Tue Aug 27 14:46:08 EST 2006
Use of environment variable
You can use TZ environment variable to display date and time according to your timezone:$ export TZ=America/Los_Angeles
$ date
Sample Output:
Thu Aug 27 11:10:08 PST 2006
Monday, June 21, 2010
Forgot your Google Apps Admin Password
If you are yourself admin then ?
hmm, no need to think more.
Just Visit this link
Eg.
https://www.google.com/a/cpanel/appsdomain.com/ForgotAdminAccountInfo
Replace appsdomain.com with your own apps domain
Friday, June 11, 2010
Setting up email server in Linux
oh !
...
no luck
...
but a good document to follow
http://flurdy.com/docs/postfix/index.html
and few more
http://www.hypexr.org/linux_mail_server.php
http://www.yolinux.com/TUTORIALS/LinuxTutorialMailMTA.html
Wednesday, June 9, 2010
download manger in linux - alternate to wget
However, I was just willing to download a large file with multiple concurrent connections on a single path, as many download mangers with GUI provide so.
Not sure, whether wget provides this, but just found a good one.
aria2c
however, its name was so confusing and odd one, I just did a quick ln -s and made it more familiar.
and here is what I did.
-c is for continuing what I downloaded using wget.
and for more easier name of the command.
# sudo ln -s /usr/bin/aria2c /usr/bin/download
so its now the following
# download -s 5 -c http://link-to-download-from-web
and this is the general output format for aria2c
WOW
Sunday, May 2, 2010
Understanding CSS Font Stacks
http://www.maxdesign.com.au/articles/font-stacks/
And, this is the actual FontStack Builder on Web
http://www.codestyle.org/servlets/FontStack
Tuesday, April 20, 2010
Estimating MySQL Dump Size before actual export
As far as searched through its not possible in MySQL
Here is the comparision between MySQL 6 and ORACLE.
http://blogs.mysql.com/peterg/category/mysql-60-new-features/
Will explore more, if any other tools are available.
However, one quick way might be something like,
checking the size in phpmyadmin or something like that, the rows and overhead by each tables,
then applying some ratios or compression factors to calculate the rough dump size,
It might be something useful.
Will try on this more.
However ORACLE > 10 has ESTIMATE_ONLY
Monday, April 19, 2010
NAT, DNAT, SNAT
Source NAT
Destination NAT
SNAT (Source Network Address Translation)
SNAT provides a secure mechanism for translating internal, nonroutable addresses into routable addresses. As traffic flows out of a data center, the gateway and source address of IP packets are translated and switched to the appropriate upstream gateway router. This ensures that traffic is sent and returned through the desired path.
NAT (network address translation)
To extend the reach of the IPv4 address space, companies have turned to using private IPv4 addresses through a public-to-private address translation technique known as network address translation (NAT).
NAT works by using the several million private addresses that have been put aside by the Internet Engineering Task Force, turning a public IP address such as 192. 156.136.22 into a private address, such as 10.0.0.4, for delivery to a user's PC. Private IP addresses cannot be "seen" by the Internet, and therefore may be reused by various enterprise networks.
In conjunction with a NAT-enabled gateway or router device, a privately addressed network may hide hundreds or thousands of hosts behind a single public address. The NAT device differentiates among the PCs by translating their port numbers into unique values.
But NAT is limited by applications such as streaming media that transmit IP addresses or port numbers in the payloads of packets. Such applications require that NAT take on application-specific knowledge and perform additional computation.
Worse, because NAT typically resides in a boundary router between private and public networks, it can't function with IP Security (IPSec), the popular encryption technology for virtual private networks. IPSec requires true end-to-end handshaking in order to set up initial encryption rules. Once encrypted at a client system, IPSec packets cannot be modified - or recognized - by NAT.
5.5. Destination NAT with netfilter (DNAT)
Destination NAT with netfilter is commonly used to publish a service from an internal RFC 1918 network to a publicly accessible IP. To enable DNAT, at least one iptables command is required. The connection tracking mechanism of netfilter will ensure that subsequent packets exchanged in either direction (which can be identified as part of the existing DNAT connection) are also transformed.
Proxy Server Definitions
High anonymity - HTTP Servers of this type don't send HTTP_X_FORWARDED_FOR, HTTP_VIA and HTTP_PROXY_CONNECTION variables. Host doesn't even know you are using proxy server an of course it doesn't know your IP address.
Sunday, April 11, 2010
IKE Proposals
http://docstore.mik.ua/univercd/cc/td/doc/product/vpn/vpn3002/4-1/referenc/ikeapp.htm
Following are the valid IKE Proposals
Table A-1 Valid VPN 3002 Hardware Client IKE Proposals
Monday, April 5, 2010
My PicJoke Favorties
http://en.picjoke.com/effect.php?effectnumber=208
http://en.picjoke.com/process.php?clipart_id=208&date=2010-04-06&picname=10-en-fd976edebdc42cf1eb2e2d11e022912e.jpg
BOSS
http://en.picjoke.com/effect.php?effectnumber=131
http://en.picjoke.com/process.php?clipart_id=131&date=2010-04-06&picname=7-en-fd976edebdc42cf1eb2e2d11e022912e.jpg
Wallpaper
http://en.picjoke.com/effect.php?effectnumber=140
http://en.picjoke.com/process.php?clipart_id=140&date=2010-04-06&picname=9-en-1145858648.jpg
Obama
http://en.picjoke.com/effect.php?effectnumber=79
http://en.picjoke.com/process.php?clipart_id=79&date=2010-04-06&picname=2-en-fd976edebdc42cf1eb2e2d11e022912e.jpg
Bill Gates
http://en.picjoke.com/effect.php?effectnumber=88
http://en.picjoke.com/process.php?clipart_id=88&date=2010-04-06&picname=10-en-fd976edebdc42cf1eb2e2d11e022912e.jpg
Coffee Cup and Newspaper
http://en.picjoke.com/effect.php?effectnumber=40
http://en.picjoke.com/process.php?clipart_id=40&date=2010-04-06&picname=7-en-fd976edebdc42cf1eb2e2d11e022912e.jpg
Thursday, March 18, 2010
PHP array_splice vs. array_slice
array array_slice ( array $array , int $offset [,int $length [, bool $preserve_keys = false ]] )
Extract a slice of the array
Example :$input= array("a", "b", "c", "d", "e");
$output = array_slice($input, 2); // returns "c", "d", and "e"
$output = array_slice($input, -2, 1); // returns "d"
$output = array_slice($input, 0, 3); // returns "a", "b", and "c"
// note the differences in the array keys
print_r(array_slice($input, 2, -1));
print_r(array_slice($input, 2, -1, true));
Splice
array array_splice ( array &$input , int $offset [, int $length = 0 [, mixed $replacement ]] )
Remove a portion of the array and replace it with something else
Example := array("red", "green", "blue", "yellow");
array_splice($input, 2);
// $input is now array("red", "green")
$input = array("red", "green", "blue", "yellow");
array_splice($input, 1, -1);
// $input is now array("red", "yellow")
$input = array("red", "green", "blue", "yellow");
array_splice($input, 1, count($input), "orange");
// $input is now array("red", "orange")
$input = array("red", "green", "blue", "yellow");
array_splice($input, -1, 1, array("black", "maroon"));
// $input is now array("red", "green",
// "blue", "black", "maroon")
$input = array("red", "green", "blue", "yellow");
array_splice($input, 3, 0, "purple");
// $input is now array("red", "green",
// "blue", "purple", "yellow");
Thanks - PHP.net
Flash Flipping Book HTML Version
its Joomla component version is used by Nagariknews.com and myrepublica.com
Demo goes here
http://page-flip.com/new-demos/03-kitchen-gorenje-2008/index.html
Pseudo Selectors CSS and JQuery
http://css-tricks.com/pseudo-class-selectors/
Tuesday, January 19, 2010
Logo Design Processes for 30 different logs
Saturday, January 9, 2010
17 javascript animation frameworks
Monday, December 21, 2009
Domain Name .TLD .com, .net, .org , etc...
| ac | Ascension Island |
| ac.uk | Education (UK) |
| ad | Andorra |
| ae | United Arab Emirates |
| af | Afghanistan |
| ag | Antigua and Barbuda |
| ai | Anguilla |
| al | Albania |
| am | Armenia |
| an | Netherlands Antilles |
| ao | Angola |
| aq | Antarctica |
| ar | Argentina |
| as | American Samoa |
| at | Austria |
| au | Australia |
| aw | Aruba |
| az | Azerbaijan |
| ba | Bosnia Hercegovina |
| bb | Barbados |
| bd | Bangladesh |
| be | Belgium |
| bf | Burkina Faso |
| bg | Bulgaria |
| bh | Bahrain |
| bi | Burundi |
| bj | Benin |
| bm | Bermuda |
| bn | Brunei Darussalam |
| bo | Bolivia |
| br | Brazil |
| bs | Bahamas |
| bt | Bhutan |
| bv | Bouvet Island |
| bw | Botswana |
| by | Belarus (Byelorussia) |
| bz | Belize |
| ca | Canada |
| cc | Cocos Islands (Keeling) |
| cd | Congo, Democratic Republic of the |
| cf | Central African Republic |
| cg | Congo, Republic of |
| ch | Switzerland |
| ci | Cote d'Ivoire (Ivory Coast) |
| ck | Cook Islands |
| cl | Chile |
| cm | Cameroon |
| cn | China |
| co | Colombia |
| co.uk | Commercial United Kingdom |
| com | Commercial |
| cr | Costa Rica |
| cs | Czechoslovakia |
| cu | Cuba |
| cv | Cape Verde |
| cx | Christmas Island |
| cy | Cyprus |
| cz | Czech Republic |
| de | Germany |
| dj | Djibouti |
| dk | Denmark |
| dm | Dominica |
| do | Dominican Republic |
| dz | Algeria |
| ec | Ecuador |
| edu | Educational Institution |
| ee | Estonia |
| eg | Egypt |
| eh | Western Sahara |
| er | Eritrea |
| es | Spain |
| et | Ethiopia |
| fi | Finland |
| fj | Fiji |
| fk | Falkland Islands |
| fm | Micronesia, Federal State of |
| fo | Faroe Islands |
| fr | France |
| ga | Gabon |
| gd | Grenada |
| ge | Georgia |
| gf | French Guiana |
| gg | Guernsey |
| gh | Ghana |
| gi | Gibraltar |
| gl | Greenland |
| gm | Gambia |
| gn | Guinea |
| gov | Government (US) |
| gp | Guadeloupe |
| gq | Equatorial Guinea |
| gr | Greece |
| gs | South Georgia and the South Sandwich Islands |
| gt | Guatemala |
| gu | Guam |
| gw | Guinea-Bissau |
| gy | Guyana |
| hk | Hong Kong |
| hm | Heard and McDonald Islands |
| hn | Honduras |
| hr | Croatia/Hrvatska |
| ht | Haiti |
| hu | Hungary |
| id | Indonesia |
| ie | Ireland |
| il | Israel |
| im | Isle of Man |
| in | India |
| int | International Organizations |
| io | British Indian Ocean Territory |
| iq | Iraq |
| ir | Iran, Islamic Republic of |
| is | Iceland |
| it | Italy |
| je | Jersey |
| jm | Jamaica |
| jo | Jordan |
| jp | Japan |
| ke | Kenya |
| kg | Kyrgyzstan |
| kh | Cambodia |
| ki | Kiribati |
| km | Comoros |
| kn | Saint Kitts and Nevis |
| kp | Korea, Democratic People's Republic |
| kr | Korea, Republic of |
| kw | Kuwait |
| ky | Cayman Islands |
| kz | Kazakhstan |
| la | Lao People's Democratic Republic |
| lb | Lebanon |
| lc | Saint Lucia |
| li | Liechtenstein |
| lk | Sri Lanka |
| lr | Liberia |
| ls | Lesotho |
| lt | Lithuania |
| lu | Luxembourg |
| lv | Latvia |
| ly | Libyan Arab Jamahiriya |
| ma | Morocco |
| mc | Monaco |
| md | Moldova, Republic of |
| me | Montenegro |
| mg | Madagascar |
| mh | Marshall Islands |
| mil | Military (US Dept of Defense) |
| mk | Macedonia, Former Yugoslav Republic |
| ml | Mali |
| mm | Myanmar |
| mn | Mongolia |
| mo | Macau |
| mp | Northern Mariana Islands |
| mq | Martinique |
| mr | Mauritania |
| ms | Montserrat |
| mt | Malta |
| mu | Mauritius |
| mv | Maldives |
| mw | Malawi |
| mx | Mexico |
| my | Malaysia |
| mz | Mozambique |
| na | Namibia |
| nc | New Caledonia |
| ne | Niger |
| net | networks |
| nf | Norfolk Island |
| ng | Nigeria |
| ni | Nicaragua |
| nl | Netherlands |
| no | Norway |
| np | Nepal |
| nr | Nauru |
| nt | Neutral Zone |
| nu | Niue |
| nz | New Zealand |
| om | Oman |
| org | Organization (non-profit) |
| pa | Panama |
| pe | Peru |
| pf | French Polynesia |
| pg | Papua New Guinea |
| ph | Philippines |
| pk | Pakistan |
| pl | Poland |
| pm | St. Pierre and Miquelon |
| pn | Pitcairn Island |
| pr | Puerto Rico |
| ps | Palestinian Territories |
| pt | Portugal |
| pw | Palau |
| py | Paraguay |
| qa | Qatar |
| re | Reunion Island |
| ro | Romania |
| ru | Russian Federation |
| rw | Rwanda |
| sa | Saudi Arabia |
| sb | Solomon Islands |
| sc | Seychelles |
| sd | Sudan |
| se | Sweden |
| sg | Singapore |
| sh | St. Helena |
| si | Slovenia |
| sj | Svalbard and Jan Mayen Islands |
| sk | Slovak Republic |
| sl | Sierra Leone |
| sm | San Marino |
| sn | Senegal |
| so | Somalia |
| sr | Suriname |
| sv | El Salvador |
| st | Sao Tome and Principe |
| sy | Syrian Arab Republic |
| sz | Swaziland |
| tc | Turks and Caicos Islands |
| td | Chad |
| tf | French Southern Territories |
| tg | Togo |
| th | Thailand |
| tj | Tajikistan |
| tk | Tokelau |
| tm | Turkmenistan |
| tn | Tunisia |
| to | Tonga |
| tp | East Timor |
| tr | Turkey |
| tt | Trinidad and Tobago |
| tv | Tuvalu |
| tw | Taiwan |
| tz | Tanzania |
| ua | Ukraine |
| ug | Uganda |
| uk | United Kingdom |
| um | US Minor Outlying Islands |
| us | United States |
| uy | Uruguay |
| uz | Uzbekistan |
| va | Holy See (City Vatican State) |
| vc | Saint Vincent and the Grenadines |
| ve | Venezuela |
| vg | Virgin Islands (British) |
| vi | Virgin Islands (USA) |
| vn | Vietnam |
| vu | Vanuatu |
| wf | Wallis and Futuna Islands |
| ws | Western Samoa |
| ye | Yemen |
| yt | Mayotte |
| yu | Yugoslavia |
| za | South Africa |
| zm | Zambia |
| zw | Zimbabwe |
New Domains
| Air-transport industry | |
| asia | Asian Countries |
| biz | Businesses |
| coop | Cooperatives |
| eu | European Countries |
| info | Unrestricted use |
| museum | Museums |
| name | Individuals |
| pro | Accountants, lawyers, and physicians |
| travel | Travel related businesses |