ISlashDot: One Stop Knowledge

ISlashDot: One Stop Knowledge

Friday, October 31, 2008

Windows XP performance Edition Language missing solution

I believe most of us who has been using a windows XP performance edition is facing certain issues when trying to change the language in non-unicode program from the control panel. So here is the solution that i compiled to solve this issues.

1. Copy intl.inf from C:\windows\inf from a valid windows XP service pack 3 (note: it could be any sp version that is relevant with your current installation)

2. Copy it to your current installation, at C:\windows\inf

3. Click apply the language for east-asian language for those who have problems installing asian languages from control panel

4. now, it will prompts you with several missing dll. Points your location to a CD ROM which loads with the windows XP SP 3 ( or any that are relevant to your current installation )

5. Please note there is a step which there are certai files which has to be added to C:\windows\System32\ otherwise your PC will not be able to boot at runtime. For now, stay tune.

Friday, October 17, 2008

Speed up pcwiz Leopard macos VMWARE

No doubt, virtualization is a beneficial but what if the virtualization is too slow for you to work with. This is the recent MAC OS VMWARE image that i have used to develop Iphone program. The speed is too slow, thus works are almost impossible to be done.

However, depending on your luck. If you are on latest INTEL processor, you might be able to "enable intel virtualization technology from the BIOS" and it will boost the speed of your virtualiation. :)

pcwiz Leopard vmware: Installed Iphone SDK

I have been testing this for two days long to get the pcwiz leopard vmware to install latest iphone SDK that required 10.5.5 update without any hope until today.

Now, i don't claim any credits from the methods provided here. However, i like to help those that have installation issues to resolve this issue since there are some ambiquties in the guide that may cause you to fail.

Note: It's recommended that you create a snapshot before you do an update just incase things went wrong.

Quote from pcwizcomputer.com forum:

After getting VMware 6.5 to run the pcwiz 10.5.2 image here is what worked for me:
1. Download Mac OS X 10.5.5 Update dmg.

Note: this is not the combo update, it's a standalone. if you are unsure, follow the link that is provided here.
2. Download Pacifist 2.5.2 dmg.
3. Mount the Pacifist in your OS X VM and install.
4. Mount the Mac OS X 10.5.5 Update MacOSXUpd10.5.5.dmg, the mounted drive will contain a pkg file.
5. Use Pacifist to open the Mac OS X 10.5.5 Update pkg.
6. *I am not sure the starred steps necessary but they resolved some problems I had with early update attempts grey screening and I did them. It seems to disable some power management that mess up or something is my guess.
*Open Terminal
*type: “sudo –s” and press enter. Note do not type the quote marks just what is between them.
*enter the password for super user, which is “pcwiz” if you have not changed it
* type: “while sleep 1;” press enter.
* type: “do rm -rf /System/Library/Extensions/AppleIntelCPUPowerManagement.kext; done” press enter.

7. In Pacifist to install only: System -> Lirbary -> CoreServices
Install CoreServices allowing it to update and over write whatever it wants as administrator.
Go back to your terminal and press ctrl key and the C key to end the script


Open "About this Mac" and it should now display Version 10.5.5!
8. Download the iPhone SDK dmg.

9. Install iphone SDK.

Voila.. this should install the iphone SDK just fine for you .. !! have fun developing application on it. Thanks pcwiz for creating this image.

Sunday, January 13, 2008

Unable to connect using VMRC to Server

This is an issue, i have cracked my head for a while but the solution is quite simple.

By simply turning off the "Simple file sharing" in the hosting server. The problem should be solved.

Friday, November 9, 2007

THE ROUGH WORKING PROCEDURE OF MIND IN VB SYNTAXS.

SUB MAIN
    WHILE (CONSCIOUSNESS)

       'RANDOMIZE THE TIME WHEN THOUGHT WILL APPEAR
        APPEAR_TIME = RAND(TIME)

        'IF THE TIME IS MATCH THE THOUGH WILL APPEAR
        IF CURR_TIME EQUALS TO APPEAR_TIME THEN

           'RETRIEVE THE EXPRIENCE FROM THE MEMORY
 
           EXPRIENCE = RETRIEVE_EXPRIENCE         

