PGOffline & MySQL

For many years I am using PGOffline, a tool to get all the content from yahoogroups.

PGOffline was using up to version 3 an Access Database but with the release of version  4 they went to an SQLite database.  Here came my problem.

For years I was inserting the data from the Access Database into an MySQL database so that with an PHP script I could search through more than 100.00 messages.

But after PGOffline went to SQLite I had an issue cause my ODBC connection was not working anymore. Due to some change in PC’s and notebooks I lost my access database with the ODBC and Queries as well (damn .. )

Altough the mailinglist is not that active anymore, there were some 6000 messages submitted in around 1,5 to 2 years. and I want to have them inserted in the MySQL database still ..

The issue I had was that the SQLite database of PGOffline contains a BLOB (Binary Object)  with the message and is not ‘simply’ readable.

for months I was trying and there was no solution for me to fix that. Until last weekend. And actually it was pretty easy. And I fixed it ..

1. Microsoft Access

2. Make sure you have access to your MySQL database and able to connect to it (do check my.cnf for the bind address (if you are on Linux) make sure you can connect to it from other machines) and make sure the firewall does not block its port (which I noticed after 15 minutes of trying or so)

3. install MySQL ODBC drivers in your environment

4. install SQLite ODBC drivers in your environment

In Access make sure you link to the database with linked tables.

the SQLite database is just the file. In my example its on the same computer as the Access database

The issue I had with the SQLite database and its linked tables was that the ODBC driver did not allow me to search with wildcards (select * from person  where person is like ‘a%’) . To make sure I have all subscribers I made an update query to a local table with all the persons, but in fact that is not needed.

Than I made sure I could read the messages

with this query: ‘StrConv([content],64)’ I was able to decode the BLOB.  and with some other InStr queries I removed the beginning and end of the start of the message as this is ‘garbage’ not needed, I added some HTML breaks.

Finally I created an update query inserting all the new messages from the SQL database not in the MySQL database, I even found that very old messages were not imported at all they were forgotten, now they were inserted as my Query statement request to insert all YahooMessageID’s not in the MySQL database ..

 

 

 

Registering VMX (Virtual Servers, VMWARE) after messing up ESXI

My Esxi host was messing with me

Some virtual servers where unregistered due to, I dunno. Even after reboot the vmware server lost all its config settings. SSH login password was gone, network was gone ..

So after going back to factory defaults within the GUI I restarted the device, loaded the license key and I saw that all VM’s were gone ..

With following command I got them, one by one, back

vim-cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx

if there is a space in the VM_directory escape it by using “VM_directory” (use quotes)

Salmiak (zelf maken)

Even wat historie:

vroeger kocht mijn vader altijd salmiak bij de drogist (later een DA drogist), deze salmiak zat in een grote bus en werd dan afgewogen en in een puntzakje gedaan. Weggelegd na maanden werd het een stevig klompje zeer zoute drop achtige substantie. Op een schoteltje super zout af en toe met wat extra suiker… Deze salmiak zocht ik.

Goed, laat ik iedereen uit de droom helpen: deze salmiak bestaat niet meer in deze vorm. De salmiak die nu bij de Gaper, bij Jamin te koop is (zout of zoete variant) komt niet in de buurt van de super zoute versie die ik vroeger kreeg.

Dus op zoek naar de ingredienten. Op zich super makkelijk

1. Je koopt een bus met Salmiak Zout (online te koop in bussen van 800 gram tot 1KG

dit salmiak zout is wit en zeer verfijnd. En is dus de basis van je ‘Salmiak’

Omdat het wit is, mis je dus een ander ingredient en wel te weten:

2. Zoethout(wortel) poeder. Ook dit is overal te koop, al heb ik een 200 grams bus gekocht bij de groothandel welke normaliter in de pattisserie gebruikt wordt.

1 Theelepel samiakzout

3 Theelepels zouthoutpoeder

1 Theelepel poedersuiker

En waarempel .. daar heb ik voor 99% tot 100% de smaak die ik na jaren zoeken weer herkende…

Yeah !

De echte zoute lekkere salmiak.

https voor aroundmyroom.com

Gisteren de website overgezet naar https, gewoon omdat het kan en omdat ik eea wilde uittesten met een certificaat op de website. Het werkt. Ik ben er dus blij mee. Certificaat werkt voor een jaar dus daarna zien we wel verder ;0)

Alleen krijg ik momenteel het niet voor elkaar om die www  eraf te halen (too many redirects) .. uhmm zal wel een foute plugin zijn ..