Latest Entries »

Marking all mail as read in Gmail

This took me a while to figure out, so I am writing down here to help me remember later. It may also be useful if you are playing with Gmail at all (BTW, the spam filtering on Gmail is very good).

To mark all mail as read:-

In the search box, type “is:unread”
In the select area press “All”
A link will appear that says “Select all conversations that match this search”, press it
From the drop down, select “Mark All as Read”.
Took me a while to do something that is usually option away on a context menu in most rich client mail reading applications, but this is mainly because I had thousands of unread mails to mark and so that went off the page.

http://www.MarifulQuranBangla.com/ebook

Thanks to the author

http://www.chrisse.se/MAQB.asp?ID=17

http://www.nirsoft.net/utils/nircmd.html

Examples of what you can do with NirCmd

Open the door of J: CD-ROM drive nircmd.exe cdrom open j:
Close the door of Y: CD-ROM drive nircmd.exe cdrom close y:
Speaks the text currently in the clipboard (For Windows XP and Vista). speak text ~$clipboard$
Increase the system volume by 2000 units (out of 65535) nircmd.exe changesysvolume 2000
Decrease the system volume by 5000 units (out of 65535) nircmd.exe changesysvolume -5000
Set the volume to the highest value nircmd.exe setsysvolume 65535
Mute the system volume nircmd.exe mutesysvolume 1
Unmute the system volume nircmd.exe mutesysvolume 0
Switch the system volume between the mute and normal state. nircmd.exe mutesysvolume 2
Create a shortcut on your desktop that switch the system volume between the mute and normal state. nircmd.exe cmdshortcut “~$folder.desktop$” “Switch Volume” mutesysvolume 2
Turn off the monitor nircmd.exe monitor off
Start the default screen saver nircmd.exe screensaver
Put your computer in ‘standby’ mode nircmd.exe standby
log off the current user nircmd.exe exitwin logoff
Ask if you want to reboot, and if you answer ‘Yes’, reboot the computer. nircmd.exe qboxcom “Do you want to reboot ?” “question” exitwin reboot
Turn off your computer nircmd.exe exitwin poweroff
Turn off all computers specified in computers.txt ! multiremote copy “c:\temp\computers.txt” exitwin poweroff force
Dial to “My Internet” connection nircmd.exe rasdial “My Internet”
Disconnect the “My Internet” connection nircmd.exe rashangup “My Internet”
Make your Internet Explorer windows 75% transparent ! (192 / 256) nircmd.exe win trans ititle “internet explorer” 192
Minimize all your Internet Explorer windows nircmd.exe win min class “IEFrame”
Close all your Internet Explorer windows nircmd.exe win close class “IEFrame”
Close all your Explorer windows (My Computer, folders, and so on) nircmd.exe win close class “CabinetWClass”
Hide all your Internet Explorer windows nircmd.exe win hide class “IEFrame”
Show all your Internet Explorer windows (after you made them hidden with previous example) nircmd.exe win show class “IEFrame”
Center all top-level windows nircmd.exe win center alltop
Remove the title bar of My Computer window. nircmd.exe win -style title “my computer” 0x00C00000
Return the title bar of My Computer window that we removed in the previous example. nircmd.exe win +style title “my computer” 0x00C00000
Set the My Computer window to right-to-left order (For hebrew and arabic languages) nircmd win +exstyle title “my computer” 0×00400000
Set all child windows of My Computer window to right-to-left order (For hebrew and arabic languages) nircmd win child title “my computer” +exstyle all 0×00400000
Create a shortcut on your desktop that closes all your Internet Explorer windows nircmd.exe cmdshortcut ” “~$folder.desktop$ “Close All IE” win close class “IEFrame”
Create a shortcut on your desktop that hides all your Internet Explorer windows nircmd.exe cmdshortcut ” “~$folder.desktop$ “Hide All IE” win hide class “IEFrame”
Create a shortcut on your desktop that shows back all your Internet Explorer windows nircmd.exe cmdshortcut ” “~$folder.desktop$ “Show All IE” win show class “IEFrame”
Set the Windows Calculator as top-most window (above all other windows) nircmd.exe win settopmost title “Calculator” 1
Set the Windows Calculator back to regular window (non top-most window) nircmd.exe win settopmost title “Calculator” 0
Create a shortcut to Windows calculator under Start Menu->Programs->Calculators nircmd.exe shortcut “f:\winnt\system32\calc.exe” “~$folder.programs$\Calculators” “Windows Calculator”
Hide the desktop window nircmd.exe win hide class progman
Show the desktop window (After hiding it in previous example) nircmd.exe win show class progman
Hide the start button on the system tray nircmd.exe win child class “Shell_TrayWnd” hide class “button”
Show the start button on the system tray nircmd.exe win child class “Shell_TrayWnd” show class “button”
Hide the clock on the system tray nircmd.exe win child class “Shell_TrayWnd” hide class “TrayClockWClass”
Show the clock on the system tray nircmd.exe win child class “Shell_TrayWnd” show class “TrayClockWClass”
Kill (terminate) all instance of Internet Explorer processes nircmd.exe killprocess iexplore.exe
Create a shortcut on your desktop that opens the door of K: CDROM drive when you run it. nircmd.exe cmdshortcut “~$folder.desktop$” “Open CDROM” cdrom open k:
Create a shortcut to NirSoft Web site on your desktop nircmd.exe urlshortcut “http://www.nirsoft.net” “~$folder.desktop$” “NirSoft”
Add NirSoft Web site to your Favorities under Links folder. nircmd.exe urlshortcut “http://www.nirsoft.net” “~$folder.favorites$\Links” “NirSoft”
Create a shortcut to NirSoft Web site on the desktop of all computers listed in computers.txt nircmd.exe multiremote copy “c:\temp\computers.txt” urlshortcut “http://www.nirsoft.net” “~$folder.common_desktop$” “NirSoft”
Set the display mode to 800x600x24bit colors nircmd.exe setdisplay 800 600 24
Create a shortcut on the desktop that set the display mode to 800x600x24bit colors nircmd.exe cmdshortcut “~$folder.desktop$” “800x600x24″ setdisplay 800 600 24
Copy all shortcuts on your desktop to another folder (f:\temp\desktop). nircmd.exe execmd copy “~$folder.desktop$\*.lnk” f:\temp\desktop
Restart your Apache server (under Windows NT/2000/XP/2003) nircmd.exe service restart apache
Create a shortcut on your desktop that restarts the Apache server nircmd.exe cmdshortcut “~$folder.desktop$” “Restart Apache” service restart apache
Restart your IIS nircmd.exe service restart w3svc
Restart MySql nircmd.exe service restart MySql
Open the desired Registry key/value in RegEdit nircmd.exe regedit “HKLM\Software\Microsoft\Windows\CurrentVersion” “CommonFilesDir”
Open the Registry key that you copied to the clipboard in RegEdit. nircmd regedit “~$clipboard$”
Disable the screen saver nircmd.exe regsetval sz “HKCU\control panel\desktop” “ScreenSaveActive” 0
Enable the screen saver nircmd.exe regsetval sz “HKCU\control panel\desktop” “ScreenSaveActive” 1
Change the date/time of the specified filename (creation time and modified time) nircmd.exe setfiletime “c:\temp\myfile.txt” “24-06-2003 17:57:11″ “22-11-2005 10:21:56″
Copy your desktop folder path to the clipboard nircmd.exe clipboard set ~$folder.desktop$
Copy your start menu folder path to the clipboard nircmd.exe clipboard set ~$folder.start_menu$
Copy the content of info1.txt (simple text file) to the clipboard nircmd.exe clipboard readfile “c:\My Files\info1.txt”
Add the text content of clipboard to info1.txt nircmd.exe clipboard addfile “c:\My Files\info1.txt”
Clear the clipboard nircmd.exe clipboard clear
Create all folders specified in “c:\temp\folders.txt”. The folder path names are separated by CRLF characters. nircmd.exe paramsfile “c:\temp\folders.txt” “” “” execmd md ~$fparam.1$
Install the specified .NET assembly in the global assembly cache (like gacutil) nircmd.exe gac install “C:\temp\MyAssembly\bin\MyAssembly.dll”
Empty the recycle bin in all drives. nircmd.exe emptybin
Answer ‘Yes’ to a standard Windows message-box. nircmd.exe dlg “” “” click yes
Wait 2 seconds, and then save the current screen to shot.png nircmd.exe cmdwait 2000 savescreenshot “f:\temp\shot.png”
Save 10 screenshots in a loop, and wait 60 seconds between the screenshot save calls. The filenames of the screenshot will contain the time and date of the saved screenshot. nircmd.exe loop 10 60000 savescreenshot c:\temp\scr~$currdate.MM_dd_yyyy$-~$currtime.HH_mm_ss$.png
Wait until Firefox is closed, and then say “Firefox was closed” waitprocess firefox.exe speak text “Firefox was closed”