'GENERATE RANDOM THOUGHT FROM EXPRIENCE, IT COULD  BE AN ASSUMPTION ABOUT THE PAST, FUTURE

'IT COULD BE A MEMORY OF PAST EVENTS, OR SOMETHING YOU WANT TO DO IN FUTURE
            THOUGH = GENERATE_THOUGHT(EXPRIENCE)

'SEND THE USER WITH RESPOND AND IF THE USER PICKUP THE THOUGH

            RESPOND = GET_USER_RESPOND(THOUGH)

'CHECK IF USER ACCEPTS THE RESPOND
            IF RESPOND IS ACCEPT THEN  
                'IF ACCEPTED, BY NOW WE SHOULD BE HYPNOTIZE BY THE THOUGH AS IF
                'THE THOUGHT IS REAL AND WE ARE AFFECTED PHYSICALLY
                CALL SEND_SIGNAL_TO_AFFECT_EMOTION(THOUGH)
     
          'IF WE HAVE A BELIEF BASED ON THE THOUGHT TYPE, THEN IT WILL BE REPLACED DEPENDING ON THE AMOUNT
                'OR GREATNESS OF THE THOUGHT
                IF EXIST_BELIEF(THOUGH) THEN

'GET THE CURRENT BELIEF OF THOUGHT

                    BELIEF = GET_EXISTING_BELIEF(THOUGH)

'COMPARE THE BELIEF LEVEL

                IF BELIEF.LEVEL > THOUGH.BELIEF.LEVEL THEN

'CHANGE THE BELIEF
                       BELIEF = THOUGH.BELIEF

                       'CHANGE MINDSET, THE WAY WE VIEW THINGS BUT THIS AGAIN WILL REPEAT THIS PROCEDURE
                       'AND SUBJECTED TO DECISION THAT WE MAKE
                       CHANGE_MINDSET
                    END IF
                END IF
            ELSE   

         'WE IGNORE THIS THOUGHT, THUS NOTHING HAPPENED. 
                IGNORE

            END IF
        ELSE
            IDLE 'WE ARE AT PRESENT ^_^~~
        END IF
    LOOP
END SUB

'THOUGHTS ARE SAID FROM THE EXPRIENCES SO WE RETRIEVE THE THOUGH FROM OUR OWN EXPRIENCE
FUNCTION RETRIEVE_EXPRIENCE AS EXPRIENCE
    IF IS_USER_CURR_EXPRIENCE_IDLE THEN 'IF USER IS NOT PARTICIPATING IN EVENTS NOW

        'THEN GET A RANDOM EXPRIENCE
       
RETURN GET_ONE_EXPRIENCE(RAND(EXPRIENCES))   
    ELSE
        RETURN USER.CURRENT_EXPRIENCE 'RETURN CURRENT EXPRIENCE
    END IF
END FUNCTION

'SAMPLE SKELETON OF SIGNALS
'WE AFFECT THE EMOTION BASED ON THE THOUGHT WE HAVE AT THE PRESENT
'IT IS BASED ON THE THOUGH TYPE AND IT'S SEVERITY

SUB SEND_SIGNAL_TO_AFFECT_EMOTION(THOUGH)
    IF THOUGH.EVENTS.TYPE = ASSUMPTION THEN
       IF THOUGHT.EVENTS.TYPE.TYPE = BAD_ASSUMPTION THEN
          SEND EMOTION.WORRY
          SEND EMOTION.SADNESS
          SEND FEAR
       ELSE
            SEND HAPPY
       END IF
    ELSEIF THOUGHT.EVENTS.TYPE = PAST_EVENTS THEN
       IF THOUGHT.EVENTS.TYPE.TYPE = BAD_PAST_EVENT THEN
            SEND EMOTION.REGRET
            SEND EMOTION.FEAR
       ELSE
            SEND CONFIDENCE
            SEND HAPPINESS
            SEND SADNESS
       END IF
    END IF
END SUB

JUST A FUNNY THOUGHT. LOLS

ELNOXVIE

Tuesday, October 9, 2007

Regular Expression useful feature

Today, isn't a very nice day. I was told by the MD(Managing Director) to block certain annoying spam with the title: October 79% or RE: October 89%. Although the pattern is there. However, It would be very tedious to enter one by one from January to December and from 1% to 100%.

