Friday, November 6, 2009

Backup, Unistall IIS 7

Backup
> %windir%\system32\inetsrv\appcmd.exe add backup "My Backup Name"

> %windir%\system32\inetsrv\appcmd.exe restore backup "My Backup Name"

> %windir%\system32\inetsrv\appcmd.exe delete backup "My Backup Name"

\inetpub\history\cfgHistory_NNNNNNNNNN
copy the applicationHost.config file into it's proper place: \windows\sytem32\inetsrv\config

> %windir%\system32\inetsrv\appcmd.exe list backup

source:http://blogs.iis.net/bills/archive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx

Unistall IIS7 in vista
c:\windows\system32>pkgmgr.exe /norestart /uu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASP;IIS-ISAPIExtensions;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

source:http://stackoverflow.com/questions/1189636/how-to-uninstall-iis-7-under-wow64

Wednesday, October 28, 2009

Mail Settings

Gmail and Outlook Setting

o set up your Outlook 2007 client to work with Gmail:

  1. Open Outlook.
  2. For new setups, select Do not upgrade.
  3. Click Yes.
  4. Enter your display name, email address (including '@gmail.com'), and password. Google Apps users, enter your full email address, e.g. 'username@your_domain.com.'
  5. Select the 'Manually configure server settings or additional server types' checkbox.



  6. Select Internet E-mail.
  7. Settings: name, full email address (including '@gmail.com' or '@your_domain.com')
    • In the Account Type dropdown menu, select IMAP; enter the incoming and outgoing server names shown below.
    • In the 'User Name' field, give your full Gmail address, including '@gmail.com' or '@your_domain.com.'
    • After creating these settings, clicking Next takes you to the end of the setup.



  8. In the Tools menu, select Options then Mail Setup. Under 'Email Accounts,' click E-mail Accounts.
  9. Select an account, and click Change above the list of accounts. Click More Settings, then the Advanced tab.
    • Incoming server must be 993, and must use SSL encryption.
    • Outgoing server can use 587, TLS encryption.



  10. Click the Outgoing Server tab. Make sure that 'My outgoing server (SMTP) requires authentication' is selected. The radio button 'Use same settings as my incoming mail server' should also be selected.



  11. Click OK > Next > Finish > Close > OK.
  12. Check our recommended client settings, and adjust your client's settings as needed.


source:http://mail.google.com/support/bin/answer.py?hl=en&answer=77689

fast way to migrate imap folder from one account to the other
source:http://boshdirect.com/blogs/tech/copy-imap-folders-between-servers-accounts.html

Tuesday, October 13, 2009

Windows Kernel Structure

A good site to start with

http://www.nirsoft.net/kernel_struct/vista/index.html


using Windbg will yield the same result.

Friday, October 9, 2009

Useful Vista Tools

type these in "run"

System Information
- msinfo32.exe

System Configuration
- msconfig

Monday, October 5, 2009

Kernel Debugging with WinDbg

problem: kernel debugging in windows 7, unable to run local debugging, although setting

solution: run windbg as administrator
symbol path as : SRV*c:\symbols*http://msdl.microsoft.com/download/symbols

cpp file with Visual Studio 2008

problem : Fatal error C1083: Cannot open include file: 'windows.h'

using visual studio 2008 professional
windows 7


example code to understand windows

Friday, October 2, 2009

Real-time Software Design

Data Flow Diagrams (DFD's)
  • circle - Process
  • arrow - Data flow
  • double line - Data Store
  • square - Source/Sink

Processes
  • work or actions performed on data
  • receives input data and produces output
  • rule1: can have more than one outgoing data flow or more than one incoming data flow
  • rule2: can connect to any other symbol

Data Stores
  • represents data that is stored in the system
  • processes add or retrieve data from these stores
  • only processes are connected to data stores
  • name using a noun

Sources/Sinks (external entities)
  • External entity that is origin or destination of data
  • form the boundaries of the system

Data Flows
  • marks movement of data through the system
  • connects the processes, external entities and data stores

Different Types of DFDs
  • context diagram (Level-0 diagram)
  • Level-1 diagram (lower level diagram)
  • Level-2 diagram (lower level diagram)

Context Diagram(Level-0 DFD)
  • defines the scope of the system by identifying the system boundary
  • contain:
  • one process
  • all sources sinks
  • data flows (external)

Lower Level Diagrams
  • functional decomposition

State Transition Diagram
  • a transition to a different state is caused by the occurrence of an event of by a condition becoming true
  • use to show the events which trigger them
  • the actions occurring during the transition

source: lecture notes