Thursday, February 07, 2008

Disabling the User Account Control status warning message

To disable the User Account Control status warning message:


  • Use a registry editing tool ( Start - write : regedit ) to navigate to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center


  • Add the following value:
    Data Type:
    DWORD

    Value Name:
    UACDisableNotify

    Value:
    1

  • Restart the Security Center service for the change to take effect.

How can I disable the User Account Control (UAC) feature on my Windows Vista computer?

Windows Vista has the built-in ability to automatically reduce the potential of security breeches in the system. It does that by automatically enabling a feature called User Account Control (or UAC for short). The UAC forces users that are part of the local administrators group to run like they were regular users with no administrative privileges.

Read more about UAC here: What's User Account Control in Windows Vista?

Although UAC clearly improves the security on Windows Vista, under some scenarios you might want to disable it, for example when giving demos in front of an audience (demos that are not security related, for example). Some home users might be tempted to disable UAC because of the additional mouse clicking it brings into their system, however I urge them not to immediately do so, and try to get used to it instead.

Anyway, if required, you can disable UAC by using one of the following methods:

Method #1 - Using MSCONFIG

  1. Launch MSCONFIG by from the Run menu.

  2. Click on the Tools tab. Scroll down till you find "Disable UAP" (this should probably change to UAC in next Vista beta builds and in the RTM version). Click on that line.

  1. Press the Launch button.

  2. A CMD window will open. When the command is done, you can close the window.

  3. Close MSCONFIG. You need to reboot the computer for changes to apply.

Note that you can re-enable UAC by selecting the "Enable UAP" line and then clicking on the Launch button.

Method #2 - Using Regedit

  1. Open Registry Editor.

  2. In Registry Editor, navigate to the following registry key:

  1. Locate the following value (DWORD):

EnableLUA

and give it a value of 0.

Note: As always, before making changes to your registry you should always make sure you have a valid backup. In cases where you're supposed to delete or modify keys or values from the registry it is possible to first export that key or value(s) to a .REG file before performing the changes.

  1. Close Registry Editor. You need to reboot the computer for changes to apply.

In order to re-enable UAC just change the above value to 1.

Method #3 - Using Group Policy

This can be done via Local Group Policy or via Active Directory-based GPO, which is much more suited for large networks where one would like to disable UAC for many computers at once.

If using Local Group Policy you'll need to open the Group Policy Editor (Start > Run > gpedit.msc) from your Vista computer.

If using in AD-based GPO, open Group Policy Management Console (Start > Run > gpmc.msc) from a Vista computer that is a member of the domain. In the GPMC window, browse to the required GPO that is linked to the OU or domain where the Vista computers are located, then edit it.

In the Group Policy Editor window, browse to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options.