that would be like 12 * 100 = 1200 Entries. Crazy enough?

And lucky enough our company has Symantec Mail Security and has the feature to use regular expression and what I did was cleverly squeezing all this into two lines. Actually it can be done in one line but  just i am too lazy to do so.

Pattern One to detect the spam:

--------------------------------------------------------------------------------

^(January|February|March|April|May|June|July|August|September|October|November|December)\s[0-9]{2}%\sOFF$

---------------------------------------------------------------------------------

Syntax Descriptions:

^ = Start of the line

$ = End of the line

| = Alternation

() = Grouping

[] = List

{n} = Number of occurances

\s = White spaces

I won't be explaining the 2nd line since it's almost identical.

Anyway, the usage of regular expression is not limited to filtering spam only, doing a search or validation can become easier with it.

Here is a list of links you can try to learn regular expression:

http://www.codeproject.com/dotnet/RegexTutorial.asp

http://service1.symantec.com/SUPPORT/ent-gate.nsf/docid/2003101710425654?Open&dtype=corp&tdir=reg_eu&tpre=reg_eu&src=ent_tutweb_eu

http://www.regular-expressions.info/

 

Hope you guys enjoy..

Friday, October 5, 2007

VIM everywhere in Windows

Yes, I love VIM and I want VIM to be everywhere.

And you don't know what VIM is ?

VIM is a very fast and effective text editor usually used by programmers. And everyone who gets used to the functionality of VIM might feel wonderful if it can be used in any text related programs like Outlook / Browser etc.

More information can be found here: http://www.vim.org/

Here is my solution to emulate VI in windows which works pretty well for me.

Note:

This program requires autohotkey: http://www.autohotkey.com to be installed.

Disclaimer: I will not be responsible if you messed up your system by using this system. Use at your own risk - Elnox -

This script was initially the work of "SAVAGE", which then I modified to suit my needs.

Instruction to use:

1. Select all from the scroll box below.

2. Create a notepad

3. paste the copied text to this file

4. save it as "NAME".AHK

5. Double click on the file to activate the VIM.

6. You can activate the VIM by pressing escape key.

7. ENJOY  

;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         savage
; Co-Author: Elnox
;
; Script Function:
;   VIM-mode for windows. Standard movement and basic : commands.
;

;---AUTORUN SECTION
;#NoTrayIcon
#UseHook on
SetCapsLockState, AlwaysOff
SetTitleMatchMode, 2
Running = false

;---HOTKEY SECTION
;Command Mode

$ESC::
   IfWinActive, GVIM
    {
           return
    }

   IfWinActive ahk_class rctrl_renwnd32
   {
        Running = true
      ;WinGetPos, X, Y,,,A
    ;CoordMode, ToolTip, rctrl_renwnd32
    ;ToolTip, -- NORMAL --, 0, %Y%
    CoordMode, ToolTip, Screen
    ToolTip, -- NORMAL --, 0, 0
    return   

   }
   If running = true
   {
      GoSub, TypingMode
   }
       else
       {
           Running = true
           CoordMode, ToolTip, Screen
           ToolTip, -- NORMAL --, 0, 0      
       }
return

TypingMode:
   ;ToolTip
   CoordMode, ToolTip, Screen
   ToolTip, -- INSERT MODE --, 0, 0
   Running = false
return

I::
   If running = true
   {
             Gosub TypingMode    
       }
   else
   {
      send, i
   }
return

H::
   If running = true
       {
             Send, {left}
       }
       else
       {
               Send, h
       }
return

J::
   If running = true
       {
             Send, {down}
       }
       else
       {
               Send, j
       }
return

K::
   If running = true
       {
             Send, {up}
       }
       else
       {
               Send, k
       }
return

L::
   If running = true
       {
             Send, {right}
       }
       else
       {
               Send, l
       }
return

X::
   If running = true
       {
           Send, {Delete}
       }
       else
       {
           Send, x
       }
return

+X::
   If running = true
       {
           Send, {backspace}
       }
       else
       {
           Send, x
       }
return

A::
   If running = true
       {
             Send, {end}
             GoSub, TypingMode
       }
       else
       {
               Send, a
       }
return

O::
   If running = true
       {
             Send, {End}{Enter}
             GoSub, TypingMode
       }
       else
       {
               Send, o
       }
