System Utilities

System Utilities

Notepad++

Notepad++ is a free source code editor and Notepad replacement that supports several languages.


Unlocker

Unlocker is an explorer extension that allows you with a simple right-click of the mouse on a file or folder to get rid of

error message such as error "Can not delete Folder: it is being used by another person or program."


CCleaner

CCleaner is a freeware system optimization, privacy and cleaning tool. It removes unused files from your system - allowing Windows to run faster and freeing up valuable hard disk space. It also cleans traces of your online activities such as your Internet history. Additionally it contains a fully featured registry cleaner.


Recuva

Accidentally deleted an important file? Lost something important when your computer crashed? No problem! Recuva recovers files deleted from your Windows computer, Recycle Bin, digital camera card, or MP3 player


WinMerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.

Beyond Compare



PDF Tools

Foxit Reader
Foxit Reader allows for annotating, highlighting, drawing and saving unfinished PDF forms.


CHM2PDF Pilot

Convert CHM to PDF file


Unlock PDF Restrictions with PDF Unlocker Tool

PDF Unlocker is a pdf restriction removal tool to remove restrictions added to PDF files.


Remove restrictions from PDF files online

http://www.ensode.net/roller/dheffelfinger/entry/pdf_unlock_utility

http://www.ensode.net/pdf-crack.jsf


http://www.pdfunlock.com/


Merge PDF Documents Easily and for Free

http://www.mergepdf.net/


Minimize Applications to System Tray

TrayIt!


Resources:

http://www.greendown.cn/


IBM HMC Commands Miscs

IBM HMC Commands Miscs

lssyscfg command

Syntax

To list partition attributes:

lssyscfg -r lpar [ --filter "FilterData" ] [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]

To list partition profile attributes:

lssyscfg -r prof [ --filter "FilterData" ] [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]

To list system attributes:

lssyscfg -r sys [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]

Description

The lssyscfg command lists attributes of partitions, partition profiles, or the managed system.

Flags

-r ResourceType

The type of resources to list:

lpar: Logical partition resources

prof: Logical partition profile resources

sys: Managed system resources

-m ManagedSystem

The name of the managed system. This attribute is optional because there is only one system to manage. The name may either be the user-defined name for the managed system, or be in the form tttt-mmm*ssssssss, where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed system.

-F AttributeNames

A delimiter separated list of attribute names for the desired attribute values to be displayed for each resource. If no attribute names are specified, then values for all of the attributes for the resource will be displayed.

Examples:

# lssyscfg -r sys -F name,state

Server-9117-MMA-SN10D52E2,Operating

Server-9117-MMA-SN10FE8C3,Operating

show Lpar0 state

# lssyscfg -r lpar -F name,state -m Server-9117-MMA-SN10FE8C3

SF75LH320ESS01,Running

# To list the attributes for the managed system, type:

lssyscfg -r sys

# To list only the user-defined name, machine type and model, and serial number for the managed system, type:

lssyscfg -r sys -F name:type_model:serial_num

lssyscfg -r sys -m Server-9117-MMA-SN10FE8C3

List the partitions lpar1, lpar2, and lpar3:

lssyscfg -r lpar -m Server-9117-MMA-SN10FE8C3 --filter "lpar_names=lpar1,lpar2,lpar3"


chsyscfg command

Changes attributes of logical partitions, logical partition profiles, or the managed system.

To change system attributes:

chsyscfg -r sys { -f ConfigurationFile | -i ConfigurationData } [ -m ManagedSystem ]

To change partition attributes

chsyscfg -r lpar { -f ConfigurationFile | -i ConfigurationData } [ -m ManagedSystem ]

To change partition profile attributes, the Host Ethernet Adapter logical port assignments, or the logical Host Ethernet Adapter capabilities

chsyscfg -r prof { -f ConfigurationFile | -i ConfigurationData } [ -m ManagedSystem ]


-f ConfigurationFile

