Hack 2 Learn , !Learn 2 Hack

Recover Deleted Outlook Items Manually

Recover Deleted Outlook Items Manually Using REGEDIT


Using the registry editing you can recover the deleted emails or other items which has been deleted permanently,ie by using SHIFT+DELETE or SHIFT+Button image . If you use the registry editor incorrectly, you might cause serious problems that might require you to reinstall your operating system. Use the registry editor at your own risk.
  1. Exit Outlook.
  2. Open the Windows registry editor.
  3. Browse to My Computer\HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Client\Options.
  4. On the Edit menu, point to New, and then click DWORD Value.
  5. Type the name DumpsterAlwaysOn.

    Note Do not type any spaces in the name.

  6. Set the DWORD value to 1.
  7. Restart Outlook.

The Tools menu now has the Recover Deleted Items command for every Outlook folder.Enjoy. :)

Transfer Mail From One Account To Another

Transfer Mail From One Account To Another


It is possible to transfer emails from one account to another email account like Yahoo (only if you are a Yahoo! Mail Plus subscriber), Hotmail etc. to your new Gmail account then Gmail has the easiest option for you.

In your new Gmail account

  • Click Settings
  • Go to the Accounts tab
  • Click on Add another mail account link found at Get mail from other accounts
  • In the pop up – enter your old email address and click Next Step
  • Enter your username and password and click Add Account
  • You can set your old email address as a custom email address if you wish

Once you are done with the above steps, Gmail will start retrieving mails from your old account and transfer them to the new account. This may take several minutes so have some patience and take a walk around till its done.

As you can see, you do not really have to go to the trouble of using an email client like Outlook or Thunderbird to transfer your mails to a new Gmail account.

Basic Linux VI Command

Basic Linux VI Command


Moving the Cursor

*j or
[or down-arrow]
move cursor down one line
*k [or up-arrow]move cursor up one line
*h or
[or left-arrow]
move cursor left one character
*l or
[or right-arrow]
move cursor right one character
*0 (zero)move cursor to start of current line (the one with the cursor)
*$move cursor to end of current line
wmove cursor to beginning of next word
bmove cursor back to beginning of preceding word
:0 or 1Gmove cursor to first line in file
:n or nGmove cursor to line n
:$ or Gmove cursor to last line in file

Adding, Changing, and Deleting Text

*u UNDO WHATEVER YOU JUST DID;
*iinsert text before cursor, until hit
Iinsert text at beginning of current line, until hit
*aappend text after cursor, until hit
Aappend text to end of current line, until hit
*oopen and put text in a new line below current line, until hit
*Oopen and put text in a new line above current line, until hit
*rreplace single character under cursor (no needed)
Rreplace characters, starting with current cursor position, until hit
cwchange the current word with new text,
starting with the character under cursor, until hit
cNwchange N words beginning with character under cursor, until hit;
e.g., c5w changes 5 words
Cchange (replace) the characters in the current line, until hit
ccchange (replace) the entire current line, stopping when is hit
Ncc or cNcchange (replace) the next N lines, starting with the current line,
stopping when is hit
*xdelete single character under cursor
Nxdelete N characters, starting with character under cursor
dwdelete the single word beginning with character under cursor
dNwdelete N words beginning with character under cursor;
e.g., d5w deletes 5 words
Ddelete the remainder of the line, starting with current cursor position
*dddelete entire current line
Ndd or dNddelete N lines, beginning with the current line;
e.g., 5dd deletes 5 lines
yycopy (yank, cut) the current line into the buffer
Nyy or yNycopy (yank, cut) the next N lines, including the current line, into the buffer
pput (paste) the line(s) in the buffer into the text after the current line

How to Configure User Rights

How to Configure User Rights

If the right to log on as a service is revoked for the specified user account, restore the right by performing the following steps:

Domain Controller

If the user is in an Active Directory domain:

  1. Start the Active Directory Users and Computers Microsoft Management Console (MMC) snap-in.
  2. Right-click the Organizational Unit (OU) in which the user right to log on as a service was granted. By default, this is in the Domain Controllers OU.
  3. Right-click the container, and then click Properties.
  4. On the Group Policy tab, click Default Domain Controllers Policy, and then clickEdit. This starts Group Policy Manager.
  5. Expand the Computer Configuration object by clicking the plus sign (+) next to the policy object. Under the Computer Configuration object, expand Windows Settings, and then expand Security Settings.
  6. Expand Local Policies, and then click User Rights Assignment.
  7. In the right pane, right-click Log on as a service, and then click Security.
  8. Add the user to the policy, and then click OK.
  9. Quit Group Policy Manager, close Group Policy properties, and then close the Active Directory Users and Computers MMC snap-in.

Difference between Cohesion & Coupling

Difference between Cohesion & Coupling

A first-order principle of software architecture is to increase cohesion and reduce coupling.

Cohesion (interdependency within module) strength/level names : (from worse to better, high cohesion is good)

  • Coincidental Cohesion : (Worst) Module elements are unrelated
  • Logical Cohesion : Elements perform similar activities as selected from outside module, i.e. by a flag that selects operation to perform (see also CommandObject).
    • i.e. body of function is one huge if-else/switch on operation flag
  • Temporal Cohesion : operations related only by general time performed (i.e. initialization() or FatalErrorShutdown?())
  • Procedural Cohesion : Elements involved in different but sequential activities, each on different data (usually could be trivially split into multiple modules along linear sequence boundaries)
  • Communicational Cohesion : unrelated operations except need same data or input
  • Sequential Cohesion : operations on same data in significant order; output from one function is input to next (pipeline)
  • Informational Cohesion: a module performs a number of actions, each with its own entry point, with independent code for each action, all performed on the same data structure. Essentially an implementation of an abstract data type.
    • i.e. define structure of sales_region_table and its operators: init_table(), update_table(), print_table()
  • Functional Cohesion : all elements contribute to a single, well-defined task, i.e. a function that performs exactly one operation
    • get_engine_temperature(), add_sales_tax()

Coupling (interdependence between modules) level names: (from worse to better, high coupling is bad)

  • Content/Pathological Coupling : (worst) When a module uses/alters data in another
  • Control Coupling : 2 modules communicating with a control flag (first tells second what to do via flag)
  • Common/Global-data Coupling : 2 modules communicating via global data
  • Stamp/Data-structure Coupling : Communicating via a data structure passed as a parameter. The data structure holds more information than the recipient needs.
  • Data Coupling : (best) Communicating via parameter passing. The parameters passed are only those that the recipient needs.
  • No data coupling : independent modules.