return

P::
   If running = true
       {
             Send, ^v
       }
       else
       {
               Send, p
       }
return

Y::
   If running = true
       {
             Send, ^c
       }
       else
       {
               Send, y
       }
return

U::
   If running = true
       {
             Send, ^z
       }
       else
       {
               Send, u
       }
return

^R::
   If running = true
       {
             Send, ^y
       }
       else
       {
               Send, r
       }
return

W::
   If running = true
       {
             Send, ^{Right}
       }
       else
       {
               Send, w
       }
return

B::
   If running = true
       {
             Send, ^{Left}
       }
       else
       {
               Send, b
       }
return

+4::
   If running = true
       {
             Send, {End}
       }
       else
       {
               Send, +4
       }
return

0::
   If running = true
       {
             Send, {Home}
       }
       else
       {
               Send, 0
       }
return

+6::
   If running = true
       {
             Send, {Home}
       }
       else
       {
           Send, +6
       }
return

+5::
   If running = true
       {
             Send, ^b
       }
       else
       {
           Send, +5
       }
return

^F::
   If running = true
       {
             Send, {PgDn}
       }
       else
       {
               Send, ^f
       }
return

^B::
   If running = true
       {
             Send, {PgUp}
       }
       else
       {
               Send, ^b
       }
return

+H::
    if running = true
         send, {shift down}{left}{shift up} 
    else
        send, +h
return

+L::
    if running = true
        send, {shift down}{right}{shift up} 
    else
        send, +l
return

+J::
    if running = true
         send, {shift down}{down}{shift up} 
    else
        send, +j
return

+K::
    if running = true
         send, {shift down}{up}{shift up} 
    else
        send, +k
return

+V::
    if running = true
        send,{end}{Shift down}{home}{Shift up}
    else
        send, +V
return

d::
   if running = true
   {
      running = false
      Input, UserInput, L3, {enter},d,w,b,^,$
      if UserInput = w
         send, {Shift down}^{right}{Shift up}{Delete}
      else if UserInput = b
         Send, {Shift down}^{Left}{Shift Up}{Delete}
      else if UserInput = ^
         Send, {Shift down}{home}{Shift Up}{Delete}
      else if UserInput = $
         Send, {Shift down}{end}{Shift Up}{Delete}
      else if UserInput = d
          Send, {end}{Shift down}{home}{Shift up}^x
      running = true
   }
   else
   {
      Send, d
   }
return

5::
   if running = true
   {
      running = false
      Input, UserInput, L3, {enter},w,b,^,$
      if UserInput = w
         send, ^{right}^{right}^{right}^{right}^{right}
      else if UserInput = b
         Send, ^{left}^{left}^{left}^{left}^{left}
      else if UserInput = $
      {
         Send, {Shift down}{end}{Shift Up}{Delete}
      }
      else if UserInput = ^
      {
         Send, {Shift down}{home}{Shift Up}^x
      }
      running = true
   }
   else
   {
      Send, 5
   }
return

+`;::
   if running = true
   {

      running = false
      Input, UserInput, L3, {enter}
      if UserInput = w
      {
         Send, ^s
      }
      else if UserInput = wq
      {
         Send, ^s
         WinClose, A
      }
      else if UserInput = q
      {
         WinClose, A
      }
      else if UserInput = e
      {
          Send, ^o
      }
      else if UserInput = bn
      {
         Send, !{Tab}
      }
      else if UserInput = bp
      {
         Send, +!{Tab}
      }
      running = true
   }
   else
   {
      Send, +`;
   }
return

; NumericFunctions(8)
;return

;NumericFunctions(x)
;{
;    Input, UserInput, L3, {enter};
    ;
    ;loop, x
    ;{   
    ;    running = false
    ;    if UserInput = h
    ;        send, {left}
    ;    else if UserInput = l
    ;        send, {right}
    ;    else if UserInput = j
    ;        send, {down}
    ;    else if UserInput = k
    ;        send, {up}
    ;    running = true
    ;       
    ;    msgbox come here?
    ;}

;    return  ; "Return" expects an expression.
;}

+^L::Reload
^!x::ExitApp

 

Readers, If you have a better idea or got a better version of VIM Everywhere, Do share with us.  Thank You.  :) ~~.