Wednesday, April 16, 2014

Install Telnet Client by using a command line









pkgmgr /iu:"TelnetClient"


Applied to Windows 7, Windows Server 2008 R2, Windows Server 2008 or Windows Vista



Package Manager Command-Line Options

The following command-line options are available for Package Manager.
pkgmgr.exe [/?] [/h] [/help] [/l:file_name] [/ip] [/iu:Windows_feature_name] [/m:package_directory] [/n:answer_file] [/norestart] [/o:system_drive_pathoffline_Windows_directory_path] [/p:package_name] [/quiet] [/s:sandbox_directory] [/up:package_name] [/uu:Windows_feature_name]
Ref: http://technet.microsoft.com/en-us/library/cc749465(v=ws.10).aspx


Tuesday, April 15, 2014

"Clock skew detected" issue







Clock skew detected
Warning: File `main.cpp' has modification time 381 s in the future make: warning: Clock skew detected. Your build may be incomplete.

the message "Clock skew detected" is most commonly given if compiling sources located on an NFS mount and the NFS server's clock runs ahead the client's clock doing the compilation.
A possible solution is to "touch" every file in the source tree in order to update timestamps: go to the root of the subtree an do "find . -exec touch {} \; "

Then "make clean"and retry compilation



PCmover: free data transfer from WinXP to Win8.1







Laplink PCmover Express for Windows XP is an easy way to move your files, settings and user profiles from your old Windows XP computer to your new Windows PC
http://www.microsoft.com/windows/en-us/xp/transfer-your-data.aspx




Tuesday, April 8, 2014

Outlook 2010: MobileMe Services issue









MobileMe Services has encountered a problem

then I am prompted to send an error report (2x) then I am into Outlook and can work normally.


In the end, I simply renamed C:\Program Files\Common Files\Apple\Mobile Device Support\OutMMe32.dll to OutMMe32.dll.orig



Friday, April 4, 2014

C shell basic







The C Shell recognizes the following operators, in order of precedence.

     ()       - parenthesis - change order of evaluation
     -        - unary minus/negation
     ~        - one's complement
     !        - logical negation
     %        - remainder
     /        - divide
     *        - multiply
     -        - subtract
     +        - addition
     >>       - shift right
     <<       - shift left
     >        - greater than
     <        - less than
     >=       - greater than or equal
     <=       - less than or equal
     !=       - not equal to (strings)
     ==       - equal to (strings)
     &        - bitwise AND 
     ^        - bitwise exclusive OR
     |        - bitwise inclusive OR
     &&       - logical AND
     ||       - logical OR

Ref: 1 2



Wednesday, April 2, 2014

Alias server name for SSH








Use file ~/.ssh/config
example content:
Host altonjuve
    HostName 
    User alton



Friday, March 28, 2014

tcpdump:: how to







tcpdump -i tap24 -lnXXvs0 udp port 15001
tcpdump -r /tmp/cpub -lnXXvs0 udp port 6003|less
tcpdump -i eth1 -lnXXvs0 vlan 1169 -w /tmp/12345
tcpdump -lnvs0 vlan 1169 -r /tmp/12345|less
tcpdump -lnvXvs0 vlan 1169 -r /tmp/12345|less
tcpdump  -r /tmp/1234 -lnXXvs0|strings
/550 to search 550

/usr/sbin/tcpdump -r /tmp/zzzz -ln
/usr/sbin/tcpdump -r /tmp/zzzz -ln|grep -v 20002
/usr/sbin/tcpdump -r /tmp/zzzz -ln|less
/usr/sbin/tcpdump -r /tmp/zzzz -ln tcp|less

/usr/sbin/tcpdump -r /tmp/zzzz -ln tcp|tail
tcpdump -s 0 -w /tmp/zzzz -i br13 -ln
tcpdump -i eth4 -w /tmp/abc tcp port 12345





Tuesday, March 18, 2014

strace to help debug issues





good to see: 1 2 good
Strace monitors the system calls and signals of a specific program. It is helpful when you do not have the source code and would like to debug the execution of a program. strace provides you the execution sequence of a binary from start to end.






Thursday, December 5, 2013

Running UNIX shell commands from vim










To run a single UNIX command use the command:
   :!UNIX_command
You can start a shell from within vi and use it as you would your usual UNIX environment, then exit the shell and return to vi
To start up a shell enter the command:
   :sh
The type of shell that is started is determined by the $SHELL variable. You can specify that some other shell is to be started by setting the vi shell option
Return to using vi by entering the command exit or Ctrl-D


Shell Functions



:! cmdExecutes shell command cmd; you can add these special characters to indicate:% name of current file# name of last file edited
!! cmdExecutes shell command cmd, places output in file starting at current line
:!!Executes last shell command
:r! cmdReads and inserts output from cmd
:f fileRenames current file to file
:w !cmdSends currently edited file to cmd as standard input and execute cmd
:cd dirChanges current working directory to dir
:shStarts a sub-shell (CTRL-d returns to editor)
:so fileReads and executes commands in file (file is a shell script)
!Motion_cmdSends text from current position to Motion Command to shell command cmd
!}sortSorts from current position to end of paragraph and replaces text with sorted text

Displaying vi option values

To display the current value of all options enter the command:
:set all
To display the value of those options whose values have been reset from their default enter the command:

:set


Change an option value temporarily

To change a the value of an option temporarily:
   :set option_name
or:
   :set option_name=value

This sets the value of the option until you quit vi.

Change an option value permanently

To make a lasting change, create a file named .exrc, containing the set commands, in your home directory. The next time you use vi these options will take effect and will remain in force until you edit the .exrcfile to change them.

You can, of course, temporarily change the value of any option.

Examples of setting vi options permanently

1. To set a number of options place the set commands in the file .exrc.
   set ic
   set number
   set sh=/usr/local/bin/Tcsh
   set wm=5
This sets vi to:
   - ignore the case of characters in searches
   - display line numbers
   - use the TC shell to execute UNIX commands
   - wrap text five characters from the right edge
     of the screen
2. Options can also be set using the environment variable EXINIT.
   setenv EXINIT 'set ic number sh=/usr/local/bin/Tcsh wm=5'
For the C and TC shell user, this sets the same options as in the example above.

If there is a .exrc file owned by you in your home directory or the current directory, vi will take its option values from this and not from the EXINIT environment variable.

Friday, November 1, 2013

hosts for facebook












173.252.100.26 facebook.com
173.252.100.26 www.facebook.com
173.252.100.26 www.login.facebook.com
173.252.100.26 login.facebook.com
173.252.100.26 apps.facebook.com
173.252.100.26 register.facebook.com
173.252.100.26 vi-vn.connect.facebook.com
173.252.100.26 vi-vn.facebook.com
173.252.100.26 static.ak.connect.facebook.
173.252.100.26 error.facebook.com
173.252.100.26 register.facebook.com
173.252.100.26 bigzipfiles.facebook.com
173.252.100.26 pixel.facebook.com
173.252.100.26 upload.facebook.com
173.252.100.26 graph.facebook.com
173.252.100.26 developers.facebook.com
173.252.100.26 blog.facebook.com
173.252.100.26 channel.facebook.com
173.252.100.26 connect.facebook.com


Friday, October 25, 2013

winsxs folder








How to move the WinSxS (Windows Side-by-Side) folder in Win 7

Please use winsxslite



Thursday, October 24, 2013

Changing your hosts file in Vista









C:\Windows\System32\drivers\etc
+ hosts

Properties | Security | Edit

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
173.252.110.27 facebook.com
69.171.247.29 www.facebook.com
173.252.100.27 login.facebook.com
66.220.152.19 upload.facebook.com
66.220.152.19 graph.facebook.com
173.252.100.27 pixel.facebook.com
173.252.112.23 apps.facebook.com


Tuesday, September 10, 2013

Monday, July 15, 2013

Reset Windows password






Boot with CDROM installer: Repair your computer | Command Prompt |
copy c:\windows\system32\sethc.exe c:\
copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe

Reboot Windows with "Shift 5 times"

net user geek MyNewPassword

Reboot with CDROM installer: Command Prompt

copy c:\sethc.exe c:\windows\system32\sethc.exe



Sunday, June 23, 2013

Command-Line editing mode










set -o emacs  (bash initially starts with emacs-mode, or see -noediting option for more details)
or set -o vi

emacs editing mode
+ CTRL - B: backward one character
+ CTRL - F: forward one character
+ DEL: delete one character backward
+ CTRL - D: delete one character forward

+ ESC - B: backward one word
+ ESC - F: forward one word
+ ESC - DEL: delete one word backward
+ ESC - D: delete one word forward

+ CTRL - A: Move tobeginning
+ CTRL - E: Move to end
+ CTRL - K: Kill forward to end

vi editing mode
+ h: move left one character
+ l: move right one character
+ b: move left one word
+ w: move right one word

Wednesday, May 29, 2013

Copy contents to clipboard





Start | Run | shell:sendto


Create new shortcut with "location"

CMD /C CLIP <


Monday, May 13, 2013

Firefox shortcuts:: Tips






TAB::

Ctrl + Tab 

Ctrl + (1-9) 
Ctrl + 9: 

Ctrl + T  
Ctrl + N 

Ctrl + Shift + T 

Ctrl + W 

TAB Groups::

Ctrl + Shift + E 
Address & Search:

Ctrl + L 
Ctrl + K



Tuesday, May 7, 2013

DEK Technologies Headquarters









DEK Technologies Headquarters Melbourne, Australia

DEK Technologies Pty. Ltd.
Cnr Riggall St and Maldon St
Broadmeadows, VIC. 3047
Australia.

Phone: +61 3 9309 1808
Fax: +61 3 9309 1878
Email: info@dektech.com.au


Postal Address
P.O. Box 713
Dallas, 3047
Victoria, Australia

Friday, May 3, 2013

Mail configuration for Outlook 2007







To configure Outlook 2007 for your Gmail address:
  1. Enable POP in your email account. Don't forget to click Save Changes when you're done.
  2. Open Outlook.
  3. Click the Tools menu, and select Account Settings...
  4. On the E-mail tab, click New...
  5. If you are prompted to Choose E-mail Service, select Microsoft ExchangePOP3IMAP, or HTTP, and click Next.
  6. Fill in all necessary fields to include the following information:
  7. Your Name: Enter your name as you would like it to appear in the From: field of outgoing messages.
    Email Address: Enter your full Gmail email address (username@gmail.com). Google Apps users, enter your full address in the formatusername@your_domain.com.
    Password: Enter your email password.
    Manually configure server settings or additional server types: Leave this option unchecked if you want to automatically configure Outlook 2007. If you want to manually configure Outlook 2007, check this box now. Google Apps users should configure manually as follows.
    Enter name, email address, and password
  8. Click Next. If you are configuring Outlook 2007 automatically, you're done! Just click Finish.
  9. Successful Configuration
  10. If you are configuring Outlook 2007 manually, select Internet E-mail and click Next.
  11. Verify your User Information, and enter the following additional information:
  12. Server Information
    Account Type: POP3
    Incoming mail server: pop.gmail.com (Google Apps users, enter the server names provided, don't add your domain name in these steps)
    Outgoing mail server (SMTP): smtp.gmail.com
    Logon Information
    User Name: Enter your Gmail username (including @gmail.com). Google Apps users, enter your full address in the format username@your_domain.com
    Password: Enter your email password.
    Require logon using Secure Password Authentication (SPA): Leave this option unchecked.
    Account Settings
  13. Click the More Settings... button, and select the Outgoing Server tab.
  14. Check the box next to My outgoing server (SMTP) requires authentication and select Use same settings as my incoming mail server.
  15. Outgoing Server Tab
  16. Click the Advanced tab, and check the box next to This server requires an encrypted connection (SSL) under Incoming Server (POP3).
  17. In the Outgoing server (SMTP) box, enter 587, and select TLS from the drop-down menu next to Use the following type of encrypted connection:.
  18. Advanced Tab
  19. Click OK.
  20. Click Test Account Settings... After receiving 'Congratulations! All tests completed successfully', click Close.
  21. Click Next, and then click Finish.
Congratulations! You're done configuring your client to send and retrieve Gmail messages.

Thursday, May 2, 2013

regsvr32.exe









In computingregsvr32 (Microsoft Register Server) is a command-line utility in Microsoft Windows operating systems for registering and unregistering DLLs and ActiveX controls in the Windows Registry.
To be used with regsvr32, a DLL must export the functions DllRegisterServer and DllUnregisterServer.


regsvr32 shmedia.dll for registering a file
regsvr32 /u shmedia.dll for unregistering a file
If another copy of shmedia.dll exists in the system search path, regsvr32 may choose that copy instead of the one in the current directory. This problem can usually be solved by specifying a full path (e.g., c:\windows\system32\shmedia.dll) or using the following syntax:
regsvr32 .\shmedia.dll







Labels