Skip to main content

Posts

Showing posts from March, 2020

Remote Registry missing in Vista

  After installing/uninstalling software in Windows Vista Business machine "Remote Registry" got missing in the services list. Poking around the registry, noticed that under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry", Start key was gone. See picture below for the location: Creating the "Start" key of type REG_DWORD and value 3 (Manual) or 2 (Automatic), then a rebooted fixed the problem. ~ts

USB Mouse not detected properly in Vista

After using Windows Vista for over a month my USB mice stopped working :(.... Fortunately this is easy to fix via trial and error on what driver best works for Vista. To fix this do the ff: Step 1. Go to Device Manager (devmgmt.msc). Step 2. Do Update Driver Software. Step 3. Browse my computer for driver software. Step 4. Select "Let me pick from from a list of device drivers on my computer." Step 5. If it was shown as unknown device, select "Mice and other pointing device" else select "HID-compliant device." Step 6. Click on "Have Disk..." Step 7. Drill to C:\Windows\System32\DriverStore\FileRepository. Select a folder with a name that start with msmouse*. Start with the folder that has the latest time stamp. If this driver does not work select the next newer folder until your mouse driver is installed properly. See below for related figures. Figures: Figure 1. Figure 2. ~ts

Installing VirtualBox Guest additions in Debian Buster

VirtualBox Guest Additions allow a good number of  host to guest integrations that makes using the VM easier to use, for example copy/pasting text from host to guest and vice versa is very convenient. Another useful feature is resizing the window of the guest VM. To enable/install VirtualBox Guest Additions, do: $: sudo apt install dkms From VirtualBox Guest main UI, select Devices | Install Guest Additions..., then: $: cd /media/cdrom $: sudo sh ./VBoxLinuxAdditions.run $: sudo reboot Note: Copy/Paste is broken in 6.1.4, see  https://www.virtualbox.org/ticket/19336 . Test build VBoxGuestAdditions_6.1.5-136446.iso works for me.  Keywords: Debian Buster, Debian 10.3

Adding existing user to a group in Ubuntu

Example below adds user timus to the group www-authors $: sudo usermod -a -G www-authors timus To add user timus to sudoers group, do: $: sudo usermod -a -G sudo timus Note: That for the sudo to take effect you have to logout and log back in. In Debian Buster (10.3), need to reboot for it to take effect Tested on: - Lubuntu (13.04) - Ubuntu (12.04 - 13.04) - Debian Buster (10.3) References: http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/ http://askubuntu.com/questions/7477/how-can-i-add-a-new-user-as-sudoer-using-the-command-line

Install Lazarus on MX Linux

Lazarus IDE is one of the Free Pascal IDEs available. Lazarus/FPC combination is an open source replacement for Delphi. Just would like to note that Delphi as of March 2020 is more than just a rapid application development platform for developing desktop applications, it can also be used to write Android and web application. Anyway, to instal Lazarus on MX Linux (or Debian Buster derivates), do: $: sudo apt install fpc fpc-source gdb lazarus Keywords: Lazarus, Free Pascal, Delphi, Linux

Fatal: Cannot find FastHTMLParser used by Clipbrd of package LCLBase

I have tried to install Lazarus 2.0.0 (FPC 3.0.4) on MX Linux 19.1 but got the following error message when compiling the default project created by Lazarus. Fatal: Cannot find FastHTMLParser used by Clipbrd of package LCLBase. One way to fix this is to install the fpc package, like: $: sudo apt install fpc Keywords: Free Pascal, Lazarus

Disable Windows Vista UAC using MSCONFIG

Run msconfig.exe from command line. Then select "Disable UAC", see above for the location. Then hit on "Launch" button. Reboot computer. ~ts

SHDocVw.ShellWindows stopped working on Vista

I have the following code to enumerate running instance of IE 7(not sure if this works with IE6). Sub TestGetRunningIE() Dim sws As SHDocVw.ShellWindows Dim ie As SHDocVw.InternetExplorer Set sws = New SHDocVw.ShellWindows For Each ie In sws Debug.Print ie.Name Next End Sub For the above code to work, need to make a reference to shdocvw.dll, see below for the location: When I moved this code in Vista SP1 Business it stopped working. Who would think that this is related to UAC :)... anyway just disable UAC and this code should work again. Note that on one of my machines it is working with UAC on :(.... See this post to disable UAC . This is only one of the methods to disable User Account Control. ~ts

ASM: Convert int to string in Assembly

This post shows how to convert int (DWORD) to string using MASM library dwtoa. There seems to be a bug in dwtoa as it can only handle 2147483647 instead of 4294967295 which is the maximum size of DWORD (32-bit). The code for dwtoa checks for a negative number which is not needed for DWORD. Note that DWORD is defined as 32-bit unsigned. Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff int2string.asm To link: \masm32\bin\Link /SUBSYSTEM:CONSOLE int2string.obj

ASM: Basic Windows application in Assembly

This post shows how to create Windows application using Assembly. Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff basicwindows.asm To link: \masm32\bin\Link /SUBSYSTEM:WINDOWS basicwindows.obj Reference(s): This is shamelessly using contents from Windows Assembly Programming Tutorial  by JEFF HUANG (huang6@uiuc.edu)

ASM: Basic usage of assembly instructions

This program shows usage of basic assembly instructions add, cmp, dec, jnz, jz, mov, mul, pop, push, xor Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff basicinstructions.asm To link: \masm32\bin\Link /SUBSYSTEM:CONSOLE basicinstructions.obj Reference(s): This is shamelessly using contents from Windows Assembly Programming Tutorial  by JEFF HUANG (huang6@uiuc.edu)

ASM: Hello world using MessageBox in Windows assembly

MessageBox Hello World in Windows assembly using MASM Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff hellow.asm To link: \masm32\bin\Link /SUBSYSTEM:WINDOWS hellow.obj Reference(s): This is shamelessly using contents from Windows Assembly Programming Tutorial  by JEFF HUANG (huang6@uiuc.edu) x86 Disassembly - link