System Requirements

This utility can work in all 32-bit Windows operating systems: Windows 9x/ME, Windows NT, Windows 2000, Windows XP, Windows Server 2003, and Windows Vista. However, some of NirCmd commands works only on Windows NT/2000/XP/2003/Vista.

Quick Code : Rundll32.exe Powrprof.dll,SetSuspendState Sleep

Click Run
Type notepad. Press Enter.
Type : Rundll32.exe Powrprof.dll,SetSuspendState Sleep
Click File. Click Save. Type : “c:\sleep.bat”
Create shortcut on the desktop of “c:\sleep.bat”

Thats it. May Allah Reward for your good deeds.

I’m using VS 2010 and I don’t have CrystalReportViewer in my toolbox. under Reports I only have “pointer” and “ReportViewer”. after I clicked on “show all” I see the CrystalReportViewer and few other new things but it’s not clickable (gray)
I checked on the web and I found this answer “You have to change the target framework for the project (Project>Properties in C#). By default, new WinForm/WPF projects will target the “4.0 Client Profile”…you need to change that to the full “4.0 Framework”. Then the viewer will appear.” but I don’t understand how to do that. I’m adding a screencap of what I see. (I don’t know if that’s what they meant but in new project window it says “4.0 Framework” by default)

The help files for CR for VS2010 can be found on http://help.sap.com under All Products > SAP BusinessObjects > CR for Visual Studio

The packages need to be placed in the same folder as the product.xml file. This solution is also mentioned in this forum post by Mandeep: CRVS2010 Beta – Error: Download prerequisites from same location as my app

1. In the following folder, you will find a product.xml file.
\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0\

2. Open the product.xml file in Notepad (or any text editor) and under the section, you will find 2 URLs that point to the 2 deployment packages. Copy each URL into your web browser and manually download the packages.

3. Once the packages are downloaded, copy them to the same folder as the product.xml file (see #1 above).

You should now be able to re-build and re-publish your ClickOnce deployment.

 

 

 

 

 

[Oracle 11g Logo]This is a 16 step Oracle 11g installation guide that covers a typical installation scenario with screenshots.

1. Select installation method

Following two installation methods are available:

  • Basic Installation – Choose this to perform the full Oracle Database 11g installation with standard configuration options. You can use only filesystem for storage in this option.
  • Advanced Installation – This gives your full control over the installation, including the ability to choose Automatic Storage Management. Select this option as shown below.

 

[Select Installation Method]
Fig - Select Installation Method

2. Specify Inventory directory and credentials

Enter the following information:

  • Enter the inventory directory: /u01/app/oraInventory
  • Specify operating system group name: oinstall
[Specify Inventory Directory]
Fig - Specify Inventory directory and credentials

3. Select Installation Type

Following three installation types are available:

  • Enterprise Edition – Select this option.
  • Standard Edition
  • Custom
[Select Installation Type]
Fig - Select Installation Type

4. Specify Install Location

Enter the following information:

  • Oracle Base: /u01/app/oracle
  • Name: Oracle_Home
  • Path: /u01/app/oarcle/product/11.1.0
[Specify Install Location]
Fig - Select Install Location

5. Product-Specific Prerequisite Checks

In this screen, the Installer verifies that your environment meets all of the minimum requirements for installing and configuring the products that you have chosen to install. You must manually verify and confirm the items that are flagged with warnings and items that require manual checks.


6. Select Configuration Option

Following three configuration options are available:

  • Create a Database – Select this option.
  • Configure Automatic Storage Management (ASM)
  • Install Software Only
[Select Configuration Option]
Fig - Select Configuration Option

7. Select a Database Configuration

Following three database configuration options are available.

  • General Purpose/Transaction Processing – Select this option.
  • Data Warehouse
  • Advanced
[Select Database Configuration]
Fig - Select Database Configuration

8. Specify Database Configuration

Enter the following information:

  • Global Database Name: devdb.example.com . An Oracle database is uniquely identified by a Global Database Name, typically of the form “name.domain”
  • SID: devdb

9. Specify Database Configuration Details

There are four different tabs in this screen as shown below:

  • Memory Tab
    • Select the check-box to Enable Automatic Memory Management
    • Drag the bar to allocate the memory. This will automatically allocate memory size for SGA and PGA depending on the total database memory allocated.
  • Character Sets Tab. Following three character set options are given in this tab.
    • Use the default
    • Use Unicode (AL32UTF8)
    • Choose from the list of character sets.  Select Database Character Set as Unicode standard UTF-8AL32UTF8 – Select this option.
  • Security Tab – Just leave the defaults in this tab.
  • Sample Schema Tab – Just leave the defaults in this tab.
[Specify Config Details for Memory]
Fig - Select Database Config Details with Memory Tab

10. Select Database Management Option

Following two management options are available:

  • Use Grid Control for Database Management
    • Management Service: Choose an agent.
  • Use Database Control for Database Management- Select this option.
    • Select the check-box to Enable Email Notifications
    • Outgoing mail (SMTP) Server:
    • Email Address:
[Select DB Management Option]
Fig - Select Database Management Option

11. Specify Database Storage Option

Following two storage options are available:

  • File System – Select this option.
    • Specify Database File location: /u01/app/oracle/oradata/
  • Automatic Storage Management. ASM simplifies database storage administration and optimizes database layout for I/O performance.

12. Specify Backup and Recovery Option

Enable automated backup as shown below. If you’ve configured ASM, you can choose to store the automated backups on ASM. If not, select File System option.

[Specify Backup Recovery Option]
Fig - Specify Backup and Recovery Options

13. Specify database schema password

Enter the password for sys, system, sysman, dbsnmp schemas. You have the option of either using the same passwords or different password for all the accounts in this screen.

14. Privileged Operating System Groups

Enter the following information in this screen:

  • Database Administrator (OSDBA) Group: dba
  • Database Operator (OSOPER) Group: dba
  • ASM administrator (OSASM) Group: dba

15. Oracle Configuration Manager Registration

You can associate your configration information with your metalink account as shown below.

[Oracle Configuration Manager]
Fig - Oracle Configuration Manager Registration

16. Final Summary Screen

This will display a summary of all the installation option you’ve selected so far. Click on Install to complete the installation.

[Install Summary Screen]
Fig - Installation Summary Screen

 

 

 

 

 

Installing Oracle 10 G

http://faq.programmerworld.net/database/installing-oracle-10g.html

Follow

Get every new post delivered to your Inbox.