The name of the file containing the configuration data needed to change the resources. The configuration data consists of attribute name and value pairs, which are in comma separated value (CSV) format. These attribute name and value pairs form a configuration record. A line feed marks the end of a configuration record. The file must contain one configuration record for each resource to be changed, and each configuration record must be for the same resource type. If the resource type is the managed system, then the file must contain only one configuration record.


Examples:

chsysstate -m Server-9117-MMA-SN10FE8C3 -n SF75LH320ESS01 -o on -r lpar -f SF75LH320ESS01

chsysstate --help

1. To change the user defined name for the managed system, type:

chsyscfg -r sys -i "new_name=sys1"

2. Change partitions using the configuration data in the file /tmp/lparfile:

chsyscfg -r lpar -m sys1 -f /tmp/lparfile

3. To reduce a partition profile's assigned and minimum memory by 256 MB, type:

chsyscfg -r prof -i "lpar_name=partition3,min_mem-=256,desired_mem-=256"


<cec_name>= lssyscfg -r sys -F name
<mt*ms>= model_type*model_serial  (created from cec_name)
<lpar_name>= lssyscfg -r lpar -m <cec_name> -F name,lpar_id
<fsp_ipaddr>= lssyscfg -r sys -F name,ipaddr
<partition_profile_name> = lssyscfg -r lpar -m <cec_name> -F default_profile

Check State of CECs:    lssyscfg -r sys -F name,state
Check State of Lpars:   lssyscfg -r lpar -m <cec_name> -F name,lpar_id,state
Power off lpar
# chsysstate -r lpar -m <cec_name> -n <lpar_name>  -o osshutdown -r lpar
# chsysstate -r lpar -m <cec_name> -n <lpar_name>  -o shutdown -r lpar –immed

Restart lpar:   chsysstate -r lpar -m <cec_name> -n <lpar_name>  -o osshutdown  –-restart
Activate lpar:  chsysstate -r lpar -m <cec_name> -n <lpar_name>  -f <partition_profile_name> -o on
Shutdown CEC:   chsysstate -r sys -m <cec_name> -o off
IPL CEC:              chsysstate -r sys -m <cec_name> -o on
View Partition Profile:  lssyscfg -r prof -m <cec_name> --filter "lpar_ids=<lpar#>" -F –header
View FSP IP Addr:       lssyscfg -r sys -F name,ipaddr,state,mm_server_num


hmcshutdown - shut down the Hardware Management Console
hmcshutdown -t {now | number-of-minutes} [-r] [--help]
-t     The number of minutes to wait before starting the shutdown.  If now is specified, the  shutdown  will
be started immediately.
-r     Reboot the HMC after the shutdown.  If this option is omitted, the HMC will be halted after the shut-
down.
Reboot the HMC after 3 minutes:    hmcshutdown -t 3 -r
Halt the HMC immediately:              hmcshutdown -t now


https://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/iphc3_p5/iphc3planmprmc.htm

RMC is a no charge feature of AIX 5L Version 5.1 and above that can be configured to monitor resources and perform an action in response to a defined condition. The flexibility of RMC enables you to configure response actions or scripts that manage general system conditions with little or no involvement from the system administrator. On the HMC, RMC is being used as the main communication channel between AIX and Linux partitions and the HMC.

lspartition -dlpar
http://www-01.ibm.com/support/docview.wss?uid=isg3T1010615
http://www.ibm.com/developerworks/systems/articles/DLPARchecklist.html

If the results for your partition are <Active 1>, then the RMC connection is established.
In order for RMC to work, port 657 upd/tcp most be open in both directions between the HMC public interface and the lpar.

Look for the partition in question. In order for dlpar to function, the partition must be returned, the partition must return with the correct IP of the lpar. Also, the active value must be higher than zero, and the decaps value must be higher 0x0
lssrc -a | grep rsct
lsnodes -a Status
rmcctrl  -z/-A


Resources:

https://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/iphcg/errlog.htm

https://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/iphcg/chsyscfg.htm


Taking Notes from Learning Vim

Taking Notes from Learning Vim

