Skip to main content

Posts

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