How to implement a CAPTCHA for Google Forms

Is it possible to make a random captcha for a google form? You may search and find on google groups and other sources a hard no to this question but, in fact, there is one method that I made that works pretty well. Unfortunately, there are some catches with the method that I am about to show you, but until we get to that, we first have to ensure that we can meet a requirement that this method has.  This primary requirement is an URL/server that can generate dynamically a captcha image fro...

View full article

PHP Class for modifying old HTML static copies / mirrors

Ok you made a static mirror(maybe with HTTrack, maybe with something else) and you still want to host it somewhere, but you also want to make a change to all the static pages without modifying each and every one of the files. In that case, you need to load that file using a script that reads the file at the time of loading then makes the changes you want and after that displays it. Sound simple enough so I made a PHP class that does just that and I even wrote 2 flavors of the script to work on ...

View full article

C++ Windows Detect If MBR or GPT PartitionStyle Simple Example

As the title suggest this is a Windows-only example, you may notice that I used it in QT environment from qDebug() helper function, honestly, the only small project that I can think of for this function is one where you would like to change the bootloader, but as I said this is a trivial example.

A few remarks:

  • 1 CreateFile needs to be called from a process that was run as admin in order to work ( require admin in manifest )
  • 2 On MBR Fist sector/boot sector is always writeable
  • 3 L"\\\\.\\PHYSI...
View full article

Avast breaks the ability to create new User on Win

I had to make a new user on a Windows 7 workstation machine, and the simple create user procedure failed miserably,  I thought maybe there are some permission problems.

The user created with GUI ( either control panel or MMC)  or from the console with the "net user command", spawned multiple 'profile' and 'temp' folders in the USERS folder, didn't create the necessary registry entries.

And if you logged in with any of the created users you got a perpetual "preparing desktop" and when ...

View full article