Categories of Vim (vi Improved) Features:

Syntax extensions, Programmer assistance, Graphical user interface (GUI) features, Scripting and plug-ins, Initialization,

Session context, Postprocessing, Keyword completion.

Transparent editing

Vim detects and automatically unbundles archived or compressed files. You can directly edit a zipped file such as myfile.tar.gz. You can even editdirectories. Vim lets you navigate a directory and select files to edit using familiar Vim navigation commands.

Meta-information

Vim offers four handy read-only registers from which the user may extract meta-information for “puts”: the current filename (%), the alternate filename (#), the last command-line command executed (:), and the last inserted text (., a period). 

Vim also lets you drop back to a vi-compatible mode with its compatible option (:set compatible).

Major Vim Improvements over vi

Built-in Help :help :help split

Tab completion in Vim’s command line 

Startup and Initialization Options :help startup

Command-Line Options

-b  Edit in binary mode.

-c[cmd] command  command will be executed as an ex command.

-C  Run Vim in compatible (vi) mode.

-d[or vimdiff]  Start in diff mode

-E  Start in improved ex mode.

-g  Start gvim (GUI)

-m  Turn off the write option. Buffers will not be modifiable.

-o  Open all files in a separate window.

-O  Like -o, but opens vertically split windows.

-y  Run Vim in easy mode.

Behaviors Associated to Command Name

vim, gvim[vim -g], vimdiff, gvimdiff

view, gview  Start Vim or gvim in read-only mode. Same as vim -R.

rvim         Start Vim in restrictive mode.

evim, eview  Use “easy” mode for editing or read-only viewing.

ex, gex      Use the old line-editing ex mode. Useful in scripts. Same as vim -e.

System and User Configuration Files

1. VIMINIT. This is an environment variable. If it is nonempty, Vim executes its content

as an ex command.

2. User $HOME/.vimrc files.

3. exrc option. If the Vim exrc option is set, Vim looks for the three additional config

files: [._]vimrc; [._]vimrc; and [._]exrc.

New Motion Commands

count%      Go to the line count percent into the file, putting the cursor on the first nonblank line

:go n[n go] Go to the nth byte in the buffer. All characters, including end-of-line characters, are counted.

Visual Mode Motion

you can type v  in normal mode to start visual mode. Once you are  in visual mode, any motion commands move the cursor and highlight text as the cursor

moves to a new position. So, the “next word” command (w) in visual mode moves the cursor to the next word and highlights the selected text.

Visual mode motion commands in Vim

as,is  Add sentence, or inner sentence.

ap,ip  Add paragraph, or inner paragraph.

Extended Regular Expressions

\| Indicates alternation, house\|home.   

\+ Matches one or more of the preceding regular expression.

\= Matches zero or one of the preceding regular expression.

\{n,m}, \{n}, \{n,}, \{,m}, \{},

Matches n to m of the preceding regular expression, as much as possible.

\{-n,m}Matches n to m of the preceding regular expression, as few as possible.

\{-n}

\{-n,} Matches at least n of the preceding regular expression, as few as possible.

\{-,m} Matches 0 to m of the preceding regular expression, as few as possible.

\i Matches any identifier character, as defined by the isident option.

\s,\S,\b,\e,\r,\t,\n,~,\(…\), \1

Multiple Windows in Vim

Initiating Multiwindow Editing

Multiwindow Initiation from the Command Line (Shell)

Vim -o file1 file2

Another form of the command line preallocates the windows by appending a number n to -o:

Vim -o5 file1 file2

Multiwindow Editing Inside Vim :split[vsplit] [otherfile]

Opening Windows

The full :split command to open a new horizontal window is:

:[n]split [++opt] [+cmd] [file]

n       Tells Vim how many lines to display in the new window, which goes at the top.

:15split ++fileformat=unix otherfile

To simply split the screen, showing the same file in both windows and using all the current defaults, you can use the key commands ^Ws, ^WS, or ^W^S. ==>^ means ctrl.

Window Command Summary

ex command                        vi command              Description

:[n]split [++opt] [+cmd] [file] ^Ws,^WS,^W^S

:[n]new [++opt] [+cmd]          ^Wn,^W^N              Same as :split, but start the new window editing an empty file.

:[n]sview [++opt] [+cmd] [file]                          Read-only version of :split.

:[n]sfind [++opt] [+cmd] [file]                          Split window and open  file (if specified) in the new window. Look for file in the path.

:[n]vsplit [++opt] [+cmd] [file] ^Wv,^W^V             Vertical version of :split.

:[n]vnew [++opt] [+cmd]                                  Vertical version of :new.

Moving Around Windows

Vim uses the mnemonic prefix keystroke ^W consistently for window navigation.

CTRL-W      Move to next window above or to the left.

CTRL-W w    Move to the next window below or to the right.

CTRL-W  l   Move to the window to the left of the current window.

CTRL-W  r   Move to the window to the left of the current window.

CTRL-W  t   Move cursor to the top leftmost window.

CTRL-W  b   Move cursor to the bottom rightmost window.

CTRL-W  p   Move to the previous (last accessed) window.

Commands to rotate window positions

^Wr,^W^R       Rotate windows down or to the right.

^WR                  Rotate windows up or to the left.

^Wx,^W^X        Swap positions with the next window, or if issued with a count n, swap with nth next window.

Commands to change position and layout

^WK Move window to top of screen and use full width. The cursor stays with the moved window.

^WJ Move window to bottom of screen and use full width. The cursor stays with the moved window.

^WH Move window to left of screen and use full height. The cursor stays with the moved window.

^WL Move window to right of screen and use full height. The cursor stays with the moved window.

^WT Move window to new tab. The cursor stays with the moved window. If the current window is

the only window in the current tab, no action is taken.

Tabbed Editing

vim -p file1 file2 file3

:tabnew filename, :tabclose

:tabonly    Close all other tabs.

Basic Tab Navigation

:tabs         list all tabs

:tabm 0       move the current tab first

:tabm {i}     move the current tab to the i+1 position

:tabn         move to (view) the next tab

:tabp         move to (view) the previous tab

:tabfirst     move to the first tab

:tabf {file}  open a new tab with the filename given, searching the 'path' to find it

:tabc         close the current tab

:tabc {i}     close the i-th tab

:tabo         close other tabs

For basic tab navigation, it is probably more convenient to use the built-in normal-mode commands:

gt            move to (view) the next tab

gT            move to (view) the previous tab

{i}gt         move to (view) the tab in the i-th position

Closing and Quitting Windows

:quit[!],^Wq,^W^Q   Quit the current window.

:close[!],^Wc       Close the current window.

:only[!],^Wo,^W^O   Make the current window the only window.

What’s Your Favorite Color (Scheme)?    :colorscheme desert

Other Cool Stuff in Vim

Editing Binary Files    :set binary, vim -b

Editing Files in Other Places

vim scp://ehannah@mozart:122//home/ehannah/.vimrc

supported protocols: ftp,sftp,scp,http,dav,rcp

Navigating and Changing Directories

vim $Directory_Name

When the cursor is positioned over a directory name, move to that directory by pressing the ENTER key.

If the cursor is over a filename, pressing ENTER edits that file.

You can delete[D] and rename[R] files and directories.

One  really nice advantage of editing directories  is quick access  to  files  through Vim’s  search  function: /expreserve.c

HTML Your Text

gvim “Convert to HTML”

2html.vim script    :runtime!syntax/2html.vim

TOhtml command      :25,44TOhtml

What’s the Difference?

vimdiff old_file new_file, vim -d old_file new_file

Undoing Undos

Use the undolevels option to define the number of undoable changes you can make in an edit session. The default is 1,000.

If you want vi compatibility, set undolevels to zero: :set undolevels=0

:redo, or the CTRL-R to roll forward and “redo” changes.

Some abbreviations for common options:

ai autoindent

bg background

ff fileformat

ft filetype

ic ignorecase

li list

nu number

sc showcommand (not showcase)

sm showmatch

sw shiftwidth

wm wrapmargin

A Few Quickies (Not Necessarily Vim-Specific)

A quick swap

A common typing error is to enter two characters in the wrong order. Position the cursor  over  the  first  wayward  character  and  type  xp  (delete  character,  put character).

Another quick swap

Got  two  lines you’d  rather  swap? Position  the cursor on  the  top  line, and  type ddp (delete line, put line after current line).

Quick help  F1

Vim lets you access recently executed commands by using the arrow keys in the command line. Moving up and down with the arrow keys, Vim displays recent commands.

You can get even more sophisticated by invoking Vim’s built-in command history editing. Do this by entering CTRL-F on the command line. 

Resources:

http://vim.wikia.com/wiki/Quick_tab_navigation_and_opening

http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?ie=UTF8&s=books&qid=1255536675&sr=1-1
 

Labels

Java (159) Lucene-Solr (112) Interview (61) All (58) J2SE (53) Algorithm (45) Soft Skills (38) Eclipse (33) Code Example (31) Linux (25) JavaScript (23) Spring (22) Windows (22) Web Development (20) Tools (19) Nutch2 (18) Bugs (17) Debug (16) Defects (14) Text Mining (14) J2EE (13) Network (13) Troubleshooting (13) PowerShell (11) Chrome (9) Design (9) How to (9) Learning code (9) Performance (9) Problem Solving (9) UIMA (9) html (9) Http Client (8) Maven (8) Security (8) bat (8) blogger (8) Big Data (7) Continuous Integration (7) Google (7) Guava (7) JSON (7) Shell (7) ANT (6) Coding Skills (6) Database (6) Lesson Learned (6) Programmer Skills (6) Scala (6) Tips (6) css (6) Algorithm Series (5) Cache (5) Dynamic Languages (5) IDE (5) System Design (5) adsense (5) xml (5) AIX (4) Code Quality (4) GAE (4) Git (4) Good Programming Practices (4) Jackson (4) Memory Usage (4) Miscs (4) OpenNLP (4) Project Managment (4) Spark (4) Testing (4) ads (4) regular-expression (4) Android (3) Apache Spark (3) Become a Better You (3) Concurrency (3) Eclipse RCP (3) English (3) Happy Hacking (3) IBM (3) J2SE Knowledge Series (3) JAX-RS (3) Jetty (3) Restful Web Service (3) Script (3) regex (3) seo (3) .Net (2) Android Studio (2) Apache (2) Apache Procrun (2) Architecture (2) Batch (2) Bit Operation (2) Build (2) Building Scalable Web Sites (2) C# (2) C/C++ (2) CSV (2) Career (2) Cassandra (2) Distributed (2) Fiddler (2) Firefox (2) Google Drive (2) Gson (2) How to Interview (2) Html Parser (2) Http (2) Image Tools (2) JQuery (2) Jersey (2) LDAP (2) Life (2) Logging (2) Python (2) Software Issues (2) Storage (2) Text Search (2) xml parser (2) AOP (1) Application Design (1) AspectJ (1) Chrome DevTools (1) Cloud (1) Codility (1) Data Mining (1) Data Structure (1) ExceptionUtils (1) Exif (1) Feature Request (1) FindBugs (1) Greasemonkey (1) HTML5 (1) Httpd (1) I18N (1) IBM Java Thread Dump Analyzer (1) JDK Source Code (1) JDK8 (1) JMX (1) Lazy Developer (1) Mac (1) Machine Learning (1) Mobile (1) My Plan for 2010 (1) Netbeans (1) Notes (1) Operating System (1) Perl (1) Problems (1) Product Architecture (1) Programming Life (1) Quality (1) Redhat (1) Redis (1) Review (1) RxJava (1) Solutions logs (1) Team Management (1) Thread Dump Analyzer (1) Visualization (1) boilerpipe (1) htm (1) ongoing (1) procrun (1) rss (1)

Popular Posts