'Revert Deleted' saved my a**


Today, While working on website project in NetBeans I accidentally deleted one of my important package containing more than 15 files in .....damn ...single...click!!!

I was totally shocked to hell !


But then after few unsuccessful tries I got History > Revert Deleted option and I recovered my work back. YIPPEE!!!!

Thanks To NeatBeans and Whoever added 'Revert' option in it.

You think this is not a big deal? Then ask any programmer who lost his code in HDD crash. 

To Recover Files,
Just right click on folder > History >> Revert Deleted 

To Recover Complete Folder,
Create new folder with same name >  Right click on folder > History >> Revert Deleted 




HTTP Status Codes

1xx : Informational
100 Continue
101 Switching Protocols

2xx : Successful
200 OK
201 Created
202 Accepted
203 Non-Authorized Information
204 No Content
205 Reset Content
206 Partial Content

3xx : Redirection
300 Multiple Choices
301 Moved Permanently
302 Moved Temporarily
303 See Other
304 Not Modified
305 Use Proxy

4xx : Client Error
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Accepted
407 Proxy Authentication Required
408 Requested Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
415 Unsupported Media Type

5xx : Server Error
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported


How To Set Environment Variables In UNIX And Linux


UNIX

How Environment Variables are set and used varies with the shell.

# env 
List all environment variables and their values

# env $HOME
/root

HOME is an environment and variable /root is value

# setenv VAR_NAME value
Set new environment variable.

# unsetenv VAR_NUM
Undefine existing environment variable.


Linux

# set
List all environment variables and their value.

# echo $HOME
Get value of environment variable.

# export NEW_VARIABLE=value
Set new variable with its value

# export PATH=${PATH}:/usr/app/application-x.x.x/bin
OR
# export MY_DIR=/local/dir
# export PATH=${PATH}:${MY_DIR}
(Add) Append new value in existing variable

All above settings are temporary or for opened terminal only.


To make Changes Permenant

Edit file .bash_profile using,
# vi ~/.bash_profile 

.bash_profile file already contains few script lines for setting PATH variable. 
If you wish to add new PATH value just append it to existing line using " : " (colon).
PATH=$PATH:$HOME/bin:/my/new/app/path 

OR If you wish to set new environment variable just add following lines at the end of file. NEW_VARIABLE=/my/app/path
export NEW_VARIABLE
 

Save and close the file.

Note:
.bash_profile file is get executed at the time of system startup or user logged in. So to watch your environment variable running (or removed) restrt or re-logging your system.