In the right pane scroll to find the User Access Control policies (they're down at the bottom of the window). You need to configure the following policies:

You'll need to reboot your computers.

Method #4 - Using Control Panel

  1. Open Control Panel.

  2. Under User Account and Family settings click on the "Add or remove user account".

  1. Click on one of the user accounts, for example you can use the Guest account.

  2. Under the user account click on the "Go to the main User Account page" link.

  1. Under "Make changes to your user account" click on the "Change security settings" link.

  1. In the "Turn on User Account Control (UAC) to make your computer more secure" click to unselect the "Use User Account Control (UAC) to help protect your computer". Click on the Ok button.

  1. You will be prompted to reboot your computer. Do so when ready.

In order to re-enable UAC just select the above checkbox and reboot.

Tuesday, January 29, 2008

Moving messages from Thunderbird to Outlook Express and Outlook

Get Thunderbird


Even though Mozilla Thunderbird is a fantastic email client, there are people who (for one reason or another) need to switch back to Microsoft Outlook Express (OE) or Outlook. However, Thunderbird still doesn't have an "Export" feature which would export mail archives in a format understandable by OE or Outlook. IMAPSize can be of great help in this process and this page explains how to perform the migration.

Mozilla Thunderbird stores emails in the mbox format. Outlook Express stores email messages in propriatory *.dbx files but understands *.eml, which are plain text files. MS Outlook stores messages in *.pst files which are binary propriatory (Microsoft) files. Here are the steps you have to take:

1. Compact your Thunderbird folders (optional)

Thunderbird keeps messages in mbox files even after they have been deleted. If you don't want to include deleted messages in the conversion, you have to compact your folders in Thunderbird. Right click a folder and select "Compact This Folder". This will completely remove deleted messages from the folders mbox file.


2. Locate mbox files in Thunderbird

Thunderbird stores messages in the Profile Folder, in the Mail and (if you use IMAP) ImapMail folders. Each mail folder (Inbox, Sent, etc.) is stored as two files — one with no extension (e.g. INBOX), which is the mail file itself (in "mbox" format), and one with an .msf extension (e.g. INBOX.msf), which is the index (Mail Summary File) to the mail file.


3. Convert mbox files to eml files

IMAPSize has a built-in mbox2eml tool that can seemlesly convert thousands and thousands of messages. Download, install and run IMAPSize (it's free) and invoke the mbox2eml option from the Tools menu. Select the mbox file you wish to convert (you might need to set the "Files of type" option to "All Files" in the file selection dialog, since Thunderbird mbox files don't have an extension) and select a location where generated eml files should be stored. Click "Convert" and IMAPSize will start converting the files.

All the attachments will also be converted and your original Thunderbird files will not be touched. Starting from version 0.2.0. you can convert multiple mbox files at once.


4. Import generated eml files into Outlook Express

Launch Outlook Express and select the local folder (or create a new one) into which you want to import your messages. Open Windows Explorer or your favourite file manager, locate the generated eml files, select them and drag and drop them into the OE application window. If Outlook Express is your email client of choice you don't have to perform the next step.


5. Export files from OE to Outlook

Assuming you have Outlook installed on your system, open Outlook Express and from the File menu select Export/Messages. Once exported, the messages will appear in Outlook - if they were in your inbox in OE, they'll be added to your Outlook inbox; if they were in a local subfolder in OE, a folder of the same name will be created under your Outlook inbox.


If you stumble upon any problems feel free to report them on the forum or email to imapsize at broobles dot com. If you are looking for a good text editor to inspect your mbox files, check out this list of best text editors.


Source : http://www.broobles.com/imapsize/th2outlook.php

Monday, January 07, 2008

How to install the RealPlayer (Multimedia Player)

A little bit Linux info, I post all the information that I find useful for myself while being a newbie to Ubuntu ( LINUX ), so this is how to install realplayer on Ubuntu. Enjoy it ... Source mentioned at the end.

Download the Realplayer .bin file from http://www.real.com/linux Im
Installation Instructions - Ensure that the .bin file you downloaded is executable. You can make the .bin file executable by running the
"chmod a+x RealPlayer10GOLD-Linux.bin" ( file name can change during different versions plus always you can use TAB button to auto complete your commands. Like you just write R and then press TAB button and linux will complete it for you )

after running the command from a terminal window. - Run the .bin file by typing "./RealPlayer10GOLD-Linux.bin"


Enjoy Realplayer :-)

Source : http://www.ubuntux.org/how-to-install-the-realplayer-multimedia-player

How to change grub boot order in Linux

First of all run this command in shell :

sudo gedit /boot/grub/menu.lst

and then you get a text file with such a text in it as followed :

Easily Set Default OS in a Windows Vista and XP Dual-boot Setup

If you are running a dual-boot setup with more than one Windows operating system, It's pretty easy to configure the default boot operating system with the GUI interface. Note that if you are using Windows Vista as one of the operating systems, you will need to make this change from Vista, not XP.

First, you'll need to right click on Computer and select Properties:

Next, click Advanced System Settings

Now click on the Settings button under Startup and Recovery

And just select the operating system you want to use:

Easy stuff.


