Miranda IM

Go Back   Miranda IM - Forums > Development > Plugins

Plugins For plugin developers and related discussion

Reply
 
Thread Tools Display Modes

  #1  
Old 11 Sep 2005, 4:53 AM
y_b y_b is offline
Miranda Master
 
Join Date: March 2005
Posts: 518
VirtDB and Secure VirtDB

Following up some requests and discussions in another thread I am presenting alpha versions of "Virtualizable" mod of dbx_3x and SecureDB.

The mod permits the DB be "virtualized" - the whole db is copied to the memory and is accessed only there without performing any disk access. Later, on user request, or automatically the DB can be updated to the real DB file and bounded again to it.

One of the benefits of such approach is avoiding writing history. The user can configure Miranda and to virtualize the DB. The history will be written only to the image in the memory and on exit can be discarded.

When the db is virtualized the memory image can be written to new file - i.e. to create a backup.
It is possible to load the DB even from read-only media.

This mod is in very alpha stage and should be used with high precautions. Make backup of your DB before installing some of these plugins!

The mod is applied to dbx_3x 0.5.1.0 and to the updated SecureDB.
It also includes Pescuma's PATH patch shortly described here and there.

The behavior can be controlled by mirandaboot.ini. You may want to see a sample.

Downloads
There are two new services defined that could be used by external plugins.
I have uploaded sample plugin with sources to demostrate the new services.

Last edited by y_b; 14 Jun 2006 at 5:21 AM. Reason: update
Reply With Quote

  #2  
Old 13 Sep 2005, 6:27 PM
pescuma pescuma is offline
Miranda Grand Master
 
Join Date: July 2005
Location: Brasil
Posts: 2,629
Cool, thanks y_b.

One question: could you add an option to realize the db at every x minutes?
Reply With Quote

  #3  
Old 13 Sep 2005, 7:05 PM
y_b y_b is offline
Miranda Master
 
Join Date: March 2005
Posts: 518
Quote:
Originally Posted by pescuma
One question: could you add an option to realize the db at every x minutes?
May be... But first I would like to equalize the new code in both plugins. Currently VDB is kind-a older than SVDB.

Also I am thinking to optimize the realize procedure - to override only the changed segments of the DB - this would make longer flash-memories live... eventually.

Most likely there will be a system service that might be used by another plugin to schedule "realizations", backups, etc.

BTW being not very artistic person I accept suggestions for "Virtualize", "Realize" and "Save DB..." main menu icons

Last edited by y_b; 13 Sep 2005 at 7:31 PM.
Reply With Quote

  #4  
Old 14 Sep 2005, 3:01 AM
Drugwash Drugwash is offline
Miranda Grand Master
 
Join Date: March 2005
Posts: 9,538
One small suggestion: zip those dlls before uploading them. This way creation date can be preserved and zip can get whatever name, without having to name/rename the dll itself upon download/install :-)
Reply With Quote

  #5  
Old 14 Sep 2005, 6:49 AM
Faith Healer Faith Healer is offline
Miranda Master
 
Join Date: March 2005
Location: Moscow, Russia
Posts: 586
Quote:
Originally Posted by Drugwash
One small suggestion: zip those dlls before uploading them. This way creation date can be preserved and zip can get whatever name, without having to name/rename the dll itself upon download/install :-)
the worst idea I ever heard
Reply With Quote

  #6  
Old 14 Sep 2005, 4:06 PM
Drugwash Drugwash is offline
Miranda Grand Master
 
Join Date: March 2005
Posts: 9,538
I keep my files in folders by creation date. It's easier to find a previous version, in case the current one fails.
Don't forget I'm testing all kinds of plugins and I need some order around. Besides, not all people have broadband access, even if it's a 100kB file, and if the server is bad, it takes a lifetime to download it.

Anyway, what on earth do you find bad in having the file zipped, with the possibility of renaming it like filename x.x.x.x.zip (where x.x.x.x is version number) before downloading it, while the content's filename and date stays unchanged?
Reply With Quote

  #7  
Old 15 Sep 2005, 4:34 PM
y_b y_b is offline
Miranda Master
 
Join Date: March 2005
Posts: 518
both plugins updated

I have just uploaded new versions of both VirtDB and VirtDBS plugins.
For more links see my first post.

The changes are:
  • The bug with realize-on-exit has been solved/workarounded (hopefuly);
  • Both plugins were joined to the same workspace;
  • Two new services were introduced;
  • There are some clean-ups of the code.

P.S. to Drugwash:
You may use
Code:
wget http://saaplugin.no-ip.info/db3xV/dbx_3xSV.dll
This will keep the timestamp and you will be able to see exatly when I compiled the dll ;)
Reply With Quote

  #8  
Old 15 Sep 2005, 5:40 PM
Drugwash Drugwash is offline
Miranda Grand Master
 
Join Date: March 2005
Posts: 9,538
I just right-click on the link and choose "Save target as...". If it were a zip, I could simply change it's name to reflect the date or version.

Being a dll, I have to first download it, then change it's date according to the internal "last modified" date, then zip it, naming the zip according to version number or release date.

Oh well... Thanks for the new builds.
Reply With Quote

  #9  
Old 21 Sep 2005, 3:58 AM
y_b y_b is offline
Miranda Master
 
Join Date: March 2005
Posts: 518
I have just uploaded new build of both plugins. There is a minor change in the SaveFile service.
The new build has number 0.5.1.2 (check the file version).

Also I have prepared a simple plugin to demonstrate the new VirtDB services.
It can be used as a base to make AutoRealize/AutoBackups plugin.
For the links - see the first post.
Reply With Quote

  #10  
Old 21 Sep 2005, 4:27 AM
Drugwash Drugwash is offline
Miranda Grand Master
 
Join Date: March 2005
Posts: 9,538
Are you following the dbx_3x.dll in the nightlies, or you're working on the same old dll 0.5.1.0? There may be updates to it, required for the new unicode build in the nightlies, at least.

It'd be nice to add a note saying on which build is your version based (say nightly #35 or 0.5.1.0, for example).

I saw that 0.5.1.0 there, but I'm not sure though.

Last edited by Drugwash; 21 Sep 2005 at 4:32 AM.
Reply With Quote
Reply

Bookmarks

Tags
database driver, db driver, password, privacy, secure virtdb, security, virtdb

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure IM doesn't work! Infantulus Help & Support 0 6 Sep 2007 2:28 PM
Secure sign in NOT so secure fiji Help & Support 11 23 Oct 2006 9:01 PM
Secure IM DarkPhoenix Help & Support 1 19 Oct 2006 9:17 PM
Secure messages donotbugme Help & Support 3 1 Apr 2006 5:27 PM
secure IM? mypp Feature Requests 7 9 Apr 2005 10:16 AM



All times are GMT +1. The time now is 2:10 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.