Tuesday, November 20, 2012

Remove saved credentials or password stored in Windows 7

If you are facing problems regarding connecting to a network drive and the system did not prompt you for a username and password. Most likely, you had already a password being saved in the system already. You could type this command to check the credentials that had been stored previously.
rundll32.exe keymgr.dll, KRShowKeyMgr
From here you can remove authenticated network shares so that the next time you will have to type in the credentials again.


Tuesday, October 30, 2012

Linux: CentOS 6.3 - Guide to install GNOME Desktop from CLI using yum

1. You would need to install "X Windows System" first, as this is the based that provide GUI and rich input device capability before installing GNOME Desktop. This will take a while as yum would download packages from the net before installing, therefore please have your internet connection setup before executing. Command to execute :-
# yum groupinstall -y 'X Window System'
2. Next will be the command for installing GNOME Desktop Environment :-
#  yum groupinstall -y 'Desktop'
3.  Done. To start GNOME type the following command :-
# startx
Note: If you would like to start GNOME automatically after reboot, you would need to edit the /etc/inittab file by changing the line " id:3:initdefault: " to " id:5:initdefault: " in the file.


Linux: CentOS 6.3 - Force DHCP client to renew ip address

Here are a few commands that I used to renew the ip address that has DHCP configured.

1. ifdown and ifup command to restart network card eth0 as follows :-

# ifdown eth0
# ifup eth0
2. Restarting the networking services command :-
# /etc/init.d/networking restart
3. Restart network service using service command :-
# service network restart
4. This command is for releasing the ip address :-
# sudo dhclient -r
This command is for getting a ip address :-
# sudo dhclient 

Linux: CentOS 6.3 - Changing the hostname or computer name

First of all, you need the command to check what is your box computer name(hostname).

Please note that all the "#" sign shown are meant to be the start of the command prompt, therefore please ignore it.

To check your hostname, type the following command:
# hostname

I am using the following method to change the hostname of my linux box:-

1. Change the hostname by using sudo hostname command.
# sudo hostname 'newhostname'
(without the quotes)

2. Edit the network configuration file. Type this command to use vi editor.
vi /etc/sysconfig/network
2.2 Find the following line => hostname = localhost.domain.local
change the "localhost.domain.local" to your new hostname.
(note: in vi editor press i or the insert key to switch to insert/editing mode. Press "Esc" to exit insert/editing mode.)
2.3 Save and close the file.
(note: in vi editor type :wq! follow by enter to save and quit the editor)


Thursday, October 18, 2012

Day Trading Strategies For Beginners

I would strongly recommend beginners for trading read this link below.
http://www.investopedia.com/articles/trading/06/daytradingretail.asp#axzz29ivIcrjr

The author is writing as per experience and stating the truth. As always, practising to be perfect in your trading isn't as easy as being thought or said.

Samsung Galaxy Note 2 review

Here is a review that I find it in real detail but do not that it is a little lengthy.

http://www.techradar.com/reviews/phones/mobile-phones/samsung-galaxy-note-2-1093688/review#articleContent

Merging multiple mp3 files into a single mp3 file for Mac OS X

Trying to create rip an audio book into mp3 while I faced this problem.

Basically, the audio book CD came in various tracks in it.
After ripping it from iTunes to mp3, multiple mp3 files had been created which is not very convenient to manage or listen.

Here is a command from the Terminal which I used to merge the multiples mp3 files together >>

for i in *; do echo $i; cat $i >> bigfile.mp3; done;

This command will actually join the mp3 files together and show the sequence it was being joined. Please rename your file in sequence and make sure there isn't any spaces in the filename.

Tips and Tricks : Increase VirtualBox VDI disk size

Run this command >> VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

In example :-

To modify the existing vdi operating system to 40000MB instead of default 10GB.
Assume my file name is WinXP.vdi.

Command to run >>
VBoxManage modifyhd WinXP.vdi --resize 40000

Wednesday, October 17, 2012

Difference between encoding and encryption?

Interesting to be suddenly being questioned by someone on this topic.
Here is a simple form to the answer.

    Encoding is changing the way data is presented
      - using a public, generally-understood, and (usually) low-overhead method
      - for the purpose of allowing the data to survive intact and easily recoverable after some sort of transfer.
    Encryption is changing the way data is presented
      - using a method or a key that is restricted and (as it happens) often computationally intensive
      - for the purpose of shielding the data from some people while making it available to others.

Monday, September 10, 2012

Getting Yahoo quotes into Excel

This link below shows a cool way to get Yahoo Stock quotes from Excel. It has a limitation of only allows to  get a maximum of 10 fields as it is being limited by Yahoo.

http://www.gummy-stuff.org/Yahoo-data.htm

Tuesday, September 4, 2012

How to Determine Whether your PC is being connected to a Domain Controller from Command Prompt (cmd)?

1. Type "set user" and Press "Enter" in the command prompt.
2. The result will show you:-
USERDNSDOMAIN=YourDNSDomain
USERDOMAIN=YourDomainName
USERNAME=YourLogonUsername
USERPROFILE=YourProfileDirectoryPath

How to Determine Which Domain Controller a PC is Using from Command Prompt (cmd)?

1. Type in that window "set logonserver" without quotes. Press "Enter" key.
2. Read the result of the output. The output will show you LOGONSERVER= and after the equals sign will be the name of the logon server.

Sunday, August 26, 2012

Wireshark filter to check for problem PC creating random account being lockout in AD

I have a PC that is residing in my office LAN which is causing accounts being lockout in the AD every now and then. The tool I used to trace down the PC is to use WireShark. By default, you could capture tons of information that is being transmit over the LAN but to cut things short, I used the default display filter to narrow down my time in tracing.

The steps being used in wireshark is as follows:-
1. Go to "Capture -> Options". My preference is to "Enable network name resolution" as it just save me time to figure out which computer name it is if it is able to resolve from the DNS/WINS.
2. Press the "Start" in the "Capture -> Options" menu after checking on "Enable network name resolution" will start the capturing of network packet from the default NIC.
3. In the "Filter" (Display Filter), type in this expression -> "kerberos.msg.type == 10"
4. After typing click on "Apply" and hopefully all things are right for you to see the result as show in the image below.
Based on the results, I only refer to the Info that display "AS-REQ" results. If a certain IP address is continuously display in the result, there is a high chance that this PC is the one causing the problem. So track down this PC and disconnect it from the network and make sure that the problem does not persist to confirm that this PC is the one.

Note: If the problem is still there, there might be a chance that there is more then a PC causing the problem or this is not the PC.

Wednesday, August 1, 2012

Onsite Engineer Toolkit Reference

For all those IT on-site engineers, this would be a good point of reference to gear up yourself before attending to customer calls.

Pls refer to the link below.
http://www.technibble.com/my-onsite-technician-gear/

Thursday, July 12, 2012