PLAN B : bcedit command from command prompt

When you install Windows Vista as a dual-boot with your regular Windows XP partition, Vista is always set as the default OS. If you want to set XP as the default OS instead, there's a quick command you can run to change it back.

First you'll have to open an administrator command prompt. Type cmd into the search box, and then hit Ctrl+Shift + Enter to open it in administrator mode. You should be prompted for the UAC dialog.

Enter in the following command:

bcdedit /default {ntldr}

Example:

C:\Windows\system32>bcdedit /default {ntldr}
The operation completed successfully.

Now when you reboot, it will set XP as the default.



Source :
http://www.howtogeek.com/howto/windows-vista/easily-set-default-os-in-a-windows-vista-and-xp-dual-boot-setup/

Wednesday, January 02, 2008

How to configure authentication in MS vista ?

Don't you have authentication tab that you had in your windows XP in you MS Vista, then you should do some stuffs before configuring your internet ( with Ethernet authentication configuration ) specially in Campus ( for me UiO ) ...

  1. Open Start Menu and select Control Panel.
  2. In Control Panel click System and Maintenance.
  3. Now click Administrative tools.
  4. Now choose Services.
  5. In Services window locate Wired AutoConfig,
    activate it with mouse and click Properties on toolbar.
  6. In Wired AutoConfig Properties:
    set Startup type: Automatic.
    Click Start to start Wired AutoConfig service.
    Use OK button to close Wired AutoConfig Properties.
  7. Now locate Extensible Authentication Protocol service
    and make sure it is started and Startup type is set Automatic.

How to configure authentication service

  1. Open Start Menu and select Control Panel
  2. Select View network status and tasks.
  3. Now under [Tasks] Select Manage network connections.
  4. Now find Local Area Connection and make right mouse click on it.
    From popup menu select Properties.
  5. Select Authentication tab. NB! When you don't have this tab go back Starting Authentication service.

1. Check Enable IEEE 802.1X authentication.
2. Set authentication method to Protected EAP (PEAP).
3. Click on Settings button.

6. On Protected EAP properties.

1. Uncheck Validate server certificate
2. Uncheck Enable Fast Reconnect
3. Click Configure


Click Configure....

7. Uncheck Automatically use my Windows logon name and password (and domain if any).
Click OK.

8. Click OK.

Authentication process

  1. After successful configuration You should see popup message on the right corner of screen:
    Additional information required to connect to the network. Click on it.
  2. On Enter Credentials window insert Your
    Campusnet username and password.
    NB! Leave the Logon domain blank.
    Click OK.
  3. After that restart Your Computer.

Thanks to the source : http://www.campusnet.ee/en/node/9

Saturday, July 14, 2007

Java hints ...

I have started learning Java, I am going to leave my hints from SAMS teach yourself Java in 24 hours here in my blog.

Hope it helps someone ...

Java programs that run locally on your own computer are called applications. Programs that run on web pages are called applets.

Unlike applications, applets do not have a main() block. Instead, they have several different sections that are handled depending on what is happening in the applet. Two of the sections are the init() block statement and the paint() block. init() is short for initialization, and it is used to take care of anything that needs to be set up as an applet first runs. The paint() block is used to display anything that should be displayed.

Java is case-sensitive when it comes to variable names, so you must always capitalize variable names in the same way throughout a program.

The first letter should be lowercase, and if the variable name has more than one word, make the first letter of each subsequent word a capital letter. For instance, if you wanted to create an integer variable to store the all-time high score in a game program, you can use the following statement : int allTimeHighScore;

You can't use punctuation marks or spaces in a variable name, so neither of the following will work:

int all-TimeHigh Score;
int all Time High Score;

The following order is used when working out an expression:

1. Incrementing and decrementing take place first.

2. Multiplication, division, and modulus division occur next.

3. Addition and subtraction follow.

4. Comparisons take place next.

5. The equal sign (=) is used to set a variable's value.

In Java, a long integer variable can be anything from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. This range ought to give your mathematical expressions plenty of breathing room when you can't use int, which has a range of –2,147,483,648 to 2,147,483,647.

Unlike the other types of variables you have used—int, float, char, boolean, and so on—the name of the String type is capitalized. The reason for this is that strings are somewhat different than the other variable types in Java. Strings are a special data resource called objects, and the types of all objects are capitalized.

To display double quotations in a string, Java has created a special code that can be put into a string: \". Whenever this code is encountered in a string, it is replaced with a double quotation mark. For example, examine the following:
System.out.println("Jane Campion directed \"The Piano\" in 1993.");

You can insert several special characters into a string in this manner. The following list shows these special characters; note that each is preceded by a backslash (\).

Special characters

Display

\'

Single quotation mark

\"

Double quotation mark

\\

Backslash

\t

Tab

\b

Backspace

\r

Carriage return

\f

Formfeed

\n

Newline

The + operator has a different meaning in relation to strings. Instead of trying to do some math, it pastes two strings together. This action can cause strings to be displayed together, or it can make one big string out of two smaller ones.Concatenation is a word used to describe this action, because it means to link two things together.

 
 
favorite.equals(guess)

This code statement is known as a method. A method is a way to accomplish a task in a Java program. This method's task is to determine whether one string, favorite, has the same value as another string, guess. If the two string variables have the same value, the text TRue will be displayed. If not, the text false will be displayed. The following is the output of this example:
 
String change = baines.toUpperCase();

int nameLength = cinematographer.length();
 

To look inside a string, use its indexOf() method. Put the string you are looking for inside the parentheses. If the string is not found, indexOf() produces the value -1. If the string is found, indexOf() produces an integer that represents the position where the string begins. Positions in a string are numbered upwards from 0, beginning with the first character in the string. (In the string "The Piano", the text "Piano" begins at position 4.)

Script is the string that includes the whole text.

int position = script.indexOf("you have shamed those trunks");

The indexOf() method is case sensitive, which means that it only looks for text capitalized exactly like the search string. If the string contains the same text capitalized differently, indexOf() produces the value -1.

To be continued ...

Wednesday, September 20, 2006

Laptop Maintenance

1) Clean Your Hard Drive

Over the course of a month it is easy to accumulate a lot of unnecessary files on your laptop hard drive. Take the time once a month to go through your hard drive and examine the files there. Determine which should be saved elsewhere for future reference and which can be trashed. If you download programs on a regular basis to try new things or just to have access to new programs for projects, properly un-install those programs when no longer needed. A cleaner hard drive runs smoother.

2) Defrag Your Hard Drive

Defragging your hard drive is another step to ensuring your laptop will run more efficiently. Taking the time to defrag once a month will allow your programs to run more quickly and make better use of the space on your hard drive. When you defrag your laptop hard drive on a monthly basis you should notice fewer software crashes or freeze ups and programs will run better.

3) Keep Your Laptop Clean

Cleaning your laptop helps prevent overheating and those nasty dust bunnies from building up inside your laptop fans and exposed ports. Cleaning the screen also means you'll always view your data clearly and it's much easier on the eyes. Keeping your case free of dust and dirt buildup will help your laptop by preventing that dirt from getting inside the laptop.

4) Full Back-Up

Full back-ups should be conducted on a monthly basis and you should have a secure, fire-proof location to store your back-up. There are a variety of software and hardware options available. You should chose the method that is easy and can be done without fuss on a monthly basis. It may require trying different methods before you find the best back-up system for your needs.

5) Software Updates

Just as you keep your anti-virus and firewall software up-to-date, you should also keep your software programs updated. For many programs the updates will address security issues which help keep your laptop and data protected while on the road.

Source : About.com
Cartoon : Photosearch.com

Wednesday, May 17, 2006

NTC 2006-Iran-Tehran, Azad University, South Tehran Branch : J2EE vs .NET



New Technologies Conference
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET
Java vs .NET