From sunshine at public.kherson.ua Sat Apr 1 00:50:15 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Mar 31 15:50:22 2006 Subject: Searches not returning correct results In-Reply-To: <442D981A.9060808@mediamacros.com> Message-ID: On 3/31/06 11:59 PM, "Chuck Neal" wrote: Hi Chuck, > Do you mean the single/double quotes are the problem? This does not > work in Studio. > > I finally did an export and was able to get a clean import that now > works in Director but Studio still returns invalid results REINDEX DATABASE ? > I have not been able to identify exactly why but it seems that in > programming, over time stops and starts cause bad data in the database. "In programming" means in Lingo ? Do you enter serial into your Valentina.Init() ? I ask because I have note few days ago that DEMO TIME OUT exception somehow affect indexes. On next open I need REINDEX DB to make it working. I will study deeply this issue soon > Often this shows with it thinking there are supposed to be more > records than there are. Enough of these and it gets unstable and > corrupted. Not fun... If you have out of demo time but continue add records, they are not added of course into indexes. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From chuck at mediamacros.com Sat Apr 1 08:55:52 2006 From: chuck at mediamacros.com (Chuck Neal) Date: Sat Apr 1 07:52:02 2006 Subject: Searches not returning correct results In-Reply-To: References: Message-ID: <442E8668.8090306@mediamacros.com> No, its registered in the startup. Also, re indexing does not solve the problem. Sometimes cloning takes care of it but this typically creates blank records for all the "extra" ones it "thinks" it should have. -Chuck -------------------------- Chuck Neal CEO, MediaMacros, Inc. chuck@mediamacros.com http://www.mediamacros.com http://www.mediamacros.net Ruslan Zasukhin wrote: > On 3/31/06 11:59 PM, "Chuck Neal" wrote: > > Hi Chuck, > >> Do you mean the single/double quotes are the problem? This does not >> work in Studio. >> >> I finally did an export and was able to get a clean import that now >> works in Director but Studio still returns invalid results > > REINDEX DATABASE ? > >> I have not been able to identify exactly why but it seems that in >> programming, over time stops and starts cause bad data in the database. > > "In programming" means in Lingo ? > > Do you enter serial into your Valentina.Init() ? > I ask because I have note few days ago that DEMO TIME OUT exception somehow > affect indexes. On next open I need REINDEX DB to make it working. I will > study deeply this issue soon > >> Often this shows with it thinking there are supposed to be more >> records than there are. Enough of these and it gets unstable and >> corrupted. Not fun... > > If you have out of demo time but continue add records, they are not added of > course into indexes. > From sunshine at public.kherson.ua Sat Apr 1 17:39:53 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 1 08:39:59 2006 Subject: Searches not returning correct results In-Reply-To: <442E8668.8090306@mediamacros.com> Message-ID: On 4/1/06 4:55 PM, "Chuck Neal" wrote: > No, its registered in the startup. Also, re indexing does not solve the > problem. Sometimes cloning takes care of it but this typically creates > blank records for all the "extra" ones it "thinks" it should have. Chuck, Then you should send me some problematic db (as small as possible) And query + steps to reproduce problem. Okay ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From artbasil at mail.ru Sat Apr 1 18:45:41 2006 From: artbasil at mail.ru (=?koi8-r?Q?=F7=C1=D3=C9=CC=C9=CA?=) Date: Sat Apr 1 08:45:47 2006 Subject: =?koi8-r?b?7sXT1MHCyczYztnKINLF2tXM2NTB1CDawdDSz9PBIA==?= SELECT Message-ID: ???????????! ? ???? ??? ????? ??????: ??????? ???????????? ????????? V4MD 1.x ? ?????????. ?????????? ?? ????????? ??????: ????? ??? ????????????? ?????????? ???????? ? ???? ? ??????????? ????: set query = "SELECT RecID, * FROM Images WHERE AuthorID = " & gAuthorSelected set pVCursor = new(xtra "VCursor", DBref, query, 2, 3, 2) rec = pVCursor.GetRecordsAsPropList() ????? ??? rec = [] ??????? ???????. ????? ? ??????? ???? ??? ????????? ???????? ? ???? ??????????? ??????????: set query = "SELECT ID, Name FROM Cameras" set VCursor3 = new(xtra "VCursor", DBref, query, 1, 2) recCameras = VCursor3.GetRecordsAsPropList() ????? ???? ???????? ???? ??? ????, ??????? ?????? ?????????? ?????? ??????, ???? ????? ?? ??????????? ? ?????? ?????, ?? ?????? ???????, ?? ?????? ?????????? ?????????. ??? ?????? ????? ???????: set query = "SELECT DISTINCT Genre FROM IMAGES" -- ???? ?????? ????? ?????????? set query = "SELECT Genre FROM IMAGES" -- ?? ?? ???? ??? ?? ???????? set VCursor3 = new(xtra "VCursor", DBref, query, 2, 3, 2) recGenres = VCursor3.GetRecords() ??? ?? ??????? ??????, ????? ??? ??????? ?????????????? ?????????? ????????? ? ?? ????? ?? ???????? From sunshine at public.kherson.ua Sat Apr 1 18:13:54 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 1 09:16:39 2006 Subject: =?windows-1251?b?zeXx8uDh6Ov87fvpIPDl5/Pr/PLg8iDn4O/w7vHgICA=?= SELECT In-Reply-To: Message-ID: On 4/1/06 5:45 PM, "???????" wrote: > ???????????! Hi, Please use English on this list :-) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 1 18:18:34 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 1 09:18:39 2006 Subject: =?windows-1251?b?zeXx8uDh6Ov87fvpIPDl5/Pr/PLg8iDn4O/w7vHgICA=?= SELECT In-Reply-To: Message-ID: On 4/1/06 5:45 PM, "???????" wrote: Hi Vasiliy, > ? ???? ??? ????? ??????: > ??????? ???????????? ????????? V4MD 1.x ? ?????????. > ?????????? ?? ????????? ??????: > ????? ??? ????????????? ?????????? ???????? ? ???? ? ??????????? ????: > set query = "SELECT RecID, * FROM Images WHERE AuthorID = " & > gAuthorSelected > set pVCursor = new(xtra "VCursor", DBref, query, 2, 3, 2) > rec = pVCursor.GetRecordsAsPropList() > > ????? ??? rec = [] ??????? ???????. Please check records of cursor itself. May happens that in 1.x Function GetRecordsAsPropList() have bug. So you have cursor and try instead to use e.g. Vcursor.GetRecordCount() To see if exists records. * Also, you say once it works, next time no. May be this is issue of record locks. Check this point. You need DESTROY cursor as fast as possible to remove record locks. * Next, you can try turn on DEBUG messages of V4MD to see if any errors was thrown. > ????? ? ??????? ???? ??? ????????? ???????? ? ???? ??????????? ??????????: > set query = "SELECT ID, Name FROM Cameras" > set VCursor3 = new(xtra "VCursor", DBref, query, 1, 2) > recCameras = VCursor3.GetRecordsAsPropList() > > ????? ???? ???????? ???? ??? ????, ??????? ?????? ?????????? ?????? ??????, > ???? ????? ?? ??????????? ? ?????? ?????, ?? ?????? ???????, ?? ?????? > ?????????? ?????????. > ??? ?????? ????? ???????: > set query = "SELECT DISTINCT Genre FROM IMAGES" -- ???? ?????? ????? > ?????????? > set query = "SELECT Genre FROM IMAGES" -- ?? ?? ???? ??? ?? > ???????? > set VCursor3 = new(xtra "VCursor", DBref, query, 2, 3, 2) > recGenres = VCursor3.GetRecords() > > > ??? ?? ??????? ??????, ????? ??? ??????? ?????????????? ?????????? ????????? ? > ?? ????? ?? ???????? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From valentina at pixelrund.de Mon Apr 3 14:45:09 2006 From: valentina at pixelrund.de (Timo Rehmann) Date: Mon Apr 3 07:45:50 2006 Subject: VS: error 0x70505 In-Reply-To: <20060324231851.7725DFB860@knife.dreamhost.com> References: <20060324231851.7725DFB860@knife.dreamhost.com> Message-ID: <443118D5.4030009@pixelrund.de> hello, i have inserted data to the database that i can see in the databrowser... but cannot select it with "where recid=xyz" - the db returns nothing. if i select all data (select * from table) valentina returns error: "Record xyz is locked in table..." what can i do? when will the studio leave the beta-stade? best regards, timo rehmann From Ivan_Smahin at valentina-db.com Mon Apr 3 15:49:40 2006 From: Ivan_Smahin at valentina-db.com (Ivan Smahin) Date: Mon Apr 3 07:49:47 2006 Subject: VS: error 0x70505 In-Reply-To: <443118D5.4030009@pixelrund.de> References: <20060324231851.7725DFB860@knife.dreamhost.com> <443118D5.4030009@pixelrund.de> Message-ID: Hello, On Apr 3, 2006, at 3:45 PM, Timo Rehmann wrote: > hello, i have inserted data to the database that i can see in the > databrowser... but cannot select it with "where recid=xyz" - the db > returns nothing. > > if i select all data (select * from table) valentina returns error: > > "Record xyz is locked in table..." > > what can i do? It seems you forget to close another cursor window. And that window shows cursor which is locked the records. -- Best regards Ivan Smahin From robert at formworkdesign.com Mon Apr 3 10:20:55 2006 From: robert at formworkdesign.com (Robert Nichols) Date: Mon Apr 3 09:21:00 2006 Subject: new mac demo license please! Message-ID: <3F94B467-2EFB-4C8C-ABEE-6CE564DF9398@formworkdesign.com> -------------------------------------- Robert Nichols Formwork Design LLC robert@formworkdesign.com From martin at kinetix.co.uk Mon Apr 3 17:52:50 2006 From: martin at kinetix.co.uk (Martin Wright) Date: Mon Apr 3 11:53:04 2006 Subject: [V4MD] Search field parsing In-Reply-To: Message-ID: <20060403165259.3913740CBDB@edison.macserve.net> Hi Ruslan Can you give me any advice on how to convert a search term into a valid SQL statement. The search field may have: camera and lens (AND search) camera or lens (OR search) "camera lenses" (phrase search) "camera lens*" (wildcard + phrase) ... And any combination of the above. Martin From Ivan_Smahin at valentina-db.com Mon Apr 3 19:57:31 2006 From: Ivan_Smahin at valentina-db.com (Ivan Smahin) Date: Mon Apr 3 11:57:37 2006 Subject: [V4MD] Search field parsing In-Reply-To: <20060403165259.3913740CBDB@edison.macserve.net> References: <20060403165259.3913740CBDB@edison.macserve.net> Message-ID: On Apr 3, 2006, at 7:52 PM, Martin Wright wrote: > Hi Ruslan > > Can you give me any advice on how to convert a search term into a > valid SQL statement. > The search field may have: > > camera and lens (AND search) > camera or lens (OR search) > "camera lenses" (phrase search) > "camera lens*" (wildcard + phrase) > > ... And any combination of the above. > So some single string-based field may contain these words? Or you mean two different fields? -- Best regards Ivan Smahin From martin at kinetix.co.uk Mon Apr 3 18:04:16 2006 From: martin at kinetix.co.uk (Martin Wright) Date: Mon Apr 3 12:04:28 2006 Subject: [V4MD] Search field parsing In-Reply-To: Message-ID: <20060403170424.CD47340CBF6@edison.macserve.net> Just 1 field - such as: "camera len*" and canon or nikon The search will be done on a DB 'text' field which has index by word selected. Martin > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ivan Smahin > Sent: 03 April 2006 17:58 > To: Valentina Developers > Subject: Re: [V4MD] Search field parsing > > > On Apr 3, 2006, at 7:52 PM, Martin Wright wrote: > > > Hi Ruslan > > > > Can you give me any advice on how to convert a search term into a > > valid SQL statement. > > The search field may have: > > > > camera and lens (AND search) > > camera or lens (OR search) > > "camera lenses" (phrase search) > > "camera lens*" (wildcard + phrase) > > > > ... And any combination of the above. > > > > So some single string-based field may contain these words? > Or you mean two different fields? > > -- > Best regards > Ivan Smahin > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > From sunshine at public.kherson.ua Mon Apr 3 22:07:50 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 3 14:07:56 2006 Subject: new mac demo license please! In-Reply-To: <3F94B467-2EFB-4C8C-ABEE-6CE564DF9398@formworkdesign.com> Message-ID: On 4/3/06 5:20 PM, "Robert Nichols" wrote: Check it now, Robert. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From lfredricks at proactive-intl.com Mon Apr 3 12:08:59 2006 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Mon Apr 3 14:09:10 2006 Subject: Tutorial Writer Needed for REALbasic Developer Magazine Article Message-ID: <20060403190905.1CB6A87304@spunkymail-a2.dreamhost.com> Hello all, REALbasic Developer magazine is looking for someone to write a tutorial using REALbasic and V4RB 1.x. This should be a simple set-up/getting started tutorial targeting those who may have basic familiarity with REALbasic but know nothing about Valentina. Please contact me for further information. Best regards, Lynn Fredricks President Paradigma Software, Inc Joining Worlds of Information Deploy True Client-Server Database Solutions Royalty Free with Valentina Developer Network http://www.paradigmasoft.com From sunshine at public.kherson.ua Mon Apr 3 22:09:06 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 3 14:09:14 2006 Subject: [V4MD] Search field parsing In-Reply-To: <20060403170424.CD47340CBF6@edison.macserve.net> Message-ID: On 4/3/06 8:04 PM, "Martin Wright" wrote: > Just 1 field - such as: > > "camera len*" and canon or nikon > > The search will be done on a DB 'text' field which has index by word selected. > > Martin > >> -----Original Message----- >> From: valentina-bounces@lists.macserve.net >> [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ivan Smahin >> Sent: 03 April 2006 17:58 >> To: Valentina Developers >> Subject: Re: [V4MD] Search field parsing >> >> >> On Apr 3, 2006, at 7:52 PM, Martin Wright wrote: >> >>> Hi Ruslan >>> >>> Can you give me any advice on how to convert a search term into a >>> valid SQL statement. >>> The search field may have: >>> >>> camera and lens (AND search) WHERE fld = 'camera' AND fld = 'lens' >>> camera or lens (OR search) WHERE fld = 'camera' OR fld = 'lens' >>> "camera lenses" (phrase search) WHERE fld = 'camera lens' >>> "camera lens*" (wildcard + phrase) WHERE fld LIKE 'camera lens%' >>> ... And any combination of the above. >>> >> >> So some single string-based field may contain these words? >> Or you mean two different fields? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cindy at kowhaiprogramming.com Tue Apr 4 23:12:16 2006 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Tue Apr 4 06:12:26 2006 Subject: V4RB v1 Problem with SQL Message-ID: Hi All, Can anyone please tell me what characters cannot be used in an SQL query and how I can get the SQL query to allow me to use them. For example, I'm using the following SQL query: select Invoices.Description from Students,Invoices,Payments,Family WHERE invoices.cid = payments.cinvid AND family.cstuid = students.cid AND Invoices.cstuid = students.cid AND ((Invoices.Description LIKE '\AYr 1/2 Stationery (Rm11 & Rm14) $21.00\Z' no_case )) AND family.bReceives_Invoice = '1' ORDER BY Invoices.Description The query doesn't work at all for this description. If I have a description that doesn't have brackets ( or ) or dollar signs $, then the query works without any problems. What do I use to get the query to accept these sorts of characters? Thanks in anticipation. Cindy Brown From sunshine at public.kherson.ua Tue Apr 4 16:14:00 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 4 08:14:06 2006 Subject: V4RB v1 Problem with SQL In-Reply-To: Message-ID: On 4/4/06 2:12 PM, "Cindy Brown" wrote: Hi Cindy, > Can anyone please tell me what characters cannot be used in an SQL query and > how I can get the SQL query to allow me to use them. For example, I'm using > the following SQL query: > > select Invoices.Description from Students,Invoices,Payments,Family WHERE > invoices.cid = payments.cinvid AND family.cstuid = students.cid AND > Invoices.cstuid = students.cid AND ((Invoices.Description LIKE '\AYr 1/2 > Stationery (Rm11 & Rm14) $21.00\Z' no_case )) AND family.bReceives_Invoice = > '1' ORDER BY Invoices.Description > > The query doesn't work at all for this description. If I have a description > that doesn't have brackets ( or ) or dollar signs $, then the query works > without any problems. What do I use to get the query to accept these sorts > of characters? You need escape string using Valentina.EscapeString() -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From lfredricks at proactive-intl.com Tue Apr 4 09:43:42 2006 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Tue Apr 4 11:43:53 2006 Subject: FREE COPY OF VALENTINA OFFICE SERVER WITH V4RB ADK PRO - NEW AND UPGRADES - APRIL 2006 Message-ID: <20060404164347.5ABC2162A6D@spunkymail-a10.dreamhost.com> FREE COPY OF VALENTINA OFFICE SERVER WITH V4RB ADK PRO - NEW AND UPGRADES During the month of April, 2006, every upgrade or new order of Valentina 2.x for REALbasic, Professional Edition will also include a five connection version of Valentina Office Server. Valentina Office Server is the business ready database server for MacOS X or Windows, suitable for internal network use or driving websites. Based on the ultra-fast Valentina 2.x database engine, Valentina Office Server is one of the fastest, most robust developer friendly databases available. You can utilize the Vclient component from the Valentina ADKs to connect to Valentina Office Server from these development environments or components - at no additional cost: COM (VB 6), Director,.NET (C#, VB.net), REALbasic, Revolution and C++ (MS Visual Studio and a Universal Binary Vclient for xCode). Also includes VPHP for Apache (with PEAR and AdoDB), enabling PHP 4+ scripting for Valentina Office Server. Valentina ADK for REALbasic allows connectivity to Valentina databases using REALbasic Standard or Pro, and includes modern conventions such as encryption, XML, Valentina SQL and Unicode UTF 16. It also provides a "classes" method of sub-classing databases using the REALbasic methodology. Valentina 2.2 ADK for REAL Software's REALbasic also introduced support for Mach-O, three new array handling functions, three new bit handling functions, and four new record navigation functions. Performance improvements for conversion from Valentina 1.x to 2.x format were also included. Direct Universal Binary support will be added to Valentina for REALbasic ADK when native support is available in REALbasic. Valentina ADK Pro for REALbasic costs $299 (upgrades are $149.50) and includes both MacOS X and Windows runtimes and Valentina Studio, a tool for setting up, browsing and administering Valentina databases. The MacOS version of Valentina Studio is a Universal Binary version. The offer is good through Paradigma Software or through its international partners: UK: Nova International - http://www.novaint.com Italy: Active Software - http://www.active-software.com Germany: P&I - http://www.valentina-db.de/ About Paradigma Software, Inc Founded in 1998, Beaverton, Oregon-based Paradigma Software, Inc is the leading provider of incredibly fast and robust database solutions for business and development. Valentina 2 technology powers solutions as diverse as graphics applications from major Japanese electronics companies to solutions supporting US public schools. Paradigma Software solutions are available for every major development environment on the Windows and Macintosh platforms. For additional information, visit the Paradigma Software website at http://www.paradigmasoft.com. Contact Paradigma Software Ph. (503) 574-2776 http://www.paradigmasoft.com From cindy at kowhaiprogramming.com Wed Apr 5 08:22:03 2006 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Tue Apr 4 15:22:15 2006 Subject: V4RB v1 Problem with SQL In-Reply-To: Message-ID: Hi Ruslan, >> The query doesn't work at all for this description. If I have a description >> that doesn't have brackets ( or ) or dollar signs $, then the query works >> without any problems. What do I use to get the query to accept these sorts >> of characters? > > You need escape string using Valentina.EscapeString() This looks like it is something for Valentina 2. I'm still using Valentina 1. What do I do in this instance? Cindy From sunshine at public.kherson.ua Tue Apr 4 23:27:50 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 4 15:27:57 2006 Subject: V4RB v1 Problem with SQL In-Reply-To: Message-ID: On 4/4/06 11:22 PM, "Cindy Brown" wrote: > Hi Ruslan, > >>> The query doesn't work at all for this description. If I have a description >>> that doesn't have brackets ( or ) or dollar signs $, then the query works >>> without any problems. What do I use to get the query to accept these sorts >>> of characters? >> >> You need escape string using Valentina.EscapeString() > > This looks like it is something for Valentina 2. I'm still using Valentina > 1. What do I do in this instance? v1 also have EscapeString method. Please check docs -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cindy at kowhaiprogramming.com Wed Apr 5 08:54:10 2006 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Tue Apr 4 15:54:21 2006 Subject: V4RB v1 Problem with SQL In-Reply-To: Message-ID: Hi Ruslan, > On 4/4/06 11:22 PM, "Cindy Brown" wrote: > >> Hi Ruslan, >> >>>> The query doesn't work at all for this description. If I have a description >>>> that doesn't have brackets ( or ) or dollar signs $, then the query works >>>> without any problems. What do I use to get the query to accept these sorts >>>> of characters? >>> >>> You need escape string using Valentina.EscapeString() >> >> This looks like it is something for Valentina 2. I'm still using Valentina >> 1. What do I do in this instance? > > v1 also have EscapeString method. Please check docs I've checked the docs and looked on the internet and tried this in REALbasic but there doesn't seem to be an escapestring method for Valentina 1. Is there anything else I can use? Cindy From steve at steve-albin.com Tue Apr 4 16:58:59 2006 From: steve at steve-albin.com (Steve Albin) Date: Tue Apr 4 15:59:08 2006 Subject: V4RB v1 Problem with SQL In-Reply-To: Message-ID: On Wednesday, April 5, 2006 cindy@kowhaiprogramming.com (Cindy Brown) wrote: >I've checked the docs and looked on the internet and tried this in REALbasic >but there doesn't seem to be an escapestring method for Valentina 1. Is >there anything else I can use? It's on page 6 of the V4RBreference.pdf. Here's the syntax: ValentinaEscapeString(inStr as string, inForRegEx as Boolean) As String Steve -- Steve Albin - Montclair, NJ http://www.jazzdiscography.com/ http://www.steve-albin.com/ From sunshine at public.kherson.ua Wed Apr 5 11:19:17 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 5 03:19:25 2006 Subject: v 2.3 -- VarChar limited to 2044 of UTF16 chars (4Kb page) In-Reply-To: Message-ID: On 4/5/06 2:46 AM, "jda" wrote: Hi Jon, Hi All, > Also, it looks like *all* my older databases give the varchar "error" > when diagnosed with b8. They were diagnosed as "OK" with b3, which > makes me think that the diagnosis in b8 may be wrong. I already see where is problem. * PageFile store into disk file the size of page. your VarChar[2000] in 2.2 have use 8K page. your database remember this * now when 2.3 read this it get wrong size - 8K instead of 4K. and even worse -- your data really is located on 8K page. and 2.3 do not have way now to read such pages. Problems problems problems... I see these ways 1) developer who have use in Valentina 2.2 VarChar fields longer of 1022 need ship intermediate version of own app, which will CHANGE max length of all VarChar to 1022. if db.SchemaVersion = xxx then // 1a) for each VarChar with length > 1022 but < 2044 fld.maxlength = 1022 // 1b) for each VarChar with length > 2044 do fld.type = kTypeText db.SchemaVersin = db.SchemaVersion + 1 end 2) We can try implement own algorithm of conversion but we can do this only for case 1a) for case 1b) we cannot do this automatically because you need adjust your sources to use Text instead VarChar. ------------- So I'd like to hear. HOW MANY developers get into this problem ? Does exists other developers except Jon which use VarChar longer of 1022 ? longer of 2044 ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 5 11:26:25 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 5 03:26:33 2006 Subject: v 2.3 -- VarChar limited to 2044 of UTF16 chars (4Kb page) In-Reply-To: Message-ID: On 4/5/06 11:19 AM, "Ruslan Zasukhin" wrote: > I see these ways > > 1) developer who have use in Valentina 2.2 VarChar fields longer of 1022 > need ship intermediate version of own app, which will > CHANGE max length of all VarChar to 1022. > > if db.SchemaVersion = xxx then > > // 1a) for each VarChar with length > 1022 but < 2044 > fld.maxlength = 1022 > > // 1b) for each VarChar with length > 2044 do > fld.type = kTypeText > > db.SchemaVersin = db.SchemaVersion + 1 > end I see another way. For example Jon have now app built with 2.2. I know that it can do XML dump. So you can in ask people dump existing db using old version, Then load XML using new version of your app based on 2.3. This should work because VarChar[2000] is ok for 2.3 Just it uses 4K page for it instead of 8K -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 5 11:28:44 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 5 03:29:07 2006 Subject: [SOLVED] New build of Vstudio. -- Please help test WIN build In-Reply-To: Message-ID: On 4/5/06 11:21 AM, "? ??" wrote: > Hi Ruslan, > > I found a walk-around. > After removing the current directory for valentine, > Install VStudio(Fresh install) > Then this case will work. Aha, so was conflict somehow... Interesting. We build it with Visual 2005, and use new MS technology of manifests which should prevent conflicts of dlls. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 5 12:12:30 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 5 04:12:40 2006 Subject: Amazing Speed In-Reply-To: Message-ID: On 4/5/06 11:58 AM, "? ??" wrote: > Hi Ruslan, > > I have tested the new VStudio and it shows amazing speed for big tables join. > Wow!!!! :-) thank you. > I have a question. > I expected you will change VCOM to upgrade join algorithm but you deployed > VStudio. > Isn?t Join Algorithm implemented in Valentina Kernel ? I already have upload new build of VCOM today morning Probably you have miss my letter about it. Just download new VCOM with TODAY build archive. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Wed Apr 5 11:26:38 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Wed Apr 5 10:26:44 2006 Subject: [V4RB] 1.x Open() Delay in Win32 Message-ID: I have a large (165mb) Valentina 1.x database that was built in OS X. The db is then distributed to Win32 machines. The *first* time the database is opened on XP, the db.Open(folderitem) function takes 10 seconds or so to return. If I close the app, and re-launch the app, the Open() function takes only a split-second. All subsequent re-launches are blazing fast. But once I reboot, the first db.Open() is slow again. I get the same behavior in WinMe and Win2000. I assume the delay is V4RB populating the cache, which is cleared at reboot. (The cache is persistent between application sessions?) But here is the kicker: On 98SE, the db.Open() function is blazing fast *every* time -- first launch and subsequent launches. Same app, same database. Adding to the mystery is that my XP machine is enormously faster than my 98Se machine. Is something happening at the OS level on XP that is slowing down the Open() call? Anyone else observed this behavior and found a solution? It happens for both Admin users and standard users. I am using the latest (last) plug-in for V4RB 1.x. -- Russ Tyndall Wake Forest, NC From sunshine at public.kherson.ua Wed Apr 5 18:34:11 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 5 10:34:18 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/5/06 6:26 PM, "Russ Tyndall" wrote: > I have a large (165mb) Valentina 1.x database that was built in OS X. > > The db is then distributed to Win32 machines. > > The *first* time the database is opened on XP, the db.Open(folderitem) > function takes 10 seconds or so to return. > > If I close the app, and re-launch the app, the Open() function takes only a > split-second. All subsequent re-launches are blazing fast. > > But once I reboot, the first db.Open() is slow again. I get the same > behavior in WinMe and Win2000. Sounds like you become faster because Virtual Memory cache db file into RAM. > I assume the delay is V4RB populating the cache, which is cleared at reboot. > (The cache is persistent between application sessions?) Right, cache. But not Valentina cache. System cache > But here is the kicker: On 98SE, the db.Open() function is blazing fast > *every* time -- first launch and subsequent launches. Same app, same > database. :) question to MS support > Adding to the mystery is that my XP machine is enormously faster than my > 98Se machine. > > Is something happening at the OS level on XP that is slowing down the Open() > call? Anyone else observed this behavior and found a solution? It happens > for both Admin users and standard users. > > I am using the latest (last) plug-in for V4RB 1.x. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Wed Apr 5 13:00:02 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Wed Apr 5 12:00:11 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/5/06 11:34 AM, "Ruslan Zasukhin" wrote: > On 4/5/06 6:26 PM, "Russ Tyndall" wrote: > >> I have a large (165mb) Valentina 1.x database that was built in OS X. >> >> The db is then distributed to Win32 machines. >> >> The *first* time the database is opened on XP, the db.Open(folderitem) >> function takes 10 seconds or so to return. >> >> If I close the app, and re-launch the app, the Open() function takes only a >> split-second. All subsequent re-launches are blazing fast. >> >> But once I reboot, the first db.Open() is slow again. I get the same >> behavior in WinMe and Win2000. > > Sounds like you become faster because Virtual Memory cache db file into RAM. > Well, the commit charge in Task Manager does not change after the call. So...I'm skeptical. But with humility. Would you expect the Commit charge to increase as said db is written into VM? It must, I believe. >> I assume the delay is V4RB populating the cache, which is cleared at reboot. >> (The cache is persistent between application sessions?) > > Right, cache. But not Valentina cache. System cache > See above. >> But here is the kicker: On 98SE, the db.Open() function is blazing fast >> *every* time -- first launch and subsequent launches. Same app, same >> database. > > :) question to MS support > Dude, that's just mean! :-) (I know you're joking.) -- Russ Tyndall Wake Forest, NC From sunshine at public.kherson.ua Wed Apr 5 20:45:51 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 5 12:45:57 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/5/06 8:00 PM, "Russ Tyndall" wrote: >>> The *first* time the database is opened on XP, the db.Open(folderitem) >>> function takes 10 seconds or so to return. >>> >>> If I close the app, and re-launch the app, the Open() function takes only a >>> split-second. All subsequent re-launches are blazing fast. >>> >>> But once I reboot, the first db.Open() is slow again. I get the same >>> behavior in WinMe and Win2000. >> >> Sounds like you become faster because Virtual Memory cache db file into RAM. >> > > Well, the commit charge in Task Manager does not change after the call. > So...I'm skeptical. But with humility. Would you expect the Commit charge > to increase as said db is written into VM? It must, I believe. Russ, Virtual Memory can save 100-200-300MB of application and its data in the RAM. You cannot see this on Windows. On MacOS X it is shown as "inactive" RAM. If next app start touch the same disk files then they are loaded from RAM. This is what I mean. >>> I assume the delay is V4RB populating the cache, which is cleared at reboot. >>> (The cache is persistent between application sessions?) >> >> Right, cache. But not Valentina cache. System cache >> > > See above. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Thu Apr 6 11:35:36 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Thu Apr 6 10:35:49 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/5/06 1:45 PM, "Ruslan Zasukhin" wrote: > On 4/5/06 8:00 PM, "Russ Tyndall" wrote: > >>>> The *first* time the database is opened on XP, the db.Open(folderitem) >>>> function takes 10 seconds or so to return. >>>> >>>> If I close the app, and re-launch the app, the Open() function takes only a >>>> split-second. All subsequent re-launches are blazing fast. >>>> >>>> But once I reboot, the first db.Open() is slow again. I get the same >>>> behavior in WinMe and Win2000. >>> >>> Sounds like you become faster because Virtual Memory cache db file into RAM. >>> >> >> Well, the commit charge in Task Manager does not change after the call. >> So...I'm skeptical. But with humility. Would you expect the Commit charge >> to increase as said db is written into VM? It must, I believe. > > Russ, > > Virtual Memory can save 100-200-300MB of application and its data in the > RAM. > > You cannot see this on Windows. On MacOS X it is shown as "inactive" RAM. > > If next app start touch the same disk files then they are loaded from RAM. > This is what I mean. > >>>> I assume the delay is V4RB populating the cache, which is cleared at >>>> reboot. >>>> (The cache is persistent between application sessions?) >>> >>> Right, cache. But not Valentina cache. System cache >>> >> >> See above. I did some more research on this (have to reboot to get back into "slow" state), and also poked around on the 'Net to make sure I am interpreting the Task Manager readings correctly. In Win XP Home (SP2), 2.5ghz Celeron D with 512 mb of physical RAM, it takes 24 wall-clock seconds for V4RB 1.x to open a 155mb encrypted database the *first* time after a startup/reboot of the PC. Subsequent openings are very speedy. The amount of memory used on the PC increases by only 3mb during the Open() call. This is true during each Open(), not just the first. So, I do not think the delay is due to the OS caching the database. (System cache and Kernel memory hardly change at all.) The first time the DB is opened, this 3mb of memory is consumed very slowly during the 24 secs. On subsequent openings, this 3mb is consumed quickly. My (virtual) Win98se PC with 128mb of RAM does not hesitate at all during Open(). Even more disappointing, Vstudio suffers this slowdown also when opening an unencrypted converted version of the same 155mb database so I don't think migrating to 2.x will help with this. It also rules out a Realbasic cause. (Also, that would seem to rule out a problem relating to the encryption.) The delay *does* appear to be related to db size. I experimented with a trimmed down version of the db (28mb), and it opened quickly every time. Also interesting, the Open() call on this smaller db does not cause *any* noticeable memory to be consumed. I have another 388mb db that uses an alternative engine that opens swiftly *every* time on the same machine. I'm quite puzzled about what to do here, but I don't think any of us would expect either 1.x or 2.x to take so long to simply open a 100-200mb db. -- Russ Tyndall Wake Forest, NC From bmurf at comcast.net Thu Apr 6 14:46:41 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Thu Apr 6 14:46:48 2006 Subject: Upgrading and encryption... In-Reply-To: <20060404164355.4BB2640D238@edison.macserve.net> References: <20060404164355.4BB2640D238@edison.macserve.net> Message-ID: <43804532-AB52-415B-9F8F-23D2DFF42902@comcast.net> I am converting a large crossplatform RB project from valentina 1.11 to 2.2. Most of it went smoothly except for the use of encryption. I create new database and call... vdb.UseEncryptionKey(encryptionKey, EVDataKind.kStructureAndRecords) Then I open or create the database file with... vdb.open(documentFile) or... vdb.create(documentFile, EVDbMode.kDscDatBlbInd, SEGMENT_SIZE * 1024, EVOs.kOsWindows) What is supposed to happen when I call UseEncryptionKey on the VDatabase class? Is this supposed to set the encryption for all subsequent tables created? What I see is that the isEncrypted property is set to false for the tables. This is definitely a different behavior from version 1.11. What is the proper way to handle this? From sunshine at public.kherson.ua Thu Apr 6 23:48:34 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 15:48:41 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/6/06 6:35 PM, "Russ Tyndall" wrote: Hi Russ, > I did some more research on this (have to reboot to get back into "slow" > state), and also poked around on the 'Net to make sure I am interpreting the > Task Manager readings correctly. > > In Win XP Home (SP2), 2.5ghz Celeron D with 512 mb of physical RAM, it takes > 24 wall-clock seconds for V4RB 1.x to open a 155mb encrypted database the > *first* time after a startup/reboot of the PC. Subsequent openings are very > speedy. > > The amount of memory used on the PC increases by only 3mb during the Open() > call. This is true during each Open(), not just the first. So, I do not > think the delay is due to the OS caching the database. (System cache and > Kernel memory hardly change at all.) > > The first time the DB is opened, this 3mb of memory is consumed very slowly > during the 24 secs. On subsequent openings, this 3mb is consumed quickly. Actually we have see that on some not-clear reason Windwows XP do much slower flushed of HDD then do MAC OS X using practically the same HDD hardware. We have se this effect about 3-4 years ago also. The reason open takes so long time in your case is that you have in db a lots of VarChar and index files. When Valentina 1.x open such PAGE-Files it needs read their header. So this cause many random access to HDD. And this not require a lots of RAM as you see. > My (virtual) Win98se PC with 128mb of RAM does not hesitate at all during > Open(). Sounds like Win98 was faster of XP on random access. > Even more disappointing, Vstudio suffers this slowdown also when opening an > unencrypted converted version of the same 155mb database so I don't think > migrating to 2.x will help with this. It also rules out a Realbasic cause. > (Also, that would seem to rule out a problem relating to the encryption.) I have not catch. Valentina Studio open your 1.x daatbase. Right ? But this means that 1.x engine is used. To see work of 2.x engine, you need do Convert_1_2 of your db into 2.x format. Then open this new 2.x database using Valentina Studio. Then only will work 2.x engine. > The delay *does* appear to be related to db size. I experimented with a > trimmed down version of the db (28mb), and it opened quickly every time. > Also interesting, the Open() call on this smaller db does not cause *any* > noticeable memory to be consumed. Hmm. What cache size you use then ? Try set it bigger > I have another 388mb db that uses an alternative engine that opens swiftly > *every* time on the same machine. > > I'm quite puzzled about what to do here, but I don't think any of us would > expect either 1.x or 2.x to take so long to simply open a 100-200mb db. Agree. We was going make lazy access to header of PageFiles to not do this on open. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Thu Apr 6 23:51:29 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 15:51:35 2006 Subject: Upgrading and encryption... In-Reply-To: <43804532-AB52-415B-9F8F-23D2DFF42902@comcast.net> Message-ID: On 4/6/06 10:46 PM, "Brendan Murphy" wrote: Hi Brendan, > I am converting a large crossplatform RB project from valentina > 1.11 to 2.2. Most of it went smoothly except for the use of > encryption. I create new database and call... > > vdb.UseEncryptionKey(encryptionKey, > EVDataKind.kStructureAndRecords) > > Then I open or create the database file with... > > vdb.open(documentFile) > > or... > > vdb.create(documentFile, EVDbMode.kDscDatBlbInd, SEGMENT_SIZE * > 1024, EVOs.kOsWindows) > > What is supposed to happen when I call UseEncryptionKey on the > VDatabase class? Is this supposed to set the encryption for all > subsequent tables created? What I see is that the isEncrypted > property is set to false for the tables. This is definitely a > different behavior from version 1.11. What is the proper way to > handle this? Yes behavior was changed! We have now explicit Encrypt() Decrypt() functions. Please check our examples. We have 3 + 3 examples on encryption. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Thu Apr 6 17:58:01 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Thu Apr 6 16:58:08 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/6/06 4:48 PM, "Ruslan Zasukhin" wrote: > On 4/6/06 6:35 PM, "Russ Tyndall" wrote: > > Hi Russ, > >> I did some more research on this (have to reboot to get back into "slow" >> state), and also poked around on the 'Net to make sure I am interpreting the >> Task Manager readings correctly. >> >> In Win XP Home (SP2), 2.5ghz Celeron D with 512 mb of physical RAM, it takes >> 24 wall-clock seconds for V4RB 1.x to open a 155mb encrypted database the >> *first* time after a startup/reboot of the PC. Subsequent openings are very >> speedy. >> >> The amount of memory used on the PC increases by only 3mb during the Open() >> call. This is true during each Open(), not just the first. So, I do not >> think the delay is due to the OS caching the database. (System cache and >> Kernel memory hardly change at all.) >> >> The first time the DB is opened, this 3mb of memory is consumed very slowly >> during the 24 secs. On subsequent openings, this 3mb is consumed quickly. > > Actually we have see that on some not-clear reason Windwows XP do much > slower flushed of HDD then do MAC OS X using practically the same HDD > hardware. > > We have se this effect about 3-4 years ago also. > > The reason open takes so long time in your case is that you have in db a > lots of VarChar and index files. When Valentina 1.x open such PAGE-Files it > needs read their header. So this cause many random access to HDD. And this > not require a lots of RAM as you see. > I only have 6 varChar fields spread across 10 tables. Only 1 varChar field is indexed. But some of my tables do have several indexes (mostly strings). So, if I follow you (in a general sense) Valentina 1.x (and 2.x, based on a subsequent comment) kind've "pre-scan" the database during Open(), gathering info about the db that stays persistent until the PC reboots. This information somehow stays persistent on the PC, in system cache or such. But not the entire contents of the 155mb db, just some smaller amounts of data which I presume are used to enable those stunningly fast queries. I do not fully understand all the details, but what I do understand makes sense to me and matches what I have seen with my own eyes. >> My (virtual) Win98se PC with 128mb of RAM does not hesitate at all during >> Open(). > > Sounds like Win98 was faster of XP on random access. > >> Even more disappointing, Vstudio suffers this slowdown also when opening an >> unencrypted converted version of the same 155mb database so I don't think >> migrating to 2.x will help with this. It also rules out a Realbasic cause. >> (Also, that would seem to rule out a problem relating to the encryption.) > > I have not catch. Valentina Studio open your 1.x daatbase. Right ? > But this means that 1.x engine is used. Vstudio seems to open my 1.x db, but it never appears in the interface. So, I take the unencrypted version of my full-sized db and convert it to 2.x using the option in the Utilities menu. Then, I can open the converted file in Vstudio successfully --- but first time is very slow just like 1.x. Subsequent openings within the same session are ok. So, I conclude migrating to 2.x will not help me any. > > To see work of 2.x engine, you need do Convert_1_2 of your db into 2.x > format. Then open this new 2.x database using Valentina Studio. Then only > will work 2.x engine. > Yes, after conversion to 2.x, my db appears in Vstudio correctly, just slow on first open. >> The delay *does* appear to be related to db size. I experimented with a >> trimmed down version of the db (28mb), and it opened quickly every time. >> Also interesting, the Open() call on this smaller db does not cause *any* >> noticeable memory to be consumed. > > Hmm. What cache size you use then ? > Try set it bigger > I believe I tried larger caches first thing after I noticed this problem, but I shall try again. Right now, I am allocating about 160mb for cache. But if the core problem is XP poorly reading the db file on the hard drive during the "pre-scan", *can* a larger Valentina cache really help? No matter, it's easy to test. >> I have another 388mb db that uses an alternative engine that opens swiftly >> *every* time on the same machine. >> >> I'm quite puzzled about what to do here, but I don't think any of us would >> expect either 1.x or 2.x to take so long to simply open a 100-200mb db. > > Agree. > > We was going make lazy access to header of PageFiles to not do this on open. If I understand correctly, you hope to one day make this "pre-scan" go away. Which, I gather would fix my problem. Ok! At least I have a sense of what is happening and why it appears to only be happening to me. Now, I have to figure out what to do about it. Thank you for taking the time to explain in more detail! -- Russ Tyndall Wake Forest, NC From sunshine at public.kherson.ua Fri Apr 7 01:03:40 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 17:03:51 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/7/06 12:58 AM, "Russ Tyndall" wrote: > > So, if I follow you (in a general sense) Valentina 1.x (and 2.x, based on a > subsequent comment) kind've "pre-scan" the database during Open(), gathering > info about the db that stays persistent until the PC reboots. This > information somehow stays persistent on the PC, in system cache or such. But > not the entire contents of the 155mb db, just some smaller amounts of data > which I presume are used to enable those stunningly fast queries. Actually this is not related to fast queries! Problem in how Valentina store info. I believe it is possible improve this issue, e.g. Keep all headers together. Then read them all together in one touch. Or use lazy open as I have told -- both ways can move us to zero time here > I do not fully understand all the details, but what I do understand makes > sense to me and matches what I have seen with my own eyes. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 7 01:09:10 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 17:09:17 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/7/06 12:58 AM, "Russ Tyndall" wrote: > Vstudio seems to open my 1.x db, but it never appears in the interface. So, > I take the unencrypted version of my full-sized db and convert it to 2.x > using the option in the Utilities menu. Then, I can open the converted file > in Vstudio successfully --- but first time is very slow just like 1.x. > Subsequent openings within the same session are ok. So, I conclude migrating > to 2.x will not help me any. It will because 2.x we can try improve if you provide us something to reproduce. I think in your case this can be RB project which generate db like your. So we can use it to see YOUR problem. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 7 01:10:10 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 17:10:15 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/7/06 12:58 AM, "Russ Tyndall" wrote: > I believe I tried larger caches first thing after I noticed this problem, > but I shall try again. Right now, I am allocating about 160mb for cache. 160 MB? This is more than enough. Usually 10-30 is ok > But if the core problem is XP poorly reading the db file on the hard drive > during the "pre-scan", *can* a larger Valentina cache really help? No > matter, it's easy to test. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bmurf at comcast.net Thu Apr 6 17:15:16 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Thu Apr 6 17:15:22 2006 Subject: Upgrading and encryption... In-Reply-To: <43804532-AB52-415B-9F8F-23D2DFF42902@comcast.net> References: <20060404164355.4BB2640D238@edison.macserve.net> <43804532-AB52-415B-9F8F-23D2DFF42902@comcast.net> Message-ID: Ruslan wrote: >> What is supposed to happen when I call UseEncryptionKey on the >> VDatabase class? Is this supposed to set the encryption for all >> subsequent tables created? What I see is that the isEncrypted >> property is set to false for the tables. This is definitely a >> different behavior from version 1.11. What is the proper way to >> handle this? > > Yes behavior was changed! > > We have now explicit Encrypt() Decrypt() functions. > > Please check our examples. We have 3 + 3 examples on encryption. I have been going over the documentation and it is not clear how to use the methods in relationship to each other. A section is needed in the V4RB_Reference_2_en.pdf to describe the usage of encryption and how to piece everything together from the point of an overview. Also, you need to put a note in the "Converting V4RB 1.x projects to 2.0" section that states encryption usage has changed. In general, the quality of the documentation has gone way down since the version 1.11 documentation. The format is not conducive to finding information (formatting and the lack of bookmarks) and there are a lot of grammatical errors. I have had to do a lot of hunt and pecking to discover the information I needed. Given the extensive nature of the documentation, this really detracts from the product. If I was a new customer trying to judge Valentina by its documentation, I would have to say it looks poorly done. Also missing is an entry for VException and the EULA. From sunshine at public.kherson.ua Fri Apr 7 01:26:49 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 17:26:55 2006 Subject: Upgrading and encryption... In-Reply-To: Message-ID: On 4/7/06 1:15 AM, "Brendan Murphy" wrote: >> Please check our examples. We have 3 + 3 examples on encryption. > > I have been going over the documentation and it is not clear how > to use the methods in relationship to each other. A section is > needed in the V4RB_Reference_2_en.pdf to describe the usage of > encryption and how to piece everything together from the point of > an overview. Also, you need to put a note in the "Converting V4RB > 1.x projects to 2.0" section that states encryption usage has > changed. Please read in wiki ! -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 7 01:31:40 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 17:31:46 2006 Subject: Upgrading and encryption... In-Reply-To: Message-ID: On 4/7/06 1:15 AM, "Brendan Murphy" wrote: > In general, the quality of the documentation has gone way down > since the version 1.11 documentation. > The format is not conducive > to finding information (formatting and the lack of bookmarks) and > there are a lot of grammatical errors. Hmm, bad to hear this because we spend a lots time on docs for 2.x. You could note it have grow in size about 3 times. PDF bookmarks? Yes on some reason I cannot find make them working in inDesign CS. Format of document itself? I believe it is 100% the same to 1.x document. Where you see difference ? Errors? We will be thanks for corrections. > Also missing is an entry for VException and the EULA. EULA is located in V4RB archive. VEXception class missing? I will check -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Thu Apr 6 18:55:56 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Thu Apr 6 17:56:03 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/6/06 6:09 PM, "Ruslan Zasukhin" wrote: > On 4/7/06 12:58 AM, "Russ Tyndall" wrote: > >> Vstudio seems to open my 1.x db, but it never appears in the interface. So, >> I take the unencrypted version of my full-sized db and convert it to 2.x >> using the option in the Utilities menu. Then, I can open the converted file >> in Vstudio successfully --- but first time is very slow just like 1.x. >> Subsequent openings within the same session are ok. So, I conclude migrating >> to 2.x will not help me any. > > It will because 2.x we can try improve if you provide us something to > reproduce. > I understand. I only meant that, based on my observations with opening a converted db in Studio, that converting my RB project to 2.x would not provide relief! Vstudio also opened the converted DB slowly the first time during each PC session. > I think in your case this can be RB project which generate db like your. > So we can use it to see YOUR problem. I will try and do that. I can mimic the structure identically, and just dummy up the data. I believe you will be able to duplicate the issue. If not, then that opens up a whole different set of questions. > 160 MB? This is more than enough. Usually 10-30 is ok I don't know, I read or dreamed somewhere that 1/2 RAM was good rule of thumb for Valentina cache. I came up with that value probably 2+ years ago. I tested up to about 1 gig, but didn't help this slow-opening issue. I'll try and send you a project with a db so you can see this problem with your own eyes, and perhaps find some solution. I'll feel some sense of relief knowing that you can duplicate it. -- Russ Tyndall Wake Forest, NC From bmurf at comcast.net Thu Apr 6 18:37:00 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Thu Apr 6 18:37:11 2006 Subject: Upgrading and encryption... Message-ID: <679F7B6E-E6C2-486E-A7B9-76F72E7CDBE9@comcast.net> > Hmm, bad to hear this because we spend a lots time on docs for > 2.x. You could note it have grow in size about 3 times. Because it has grown, it becomes more important to get the details right. A good example are the EVxxxx enumerations. We need not to just know what they are, but also their definitions. For example... EVDbMode kDscDatBlbInd = 1 kDsc_DatBlbInd = 2 kDsc_DatBlb_Ind = 3 kDsc_Dat_Blb_Ind = 4 kDscDatBlb_Ind = 5 kDscDat_Blb_Ind = 6 kDscDatInd_Blb = 7 kDsc_DatInd_Blb = 8 We don't need to know the numerical value (it only encourages developers to skip the enum). We do need to know what each constant means. Currently you have to hunt and peck through the documentation to find out what they mean. Like I mentioned before encryption needs its own section. I am still struggling with making encryption work correctly in my program. You're right in the format hasn't changed much format wise since 1.x. Since it has grown quite a bit in size, therefore I think has out grown the format you have chosen. It is unwieldily to navigate. One thing you could do is publish a method signature only document as a reference sheet. Something the developer keeps on his desk. Another approach is to use a topical format where the information is arranged by topics instead of by class. I find this format more user friendly for complex programs and Valentina certainly falls within that level of complexity. > PDF bookmarks? Yes on some reason I cannot find make them working > in inDesign CS. The only way I know how currently is to use Word and then process the document through Adobe PDF maker (under Windows). I always end up making corrections through Acrobat after it is done. You can also go straight to Acrobat and insert them manually, but that is no fun. But you already probably knew that. > EULA is located in V4RB archive. It is not obvious. You also need an external document that doesn't force someone to open the archive just to get it so they can read it and decide. You also need it on the web site as a separate download. There is an entry on the web site, but no link to the document. From sunshine at public.kherson.ua Fri Apr 7 03:55:14 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 19:55:22 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/7/06 1:55 AM, "Russ Tyndall" wrote: >> I think in your case this can be RB project which generate db like your. >> So we can use it to see YOUR problem. > > I will try and do that. I can mimic the structure identically, and just > dummy up the data. I believe you will be able to duplicate the issue. If > not, then that opens up a whole different set of questions. I also think this should reproduce problem -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 7 03:57:20 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 19:57:27 2006 Subject: [V4RB] 1.x Open() Delay in Win32 In-Reply-To: Message-ID: On 4/7/06 1:55 AM, "Russ Tyndall" wrote: > >> 160 MB? This is more than enough. Usually 10-30 is ok > > I don't know, I read or dreamed somewhere that 1/2 RAM was good rule of > thumb for Valentina cache. I came up with that value probably 2+ years ago. Right this was few years ago. Today computers have a lots of RAM. Of course you have quite big dbs 100-300MB. So bigger cache will help you. If you okay to use so many RAM of computer - no problems. Also -- 1./2 of RAM -- this is MAXIMAL cache you can have. If you ask more Valentina will use 1/2 of RAM. > I tested up to about 1 gig, but didn't help this slow-opening issue. > > I'll try and send you a project with a db so you can see this problem with > your own eyes, and perhaps find some solution. I'll feel some sense of > relief knowing that you can duplicate it. ok -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 7 03:58:45 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 19:58:54 2006 Subject: Upgrading and encryption... In-Reply-To: <679F7B6E-E6C2-486E-A7B9-76F72E7CDBE9@comcast.net> Message-ID: On 4/7/06 2:37 AM, "Brendan Murphy" wrote: >> EULA is located in V4RB archive. > > It is not obvious. You also need an external document that doesn't > force someone to open the archive just to get it so they can read > it and decide. You also need it on the web site as a separate > download. There is an entry on the web site, but no link to the > document. If I not mistake EULAs also present in the WIKI. Again, we now put big efforts to move as many as possible of our docs into Wiki. We also have pulic section in Wiki where YOU and all Valentina developers can write your Tips, tricks, and advices... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 7 04:09:59 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 6 20:10:10 2006 Subject: Upgrading and encryption... In-Reply-To: <679F7B6E-E6C2-486E-A7B9-76F72E7CDBE9@comcast.net> Message-ID: On 4/7/06 2:37 AM, "Brendan Murphy" wrote: >> Hmm, bad to hear this because we spend a lots time on docs for >> 2.x. You could note it have grow in size about 3 times. > > Because it has grown, it becomes more important to get the details > right. A good example are the EVxxxx enumerations. We need not to > just know what they are, but also their definitions. For > example... > > EVDbMode > kDscDatBlbInd = 1 > kDsc_DatBlbInd = 2 > kDsc_DatBlb_Ind = 3 > kDsc_Dat_Blb_Ind = 4 > kDscDatBlb_Ind = 5 > kDscDat_Blb_Ind = 6 > kDscDatInd_Blb = 7 > kDsc_DatInd_Blb = 8 > > We don't need to know the numerical value (it only encourages > developers to skip the enum). I NOT AGREE here. > We do need to know what each > constant means. Currently you have to hunt and peck through the > documentation to find out what they mean. Brendan, V4RB_Reference -- this is REFERENCE of classes and methods. it show you * declaration of method * list of parameters and their short description * description of method * example * possible errors * references to other functions "See Also" REFERENCE document cannot and should not discuss deeply features. For this exists a) Valentina Kernel Manual b) Valentina SQL Manual. I very wonder that you say that this is not correct. I believe in the same way is organized documentation of other product you use - REALBasic. Right? They have MANUAL and REFERENCE of methods. IF you want to learn how work encryption FEATURE you need at first read MANUAL and/or Wiki (we going move all manuals into wiki). Manual describe the general concepts of feature, it show HOW TO issues step by step. And only when you have learn feature you can go to Reference to see details of some particular function. YES this require time to learn. But Valentina 2 is BIG product. It is much more bigger by features than Valentina 1.x > You're right in the format hasn't changed much format wise since > 1.x. Since it has grown quite a bit in size, therefore I think has > out grown the format you have chosen. It is unwieldily to > navigate. One thing you could do is publish a method signature > only document as a reference sheet. Something the developer keeps > on his desk. You could note we have provide for each class on begging of section list of all methods and properties. But I see what you mean. Believe me, we going to improve Valentina docs. We going even develop own online doc system based on Valentina Server and PHP. But this is not tomorrow, because when we have design it we have discover new features which we can add into Valentina Database model to simplify a lots development of such system. > Another approach is to use a topical format where the information > is arranged by topics instead of by class. I find this format more > user friendly for complex programs and Valentina certainly falls > within that level of complexity. You mean something like HOW TO ? Right, and I think Wiki will help here a lots. Wiki is great tool. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bmurf at comcast.net Thu Apr 6 21:23:13 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Thu Apr 6 21:23:19 2006 Subject: Encryption problem solved Message-ID: OK, this one drove me nuts, but I finally got encryption to work. Shown below is the code that works. ----------- ' For the open case... vdb.UseEncryptionKey(encryptionKey, EVDataKind.kStructureAndRecords) vdb.open(documentFile) ----------- ' For the create case... vdb.create(documentFile, EVDbMode.kDscDatBlbInd, SEGMENT_SIZE * 1024, EVOs.kOsWindows) vdb.Encrypt(encryptionKey, EVDataKind.kStructureAndRecords) ----------- Before I got to this point, I was getting a hard crash in Valentina when I called the following code. vdb.UseEncryptionKey(encryptionKey, EVDataKind.kStructureAndRecords) vdb.create(documentFile, EVDbMode.kDscDatBlbInd, SEGMENT_SIZE * 1024, EVOs.kOsWindows) vdb.Encrypt(encryptionKey, EVDataKind.kStructureAndRecords) It seems that calling UseEncryptionKey for a create situation causes the crash in the Encrypt method. Even though this is incorrect code, it should not cause a hard crash. From lfredricks at proactive-intl.com Fri Apr 7 13:41:22 2006 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Fri Apr 7 15:41:35 2006 Subject: Tutorial Writer Wanted to RB Developer Magazine Article Message-ID: <20060407204127.DBBA687343@spunkymail-a2.dreamhost.com> Hi all, Let me ask again with some clarification. We've been asked to provide a tutorial for RB Developer magazine. My understand it pays the normal rate (Ill try to find out what that is). This would be on Valentina for REALbasic and...REALbasic :-) Best regards, Lynn Fredricks President Paradigma Software, Inc Joining Worlds of Information Deploy True Client-Server Database Solutions Royalty Free with Valentina Developer Network http://www.paradigmasoft.com From bobs at twft.com Fri Apr 7 22:01:09 2006 From: bobs at twft.com (Robert Sneidar) Date: Sat Apr 8 00:01:22 2006 Subject: Not getting it Message-ID: <7CAB4E63-41E0-4BF2-82C7-E9D7C1A442A1@twft.com> Hi all. I know I must sound the newbie, but I read the following in the tutorial: Start of work with Valentina You have to set external references for the stack first. It could be done using "Stack Property Inspector". Here you just need to define the path to the V4REV_win.dll and(or) to the V4REV_Macho depends on OS target you wish to use. In order to start you should initialize Valentina with the help of Valentina_Init() function. It could be done in "on openCard" event, for example. To do this you should make the following: ? Choose "Edit Card Script" from the card popup menu. ? Write the following text: on OpenCard get Valentina_Init( 10 * 1024 * 1024 ) end OpenCard What specifically, do you MEAN by, "You have to set external references for the stack first"? What external reference, and why?? "It could be done using "Stack Property Inspector". Here you just need to define the path to the V4REV_win.dll and(or) to the V4REV_Macho depends on OS target you wish to use. In order to start you should initialize Valentina with the help of Valentina_Init() function." Are you saying I have to create a custom property with the path to the valentina functions? What should I name the property?? Are you saying I have to insert the V4REV_Macho into the command hierarchy? What EXACTLY am I supposed to do?? I call Valentina_Init(10 * 1024 * 1024) and I just get a script error! I, being a dolt, need a step by step list of things to do to get a blank Revolution stack prepped to work with databases. I don't mean to be critical, but the manuals (I have tried very hard to read through them) were clearly written by someone not quite familiar with English grammar. I am sure he is a brilliant man, but someone else really needs to rewrite these manuals in a manner that is going to make sense to someone who does not already know almost everything already (that would be me) so someone starting from scratch can get up and running quickly. I will dig around the sample stacks to try to make sense of it all. But I paid $300 for this so I could get databases going quickly. Now I am going to have to spend a LOT of time trying to learn everything by trial and error. What would really be helpful is a template stack with all the functions someone needed to do to create, open, query, update and close databases. I will poke around and see it there is something like that. Bob Sneidar IT Manager Logos Management Calvary Chapel CM From sunshine at public.kherson.ua Sat Apr 8 11:40:42 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 8 03:40:48 2006 Subject: Not getting it In-Reply-To: <7CAB4E63-41E0-4BF2-82C7-E9D7C1A442A1@twft.com> Message-ID: On 4/8/06 8:01 AM, "Robert Sneidar" wrote: Hi Robert, > I know I must sound the newbie, but I read the following in the > tutorial: -------------------------------------------------------- > Start of work with Valentina > You have to set external references for the stack first. It could be done > using "Stack Property Inspector". Here you just need to define the path to > the V4REV_win.dll and(or) to the V4REV_Macho depends on OS target you wish to > use. > In order to start you should initialize Valentina with the help of > Valentina_Init() function. It could be done in "on openCard" event, for > example. > To do this you should make the following: > ? Choose "Edit Card Script" from the card popup menu. > ? Write the following text: > on OpenCard > > get Valentina_Init( 10 * 1024 * 1024 ) > > end OpenCard -------------------------------------------------------- > What specifically, do you MEAN by, "You have to set external > references for the stack first"? What external reference, and why?? Actually this is question about REVOLUTION itself. You use REVOLUTION IDE. Valentina is not part of Revolution. As well mySQL, Postgre, ... To be able use Valentina, mySQL, Postgre you need some EXTERNAL. (i.e. plugin) If you work on Windows this is V4REV_win.dll If you work on MAC this is V4REV_Macho To be able see plugins which a stack need you MUST specify reference to required external. This was for ever. In Metacard and in Revolution. I believe this should be described in the docs of Revolution. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 8 11:51:26 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 8 03:51:33 2006 Subject: Not getting it In-Reply-To: <7CAB4E63-41E0-4BF2-82C7-E9D7C1A442A1@twft.com> Message-ID: On 4/8/06 8:01 AM, "Robert Sneidar" wrote: Hi Robert, -------------------------------------- > "It could be done using "Stack Property Inspector". Here you just > need to define the path to > the V4REV_win.dll and(or) to the V4REV_Macho depends on OS target you > wish to use. > In order to start you should initialize Valentina with the help of > Valentina_Init() function." -------------------------------------- > Are you saying I have to create a custom property with the path to > the valentina functions? > What should I name the property?? NO > Are you > saying I have to insert the V4REV_Macho into the command hierarchy? NO > What EXACTLY am I supposed to do?? > I call Valentina_Init(10 * 1024 * 1024) and I just get a script error! > > I, being a dolt, need a step by step list of things to do to get a blank > Revolution stack prepped to work with databases. Okay let's try to see what is not clear. It seems you are newbie to Revolution itself. It says > "It could be done using "Stack Property Inspector" * You have some stack open, right? * do right mouse click and choose "Stack Property Inspector" you will see Stack Property Inspector Window. * in its top menu choose "External References" * here you can see button with Folder. Click it, and choose V4REV_macho Now it is listed in list of references. If you open V4RB Examples project and check this, you will see here V4REV_2\V4REV_win.dll V4REV_2/V4REV_Macho NOW Revolution will see Valentina functions. P.S. I also recommend to use Trevor's library People says a lots of good thing about it -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 8 11:56:06 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 8 03:56:10 2006 Subject: Not getting it In-Reply-To: <7CAB4E63-41E0-4BF2-82C7-E9D7C1A442A1@twft.com> Message-ID: On 4/8/06 8:01 AM, "Robert Sneidar" wrote: > I don't mean to be critical, but the manuals (I have tried very hard > to read through them) were clearly written by someone not quite > familiar with English grammar. I am sure he is a brilliant man, but > someone else really needs to rewrite these manuals in a manner that > is going to make sense to someone who does not already know almost > everything already (that would be me) so someone starting from > scratch can get up and running quickly. To get this stage we need time and YOUR feedback. We will add into Tutorial the steps which just only I have specify for you. > I will dig around the sample stacks to try to make sense of it all. > But I paid $300 for this so I could get databases going quickly. Now > I am going to have to spend a LOT of time trying to learn everything > by trial and error. > > What would really be helpful is a template stack with all the > functions someone needed to do to create, open, query, update and > close databases. I will poke around and see it there is something > like that. Ask millions questions here! We will try answer each -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Sat Apr 8 10:08:03 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Sat Apr 8 09:08:10 2006 Subject: for BUG 1133 In-Reply-To: Message-ID: On 4/8/06 9:23 AM, "Ruslan Zasukhin" wrote: > On 4/8/06 3:57 PM, "Russ Tyndall" wrote: > >>>> P.S.: As far as I know, all my V4RB 2.x issues have been fixed except for >>>> the "slow opening" issue on XP. If I can find some way around that, I >>>> think >>>> I will finally be able to migrate my app from 1.x to 2.x! Thank you for >>>> your work! >>> >>> I believe we will find solution of this issue in 3-4 weeks >> >> Were you able to duplicate the problem with the example I sent you? May I >> ask: how long did Open() take when you first ran my example project on your >> XP box? >> >> 3-4 weeks? That would be great. >> >> But now I have a tough decision to make. Rework my 1.x project to try and >> open better with threads, or such, or wait for 2.x fix and then simply >> migrate entire project to 2.x ? Even if your good work shaves 50% off of >> initial opening time, my project would still take 20+ secs in 2.x based on >> test project. 1.x opens the project that fast, so I would have gained >> nothing. Well, this is not your problem. Do you have a sense of what >> kind've of improvement might be possible? I realize you cannot promise. > > In fact now I realize that I also have see this problem. > But since I restart Windows rarely, and since usually I work on MAC, > I did think that that I have see REINDEX of db on some reason. > > We will add timing into Warning.log first of all to see what exactly take > time. Then decide... > > Time of open must be ZERO. :-) Then I will not invest too much time in making my 1.x project open more swiftly. I believe it's wiser to bet on your fix, and then just migrate to 2.x, which I have wanted to do for many months now, anyway. I think I also have overlooked this "slow open" problem because it only happens the *first* time the db is opened in each PC session. Subsequent launches are fine. Thus during development, it just wasn't apparent [enough]. Sadly, a customer complained to me which caused me to take a more careful look. -- Russ Tyndall Wake Forest, NC From fitzbew at nc.rr.com Sun Apr 9 22:27:15 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Sun Apr 9 21:27:26 2006 Subject: [Vserver] - Re-launch Script for OS X.4.6 Message-ID: Hi, Does anyone have a script that will restart Vserver (on OS X.4.6) on a user logout? Or some other mechanism to keep Vserver running regardless of user activity? Currently, it runs great at bootup and I can start it manually in the Terminal, but when a user logs out, it gets killed. Thanks for any advice. -- Russ Tyndall Wake Forest, NC From sunshine at public.kherson.ua Mon Apr 10 10:12:38 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 10 02:12:51 2006 Subject: [Vserver] - Re-launch Script for OS X.4.6 In-Reply-To: Message-ID: On 4/10/06 5:27 AM, "Russ Tyndall" wrote: Hi Russ, > Does anyone have a script that will restart Vserver (on OS X.4.6) on a user > logout? Or some other mechanism to keep Vserver running regardless of user > activity? > Currently, it runs great at bootup and I can start it manually in the > Terminal, but when a user logs out, it gets killed. > > Thanks for any advice. And next login do not start it ? Yuri have told actually that we need modify our StartupItems script to have loop: This is psudo-code -------------------------------- loop { start vserver } -------------------------------- Then if crash or else, server will be started again by loop. Note, that you can start/stop server self from e.g. REALbasic code Using shell command. For this you need know its exact path and name. /Library/VServer_Office/VServer_Office.app/Contents/MacOS/VServer_Office Look at /Library/StartupItems/VServer_Office/VServer_Office ------------------------------ Let me know any more ideas/dream you want. We will think how todo -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Mon Apr 10 08:48:57 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Mon Apr 10 07:49:03 2006 Subject: [Vserver] - Re-launch Script for OS X.4.6 In-Reply-To: Message-ID: On 4/10/06 3:12 AM, "Ruslan Zasukhin" wrote: > On 4/10/06 5:27 AM, "Russ Tyndall" wrote: > > Hi Russ, > >> Does anyone have a script that will restart Vserver (on OS X.4.6) on a user >> logout? Or some other mechanism to keep Vserver running regardless of user >> activity? > >> Currently, it runs great at bootup and I can start it manually in the >> Terminal, but when a user logs out, it gets killed. >> >> Thanks for any advice. > > And next login do not start it ? > On my machine, when a user logs out, the Vserver process is killed. Logging in again as a different user (or the same user) does not start it again. Only rebooting. Starts up fine when machine boots up. And is running fine, even when login window listing users is first displayed. And when any user logs in, Vserver remains running. But if any user logs out, it quits and does not relaunch until reboot. I *believe* this is expected behavior since startup item is in /Library/StartupItems, not ~/Library/Startupitems. What if I put the startup item in both user and system-level libraries? Even if this is ok, Vserver will receive a startup command twice. Once when machine boots up and again when first user logs in. Perhaps this is ok, I will experiment. > Yuri have told actually that we need modify our StartupItems script to have > loop: > > This is psudo-code > > > -------------------------------- > loop > { > start vserver > } > -------------------------------- > > Then if crash or else, server will be started again by loop. > Yes, VNC has a similar-looking script installed in its directory, but I know nothing about modifying it for Vserver. > > Note, that you can start/stop server self from e.g. REALbasic code > Using shell command. For this you need know its exact path and name. > > /Library/VServer_Office/VServer_Office.app/Contents/MacOS/VServer_Office > > Look at /Library/StartupItems/VServer_Office/VServer_Office > > > ------------------------------ > Let me know any more ideas/dream you want. We will think how todo > Well, I cautiously guess that most Vserver users in OS X would like Vserver to continue running even when a user logs out and returns to the login window. Perhaps most machines do, this may just be me. For the time being, I'll experiment with the startup items. -- Russ Tyndall Wake Forest, NC From don at thinkingpublications.com Mon Apr 10 08:44:15 2006 From: don at thinkingpublications.com (Don Toro) Date: Mon Apr 10 08:50:28 2006 Subject: Not getting it Message-ID: <531A8F985242FE4EAC59FAE1F3676357CF6F23@mcsrv1.mckinley.dom> Hi Rob, These instruction are tested with Valentina 1 and Rev 2.6.1 but they should work with Valentina 2. You need to set the set the external of the stack. To set the external go to Object->Stack Inspector. In the "Stack Property Inspector" drop down menu choose "External References". Then click on the button with folder icon to select the external. Save the stack. You can also set the external of your stack by script. set the externals of stack "ValentinaTest" to "V4REV_win.dll" & cr & "V4REV_Macho" save stack "ValentinaTest" You can specify a relative or absolute path. If you specify an relative path make sure to set the defaultFolder before you open the stack that sets the external otherwise the stack will not be able to find where the external is located. I hope this helps. Donard Toro Information Manager/Computer Programmer ------------------------------------------------------------------- Thinking Publications, a division of McKinley Companies, Inc. 424 Galloway Street, Eau Claire, WI 54703 Phone: 1.800.225.4769 (US) & 1.715.832.2488 Fax: 1.800.828.8885 (US) & 1.715.832.9082 www.ThinkingPublications.com ------------------------------------------------------------------- COMMUNICATION SOLUTIONS THAT CHANGE LIVES Specializing in resources for individuals with speaking, listening, reading, writing, and thinking skill deficits -----Original Message----- From: Robert Sneidar [mailto:bobs@twft.com] Sent: Saturday, April 08, 2006 12:01 AM To: valentina@lists.macserve.net Subject: Not getting it Hi all. I know I must sound the newbie, but I read the following in the tutorial: Start of work with Valentina You have to set external references for the stack first. It could be done using "Stack Property Inspector". Here you just need to define the path to the V4REV_win.dll and(or) to the V4REV_Macho depends on OS target you wish to use. In order to start you should initialize Valentina with the help of Valentina_Init() function. It could be done in "on openCard" event, for example. To do this you should make the following: ? Choose "Edit Card Script" from the card popup menu. ? Write the following text: on OpenCard get Valentina_Init( 10 * 1024 * 1024 ) end OpenCard What specifically, do you MEAN by, "You have to set external references for the stack first"? What external reference, and why?? "It could be done using "Stack Property Inspector". Here you just need to define the path to the V4REV_win.dll and(or) to the V4REV_Macho depends on OS target you wish to use. In order to start you should initialize Valentina with the help of Valentina_Init() function." Are you saying I have to create a custom property with the path to the valentina functions? What should I name the property?? Are you saying I have to insert the V4REV_Macho into the command hierarchy? What EXACTLY am I supposed to do?? I call Valentina_Init(10 * 1024 * 1024) and I just get a script error! I, being a dolt, need a step by step list of things to do to get a blank Revolution stack prepped to work with databases. I don't mean to be critical, but the manuals (I have tried very hard to read through them) were clearly written by someone not quite familiar with English grammar. I am sure he is a brilliant man, but someone else really needs to rewrite these manuals in a manner that is going to make sense to someone who does not already know almost everything already (that would be me) so someone starting from scratch can get up and running quickly. I will dig around the sample stacks to try to make sense of it all. But I paid $300 for this so I could get databases going quickly. Now I am going to have to spend a LOT of time trying to learn everything by trial and error. What would really be helpful is a template stack with all the functions someone needed to do to create, open, query, update and close databases. I will poke around and see it there is something like that. Bob Sneidar IT Manager Logos Management Calvary Chapel CM _______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From fitzbew at nc.rr.com Mon Apr 10 10:32:40 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Mon Apr 10 09:32:46 2006 Subject: [Vserver] - Re-launch Script for OS X.4.6 In-Reply-To: Message-ID: On 4/10/06 8:48 AM, "Russ Tyndall" wrote: > I *believe* this is expected behavior since startup item is in > /Library/StartupItems, not ~/Library/Startupitems. What if I put the > startup item in both user and system-level libraries? Even if this is ok, > Vserver will receive a startup command twice. Once when machine boots up and > again when first user logs in. Perhaps this is ok, I will experiment. > > > For the time being, I'll experiment with the startup items. I made a mistake. There is no ~/Library/Startupitems on Tiger. Or on the Jaguar machine I have handy. Such a folder is at the system level only. Adding the Vserver app to a User's Login window in System Prefs does not work; at least not on my machine. Apple has tightened security of startupitems in Tiger, so I think achieving this (getting Vserver to run persistently across logout/login) may require more expertise than I have. (What a shock! :-) ) Russ From sunshine at public.kherson.ua Tue Apr 11 00:58:45 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 10 16:58:56 2006 Subject: [ANN] Valentina Studio mac+win 2.3 fc16 Message-ID: Hi All, This build is based on 2.3 engine of Valentina ----------------------------------------------------------- * Schema Browser - Tree View - Now you can sort list of Tables/Fields by any parameter by click on column header of list. * Schema Browser - when we switch between Tree View and Column View size of windows do not jump now. * SQL browser now show time of execution * SQL browser, fixed visual glitch in for big answers, when you close result table. * SQL Browser - more smart choice of default width for column of result, depending on its type. * SQL Browser - menu Recent now show last query on the top, so its easier to reach it by mouse. * ToolTips on Column Header in data browser and sql browser now are more accurate * in the Inspector more properties of Links are shown * Link Diagram now use smaller font size to better show long link names -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Tue Apr 11 11:57:42 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 11 03:57:50 2006 Subject: [Vserver] - Re-launch Script for OS X.4.6 In-Reply-To: Message-ID: On 4/10/06 3:48 PM, "Russ Tyndall" wrote: >> Then if crash or else, server will be started again by loop. >> > > Yes, VNC has a similar-looking script installed in its directory, but I know > nothing about modifying it for Vserver. Please send me VNC script -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Tue Apr 11 11:59:34 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 11 03:59:40 2006 Subject: [Vserver] - Re-launch Script for OS X.4.6 In-Reply-To: Message-ID: On 4/10/06 5:32 PM, "Russ Tyndall" wrote: Hi Russ, >> I *believe* this is expected behavior since startup item is in >> /Library/StartupItems, not ~/Library/Startupitems. What if I put the >> startup item in both user and system-level libraries? Even if this is ok, >> Vserver will receive a startup command twice. Once when machine boots up and >> again when first user logs in. Perhaps this is ok, I will experiment. >> >> >> For the time being, I'll experiment with the startup items. > > I made a mistake. There is no ~/Library/Startupitems on Tiger. Or on the > Jaguar machine I have handy. Such a folder is at the system level only. Actually HOME/Library miss some directories on start, but they can be added. > Adding the Vserver app to a User's Login window in System Prefs does not > work; at least not on my machine. > > Apple has tightened security of startupitems in Tiger, so I think achieving > this (getting Vserver to run persistently across logout/login) may require > more expertise than I have. (What a shock! :-) ) Yes we will learn this issue. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Tue Apr 11 09:50:41 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Tue Apr 11 09:50:47 2006 Subject: Microsoft Access In-Reply-To: Message-ID: <000001c65d77$4e45da90$9601a8c0@Brandon> We have an existing application built in Microsoft Access. Microsoft Access has the ability to link to many database types. One method is to use ODBC. We have used this method to connect to MySql. We are evaluating Valentina. Is it possible to connect to a Valentina Database with Microsoft Access? Is there an ODBC driver? We need the Access application to be able to add/delete/modify records in a Valentina Database. Is this possible? Thanks, Brandon From sunshine at public.kherson.ua Tue Apr 11 18:23:56 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 11 10:24:03 2006 Subject: Microsoft Access In-Reply-To: <000001c65d77$4e45da90$9601a8c0@Brandon> Message-ID: On 4/11/06 5:50 PM, "Brandon" wrote: Hi Brandon, > We have an existing application built in Microsoft Access. Microsoft > Access has the ability to link to many database types. One method is to > use ODBC. We have used this method to connect to MySql. > > We are evaluating Valentina. Is it possible to connect to a Valentina > Database with Microsoft Access? Is there an ODBC driver? No ODBC, we plan JDBC in 3-4 months. > We need the Access application to be able to add/delete/modify records > in a Valentina Database. Is this possible? But can you explain sense of this ? You develop Valentina-based application? In Director? Else? We have Valentina Studio which allow mage Valentina db from GUI. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From Claudius at sailer-online.de Tue Apr 11 20:20:43 2006 From: Claudius at sailer-online.de (Claudius Sailer) Date: Tue Apr 11 13:20:50 2006 Subject: [ANN] Valentina 2.3 Released In-Reply-To: References: <20060411164819.0C6AD872DC@spunkymail-a2.dreamhost.com> Message-ID: Hi, Am 11.04.2006 um 18:58 schrieb REAL News: > Valentina 2.3 includes a dramatic leap forward in speed for > database JOINS > (including data from two or more database tables) with a new > breakthrough > algorithm. In a comparative analysis in base configurations between > Valentina and MS SQL Server 2000 on Windows, on joins of 5,000,000 and > 20,000,000 record test databases, Valentina was between 2-6 times > faster > than MS SQL Server. Based on file structural differences of even > larger > databases, Valentina 2.3 can be 50-100 times faster or more (MS > Server, > mySQL, PostGre, SQLite and Oracle have the same file based > limitations), > depending on the record size of a table. is this the step from 2.2 to 2.3 or is this the opinion from V4RB 1.X to V4RB 2.X? IMHO is V4RB2 not faster than V4RB 1.X and I can't see that 2.3 is faster than 2.2.... I hope I will get a very bif SpeedDump when RB is able to make Universal Binaries. bye Claudius -- iMac CD 2GHz / MacOS X 10.4de / RB 2006r2/ Valentina 2.3 Homepage http://www.ClaSai.de iChat ryhoruk RealBasic ListBoxes: [ I feel the need...the need for speed!!! ] From sunshine at public.kherson.ua Tue Apr 11 22:04:19 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 11 14:04:26 2006 Subject: STOP THE PRESSES! In-Reply-To: <9C72DA84-5A69-4FDF-8030-F71F872A75DE@twft.com> Message-ID: On 4/9/06 7:14 AM, "Robert Sneidar" wrote: Hi Robert, Well, we have ship Valentina 2.3 release, so I was able check our docs on this issue. I have found that our docs contains clear instructions on page 7 of V4REV_Reference_2_en.pdf ---------------------------------------------------------------------- Registration of V4REV external in a new stack When you create a new stack where you want to use external Valentina for Revolution, you need first of all to specify for stack where external is located. You can do this in 2 ways: 1) Open a Stack Inspector. Switch to "External References". Here add V4REV_Macho and/or V4REV_win.dll externals. 2) using the window Messages you can type: set the externals of this stack to "V4REV_2\V4REV_win.dll" &cr& "V4REV_2/V4REV_Macho" ---------------------------------------------------------------------- So you probably simply overlooked this text. To simplify life of future new user of V4REV, we have add also special page in WIKI related to this issue. Even with picture :-) http://www.valentina-db.com/dokuwiki/doku.php?id=paradigma:public:en:documen tation:v4rev:howto:external_reference And provide links to it from a) V4REV Manual b) V4REV HOW TO c) V4REV FAQs In any case it is good that you have point where people can have problems. This help us improve docs > OKAY I JUST GOT IT! > > I didn't read far enough into the journal to see that Ruslan has > answered my question. I need to add the V4REV_Macho in the External > References of the stack! GOTCHA! > > Sorry for all the posts. > > Bob Sneidar > IT Manager > Logos Management > Calvary Chapel CM -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Tue Apr 11 22:22:58 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 11 14:23:04 2006 Subject: [ANN] Valentina 2.3 Released In-Reply-To: Message-ID: On 4/11/06 9:20 PM, "Claudius Sailer" wrote: Hl Claudius, >> Valentina 2.3 includes a dramatic leap forward in speed for database JOINS >> (including data from two or more database tables) with a new breakthrough >> algorithm. In a comparative analysis in base configurations between Valentina >> and MS SQL Server 2000 on Windows, on joins of 5,000,000 and 20,000,000 >> record test databases, Valentina was between 2-6 times faster than MS SQL >> Server. Based on file structural differences of even larger databases, >> Valentina 2.3 can be 50-100 times faster or more (MS Server, mySQL, PostGre, >> SQLite and Oracle have the same file based limitations), depending on the >> record size of a table. > > is this the step from 2.2 to 2.3 or is this the opinion from V4RB 1.X > to V4RB 2.X? 2.2 to 2.3 Probably you are not on beta list, yes? > IMHO is V4RB2 not faster than V4RB 1.X and I can't see that 2.3 is > faster than 2.2.... > I hope I will get a very bif SpeedDump when RB is able to make > Universal Binaries. Please read what it talk about. About JOIN one 2 big tables. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Make table in e.g. 500K records and million One record left related to 2 records right. Valentina 2.2 did join SELECT * FROM T1 join T2 on T1,id = T2.ptr In 15 min (1000 seconds), Valentina 2.3 do this in 1.8-3.2 seconds. We have test even more huge tables, with 5 million and 20 millions records. We have spend 2 days benching against MS SQL. We can say Valentina win even on simple tables with 2-3 fields (record size 28 bytes) 2-6 times. IF record size go to 200+ bytes, Valentina wins much more. Yes, I know this is not everyday queries, and I know that not each developer get them. But we have customers which are happy that Valentina now spend not 15 minutes but 2 seconds. :-) This is start of Jeffrey letter from beta list. > Hi Ruslan, > > I have tested the new VStudio and it shows amazing speed for big tables join. > Wow!!!! -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Tue Apr 11 14:44:23 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Tue Apr 11 14:44:29 2006 Subject: Microsoft Access In-Reply-To: Message-ID: <000001c65da0$55f15e30$9601a8c0@Brandon> Thanks for your reply Ruslan...see below > We have an existing application built in Microsoft Access. Microsoft > Access has the ability to link to many database types. One method is > to use ODBC. We have used this method to connect to MySql. > > We are evaluating Valentina. Is it possible to connect to a Valentina > Database with Microsoft Access? Is there an ODBC driver? >No ODBC, we plan JDBC in 3-4 months. Ok > We need the Access application to be able to add/delete/modify records > in a Valentina Database. Is this possible? >But can you explain sense of this ? I was trying to be clear that we needed full read/write capability within Access. Without ODBC, the only way I know for Access to work with Valentina data will be the Valentina COM support. This will work within Access using VBA programming. But, other objects within access, such as reports, forms, queries would not be able to work with the Valentina Database (I assume.) >You develop Valentina-based application? In Director? Else? We have developed two applications: 1. Microsoft Access application 2. RealBasic application Currently, the Microsoft Access application is using the Access database format. We would like to continue to use the existing Microsoft Access application (GUI, reports, etc - 2 years of work) but change the underlying database from the Access database format to a client/server solution. I really like everything I have learned about Valentina. But, without ODBC, it will be difficult for the Access application to easily work with Valentina data. Another reason we are looking into Valentina is the really good support for Realbasic. We are just now trying to select a client/server solution for our RealBasic application. >We have Valentina Studio which allow mage Valentina db from GUI. That is good. Thank You, Brandon Warlick From sunshine at public.kherson.ua Wed Apr 12 01:00:33 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 11 17:00:40 2006 Subject: Microsoft Access In-Reply-To: <000001c65da0$55f15e30$9601a8c0@Brandon> Message-ID: On 4/11/06 10:44 PM, "Brandon" wrote: Hi Brandon, >> We need the Access application to be able to add/delete/modify records > >> in a Valentina Database. Is this possible? > >> But can you explain sense of this ? > > I was trying to be clear that we needed full read/write capability within > Access. Without ODBC, the only way I know for Access to work with Valentina > data will be the Valentina COM support. This will work within Access using VBA > programming. yes > But, other objects within access, such as reports, forms, queries would not be > able to work with the Valentina Database (I assume.) So it seems, you want to use GUI of Access as front-end to database? Well, few times people have express such idea.... Also was pointed that 4D DBMS also can be good front-end to Valentina engine. >> You develop Valentina-based application? In Director? Else? > We have developed two applications: > 1. Microsoft Access application > 2. RealBasic application Both on Windows? Or RB on MAC and Access on Windows? > Currently, the Microsoft Access application is using the Access > database format. We would like to continue to use the existing Microsoft > Access application (GUI, reports, etc - 2 years of work) but change the > underlying database from the Access database format to a client/server > solution. Okay I see point. > I really like everything I have learned about Valentina. But, > without ODBC, it will be difficult for the Access application to easily > work with Valentina data. So it seems you have no easy way to Valentina here...hmm. Does Access support JDBC also ? > Another reason we are looking into Valentina is the really good support for > Realbasic. We are just now trying to select a client/server solution for our > RealBasic application. Let me know if questions. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From listmail1 at dsl.pipex.com Wed Apr 12 14:44:33 2006 From: listmail1 at dsl.pipex.com (Dave Addey) Date: Wed Apr 12 08:44:39 2006 Subject: Problems using V4RB 2.3 Carbon in debug with a MachO application Message-ID: Hi all, I?ve just updated my V4RB installation to v2.3, and my RB MachO application won?t run in debug mode any more. I downloaded ?Valentina for REALbasic Mac Host (Carbon+Win)?. I have the Carbon VComponents folder in my /Library/CFMSupport/ folder, and the Carbon V4RB plugin in my Plugins folder. I am compiling my RB application as a MachO application. This all worked with v2.2! What I do is to develop using the Carbon version of V4RB, and then use the MachO version for release (as RB stops Valentina from using the MachO code when running in debug mode). Has this ability been removed in v2.3? When I run my application in debug mode against v2.3, I get the following error when the debug app launches: Runtime Error 4: Failed Assertion Location: plugin.cpp: 7417 Failure Condition: pluginEntryTable.GetEntry ( entrypointName, out ) Failure Message: can?t find plugin method Valentina.CacheSize as Integer If I click ?Continue?, I get several more similar messages. Dave. From listmail1 at dsl.pipex.com Wed Apr 12 14:48:31 2006 From: listmail1 at dsl.pipex.com (Dave Addey) Date: Wed Apr 12 08:48:37 2006 Subject: Problems using V4RB 2.3 Carbon in debug with a MachO application In-Reply-To: Message-ID: I forgot to say: I'm using RB 2006 release 2, on Mac OS X 10.4.6. I've just reverted to V4RB v2.2, and I don't have the problems mentioned below. Dave. > From: Dave Addey > Reply-To: Valentina Developers > Date: Wed, 12 Apr 2006 14:44:33 +0100 > To: Valentina Developers > Conversation: Problems using V4RB 2.3 Carbon in debug with a MachO application > Subject: Problems using V4RB 2.3 Carbon in debug with a MachO application > > Hi all, > > I?ve just updated my V4RB installation to v2.3, and my RB MachO application > won?t run in debug mode any more. I downloaded ?Valentina for REALbasic Mac > Host (Carbon+Win)?. > > I have the Carbon VComponents folder in my /Library/CFMSupport/ folder, and > the Carbon V4RB plugin in my Plugins folder. I am compiling my RB > application as a MachO application. This all worked with v2.2! > > What I do is to develop using the Carbon version of V4RB, and then use the > MachO version for release (as RB stops Valentina from using the MachO code > when running in debug mode). Has this ability been removed in v2.3? > > When I run my application in debug mode against v2.3, I get the following > error when the debug app launches: > > Runtime Error 4: Failed Assertion > > Location: plugin.cpp: 7417 > Failure Condition: pluginEntryTable.GetEntry ( entrypointName, out ) > Failure Message: can?t find plugin method Valentina.CacheSize as Integer > > If I click ?Continue?, I get several more similar messages. > > Dave. > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Apr 12 16:51:27 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 12 08:51:32 2006 Subject: Problems using V4RB 2.3 Carbon in debug with a MachO application In-Reply-To: Message-ID: On 4/12/06 4:44 PM, "Dave Addey" wrote: > Hi all, > > I?ve just updated my V4RB installation to v2.3, and my RB MachO application > won?t run in debug mode any more. I downloaded ?Valentina for REALbasic Mac > Host (Carbon+Win)?. > > I have the Carbon VComponents folder in my /Library/CFMSupport/ folder, and > the Carbon V4RB plugin in my Plugins folder. I am compiling my RB > application as a MachO application. This all worked with v2.2! > > What I do is to develop using the Carbon version of V4RB, and then use the > MachO version for release (as RB stops Valentina from using the MachO code > when running in debug mode). Has this ability been removed in v2.3? > > When I run my application in debug mode against v2.3, I get the following > error when the debug app launches: > > Runtime Error 4: Failed Assertion > > Location: plugin.cpp: 7417 > Failure Condition: pluginEntryTable.GetEntry ( entrypointName, out ) > Failure Message: can?t find plugin method Valentina.CacheSize as Integer > > If I click ?Continue?, I get several more similar messages. Hi Dave, Yes, Frank already have contact me. I have sent him fixed plugin, if okay, I will upload new archive with it. I can send to you also right now -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From listmail1 at dsl.pipex.com Wed Apr 12 15:08:23 2006 From: listmail1 at dsl.pipex.com (Dave Addey) Date: Wed Apr 12 09:08:31 2006 Subject: Problems using V4RB 2.3 Carbon in debug with a MachO application In-Reply-To: Message-ID: Hi Ruslan, Thank you! I have just tried the fixed plugin, and it seems to work fine now. Thank you for the quick response! Dave. > From: Ruslan Zasukhin > Reply-To: Valentina Developers > Date: Wed, 12 Apr 2006 16:51:27 +0300 > To: "valentina@lists.macserve.net" > Conversation: Problems using V4RB 2.3 Carbon in debug with a MachO application > Subject: Re: Problems using V4RB 2.3 Carbon in debug with a MachO application > > On 4/12/06 4:44 PM, "Dave Addey" wrote: > >> Hi all, >> >> I?ve just updated my V4RB installation to v2.3, and my RB MachO application >> won?t run in debug mode any more. I downloaded ?Valentina for REALbasic Mac >> Host (Carbon+Win)?. >> >> I have the Carbon VComponents folder in my /Library/CFMSupport/ folder, and >> the Carbon V4RB plugin in my Plugins folder. I am compiling my RB >> application as a MachO application. This all worked with v2.2! >> >> What I do is to develop using the Carbon version of V4RB, and then use the >> MachO version for release (as RB stops Valentina from using the MachO code >> when running in debug mode). Has this ability been removed in v2.3? >> >> When I run my application in debug mode against v2.3, I get the following >> error when the debug app launches: >> >> Runtime Error 4: Failed Assertion >> >> Location: plugin.cpp: 7417 >> Failure Condition: pluginEntryTable.GetEntry ( entrypointName, out ) >> Failure Message: can?t find plugin method Valentina.CacheSize as Integer >> >> If I click ?Continue?, I get several more similar messages. > > Hi Dave, > > Yes, Frank already have contact me. > > I have sent him fixed plugin, if okay, I will upload new archive with it. > I can send to you also right now > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Apr 12 19:04:57 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 12 11:05:01 2006 Subject: V4RB_mac.dmg 2.3 re-uploaded to fix MACHO builds Message-ID: Hi All, If somebody do MACHO builds of their apps, like Dave and Frank do, You need download this new archive of V4RB 2.3. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 12 19:16:02 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 12 11:20:16 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/12/06 6:42 PM, "Russ Tyndall" wrote: Hi Russ, > Ruslan, > > Trying to make sure I understand RB2006/OS X V4RB 2.x requirements. I am > getting unexpected exceptions, but I'm sure I have just misunderstood > something. > > Developing in OS X.4.5 using RB2006r1: > > 1) Development machine *must* have carbon version of Vcomponents folder > installed in /Library/CFMSupport/. yes > 2) With the "V4RB" plugin installed in the RB IDE, developer may debug in > PEF or Mach-O but target machine must have carbon version of Vcomponents in > CFMSupport folder. What means target machine? > Developer may remote debug to Win32, if Win32 machine > has Vcomponents installed. yes > With "V4RB" plugin, built apps are not stand-alone, receiving machine must > have Vcomponents installed (and recognized). Yes, you need do some kind of installer. But even better use Package fro your app. See our docs how to > 3) With the "V4RB_Macho" plugin installed in IDE, developer cannot build > Win32 app and cannot remote debug to Win32. No. This Should work. V4RB_MAHO archive contains V4RB.rbx plugin which have 3 targets: Carbon, Macho and Windows V4RB_MAC archive contains V4RB.rbx plugin which have 2 targets: Carbon and Windows I.e. Both plugins have Windows target. > Cannot build PEF version, only Mach-O version of app. Again NO. PEF also > Mach-O version of Vcomponents folder must be copied > into built app package. yes > This package (app) should be able to run on any OS X machine, regardless of > whether or not target machine has Vcomponents in CFMSupport library. Yes. Again the same you can do for PEF apps. Se our docs Using third party utility. > 4) Mach-o version of Vcomponents should never be installed in developer's > /Library/CFMSupport/ folder. Nooooooo :-) CFMSupport - contains only Carbon shared libs. > 5) Contents of /Library/CFMSupport/ is irrelevant to Vserver because it is > included in Vserver package (if Vserver is on development machine.) Right > 6) "V4RB" and "V4RB_macho" plugins *cannot* be in RB IDE at the same time. yes > Is all the above true? Did not want to send this to list, lest some poor > soul get confused in the future due to archive search. > > *If* this is correct info, you may wish to send to lists. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Wed Apr 12 14:24:06 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Wed Apr 12 13:24:20 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/12/06 12:16 PM, "Ruslan Zasukhin" wrote: > On 4/12/06 6:42 PM, "Russ Tyndall" wrote: > > Hi Russ, > >> Ruslan, >> >> Trying to make sure I understand RB2006/OS X V4RB 2.x requirements. I am >> getting unexpected exceptions, but I'm sure I have just misunderstood >> something. >> >> Developing in OS X.4.5 using RB2006r1: >> >> 1) Development machine *must* have carbon version of Vcomponents folder >> installed in /Library/CFMSupport/. > > yes > >> 2) With the "V4RB" plugin installed in the RB IDE, developer may debug in >> PEF or Mach-O but target machine must have carbon version of Vcomponents in >> CFMSupport folder. > > What means target machine? > Machine that you are debugging to. If debugging to a X.2.8 or X.3.9 machine from a X.4.6 dev machine, the target machine must have Vcomponents in CFMSupport library, correct? Perhaps I should not ask this until I understand answer to question below about differences between Macho and Carbon plugins. >> Developer may remote debug to Win32, if Win32 machine >> has Vcomponents installed. > > yes > >> With "V4RB" plugin, built apps are not stand-alone, receiving machine must >> have Vcomponents installed (and recognized). > > Yes, you need do some kind of installer. > But even better use Package fro your app. See our docs how to > > >> 3) With the "V4RB_Macho" plugin installed in IDE, developer cannot build >> Win32 app and cannot remote debug to Win32. > > No. > > This Should work. > > V4RB_MAHO archive contains V4RB.rbx plugin which have 3 targets: > Carbon, Macho and Windows > > V4RB_MAC archive contains V4RB.rbx plugin which have 2 targets: > Carbon and Windows > > I.e. Both plugins have Windows target. > I understand. As long as Vcomponents is installed on Win32 machine, plugin in IDE is irrelevant. >> Cannot build PEF version, only Mach-O version of app. > > Again NO. PEF also > Then I think I have misunderstood what is happening in the IDE. If I have "V4RB_Macho" plugin installed in IDE, and select "Macho" when I build app, the V4RB engine expects to have Mach-O Vcomponent libraries available *inside* the package. If I have "V4RB" plugin installed in IDE, and select "Macho" when I build app, the V4RB engine expects to have Carbon Vcomponent libraries available *outside* the package. >> Mach-O version of Vcomponents folder must be copied >> into built app package. > > yes > This puzzles me then: If I have Mach-O plugin installed, and Debug as Mach-O, where does debug compile find the Mach-O libraries? From within the plugin itself? Why do I have to add Mach-o Vcomponents later to package? I bet this is some limitation of RB IDE/compiler but I am curious. >> This package (app) should be able to run on any OS X machine, regardless of >> whether or not target machine has Vcomponents in CFMSupport library. > > Yes. Again the same you can do for PEF apps. Se our docs > Using third party utility. > >> 4) Mach-o version of Vcomponents should never be installed in developer's >> /Library/CFMSupport/ folder. > > Nooooooo :-) > > CFMSupport - contains only Carbon shared libs. > >> 5) Contents of /Library/CFMSupport/ is irrelevant to Vserver because it is >> included in Vserver package (if Vserver is on development machine.) > > Right > >> 6) "V4RB" and "V4RB_macho" plugins *cannot* be in RB IDE at the same time. > > yes > Unfortunately, this morning I have having problems similar to what Dave Addey reported, *but* I am using V4RB_macho plugin (latest, on Apr 10) where he was using Carbon plugin and debugging to Mach-O. Are there any other differences between the two Mac plugins? If I have V4RB plugin installed and try to connect to Vserver 2.3, I get a demo timeout exception back from Vserver (but that is not true!). If I have V4RB_macho installed, I get bad crash similar to what Dave reported. I can connect to local databases ok. (on hard drive.) Everything on my machine is current now, as far as I know. Russ From fitzbew at nc.rr.com Wed Apr 12 17:10:44 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Wed Apr 12 16:10:52 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/12/06 2:24 PM, "Russ Tyndall" wrote: > Unfortunately, this morning I have having problems similar to what Dave > Addey reported, *but* I am using V4RB_macho plugin (latest, on Apr 10) where > he was using Carbon plugin and debugging to Mach-O. > Little more information. V4RB_Macho causes hard crash at app launch, if Mach-O is selected in Build settings. (If PEF is selected, App runs ok.) Carbon plugin works ok (the one uploaded this morning), regardless of build setting. The crash with the Mach-o plugin is an RB Failed Assertion: **** Runtime Error 4: Failed Assertion Failure Condition: pluginEntryTable.GetEntry ( entrypointName, out ) Failure Message: can't find plugin method Valentina.DebugLevel( Assigns inLevel as integer ) ***** This is Mach_o plugin with Apr 10 upload date but Apr 9 modify date. > If I have V4RB plugin installed and try to connect to Vserver 2.3, I get a > demo timeout exception back from Vserver (but that is not true!). This was apparently because "master.vdb" was registered twice in Vserver. Don't know how that happened, but I assume it was something I did. (Probably a safe assumption!) -- Russ Tyndall Wake Forest, NC From sunshine at public.kherson.ua Thu Apr 13 00:21:00 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 12 16:21:08 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/13/06 12:10 AM, "Russ Tyndall" wrote: >> Unfortunately, this morning I have having problems similar to what Dave >> Addey reported, *but* I am using V4RB_macho plugin (latest, on Apr 10) where >> he was using Carbon plugin and debugging to Mach-O. >> > > Little more information. V4RB_Macho causes hard crash at app launch, if > Mach-O is selected in Build settings. (If PEF is selected, App runs ok.) V4RB_Macho must work as MACHO build. This is why it exists. Dave, Frank, what you can say on this report ? > Carbon plugin works ok (the one uploaded this morning), regardless of build > setting. > > The crash with the Mach-o plugin is an RB Failed Assertion: > > **** > > Runtime Error 4: Failed Assertion > Failure Condition: pluginEntryTable.GetEntry > ( entrypointName, out ) > Failure Message: can't find plugin method > Valentina.DebugLevel( Assigns inLevel as integer ) > > ***** -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From listmail1 at dsl.pipex.com Wed Apr 12 22:45:43 2006 From: listmail1 at dsl.pipex.com (Dave Addey) Date: Wed Apr 12 16:45:51 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: Hi Ruslan, I have just tried building the MachO version of our app, using the MachO plugin (V4RB_Macho.rbx), and copying the MachO Vcomponents folder into the built application's package (to /Contents/VComponents/). The application runs fine for me without the Failed Assertion mentioned below. Dave. > From: Ruslan Zasukhin > Date: Thu, 13 Apr 2006 00:21:00 +0300 > To: "valentina@lists.macserve.net" , Dave Addey > , Frank Schima > Conversation: [V4RB] 2.x Carbon/Mach-O Plugin Reqs > Subject: Re: [V4RB] 2.x Carbon/Mach-O Plugin Reqs > > On 4/13/06 12:10 AM, "Russ Tyndall" wrote: > >>> Unfortunately, this morning I have having problems similar to what Dave >>> Addey reported, *but* I am using V4RB_macho plugin (latest, on Apr 10) where >>> he was using Carbon plugin and debugging to Mach-O. >>> >> >> Little more information. V4RB_Macho causes hard crash at app launch, if >> Mach-O is selected in Build settings. (If PEF is selected, App runs ok.) > > V4RB_Macho must work as MACHO build. This is why it exists. > > Dave, Frank, what you can say on this report ? > >> Carbon plugin works ok (the one uploaded this morning), regardless of build >> setting. >> >> The crash with the Mach-o plugin is an RB Failed Assertion: >> >> **** >> >> Runtime Error 4: Failed Assertion >> Failure Condition: pluginEntryTable.GetEntry >> ( entrypointName, out ) >> Failure Message: can't find plugin method >> Valentina.DebugLevel( Assigns inLevel as integer ) >> >> ***** > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > From listmail1 at dsl.pipex.com Wed Apr 12 22:46:55 2006 From: listmail1 at dsl.pipex.com (Dave Addey) Date: Wed Apr 12 16:47:01 2006 Subject: Problems using V4RB 2.3 Carbon in debug with a MachO application In-Reply-To: Message-ID: Hi Ruslan, I noticed that the revised V4RB 2.3 Carbon/Win plugin you uploaded today doesn't have a version number when you view it in the Mac OS X Finder. It works fine, bit it makes it harder to tell which version of the plugin is which. Just a small thing, but I thought I should mention it. Dave. > From: Ruslan Zasukhin > Reply-To: Valentina Developers > Date: Wed, 12 Apr 2006 16:51:27 +0300 > To: "valentina@lists.macserve.net" > Conversation: Problems using V4RB 2.3 Carbon in debug with a MachO application > Subject: Re: Problems using V4RB 2.3 Carbon in debug with a MachO application > > On 4/12/06 4:44 PM, "Dave Addey" wrote: > >> Hi all, >> >> I?ve just updated my V4RB installation to v2.3, and my RB MachO application >> won?t run in debug mode any more. I downloaded ?Valentina for REALbasic Mac >> Host (Carbon+Win)?. >> >> I have the Carbon VComponents folder in my /Library/CFMSupport/ folder, and >> the Carbon V4RB plugin in my Plugins folder. I am compiling my RB >> application as a MachO application. This all worked with v2.2! >> >> What I do is to develop using the Carbon version of V4RB, and then use the >> MachO version for release (as RB stops Valentina from using the MachO code >> when running in debug mode). Has this ability been removed in v2.3? >> >> When I run my application in debug mode against v2.3, I get the following >> error when the debug app launches: >> >> Runtime Error 4: Failed Assertion >> >> Location: plugin.cpp: 7417 >> Failure Condition: pluginEntryTable.GetEntry ( entrypointName, out ) >> Failure Message: can?t find plugin method Valentina.CacheSize as Integer >> >> If I click ?Continue?, I get several more similar messages. > > Hi Dave, > > Yes, Frank already have contact me. > > I have sent him fixed plugin, if okay, I will upload new archive with it. > I can send to you also right now > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Thu Apr 13 01:10:48 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 12 17:10:55 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/13/06 12:45 AM, "Dave Addey" wrote: > Hi Ruslan, > > I have just tried building the MachO version of our app, using the MachO > plugin (V4RB_Macho.rbx), and copying the MachO Vcomponents folder into the > built application's package (to /Contents/VComponents/). The application > runs fine for me without the Failed Assertion mentioned below. Thank you, David, Russ, then may be you have forget copy VComponents Macho folder inside of App package? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Thu Apr 13 01:11:39 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 12 17:11:51 2006 Subject: Problems using V4RB 2.3 Carbon in debug with a MachO application In-Reply-To: Message-ID: On 4/13/06 12:46 AM, "Dave Addey" wrote: Hi Dave, > I noticed that the revised V4RB 2.3 Carbon/Win plugin you uploaded today > doesn't have a version number when you view it in the Mac OS X Finder. It > works fine, bit it makes it harder to tell which version of the plugin is > which. Just a small thing, but I thought I should mention it. Well, I can fix this and upload once again :-) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Wed Apr 12 19:01:11 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Wed Apr 12 18:01:20 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/12/06 6:10 PM, "Ruslan Zasukhin" wrote: > On 4/13/06 12:45 AM, "Dave Addey" wrote: > >> Hi Ruslan, >> >> I have just tried building the MachO version of our app, using the MachO >> plugin (V4RB_Macho.rbx), and copying the MachO Vcomponents folder into the >> built application's package (to /Contents/VComponents/). The application >> runs fine for me without the Failed Assertion mentioned below. > > Thank you, David, > > Russ, then may be you have forget copy VComponents Macho folder inside of > App package? We are narrowing it down. With Apr 9 modified Mach-o plugin and associated vComponents folder, I can build stand-alone app ok. I then copy Mach-o Vcomponents into /contents/ of RB built package. I double-click package. App tries to connect to vServer, but gets demo timeout exception from Vserver when I connect. (Also, error appears in Vserver log. Exception Error 628000.) I then change source code to look at identical db file in desktop mode (not server) , compile, add mach-o vcomponents again and it runs fine. No errors. Switch out plugins from Mach-o to Carbon and same app works fine every time, whether seeking Vserver connection or local db connection. But...how can vServer know whether I'm using Carbon or Mach-o plugin? Dave, are you connecting to Vserver or desktop db? *** So it is not possible to debug in RB IDE with mach-o plugin with mach-o target build? Because the debug package will not have Mach-o vcomponents folder in it? If that's true, it will answer one mystery for me. I had asked about that in an earlier email today. Russ From listmail1 at dsl.pipex.com Thu Apr 13 08:31:13 2006 From: listmail1 at dsl.pipex.com (Dave Addey) Date: Thu Apr 13 02:31:20 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: > Dave, are you connecting to Vserver or desktop db? Desktop DB only. > So it is not possible to debug in RB IDE with mach-o plugin with mach-o > target build? Because the debug package will not have Mach-o vcomponents > folder in it? If that's true, it will answer one mystery for me. I had > asked about that in an earlier email today. This is absolutely true. Valentina can't insert the components into the debug package, as RB simply doesn't provide this ability. So, what I do is: * debug with the Carbon plugin, with the Carbon Vcomponents in my /Library/CFMSupport/ folder * once this is working, I build the app with the MachO plugin, and manually copy the MachO Vcomponents inside the application package. I then test this to be sure it still works! Dave. From sunshine at public.kherson.ua Thu Apr 13 10:45:24 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 13 02:45:32 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/13/06 10:31 AM, "Dave Addey" wrote: >> So it is not possible to debug in RB IDE with mach-o plugin with mach-o >> target build? Because the debug package will not have Mach-o vcomponents >> folder in it? If that's true, it will answer one mystery for me. I had >> asked about that in an earlier email today. > > This is absolutely true. Valentina can't insert the components into the > debug package, as RB simply doesn't provide this ability. So, what I do is: > > * debug with the Carbon plugin, with the Carbon Vcomponents in my > /Library/CFMSupport/ folder > > * once this is working, I build the app with the MachO plugin, and manually > copy the MachO Vcomponents inside the application package. I then test this > to be sure it still works! Yes, only when REAL ship REALbasic which is MACHO itself we will be able work normally with Macho. As I have told with Revolution here no problems. It is Macho. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Thu Apr 13 08:09:18 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Thu Apr 13 07:09:30 2006 Subject: [V4RB] 2.x Carbon/Mach-O Plugin Reqs In-Reply-To: Message-ID: On 4/13/06 3:31 AM, "Dave Addey" wrote: >> Dave, are you connecting to Vserver or desktop db? > > Desktop DB only. > >> So it is not possible to debug in RB IDE with mach-o plugin with mach-o >> target build? Because the debug package will not have Mach-o vcomponents >> folder in it? If that's true, it will answer one mystery for me. I had >> asked about that in an earlier email today. > > This is absolutely true. Valentina can't insert the components into the > debug package, as RB simply doesn't provide this ability. So, what I do is: > > * debug with the Carbon plugin, with the Carbon Vcomponents in my > /Library/CFMSupport/ folder > > * once this is working, I build the app with the MachO plugin, and manually > copy the MachO Vcomponents inside the application package. I then test this > to be sure it still works! Ok, I understand. You cannot have V4RB_Macho in RB IDE *and* debug to Mach-O target also. To me, this is not a problem, but I believe it should be in V4RB_macho readme for guys like me who may be puzzled by differences between Carbon and Macho format complications. Now, back to my mysterious Vserver timeout errors. Ruslan, I think I will just send you some stuff privately from my server logs. Russ From bwarlick at sunbelt-graphics.com Thu Apr 13 10:27:47 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Thu Apr 13 10:27:54 2006 Subject: Security / Encryption In-Reply-To: Message-ID: <000d01c65f0e$d1fb5c50$9601a8c0@Brandon> 1. If we have a server running Valentina and connect to the server from another location is the username and password encrypted? 2. When records are read from an encrypted table, is the data decrypted at the client or the server? Thank You, Brandon From sunshine at public.kherson.ua Thu Apr 13 19:13:46 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 13 11:13:52 2006 Subject: Security / Encryption In-Reply-To: <000d01c65f0e$d1fb5c50$9601a8c0@Brandon> Message-ID: On 4/13/06 6:27 PM, "Brandon" wrote: Hi Brandon, > 1. If we have a server running Valentina and connect to the server from > another location is the username and password encrypted? You mean where? Network? Or masterdb ? > 2. When records are read from an encrypted table, is the data decrypted > at the client or the server? On server. NOTE: Encryption protect DB FILES. From user which want read them my hexedit for example. Nothing more. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Thu Apr 13 11:54:02 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Thu Apr 13 11:54:09 2006 Subject: Security / Encryption In-Reply-To: Message-ID: <000001c65f1a$de430380$9601a8c0@Brandon> Ruslan, > 1. If we have a server running Valentina and connect to the server > from another location is the username and password encrypted? >> You mean where? Network? Or masterdb ? Network security. Refer to --> http://dev.mysql.com/doc/refman/5.0/en/security-against-attack.html Let me know how Valentina compares. >> NOTE: Encryption protect DB FILES. From user which want read them my hexedit for example. Nothing more. I understand. Thank You, Brandon From sunshine at public.kherson.ua Thu Apr 13 20:49:01 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 13 12:49:02 2006 Subject: Security / Encryption In-Reply-To: <000001c65f1a$de430380$9601a8c0@Brandon> Message-ID: On 4/13/06 7:54 PM, "Brandon" wrote: > Ruslan, > >> 1. If we have a server running Valentina and connect to the server >> from another location is the username and password encrypted? > >>> You mean where? Network? Or masterdb ? > > Network security. Refer to --> > http://dev.mysql.com/doc/refman/5.0/en/security-against-attack.html Let > me know how Valentina compares. Ivan and me will read. For info of all guys, We have start develop new protocol for Valentina Server. We expect this will take 2-3 weeks. So we will check all these points once again. Please be on beta list to participate -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Thu Apr 13 13:52:27 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Thu Apr 13 13:52:34 2006 Subject: DisableRBDB In-Reply-To: Message-ID: <000001c65f2b$6a455940$9601a8c0@Brandon> We are using the Standard version of Realbasic. Placing a blank file "DisableRBDB" in the RealBasic plugins folder does not prevent RealBasic from going into Demo mode. Is this due to us using a demo version of Valentina? Brandon From sunshine at public.kherson.ua Thu Apr 13 22:46:42 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 13 14:46:50 2006 Subject: DisableRBDB In-Reply-To: <000001c65f2b$6a455940$9601a8c0@Brandon> Message-ID: On 4/13/06 9:52 PM, "Brandon" wrote: Hi Brandon, > We are using the Standard version of Realbasic. > Placing a blank file "DisableRBDB" in the RealBasic plugins folder does not > prevent RealBasic from going into Demo mode. > > Is this due to us using a demo version of Valentina? No. demo version of Valentina has ONLY 10 miniutes time limit. Nothing more. I have not catch what you mean - REALBasic going into Demo mode? Does REALbasic see Valentina classes? just open any editor and type few letters Vale does RB show completion Valentina ? If yes then all right -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From doppler at derlichtblick.at Thu Apr 13 21:47:35 2006 From: doppler at derlichtblick.at (thomas doppler) Date: Thu Apr 13 14:47:41 2006 Subject: german characters v4md 2.3 Message-ID: <443EAAD7.4040209@derlichtblick.at> hi, for the last time the xtra 2.1 on mac and studio 2.2 on mac works fine for me. now i'm updating a valentina-db from 2.1 to 2.3 (valentina studio and md) on os x. with the result, that the german special characters doesnt work im director. in studio 2.3 they looks ok but in director they dosnt. so i wanted to downgrade to 2.1 but the 2.1 xtra (and studio) can't open a 2.3-modified db. whats wrong? gr thomas -- LichtBlick-L?sungen aus einer Hand ------------------------------------------ http://derlichtblick.at meillergasse 5/3 a-1130 wien ------------------------------------------ tel 00 43 1 802 50 32 mobil 00 43 664 243 96 51 mail doppler@derlichtblick.at From bwarlick at sunbelt-graphics.com Thu Apr 13 15:07:28 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Thu Apr 13 15:07:33 2006 Subject: DisableRBDB In-Reply-To: Message-ID: <000001c65f35$e41b7d30$9601a8c0@Brandon> Ruslan, First, let me say that after 24 hours of learning pain, I am understanding the RealBasic Class method of working with Valentina. Everything is working perfectly within the RealBasicIDE! (Windows XP, rb2005r4). Here's the problem: When I run an application I get this message: ---------------------------------------------------------------- An error occurred while compiling "application.rbp" The plugin V4RB.rbx:0 class is an exclusive feature of REALBASIC Professional Edition. Since you are running REALbasic Standard Edition, this application will be built as a time-limited demo. Your application will run for 5 minutes at a time and work for 10 days. You can remove these restrictions by upgrading to REALbasic Professional Edition. ----------------------------------------------------------------- I do not want to use the RealBasic database API - I want to use the Valentina Classes. I read in the Valentina 2 RealBasic reference (pg V4RBRef-23). It says to place a file named "DisableRBDB" to disable the Realbasic Database API. This does not seem to work. Click Menu option "Project" > "Add" > "Database" > "New Valentina" is there as an option. Am I doing something wrong? Brandon > We are using the Standard version of Realbasic. > Placing a blank file "DisableRBDB" in the RealBasic plugins folder > does not prevent RealBasic from going into Demo mode. > > Is this due to us using a demo version of Valentina? >> No. demo version of Valentina has ONLY 10 miniutes time limit. Nothing more. >> I have not catch what you mean - REALBasic going into Demo mode? >> Does REALbasic see Valentina classes? >> just open any editor and type few letters Vale >> does RB show completion Valentina ? >> If yes then all right From sunshine at public.kherson.ua Fri Apr 14 00:22:38 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 13 16:22:43 2006 Subject: DisableRBDB In-Reply-To: <000001c65f35$e41b7d30$9601a8c0@Brandon> Message-ID: On 4/13/06 11:07 PM, "Brandon" wrote: Hi Brandon, > First, let me say that after 24 hours of learning pain, I am > understanding the RealBasic Class method of working with Valentina. > Everything is working perfectly within the RealBasicIDE! (Windows XP, > rb2005r4). great > Here's the problem: > > When I run an application I get this message: > ---------------------------------------------------------------- > An error occurred while compiling "application.rbp" > > The plugin V4RB.rbx:0 class is an exclusive feature of > REALBASIC Professional Edition. > > Since you are running REALbasic Standard Edition, this > application will be built as a time-limited demo. Your > application will run for 5 minutes at a time and work for 10 days. > > You can remove these restrictions by upgrading to > REALbasic Professional Edition. > ----------------------------------------------------------------- This means that V4RB have not recognize DisableRBDB file. You have told you put it into plugin folder. Not remember exactly. May be it should go just to RB.app folder? > I do not want to use the RealBasic database API - I want to use the > Valentina Classes. I read in the Valentina 2 RealBasic reference (pg > V4RBRef-23). It says to place a file named "DisableRBDB" to disable the > Realbasic Database API. This does not seem to work. Click Menu option > "Project" > "Add" > "Database" > "New Valentina" is there as an option. > > Am I doing something wrong? Check location of DisableRBDB file -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 14 00:27:00 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 13 16:27:05 2006 Subject: german characters v4md 2.3 In-Reply-To: <443EAAD7.4040209@derlichtblick.at> Message-ID: On 4/13/06 10:47 PM, "thomas doppler" wrote: > hi, > > for the last time the xtra 2.1 on mac and studio 2.2 on mac works fine > for me. > > now i'm updating a valentina-db from 2.1 to 2.3 (valentina studio and > md) on os x. > > with the result, that the german special characters doesnt work im > director. in studio 2.3 they looks ok but in director they dosnt. > so i wanted to downgrade to 2.1 but the 2.1 xtra (and studio) can't open > a 2.3-modified db. > > whats wrong? Thomas, we have change format of database in 2.3. Well, you can do xml dump in 2.3, and load it in 2.1 But I wonder about german chars ?! -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 14 01:29:59 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 13 17:30:18 2006 Subject: [ANN] Vstudio WIN fc18 uploaded Message-ID: - [Tree View] Show more parameters of fields now. - 0001515: [Schema Browser] Schema Browser shows empty connection when cannot open recent database (igor_nikita) - 0001514: [SQL Browser] The list of recent queries may contain not all queries (igor_nikita) - 0001513: [Schema Browser] Field than marked as Primary Key can't be deleted. (igor_nikita) - 0001506: [Related Table Browser] Foreing Key link in Related Browser shoud link records by mouse click. (igor_nikita) - 0001503: [Data Browser] Crash on column sorting - 0001504: [Data Browser] Wrong show of methods in Data Browser. (igor_nikita) - 0001509: [Application Menu] VStudio crash (igor_nikita) - 0001505: [Data Browser] Double click on Method cell opens TextEditor window. (igor_nikita) - 0001501: [Application Menu] The warning is shown when opening V2 database with the older version (igor_nikita) - 0001500: [Data Browser] Crash in a DataBrowser when click on a checkmark column (igor_nikita) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From jules.jacquot at wanadoo.fr Fri Apr 14 02:03:06 2006 From: jules.jacquot at wanadoo.fr (Jules Jacquot) Date: Thu Apr 13 19:03:12 2006 Subject: crash when compiling Macho Message-ID: <3EEA344C-51D6-486A-8373-410F77D8C497@wanadoo.fr> Hi Ruslan i get this error : An error has occured while compiling the project message : Duplicate method definition file : V4RB_Macho.rbx component : Valentina item : Cachesize Have i omitted something ? best jules ---------------------------------------------------- Quand l'eau baisse, les fourmis mangent les poissons. Quand l'eau monte, les poissons mangent les fourmis. proverbe thailandais From sunshine at public.kherson.ua Fri Apr 14 10:53:19 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 14 02:53:30 2006 Subject: Valentina Studio Require OS X 10.4 + [Read All Please] Message-ID: Hi All, Below is little discussion from Mantis. I think it is good once again expose it to lists. 1) Valentina engine require MAC OS 10.2 or better. We do not support 10.1 Christopher, this is not only because we are so bad. Apple itself do not support 10.1. Read this for example: Xcode supports development for Mac OS X 10.2 (Jaguar), Mac OS X 10.3 (Panther), or Mac OS X 10.4 (Tiger) (both PowerPC and Intel) using the Mac OS X SDK support. If Xcode do no support 10.1, then how you think WE can support it ??? ------------- 2) Valentina Studio have even stronger requirement - 10.4 Because we develop it as Universal Binary application. In fact even before we have introduce UB support, Vstudio did not go on 10.3 on some reasons. One of them - Xcode 2.2 use GCC 4 compiler which produce code not running on 10.3 Jochen have spend 2 days in March investigating this question, Answer was - There is no easy way support 10.3 I do not want put all rats on Apple, but as Lynn have warn few months ago, Apple now control Hardware, OS, and Developer Tools. Evil combination... They now can *force* developers drop old versions. Only potential way - to keep separate computer with separate old compilers and produce several branches of products. Not big pleasure, yes? Apple do not care now about back compatibility. And this is bad. Unfortunately we do not have on hands version of Vstudio that runs on 10.3. Right Jochen? May be somebody on list have save it ? Christopher, I want point that more and more developers will start now produce Universal Binary apps. Right? This means they will not work on 10.3. 10.3 die VERY FAST. 10.4 Become very fast the minimal requirement for MAC computer. ---------------------------------------------------------------------- rz - 04-13-06 16:34 ---------------------------------------------------------------------- 10.3.9 ?!! wow we do not support 10.3 already few months. ---------------------------------------------------------------------- cbishop - 04-13-06 17:36 ---------------------------------------------------------------------- Are you saying that having 10.3 is the problem? Do I have to go out and purchase 10.4 just to use the demo? ---------------------------------------------------------------------- cbishop - 04-13-06 19:53 ---------------------------------------------------------------------- Do you have an older version that supports 10.3? I just need to set up a database; nothing too complicated. Also, as far as Valentina Server goes, I have many customers who still have 10.1 and 10.2 servers. Are they not going to be able to use VServer? ---------------------------------------------------------------------- cbishop - 04-13-06 19:57 ---------------------------------------------------------------------- Also, something to consider: Only 4 computers in my workplace have OS 10.4 installed on them. The rest (maybe 40 machines) have OS 10.3 installed. Businesses do not like upgrading all the time. It causes problems with the software they already have. Schools and school districts are even worse: once they get computers running, they let them go until they die. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From doppler at derlichtblick.at Fri Apr 14 10:04:28 2006 From: doppler at derlichtblick.at (thomas doppler) Date: Fri Apr 14 03:04:32 2006 Subject: german characters v4md 2.3 In-Reply-To: References: Message-ID: <443F578C.3030905@derlichtblick.at> hi ruslan, Ruslan Zasukhin schrieb: > On 4/13/06 10:47 PM, "thomas doppler" wrote: > > >> hi, >> >> for the last time the xtra 2.1 on mac and studio 2.2 on mac works fine >> for me. >> >> now i'm updating a valentina-db from 2.1 to 2.3 (valentina studio and >> md) on os x. >> >> with the result, that the german special characters doesnt work im >> director. in studio 2.3 they looks ok but in director they dosnt. >> so i wanted to downgrade to 2.1 but the 2.1 xtra (and studio) can't open >> a 2.3-modified db. >> >> whats wrong? >> > > Thomas, we have change format of database in 2.3. > Well, you can do xml dump in 2.3, and load it in 2.1 > ok > But I wonder about german chars ?! > > > i to, but it is real. the same db with the same setting. in studio ok in director not with the 2.1 xtra it works, with the 2.3 not (on os x 10.4, on win i don't know, i have not upgrade at this time ) gr thomas -- LichtBlick-L?sungen aus einer Hand ------------------------------------------ http://derlichtblick.at meillergasse 5/3 a-1130 wien ------------------------------------------ tel 00 43 1 802 50 32 mobil 00 43 664 243 96 51 mail doppler@derlichtblick.at From sunshine at public.kherson.ua Fri Apr 14 12:43:35 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 14 04:43:46 2006 Subject: compatibility In-Reply-To: <42814C23-0340-40EA-BA5A-D9FD301F1917@valentina-db.de> Message-ID: On 4/14/06 12:25 PM, "Jochen Peters" wrote: Hi Jochen, > your info concerning compatibility for different Mac OS X versions is > not correct! > > IT IS possible to build applications which runs on ALL OS X versions starting > from 10.2 - it is even possible to build for 10.1 - but this is a little bit > tricky and not needed i think. > > To ensure compatibility with 10.3 we must use gcc version 3.3 - this > is simple possible. I have told the same. IT is possible to have SEVERAL branches for product. OR yes, we can make app ready for 10.3, but then it will not be UB, right ? > Problem now is that we use gcc 4 - and there is a bug which prevents > this code to run on 10.3.9. > So - we CAN do it - the question is if we SHOULD do it... Wait a moment. So you say that if they will fix bug in GCC4 then we will be produce Valentina Studio (Universal Binary) which will run also on 10.3.9? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 14 13:22:14 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 14 05:22:20 2006 Subject: crash when compiling Macho In-Reply-To: <3EEA344C-51D6-486A-8373-410F77D8C497@wanadoo.fr> Message-ID: On 4/14/06 3:03 AM, "Jules Jacquot" wrote: Hi Jules, Sounds like you have 2 Valentina plugins in the folder? > i get this error : > > An error has occured while compiling the project > > message : Duplicate method definition > > file : V4RB_Macho.rbx > > component : Valentina > > item : Cachesize > > Have i omitted something ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 14 13:22:45 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 14 05:22:49 2006 Subject: german characters v4md 2.3 In-Reply-To: <443F578C.3030905@derlichtblick.at> Message-ID: On 4/14/06 11:04 AM, "thomas doppler" wrote: >> But I wonder about german chars ?! >> >> >> > i to, but it is real. the same db with the same setting. in studio ok in > director not > with the 2.1 xtra it works, with the 2.3 not > (on os x 10.4, on win i don't know, i have not upgrade at this time ) Can you send us something to test ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From jules.jacquot at wanadoo.fr Fri Apr 14 13:40:06 2006 From: jules.jacquot at wanadoo.fr (Jules Jacquot) Date: Fri Apr 14 06:40:15 2006 Subject: crash when compiling Macho In-Reply-To: References: Message-ID: <64CCBBA3-4722-4234-B4DB-7B6C4B39F7EC@wanadoo.fr> Le 14 avr. 06 ? 12:22, Ruslan Zasukhin a ?crit : > On 4/14/06 3:03 AM, "Jules Jacquot" wrote: > > Hi Jules, > > Sounds like you have 2 Valentina plugins in the folder? No, it's false. I read always carefully your readMes best jules > >> i get this error : >> >> An error has occured while compiling the project >> >> message : Duplicate method definition >> >> file : V4RB_Macho.rbx >> >> component : Valentina >> >> item : Cachesize >> >> Have i omitted something ? > > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > C'est par le bien-faire que se cr?e le bien-?tre proverbe chinois From sunshine at public.kherson.ua Fri Apr 14 14:53:02 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 14 06:53:13 2006 Subject: crash when compiling Macho In-Reply-To: <64CCBBA3-4722-4234-B4DB-7B6C4B39F7EC@wanadoo.fr> Message-ID: On 4/14/06 2:40 PM, "Jules Jacquot" wrote: >> Sounds like you have 2 Valentina plugins in the folder? > > No, it's false. > > I read always carefully your readMes Ok, but you have read here that Frank and David and Russ can do this. May be try reinstall. Even no idea where problem can be here... Aha, have you install, before that V4RB CARBON ? >>> i get this error : >>> >>> An error has occured while compiling the project >>> >>> message : Duplicate method definition >>> >>> file : V4RB_Macho.rbx >>> >>> component : Valentina >>> >>> item : Cachesize >>> >>> Have i omitted something ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From jules.jacquot at wanadoo.fr Fri Apr 14 17:36:47 2006 From: jules.jacquot at wanadoo.fr (Jules Jacquot) Date: Fri Apr 14 10:36:53 2006 Subject: crash when compiling Macho In-Reply-To: References: Message-ID: <4DF03F01-39F7-4136-96C6-27C3BF26D29E@wanadoo.fr> Le 14 avr. 06 ? 13:53, Ruslan Zasukhin a ?crit : > On 4/14/06 2:40 PM, "Jules Jacquot" wrote: > >>> Sounds like you have 2 Valentina plugins in the folder? >> >> No, it's false. >> >> I read always carefully your readMes > > Ok, but you have read here that Frank and David and Russ can do this. > May be try reinstall. > > Even no idea where problem can be here... > > Aha, have you install, before that V4RB CARBON ? unfortunately no :-)) i'm trying to find why best jules > > >>>> i get this error : >>>> >>>> An error has occured while compiling the project >>>> >>>> message : Duplicate method definition >>>> >>>> file : V4RB_Macho.rbx >>>> >>>> component : Valentina >>>> >>>> item : Cachesize >>>> >>>> Have i omitted something ? > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > Quand l'eau baisse, les fourmis mangent les poissons. Quand l'eau monte, les poissons mangent les fourmis. proverbe thailandais From rjb at robelko.com Fri Apr 14 23:59:37 2006 From: rjb at robelko.com (Robert Brenstein) Date: Fri Apr 14 17:19:45 2006 Subject: Valentina Studio Require OS X 10.4 + [Read All Please] In-Reply-To: References: Message-ID: >I do not want put all rats on Apple, but as Lynn have warn few months ago, >Apple now control Hardware, OS, and Developer Tools. Evil combination... > >They now can *force* developers drop old versions. Only potential way - to >keep separate computer with separate old compilers and produce several >branches of products. Not big pleasure, yes? Yes, it is not so great that they control it, but pleasure or not, you can't expect all your customers to move to 10.4. 10.3 has very large installed base, is very stable, and it costs money to upgrade. Even if we follow your lead and do that, we can't force all our clients to do it. The never solved dilemma of people providing tools for others ;) >Apple do not care now about back compatibility. And this is bad. > >Unfortunately we do not have on hands version of Vstudio that runs on 10.3. >Right Jochen? May be somebody on list have save it ? Aren't you using CVS or Subversion to keep branches of various releases? Robert From bobs at twft.com Fri Apr 14 18:36:21 2006 From: bobs at twft.com (Robert Sneidar) Date: Fri Apr 14 20:36:32 2006 Subject: [Vserver] - Re-launch Script for OS X.4.6 In-Reply-To: <20060411152404.A347341004F@edison.macserve.net> References: <20060411152404.A347341004F@edison.macserve.net> Message-ID: This is a common problem. Valentina server needs to be written as a startup daemon in order to run at all times. You would have to be an Apple developer to know what I mean and how to do it. I am not at that level, but the problem is the same for everyone. Having something in your startupitems folder of a user is NOT the way to run a server. It needs to be written as a startup daemon, and that is a programming issue. Bob Sneidar IT Manager Logos Management Calvary Chapel CM On Apr 11, 2006, at 8:24 AM, valentina-request@lists.macserve.net wrote: > I made a mistake. There is no ~/Library/Startupitems on Tiger. Or > on the > Jaguar machine I have handy. Such a folder is at the system level > only. > > Adding the Vserver app to a User's Login window in System Prefs > does not > work; at least not on my machine. > > Apple has tightened security of startupitems in Tiger, so I think > achieving > this (getting Vserver to run persistently across logout/login) may > require > more expertise than I have. (What a shock! :-) ) > > Russ From rbarber at yhb.att.ne.jp Sat Apr 15 10:37:15 2006 From: rbarber at yhb.att.ne.jp (ron) Date: Fri Apr 14 20:37:20 2006 Subject: Valentina Studio Require OS X 10.4 + [Read All Please] In-Reply-To: References: Message-ID: <9c5ecdb38ca9cc2188cc83c282f9a988@yhb.att.ne.jp> Hi, On Apr 15, 2006, at 6:59 AM, Robert Brenstein wrote: > Yes, it is not so great that they control it, but pleasure or not, you > can't expect all your customers to move to 10.4. > > 10.3 has very large installed base, is very stable, and it costs money > to upgrade. Even if we follow your lead and do that, we can't force > all our clients to do it. I agree with Robert about this... >> Apple do not care now about back compatibility. And this is bad. >> >> Unfortunately we do not have on hands version of Vstudio that runs on >> 10.3. >> Right Jochen? May be somebody on list have save it ? Does anyone have a demo version that will run on 10.3 that I can download? It is really frustrating not to be able to test db with Vstudio. Thanks Ron From bobs at twft.com Fri Apr 14 19:07:38 2006 From: bobs at twft.com (Robert Sneidar) Date: Fri Apr 14 21:07:44 2006 Subject: This is not working Message-ID: <9E53654C-12D5-47DE-851D-EC0F4BAD62B3@twft.com> I have this in my stack script: local mDatabase local mTable on openStack -- Startup Valentina get Valentina_Init(8 * 1024 * 1024, "", "") end openStack on closeStack get Valentina_ShutDown end closeStack whenever I try to compile the script I get a script error: Expression: Unquoted Literal for the get Valentina_ShutDown line. I copied and pasted everything from the tutorial stack. What is going on??? The first few times it seemed to compile. Then I got to the point where I added the code for the DoAdd function and everything has gone to hellandback since then. I deleted all the stack scripts and re- entered them and the script STILL WILL NOT COMPILE!!! I am at my wits end with this. Please help. Bob Sneidar IT Manager Logos Management Calvary Chapel CM From bobs at twft.com Fri Apr 14 19:15:04 2006 From: bobs at twft.com (Robert Sneidar) Date: Fri Apr 14 21:15:12 2006 Subject: This isn't working Message-ID: <8132A2AE-6DCE-4D69-AC0F-0B49BB584001@twft.com> Well I seem to have fixed my own problem. If I use get valentina_shutdown() instead of the way the tutorial tells me, it seems to work now. BTW, if I may suggest, do not use smart quoting in your documentation please. It's nice to be able to copy and paste code snippets, but if you use smart quotes I will, of course, get compile errors until I replace them. Bob Sneidar IT Manager Logos Management Calvary Chapel CM From bobs at twft.com Fri Apr 14 19:23:43 2006 From: bobs at twft.com (Robert Sneidar) Date: Fri Apr 14 21:23:48 2006 Subject: New compile error Message-ID: <54521C49-D629-4817-AB63-10D4351ACF1D@twft.com> Okay this was the original error where everything started going south. function DoAdd put VDatabase_Table( mDatabase, "Person" ) into tblPerson get VTable_SetBlank(tblPerson) get CollectPanes() get VTable_AddRecord(tblPersons) end DoAdd When compiling I get an error saying: Type Chunk: Can't create a variable with that name (explicit variables?) Object Lesson1_step1 line put VDatabase_Table( mDatabase, "Person" ) into tblPerson hint tblPerson This code was copied and pasted into the script from the tutorial pdf!!! I tried changing the name of tblPerson to tblPersons, but all to no avail. I get the same error. The script will NOT COMPILE! Bob Sneidar IT Manager Logos Management Calvary Chapel CM From bobs at twft.com Fri Apr 14 19:38:56 2006 From: bobs at twft.com (Robert Sneidar) Date: Fri Apr 14 21:39:02 2006 Subject: I fixed it Message-ID: <3084C65B-E790-46E9-BE2E-92B1ED45BF89@twft.com> Apparently, you cannot use Variable Checking in Revolution. My guess is that it wants you to explicitly declare variables before you use them. The reason why valentina_shutdown was not working (I suppose) is because the compiler assumed valentina_shutdown was a variable that had not been declared. I am not sure if this is a bug in the Revolution compiler, or what, but it cannot be that they check for variable declaration before they even check to see if there is a handler in the hierarchy with that name! Arrrggghhhh! Bob Sneidar IT Manager Logos Management Calvary Chapel CM From bobs at twft.com Fri Apr 14 20:56:39 2006 From: bobs at twft.com (Robert Sneidar) Date: Fri Apr 14 22:56:44 2006 Subject: Tutorial error Message-ID: <7416A3FF-8E10-4D49-9A00-71BD9C239CE1@twft.com> I hate to be a pest, but the tutorial has bad code. It states for createstructure: on CreateStructure put VDatabase_CreateTable(mDatabase, ?Person?) into pTable get CreateVarcharField( pTable, ?Name?, 1022, ?fIndexed? ) get CreateVarcharField( pTable, ?LName?, 1022, ?fIndexed? ) get CreateDateField( pTable, ?BornDate?, ?fIndexed? ) end CreateStructure These should be VTable_CreateVarCharField Because there is no support email that I have found on the web site, I end up using this list. Again I apologise. Bob Sneidar IT Manager Logos Management Calvary Chapel CM From bobs at twft.com Fri Apr 14 22:27:18 2006 From: bobs at twft.com (Robert Sneidar) Date: Sat Apr 15 00:27:29 2006 Subject: Example stack provided crashes Message-ID: Okay, I did the whole example stack thingummy and was pretty proud of myself, that is until I put DatabaseCreate in the openStack handler of the stack. From then on opening the stack crashed Revolution to the desktop. Hmmm... I must have done something wrong, right? So I figured out a trick way to edit the script of the stack and commented out the call to the function, and all is well, right? Well I can open the stack, but if I call DatabaseCreate from the message box, I still crash to desktop!!! So I started comparing my code with the code from the finished sample stack that came with the documentation. Well there are significant differences! Dang! That is troubling! You would think it would be identical. So I get a brainstorm. How about I open the PROVIDED UNTARNISHED sample stack and call DatabaseCreate from the message box and see what happens? Gee, whattyaknow? IT ALSO crashes to desktop!! So I commented out ALL my code, and pasted the example stack's code into my stack, and stepped through the code. When I get to the line: get VDatabase_Create( mDatabase, dbPAth, "kDscDatBlbInd" ) it returns an error. That means mDatabase is set to the value of the error. The next time I try to do something that references mDatabase, it crashes to desktop, obviously because it's referencing a pointer to a table that is actually an error code! Ouch!!! Again my apologies, but I simply do not have time to troubleshoot a problem with a stack that was provided as an example of how to properly implement Valentina when it crashes to desktop. I know I can trap for errors, that isn't the point. I shouldn't be getting errors at all with a stack provided by the developer. If this were shareware, I wouldn't complain, mostly because shareware is, well usually pretty cheap. This was not cheap. I have SQL databases I can use. I wanted something I could deploy with an app that had the ability to create local temporary databases as well as access to full sql. This seemed like the ticket at the time. Very promising. The trouble is, I have lost all confidence that this software functions as advertised. There is errors in the docs. There are errors in the sample code. Am I to believe there are no errors in the actual libraries themselves?? I cannot commit to embedding a solution that I cannot be entirely sure will not go to hell in a handbasket after deployment. I am sorry, I have to look for something else. Bob Sneidar IT Manager Logos Management Calvary Chapel CM From jules.jacquot at wanadoo.fr Sat Apr 15 07:36:37 2006 From: jules.jacquot at wanadoo.fr (Jules Jacquot) Date: Sat Apr 15 00:36:44 2006 Subject: crash when compiling Macho In-Reply-To: References: Message-ID: hi ruslan after reinstallation that works best jules Le 14 avr. 06 ? 13:53, Ruslan Zasukhin a ?crit : > On 4/14/06 2:40 PM, "Jules Jacquot" wrote: > >>> Sounds like you have 2 Valentina plugins in the folder? >> >> No, it's false. >> >> I read always carefully your readMes > > Ok, but you have read here that Frank and David and Russ can do this. > May be try reinstall. > > Even no idea where problem can be here... > > Aha, have you install, before that V4RB CARBON ? > > >>>> i get this error : >>>> >>>> An error has occured while compiling the project >>>> >>>> message : Duplicate method definition >>>> >>>> file : V4RB_Macho.rbx >>>> >>>> component : Valentina >>>> >>>> item : Cachesize >>>> >>>> Have i omitted something ? > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > R?ussir dans la vie, c'est ?chouer au bon endroit Jean-Baptiste de Foucauld From jules.jacquot at wanadoo.fr Sat Apr 15 08:37:10 2006 From: jules.jacquot at wanadoo.fr (Jules Jacquot) Date: Sat Apr 15 01:37:18 2006 Subject: REP: crash when compiling macho Message-ID: <87386265-A3E5-47E2-968A-BB7860503C87@wanadoo.fr> hi ruslan i was talking too fast i get this error now runtime error 4 : failed assertion location : plugin.cpp : 7417 failure condition : pluginEntryTable.GetEntry (EntrypointName,out) Failure message : can't find plugin method Valentina.cachesize as integer (and clicking on the continue button) ......... Valentina debuglevel.. ............ valentina init.. ......... valentina shutdown and so on i continue to look for best jules ----------------------- L'avantage d'?tre intelligent, c'est qu'on peut toujours faire l'imb?cile, alors que l'inverse est totalement impossible Woody Allen From sunshine at public.kherson.ua Sat Apr 15 11:35:53 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 03:36:00 2006 Subject: REP: crash when compiling macho In-Reply-To: <87386265-A3E5-47E2-968A-BB7860503C87@wanadoo.fr> Message-ID: On 4/15/06 9:37 AM, "Jules Jacquot" wrote: Hi Jules, > i was talking too fast > > i get this error now > > runtime error 4 : failed assertion > location : plugin.cpp : 7417 > failure condition : pluginEntryTable.GetEntry > (EntrypointName,out) > Failure message : can't find plugin method Please describe step by step starting from clean computer what you have made. Ok? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 15 11:37:38 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 03:37:42 2006 Subject: This isn't working In-Reply-To: <8132A2AE-6DCE-4D69-AC0F-0B49BB584001@twft.com> Message-ID: On 4/15/06 5:15 AM, "Robert Sneidar" wrote: Hi Robert, > Well I seem to have fixed my own problem. If I use > > get valentina_shutdown() instead of the way the tutorial tells me, it > seems to work now. We will check. > BTW, if I may suggest, do not use smart quoting in your documentation > please. It's nice to be able to copy and paste code snippets, but if > you use smart quotes I will, of course, get compile errors until I > replace them. Do you use PDF Tutorial? Or Wiki ? We will make today-tomorrow few fixes in all our tutorials for all products, And I will upload new Tutorials without PDFs. Only code examples. Descriptions will be in WIKI. In Wiki we can fix any such typo in 5 seconds. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 15 11:40:18 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 03:40:25 2006 Subject: I fixed it In-Reply-To: <3084C65B-E790-46E9-BE2E-92B1ED45BF89@twft.com> Message-ID: On 4/15/06 5:38 AM, "Robert Sneidar" wrote: Hi Robert, I have not catch. Mistake is in our tutorial, or it was in your test stack ? Deal is that before we upload all our tutorials we have RUN them of course, and they have work... > Okay this was the original error where everything started going south. > > function DoAdd > put VDatabase_Table( mDatabase, "Person" ) into tblPerson > get VTable_SetBlank(tblPerson) > get CollectPanes() > get VTable_AddRecord(tblPersons) > end DoAdd > > When compiling I get an error saying: > Type Chunk: Can't create a variable with that name (explicit > variables?) > Object Lesson1_step1 > line put VDatabase_Table( mDatabase, "Person" ) into tblPerson > hint tblPerson > > This code was copied and pasted into the script from the tutorial > pdf!!! I tried changing the name of tblPerson to tblPersons, but all > to no avail. I get the same error. The script will NOT COMPILE! later > Apparently, you cannot use Variable Checking in Revolution. My guess > is that it wants you to explicitly declare variables before you use > them. The reason why valentina_shutdown was not working (I suppose) > is because the compiler assumed valentina_shutdown was a variable > that had not been declared. I am not sure if this is a bug in the > Revolution compiler, or what, but it cannot be that they check for > variable declaration before they even check to see if there is a > handler in the hierarchy with that name! Arrrggghhhh! -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 15 11:44:28 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 03:44:34 2006 Subject: Tutorial error In-Reply-To: <7416A3FF-8E10-4D49-9A00-71BD9C239CE1@twft.com> Message-ID: On 4/15/06 6:56 AM, "Robert Sneidar" wrote: Hi Robert, > I hate to be a pest, but the tutorial has bad code. It states for > createstructure: > > on CreateStructure > put VDatabase_CreateTable(mDatabase, ?Person?) into pTable > > get CreateVarcharField( pTable, ?Name?, 1022, ?fIndexed? ) > get CreateVarcharField( pTable, ?LName?, 1022, ?fIndexed? ) > get CreateDateField( pTable, ?BornDate?, ?fIndexed? ) > end CreateStructure > > These should be VTable_CreateVarCharField This is in PDF or in tutorial stack itself ? I assume in PDF...Kirill, this all should be polished once again. I assume that our stacks are correct, but in PDF are errors. In fact, Kirill, it needs correct WIKI pages. Please do this asap > Because there is no support email that I have found on the web site, > I end up using this list. Again I apologise. Its we should apologies for this mistakes :-( So please keep inform us. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 15 12:34:57 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 04:35:04 2006 Subject: Example stack provided crashes In-Reply-To: Message-ID: On 4/15/06 8:27 AM, "Robert Sneidar" wrote: > Okay, I did the whole example stack thingummy and was pretty proud of > myself, that is until I put DatabaseCreate in the openStack handler > of the stack. From then on opening the stack crashed Revolution to > the desktop. Hmmm... I must have done something wrong, right? > > So I figured out a trick way to edit the script of the stack and > commented out the call to the function, and all is well, right? Well > I can open the stack, but if I call DatabaseCreate from the message > box, I still crash to desktop!!! > > So I started comparing my code with the code from the finished sample > stack that came with the documentation. Well there are significant > differences! Dang! That is troubling! You would think it would be > identical. > > So I get a brainstorm. How about I open the PROVIDED UNTARNISHED > sample stack and call DatabaseCreate from the message box and see > what happens? Gee, whattyaknow? IT ALSO crashes to desktop!! > > So I commented out ALL my code, and pasted the example stack's code > into my stack, and stepped through the code. When I get to the line: > > get VDatabase_Create( mDatabase, dbPAth, "kDscDatBlbInd" ) > > it returns an error. That means mDatabase is set to the value of the > error. The next time I try to do something that references mDatabase, > it crashes to desktop, obviously because it's referencing a pointer > to a table that is actually an error code! Ouch!!! About crash when you send bad object reference. In our docs said: to protect from such crash DURING DEBUG, you need set Valentina_DebugLevel = 3 In this case Valentina will CHECK all object references to be valid, before use them. This is additional overhead, so it is good idea to use it only in DEVELOPMENT mode, but in release turn off. You see ? We have NOT point this tip in tutorial, to keep it as simple as possible. Well, may be we should inform about it in first turn... > Again my apologies, but I simply do not have time to troubleshoot a > problem with a stack that was provided as an example of how to > properly implement Valentina when it crashes to desktop. I know I can > trap for errors, that isn't the point. I shouldn't be getting errors > at all with a stack provided by the developer. Wait a moment please. As I see, you say: * I have create new stack using PDF, step by step. It not works * stack of Paradigma so work. * I see differences between my stack and Paradigma stack. Have I correctly understand you? If yes, then this means that *our* tutorial stacks work fine. Mistakes present in PDF. Right? We know 100% that our V4REV/Examples 50 examples also work fine, we test them periodically on all platforms. Can you confirm that OUR STACKS do work fine? tutorial stacks? 50+ examples ? ---------- P.S. I am as old C++ developer have very good habit DO NOT TRUST docs. I have never see 100% correct docs. NEVER. Especially for complex developer tools. E.g. I remember nightmare when I have to write JavaScript scripts for Adobe InDesign using their 1000-page reference. Yes also there was a lots of pain...But with hours and days of fight I have become cool expert in that But of course we will again and gain now try step by step check our tutorial. Kirill will start do this today. I want underline that Kirill have NEVER use Revolution, so will be interesting to see how hard for him will be get into it. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 15 12:41:57 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 04:42:03 2006 Subject: Valentina Studio Require OS X 10.4 + [Read All Please] In-Reply-To: Message-ID: On 4/15/06 12:59 AM, "Robert Brenstein" wrote: Hi Robert, >> I do not want put all rats on Apple, but as Lynn have warn few months ago, >> Apple now control Hardware, OS, and Developer Tools. Evil combination... >> >> They now can *force* developers drop old versions. Only potential way - to >> keep separate computer with separate old compilers and produce several >> branches of products. Not big pleasure, yes? > > Yes, it is not so great that they control it, but pleasure or not, > you can't expect all your customers to move to 10.4. > > 10.3 has very large installed base, is very stable, and it costs > money to upgrade. Even if we follow your lead and do that, we can't > force all our clients to do it. > > The never solved dilemma of people providing tools for others ;) Let me inform, Jochen it seems see way to resolve this task. We hope in 10-15 days we try find solution. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From jules.jacquot at wanadoo.fr Sat Apr 15 13:19:04 2006 From: jules.jacquot at wanadoo.fr (Jules Jacquot) Date: Sat Apr 15 06:19:14 2006 Subject: REP: crash when compiling macho In-Reply-To: References: Message-ID: Install V4RB_2.3 drag V4RB_2.3 macho into plugin folder V4RB_2.3 absent Run an app build setting mac os-x only sometimes crash sometimes no i search for jules Le 15 avr. 06 ? 10:35, Ruslan Zasukhin a ?crit : > On 4/15/06 9:37 AM, "Jules Jacquot" wrote: > > Hi Jules, > >> i was talking too fast >> >> i get this error now >> >> runtime error 4 : failed assertion >> location : plugin.cpp : 7417 >> failure condition : pluginEntryTable.GetEntry >> (EntrypointName,out) >> Failure message : can't find plugin method > > Please describe step by step starting from clean computer what you > have > made. Ok? > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > La perfection est un chemin, non une fin proverbe cor?en From sunshine at public.kherson.ua Sat Apr 15 14:23:10 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 06:23:18 2006 Subject: REP: crash when compiling macho In-Reply-To: Message-ID: On 4/15/06 2:19 PM, "Jules Jacquot" wrote: > Install V4RB_2.3 > > drag V4RB_2.3 macho into plugin folder > > V4RB_2.3 absent > > Run an app build setting mac os-x only > > sometimes crash sometimes no No correct. You need 1) download and install V4RB CARBON (PEF) this is V4RB_2_mac.dmg archive. 2) having this you already can develop, debug, build Macho app for testing but not deployment. 3) to be able build Macho app to deploy you need download V4RB_MACHO archive. then REPLACE V4RB.rbx plugin by one from this archive. (do not loose prev plugin. :-) 4) Now you can build macho.app then copy inside the VComponents macho folder DONE. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From jules.jacquot at wanadoo.fr Sat Apr 15 14:01:00 2006 From: jules.jacquot at wanadoo.fr (Jules Jacquot) Date: Sat Apr 15 07:01:24 2006 Subject: REP: crash when compiling macho In-Reply-To: References: Message-ID: hi ruslan it seems work i think that i have omitted to install VComponents of V4RB_2_mac.dmg because i haven't seen it thanks jules Le 15 avr. 06 ? 13:23, Ruslan Zasukhin a ?crit : > On 4/15/06 2:19 PM, "Jules Jacquot" wrote: > >> Install V4RB_2.3 >> >> drag V4RB_2.3 macho into plugin folder >> >> V4RB_2.3 absent >> >> Run an app build setting mac os-x only >> >> sometimes crash sometimes no > > No correct. > > You need > > 1) download and install V4RB CARBON (PEF) > this is V4RB_2_mac.dmg archive. > > 2) having this you already can develop, debug, > build Macho app for testing but not deployment. > > 3) to be able build Macho app to deploy you need > download V4RB_MACHO archive. > then REPLACE V4RB.rbx plugin by one from this archive. > (do not loose prev plugin. :-) > > 4) Now you can build macho.app > then copy inside the VComponents macho folder > > DONE. > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > La perfection est un chemin, non une fin proverbe cor?en From fitzbew at nc.rr.com Sat Apr 15 11:03:42 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Sat Apr 15 10:03:52 2006 Subject: REP: crash when compiling macho In-Reply-To: Message-ID: On 4/15/06 7:23 AM, "Ruslan Zasukhin" wrote: > On 4/15/06 2:19 PM, "Jules Jacquot" wrote: > >> Install V4RB_2.3 >> >> drag V4RB_2.3 macho into plugin folder >> >> V4RB_2.3 absent >> >> Run an app build setting mac os-x only >> >> sometimes crash sometimes no > > No correct. > > You need > > 1) download and install V4RB CARBON (PEF) > this is V4RB_2_mac.dmg archive. > > 2) having this you already can develop, debug, > build Macho app for testing but not deployment. > May I offer a tiny clarification, for the sake of the archives? I was enormously confused by this just a few days ago: You can have the "V4RB" (Carbon) plugin in the RB IDE and build your desktop-based V4RB app in the RB IDE with the compiler set to "Mac OS X only" [Mach-O] *but* the Carbon vComponents library *must* be in the /Library/CFMSupport/ folder of any machine that will run the app (and your development machine also, of course). So, you can deploy these Mach-O apps but you must also deploy the carbon vComponents folder into /Library/CFMSupport/ at the same time. > 3) to be able build Macho app to deploy you need > download V4RB_MACHO archive. > then REPLACE V4RB.rbx plugin by one from this archive. > (do not loose prev plugin. :-) > > 4) Now you can build macho.app > then copy inside the VComponents macho folder > > DONE. > And this app built with the "V4RB_Macho" plugin per Ruslan's instructions in step 3-4 above will be a completely stand-alone application to the user, like most traditional Mac users expect. No installer necessary. But the downside is you cannot run the app in the RB debugger. I don't understand the technical reasons behind this dichotomy, but I guess it has to do with what kinds of files (libraries?) the RB IDE is capable of integrating into its own builds. Perhaps the Valentina engine cannot be integrated into the RB plugins, and RB cannot integrate anything external to a plugin into an app. Something about each plugin tells Valentina where to look for vComponents and what format they will be in. But no matter the technical reasons, I've been told that upcoming changes to the RB IDE will enable us to leave these issues behind us. -- Russ Tyndall Wake Forest, NC From sunshine at public.kherson.ua Sat Apr 15 23:41:13 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 15 15:41:30 2006 Subject: [V4CC] Prepare of beta of Valentina for Cocoa In-Reply-To: <0D84E2C5-ABFF-4DF7-9700-66F4698A68E6@crunch-recording.com> Message-ID: On 4/15/06 11:34 PM, "Justin Drury" wrote: > Should I commit my version that uses /Library/Frameworks as the > install path (instead of the @executable_path/..Frameworks, which > that project you have is) Frankly saying I don't know yet. questions: * /Library/Frameworks -- this is for V4CC framework ? What about kernel dlls? you have remap them also ? * in VSDK archive in VComponents folder you can see 3 my helper scripts which allow change install path for all VComponents dlls. I think we can make 4th script to change to /Library/Frameworks Agree? * So you offer us to have /Library/Frameworks/V4CC.Framework VComponents ? Yes looks nice I think...and can be installed by drag and drop, yes? * how you see the deployment of Cocoa application ? where will go V4CC.framework ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Sun Apr 16 07:58:11 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Sun Apr 16 08:58:21 2006 Subject: SQL Search in API-Way Message-ID: <258A324A-5F54-4C85-BB22-51D1CE7BFF04@pcisys.net> Morning Ruslan, Sorry to bother you on this day of celebrations, however, I wanted to ask a question that will be gnawing at me all day, unless I ask it now. And I'd rather be focused on this day's feast.... What is the syntax for an SQL search against an API-Way developed V4RB2 database? sqlSrchText = "SELECT recID, * FROM tblQandA WHERE field1 = '" + data1 + "' AND field2 = '" + data2 + "'" // where tblQandA is a VTable created as in tblQandA = tDatabase.CreateTable("QandAs") Happy Easter, Chuck Pelto [He is risen!] From sunshine at public.kherson.ua Sun Apr 16 17:12:26 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 16 09:12:36 2006 Subject: SQL Search in API-Way In-Reply-To: <258A324A-5F54-4C85-BB22-51D1CE7BFF04@pcisys.net> Message-ID: On 4/16/06 4:58 PM, "Chuck Pelto" wrote: Hi Chuck, > Morning Ruslan, > > Sorry to bother you on this day of celebrations, however, I wanted to > ask a question that will be gnawing at me all day, unless I ask it > now. And I'd rather be focused on this day's feast.... > > > What is the syntax for an SQL search against an API-Way developed > V4RB2 database? > > sqlSrchText = "SELECT recID, * FROM tblQandA WHERE field1 = '" + > data1 + "' AND field2 = '" + data2 + "'" // where tblQandA is a > VTable created as in tblQandA = tDatabase.CreateTable("QandAs") Do you ask how to do this SQL query using API way ? Your code to build SQL query looks correct. > Happy Easter, Happy Easter to all! -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Sun Apr 16 09:30:08 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Sun Apr 16 10:30:16 2006 Subject: SQL Search in API-Way In-Reply-To: References: Message-ID: <946C6302-18FB-4CE6-BEC4-48897D841D96@pcisys.net> On Apr 16, 2006, at 8:12 AM, Ruslan Zasukhin wrote: > On 4/16/06 4:58 PM, "Chuck Pelto" wrote: > > Hi Chuck, > >> Morning Ruslan, >> >> Sorry to bother you on this day of celebrations, however, I wanted to >> ask a question that will be gnawing at me all day, unless I ask it >> now. And I'd rather be focused on this day's feast.... >> >> >> What is the syntax for an SQL search against an API-Way developed >> V4RB2 database? >> >> sqlSrchText = "SELECT recID, * FROM tblQandA WHERE field1 = '" + >> data1 + "' AND field2 = '" + data2 + "'" // where tblQandA is a >> VTable created as in tblQandA = tDatabase.CreateTable("QandAs") > > Do you ask how to do this SQL query using API way ? > > Your code to build SQL query looks correct. EXCELLENT!!!! Now, come tomorrow morning, I can get into that aspect with a vengeance. >> Happy Easter, > > Happy Easter to all! Regards, Chuck Pelto [He is risen, indeed.....] From sunshine at public.kherson.ua Mon Apr 17 18:40:39 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 17 10:40:48 2006 Subject: [DOCS] Valentina for Revolution Tutorial in WIKI Message-ID: Hi All, Hi Robert, http://www.valentina-db.com/dokuwiki/doku.php?id=paradigma:public:en:documen tation:v4rev:tutorial:tutorial Kirill, our developer today have spend some time to create new stack and step by step make it working using our V4REV tutorial from WIKI. Kirill, confirms that he have found 2(!) problems you have also mention: 1) quotes 2) in one place was wrong create VarChar field method. Nothing more! Kirill have got working stack for Lesson 1. I want underline that today Kirill have work with Revolution the first time in his life!!! So this was VERY CLEAN experiment. Robert, now I wonder, on your words that you have got stack which DIFFER from our stack which we provide with tutorial. I did expect that Kirill, will find other mistakes, but nothing except above two typos. So it sounds like you have not correctly made something on your side. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Mon Apr 17 10:32:34 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Mon Apr 17 11:32:40 2006 Subject: VException Information Message-ID: Greetings, Where can I find out how to access and identify/decode VException information? I find the term 'VException' mentioned only once in the three primary reference materials for V4RB2. Regards, Chuck Pelto From sunshine at public.kherson.ua Mon Apr 17 20:57:18 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 17 12:57:24 2006 Subject: VException Information In-Reply-To: Message-ID: On 4/17/06 7:32 PM, "Chuck Pelto" wrote: Hi Chuck, > Where can I find out how to access and identify/decode VException > information? > I find the term 'VException' mentioned only once in the three > primary reference materials for V4RB2. You have latest? :-) Just in case check site. Vexception have only NUMBER of error, and its string description. Note, that number best of all convert to HEX when you read it. You can look into Vcomponents/Resources/English/ to see 2 xml files That contains all errors Valentina know. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Mon Apr 17 13:07:47 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Mon Apr 17 14:07:53 2006 Subject: VException Information In-Reply-To: References: Message-ID: On Apr 17, 2006, at 11:57 AM, Ruslan Zasukhin wrote: > On 4/17/06 7:32 PM, "Chuck Pelto" wrote: > > Hi Chuck, > >> Where can I find out how to access and identify/decode VException >> information? > >> I find the term 'VException' mentioned only once in the three >> primary reference materials for V4RB2. > > You have latest? :-) > Just in case check site. Not at this point. I'm using 2.1 fc4, as I saw too many people complaining about 2.3. > Vexception have only NUMBER of error, and its string description. I saw a number, but no string description. Where is that documented in the reference materials? > Note, that number best of all convert to HEX when you read it. > > You can look into Vcomponents/Resources/English/ to see 2 xml files > That contains all errors Valentina know. This information needs to be put into the documentation. Regards, Chuck Pelto From sunshine at public.kherson.ua Mon Apr 17 22:44:48 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 17 14:44:56 2006 Subject: VException Information In-Reply-To: Message-ID: On 4/17/06 10:07 PM, "Chuck Pelto" wrote: >> You have latest? :-) >> Just in case check site. > > Not at this point. I'm using 2.1 fc4, as I saw too many people > complaining about 2.3. Really? For example? >> Vexception have only NUMBER of error, and its string description. > > I saw a number, but no string description. IF Error is from Valentina then string also must exists. > Where is that documented in the reference materials? Hmm, really. V4RB_Reference do not describe this class. Please add into Mantis V4RB -> docs >> Note, that number best of all convert to HEX when you read it. >> >> You can look into Vcomponents/Resources/English/ to see 2 xml files >> That contains all errors Valentina know. > > This information needs to be put into the documentation. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bmurf at comcast.net Mon Apr 17 15:50:59 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Mon Apr 17 15:51:07 2006 Subject: Specifying the location of the valentina libraries Message-ID: <98D6565B-3C7D-4B8F-92B5-4730BFB36F4F@comcast.net> The current method for storing valentina libraries in the application folder is inadequate. In imposes upon the developer a set location for the libraries. What I would like to see is an optional parameter on the valentina init method that would allow us to specify where to look for the valentina libraries. This would allow us to create a sub-folder within the application folder to store the libraries thus making everything nice and tidy. From cbpelto at pcisys.net Mon Apr 17 15:47:28 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Mon Apr 17 16:47:36 2006 Subject: VException Information In-Reply-To: References: Message-ID: <945A29A2-8200-4CDB-BE43-12EBFB6320BE@pcisys.net> On Apr 17, 2006, at 1:44 PM, Ruslan Zasukhin wrote: > On 4/17/06 10:07 PM, "Chuck Pelto" wrote: > >>> You have latest? :-) >>> Just in case check site. >> >> Not at this point. I'm using 2.1 fc4, as I saw too many people >> complaining about 2.3. > > Really? For example? I deleted the message traffic about it. >>> Vexception have only NUMBER of error, and its string description. >> >> I saw a number, but no string description. > > IF Error is from Valentina then string also must exists. I've run it again and it does have a message string with it, but it's above the number so I overlooked it the first time. The VException error message reads as follows: An exception of class VException was not handled. The application must shut down. Exception Message: Table "thelQandA" not found. Exception Error Number: 460035 So, it appears that my call text was incorrect afterall. What should it be if it isn't, as I asked yesterday..... On Apr 16, 2006, at 8:12 AM, Ruslan Zasukhin wrote: >> >> sqlSrchText = "SELECT recID, * FROM tblQandA WHERE field1 = '" + >> data1 + "' AND field2 = '" + data2 + "'" // where tblQandA is a >> VTable created as in tblQandA = tDatabase.CreateTable("QandAs") > > Do you ask how to do this SQL query using API way ? > > Your code to build SQL query looks correct. >> Where is that documented in the reference materials? > > Hmm, really. V4RB_Reference do not describe this class. > Please add into Mantis V4RB -> docs That would be a good thing, I think. Regards, Chuck From sunshine at public.kherson.ua Tue Apr 18 01:24:40 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 17 17:24:45 2006 Subject: Specifying the location of the valentina libraries In-Reply-To: <98D6565B-3C7D-4B8F-92B5-4730BFB36F4F@comcast.net> Message-ID: On 4/17/06 11:50 PM, "Brendan Murphy" wrote: Hi Brendan, > The current method for storing valentina libraries in the > application folder is inadequate. In imposes upon the developer a > set location for the libraries. What I would like to see is an > optional parameter on the valentina init method that would allow > us to specify where to look for the valentina libraries. This > would allow us to create a sub-folder within the application > folder to store the libraries thus making everything nice and tidy. 1) as for PEF so for MACHO applications you CAN create Apple Package. so all VComponents files will be hidden inside of that. if you do not know how, please check our docs, archive of this and beta list... I am going add this info to WIKI right tomorrow I think. 2) it is not so easy put files into subfolder. MAC OS and Windows will not be able load dlls from them. in old behaviro. MACHO dlls now can be tuned for any location. Windows XP also have not Manifest technology - but we have not learn it deeply yet... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Mon Apr 17 19:42:28 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Mon Apr 17 20:42:33 2006 Subject: VException Information In-Reply-To: <945A29A2-8200-4CDB-BE43-12EBFB6320BE@pcisys.net> References: <945A29A2-8200-4CDB-BE43-12EBFB6320BE@pcisys.net> Message-ID: <1B08C3BE-B9BA-4442-BC43-899918466B15@pcisys.net> Okay... ....the file name is supposed to be the QandAs from the CreateTable call. NOT the tblQandA. Now, if I could just figure out WHY it's not finding any records..... Oh well....Tomorrow is another day. -- Some silly twit of a southern belle from Gone With the Wind. Regards, Chuck On Apr 17, 2006, at 3:47 PM, Chuck Pelto wrote: > > On Apr 17, 2006, at 1:44 PM, Ruslan Zasukhin wrote: > >> On 4/17/06 10:07 PM, "Chuck Pelto" wrote: >> >>>> You have latest? :-) >>>> Just in case check site. >>> >>> Not at this point. I'm using 2.1 fc4, as I saw too many people >>> complaining about 2.3. >> >> Really? For example? > > I deleted the message traffic about it. > >>>> Vexception have only NUMBER of error, and its string description. >>> >>> I saw a number, but no string description. >> >> IF Error is from Valentina then string also must exists. > > I've run it again and it does have a message string with it, but > it's above the number so I overlooked it the first time. > > The VException error message reads as follows: > > An exception of class VException was not handled. > The application must shut down. > > Exception Message: Table "thelQandA" not found. > Exception Error Number: 460035 > > > > So, it appears that my call text was incorrect afterall. What > should it be if it isn't, as I asked yesterday..... > > On Apr 16, 2006, at 8:12 AM, Ruslan Zasukhin wrote: >>> >>> sqlSrchText = "SELECT recID, * FROM tblQandA WHERE field1 = '" >>> + data1 + "' AND field2 = '" + data2 + "'" // where tblQandA is a >>> VTable created as in tblQandA = tDatabase.CreateTable("QandAs") >> >> Do you ask how to do this SQL query using API way ? >> >> Your code to build SQL query looks correct. > > > > >>> Where is that documented in the reference materials? >> >> Hmm, really. V4RB_Reference do not describe this class. >> Please add into Mantis V4RB -> docs > > That would be a good thing, I think. > > Regards, > > Chuck > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From bmurf at comcast.net Mon Apr 17 23:23:02 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Mon Apr 17 23:23:09 2006 Subject: Need advice In-Reply-To: <20060417154056.76B674127E6@edison.macserve.net> References: <20060417154056.76B674127E6@edison.macserve.net> Message-ID: OK, I need some advice here. I upgraded from 1.11 to 2.3 and everything seems pretty good. I am using the valentina database in the local single file database format. I treat the databases like documents to the end user. With version 1.11 the relationship between the segment size and the size of the file was proportional. The bigger the segment the bigger the file. So I settled on 8k segment sizes as a compromise for performance/size ratio. With version 2.3, the internals have changed, so I am assuming my previous measurements don't apply. Starting over... Here are my questions (context valentina 2.3 with local databases): 1) Does segment size affect performance of the database? Is it faster if I use a larger segment size? 2) Does segment size affect file size? I have noticed files I have created start out small then suddenly jump in file size when updated later, which is OK, but it is the steady state size of the database that I am interested in. 3) Are there any other factors that have an effect on file size? My goal for the project I am working on is to minimize the file size since the end user will be using some form of version control on the target document. If I can tweak the the segment size to control file sizes without affecting user perceived performance. In general I am "very" pleased with the speed of valentina and if chosing a specific segment setting creates smaller files, I would be happy camper. From sunshine at public.kherson.ua Tue Apr 18 09:21:14 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 18 01:21:23 2006 Subject: VException Information In-Reply-To: <1B08C3BE-B9BA-4442-BC43-899918466B15@pcisys.net> Message-ID: On 4/18/06 4:42 AM, "Chuck Pelto" wrote: >> An exception of class VException was not handled. Note, this means that you need add try-catch into your code >> The application must shut down. >> >> Exception Message: Table "thelQandA" not found. >> Exception Error Number: 460035 -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Tue Apr 18 09:53:56 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 18 01:54:03 2006 Subject: Need advice In-Reply-To: Message-ID: On 4/18/06 7:23 AM, "Brendan Murphy" wrote: Hi Brendan, > OK, I need some advice here. > > I upgraded from 1.11 to 2.3 and everything seems pretty good. I am > using the valentina database in the local single file database > format. I treat the databases like documents to the end user. With > version 1.11 the relationship between the segment size and the > size of the file was proportional. The bigger the segment the > bigger the file. So I settled on 8k segment sizes as a compromise > for performance/size ratio. > > With version 2.3, the internals have changed, so I am assuming my > previous measurements don't apply. Starting over... In fact must be the same as 1.x What exactly you have to find? > Here are my questions (context valentina 2.3 with local > databases): > > 1) Does segment size affect performance of the database? Is it > faster if I use a larger segment size? What I know is: IF you have BIG database but use SMALL segment size then you get bigger tree of FAT for internal file system. this means slower work with this tree. > 2) Does segment size affect file size? Only on initial state - for empty db. When you have add many data >= initial size of empty db, Then segment size practically should not affect db size. When db have grow OVER its initial size, the db.segmentSize Affects the only size of incremental grow of db. > I have noticed files I have created start out small then suddenly jump in file > size when updated later, which is OK, but it is the steady state size of the > database that I am interested in. Ho much jump ? > 3) Are there any other factors that have an effect on file size? Data :-) > My goal for the project I am working on is to minimize the file > size since the end user will be using some form of version control > on the target document. If I can tweak the the segment size to > control file sizes without affecting user perceived performance. What is average size of that "documents" ? > In general I am "very" pleased with the speed of valentina and if > chosing a specific segment setting creates smaller files, I would > be happy camper. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Tue Apr 18 06:52:38 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Tue Apr 18 07:52:45 2006 Subject: VException Information In-Reply-To: References: Message-ID: <4CF59AB8-8790-49E2-BA00-A0F5ADE0DC2C@pcisys.net> On Apr 18, 2006, at 12:21 AM, Ruslan Zasukhin wrote: > On 4/18/06 4:42 AM, "Chuck Pelto" wrote: > >>> An exception of class VException was not handled. > > Note, this means that you need add try-catch into your code I've got that issue resolved. What I need now is to figure out why it doesn't like my "LIKE" call.... SELECT recID, * FROM QandAs WHERE qnda_area LIKE '%Test%' It doesn't find any of the several records with "Test" or "Testing" in the qnda_area field of the QandAs table. If I change "LIKE" to "=" and drop the "%", it finds those with "Test". Regards, Chuck From sunshine at public.kherson.ua Tue Apr 18 17:10:50 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 18 09:10:57 2006 Subject: VException Information In-Reply-To: <4CF59AB8-8790-49E2-BA00-A0F5ADE0DC2C@pcisys.net> Message-ID: On 4/18/06 3:52 PM, "Chuck Pelto" wrote: > What I need now is to figure out why it doesn't like my "LIKE" call.... > > SELECT recID, * FROM QandAs WHERE qnda_area LIKE '%Test%' > > It doesn't find any of the several records with "Test" or "Testing" > in the qnda_area field of the QandAs table. Empty result? > If I change "LIKE" to "=" and drop the "%", it finds those with "Test". I have made simple test db here select * from rr where ggg LIKE '%Test%' It works fine here. If that field is indexed, try reindex it -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bmurf at comcast.net Tue Apr 18 12:25:40 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Tue Apr 18 12:25:49 2006 Subject: Need advice In-Reply-To: <20060418065405.3B3DF412B97@edison.macserve.net> References: <20060418065405.3B3DF412B97@edison.macserve.net> Message-ID: Ruslan wrote: >> I upgraded from 1.11 to 2.3 and everything seems pretty good. I am >> using the valentina database in the local single file database >> format. I treat the databases like documents to the end user. With >> version 1.11 the relationship between the segment size and the >> size of the file was proportional. The bigger the segment the >> bigger the file. So I settled on 8k segment sizes as a compromise >> for performance/size ratio. >> >> With version 2.3, the internals have changed, so I am assuming my >> previous measurements don't apply. Starting over... > > In fact must be the same as 1.x > What exactly you have to find? With 1.1 file sizes exploded proportionally with segment size. With 2.3 I would characterize it as leveling off as the the number of records increases. In other words, there is no significant difference in file sizes for 100,000 records using segments sizes of 4k, 8k, 16k, and 32K. There is a significant difference (percentage wise) when there is only 10, 100, 1000, and 1000 records. So this is definitely a different behavior from version 1.1. I notice a slow down when using 4k segment sizes for very large (100,000 records) files, but no difference in speed for 8k, 16k, and 32k segment sizes. So it looks like 8k seems to be optimal. From bkeeney at everestkc.net Tue Apr 18 14:55:38 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Tue Apr 18 14:55:55 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: <20060418065405.3B3DF412B97@edison.macserve.net> References: <20060418065405.3B3DF412B97@edison.macserve.net> Message-ID: <844C2493-A3A4-4452-A7AC-2DBD1756F2AA@everestkc.net> We had an existing 2.1 database that was converted to 2.2. We are now getting the error, "The link 'Link_69' refuses operation" on operations that were done all the time in 2.1. As best as I can tell, the record that Link_69 is pointing to exists. A Diagnose produced no problems. I've tried running the code behind both in class way and sql way and get the same error. Any clue what could be happening? Thanks, Bob Keeney BKeeney Software Inc. From sunshine at public.kherson.ua Tue Apr 18 23:16:36 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 18 15:16:43 2006 Subject: Need advice In-Reply-To: Message-ID: On 4/18/06 8:25 PM, "Brendan Murphy" wrote: Hi Brendan, >>> With version 2.3, the internals have changed, so I am assuming my >>> previous measurements don't apply. Starting over... >> >> In fact must be the same as 1.x >> What exactly you have to find? > > With 1.1 file sizes exploded proportionally with segment size. > With 2.3 I would characterize it as leveling off as the the number > of records increases. > In other words, there is no significant > difference in file sizes for 100,000 records using segments sizes > of 4k, 8k, 16k, and 32K. And THIS IS correct and expected result. Hmm, I believe 1.x did work in the same way, Brendan. > There is a significant difference (percentage wise) when there is only 10, > 100, 1000, and 1000 records. So this is definitely a different behavior from > version 1.1. Still not very clear, but I think not very important. Again, initial size of db can be even few MB. ONLY WHEN you insert few MB of data it will start grow. > I notice a slow down when using 4k segment sizes for very large > (100,000 records) files, but no difference in speed for 8k, 16k, > and 32k segment sizes. So it looks like 8k seems to be optimal. I think you have not come to barrier when 8K also will be visibly slower of 16K :-) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Tue Apr 18 23:17:02 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 18 15:17:07 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: <844C2493-A3A4-4452-A7AC-2DBD1756F2AA@everestkc.net> Message-ID: On 4/18/06 10:55 PM, "Bob Keeney" wrote: Hi Bob, 2.2 or 2.3 ? > We had an existing 2.1 database that was converted to 2.2. We are > now getting the error, "The link 'Link_69' refuses operation" on > operations that were done all the time in 2.1. > > As best as I can tell, the record that Link_69 is pointing to > exists. A Diagnose produced no problems. > > I've tried running the code behind both in class way and sql way and > get the same error. Any clue what could be happening? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Tue Apr 18 23:18:28 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 18 15:18:34 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: <844C2493-A3A4-4452-A7AC-2DBD1756F2AA@everestkc.net> Message-ID: On 4/18/06 10:55 PM, "Bob Keeney" wrote: > We had an existing 2.1 database that was converted to 2.2. We are > now getting the error, "The link 'Link_69' refuses operation" on > operations that were done all the time in 2.1. > > As best as I can tell, the record that Link_69 is pointing to > exists. A Diagnose produced no problems. > > I've tried running the code behind both in class way and sql way and > get the same error. Any clue what could be happening? Please describe * Link_69 - this is ObjectPtr ? * tables it links? * what operation you try todo * error number you get also please. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bkeeney at everestkc.net Tue Apr 18 20:58:02 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Tue Apr 18 20:58:14 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: <20060417154056.76B674127E6@edison.macserve.net> References: <20060417154056.76B674127E6@edison.macserve.net> Message-ID: <23444FEE-7043-448C-871C-C18AD8DE58E4@everestkc.net> < Please describe < < * Link_69 - this is ObjectPtr ? Yes. All of database created via class way so these were created automatically. < < * tables it links? Links the table "users" with "linedetails" < < * what operation you try todo I'm trying to insert a record into "linedetails" < < * error number you get also please. < 529697: The link "Link_69" refuses operation. I get the same error with version 2.3. Using RB 2006 r1 on Mac OS 10.4.6. So something changed between 2.1 and 2.2 that now breaks existing applications in field. Thanks for the help. Bob K. From sunshine at public.kherson.ua Wed Apr 19 09:22:05 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 19 01:25:10 2006 Subject: [FAQ] A couple of questions In-Reply-To: <14197649.1145412367017.JavaMail.root@elwamui-darkeyed.atl.sa.earthlink.net> Message-ID: On 4/19/06 5:06 AM, "Anna Kritselis" wrote: Hi Anna, > Hi Ruslan, > > I have a couple of questions for you - (WIN XP, RB2006r1, V4RB 2.3) 1) > Is it possible to set a field equal to the value of another field in the same > record? > Update tblEvalGrad set tblEvalGrad.GradeTerm2 = tblEvalGrad.GradeTerm1 In SQL? Yes. You can use even expressions: Update tblEvalGrad SET tblEvalGrad.GradeTerm2 = tblEvalGrad.GradeTerm1 + 25 ----- 2) > Also, do you use both the Vexception(Valentina) and Exception(RealBasic) > blocks? Yes, VException class is subclass of RuntimeException. > Should one come before the other? > Exception err as VException > MsgBox Str(err.ErrorNumber) + ":" + err.Message > > Exception err > MsgBox "Error!" YES! This is correct code even we'd not subclass RuntimeException. The fact that we do subclass means that you can write just Exception err MsgBox "Error!" And still catch Valentina exceptions. But if you want DIFFER in code Valentina exceptions from OTHER exceptions then you can write 2 catches as you do above. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Wed Apr 19 06:42:23 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Wed Apr 19 07:42:30 2006 Subject: VException Information In-Reply-To: References: Message-ID: <38AD0131-FB9C-4BA4-9C15-5B99EB2A9105@pcisys.net> On Apr 18, 2006, at 8:10 AM, Ruslan Zasukhin wrote: > >> If I change "LIKE" to "=" and drop the "%", it finds those with >> "Test". > > I have made simple test db here > > select * from rr where ggg LIKE '%Test%' > > It works fine here. I find that if I remove the "%" notation before and after the text I'm looking for, things work fine. "Test" will find "Test" and "Testing". "ing" will find "Testing". Regards, Chuck From ivan_smahin at valentina-db.com Wed Apr 19 15:43:02 2006 From: ivan_smahin at valentina-db.com (Ivan Smahin) Date: Wed Apr 19 07:55:31 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: <844C2493-A3A4-4452-A7AC-2DBD1756F2AA@everestkc.net> References: <20060418065405.3B3DF412B97@edison.macserve.net> <844C2493-A3A4-4452-A7AC-2DBD1756F2AA@everestkc.net> Message-ID: <18676867.20060419154302@valentina-db.com> Hello Bob, Tuesday, April 18, 2006, 10:55:38 PM, you wrote: > We had an existing 2.1 database that was converted to 2.2. We are > now getting the error, "The link 'Link_69' refuses operation" on > operations that were done all the time in 2.1. > As best as I can tell, the record that Link_69 is pointing to > exists. A Diagnose produced no problems. > I've tried running the code behind both in class way and sql way and > get the same error. Any clue what could be happening? As far as I get it you have two tables (T1, T2), T2 points to the T1 using ObjectPtr (ptrField). Now you are trying to insert the new record into table T2 and get this exception. Right? If so - there is only single reason for such an exception - you are filling up ptrField with recID which does not exist in table T1. Send me the project if possible please. -- Best regards, Ivan mailto:ivan_smahin@valentina-db.com From sunshine at public.kherson.ua Wed Apr 19 15:58:11 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 19 07:58:15 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: <18676867.20060419154302@valentina-db.com> Message-ID: On 4/19/06 3:43 PM, "Ivan Smahin" wrote: >> We had an existing 2.1 database that was converted to 2.2. We are >> now getting the error, "The link 'Link_69' refuses operation" on >> operations that were done all the time in 2.1. > >> As best as I can tell, the record that Link_69 is pointing to >> exists. A Diagnose produced no problems. > >> I've tried running the code behind both in class way and sql way and >> get the same error. Any clue what could be happening? > > As far as I get it you have two tables (T1, T2), T2 points to the T1 > using ObjectPtr (ptrField). Now you are trying to insert the > new record into table T2 and get this exception. > > Right? > > If so - there is only single reason for such an exception - you are > filling up ptrField with recID which does not exist in table T1. > > > Send me the project if possible please. Not so fast :-) Let Bob at first check your point. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 19 15:58:39 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 19 07:58:54 2006 Subject: VException Information In-Reply-To: <38AD0131-FB9C-4BA4-9C15-5B99EB2A9105@pcisys.net> Message-ID: On 4/19/06 3:42 PM, "Chuck Pelto" wrote: >>> If I change "LIKE" to "=" and drop the "%", it finds those with >>> "Test". >> >> I have made simple test db here >> >> select * from rr where ggg LIKE '%Test%' >> >> It works fine here. > > I find that if I remove the "%" notation before and after the text > I'm looking for, things work fine. "Test" will find "Test" and > "Testing". "ing" will find "Testing". What version of Valentina you use ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 19 16:04:42 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 19 08:04:46 2006 Subject: [FAQ] A couple of questions In-Reply-To: <4155423.1145451139703.JavaMail.root@elwamui-hound.atl.sa.earthlink.net> Message-ID: On 4/19/06 3:52 PM, "Anna Kritselis" wrote: Hi Anna, > Hi Ruslan, > > I must be using the wrong syntax for the update command - > > I get Error: was expecting '=' and found '.' when I use this syntax: > Update tblEvalGrad SET tblEvalGrad.GradeTerm2 = tblEvalGrad.GradeTerm1 ^^^^^^^^^^^ you already have specify table. No need specify it again. > I get crash when I use this syntax: > Update tblEvalGrad SET GradeTerm2 = GradeTerm1 What field types have these fields? Ivan, keep eye on this > The reason I asked about the Vexception and Exception is that in the WIN > RB2006r1 IDE, I get a little RED line next to the second exception block (like > when you don't finish an If/Endif). It doesn't appear to cause any problems, > but I just wanted to check with you to make sure that using the two bolcks is > okay. I think better ask RB gurus then -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bmurf at comcast.net Wed Apr 19 11:11:51 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Wed Apr 19 11:11:57 2006 Subject: Need advice In-Reply-To: <20060419125534.73D57413435@edison.macserve.net> References: <20060419125534.73D57413435@edison.macserve.net> Message-ID: <9B5C30F4-AC71-4142-BBA3-6700792BA838@comcast.net> Ruslan wrote: >>>> With version 2.3, the internals have changed, so I am assuming my >>>> previous measurements don't apply. Starting over... >>> >>> In fact must be the same as 1.x >>> What exactly you have to find? >> >> With 1.1 file sizes exploded proportionally with segment size. > >> With 2.3 I would characterize it as leveling off as the the number >> of records increases. > >> In other words, there is no significant >> difference in file sizes for 100,000 records using segments sizes >> of 4k, 8k, 16k, and 32K. > > And THIS IS correct and expected result. > Hmm, I believe 1.x did work in the same way, Brendan. The numbers don't lie. Way back when I first measured 1.11 the file sizes exploded across the board in proportion to the segment size. For 2.3 it does not explode (which is a good thing). >> There is a significant difference (percentage wise) when there is >> only 10, >> 100, 1000, and 1000 records. So this is definitely a different >> behavior from >> version 1.1. > > Still not very clear, but I think not very important. > > Again, initial size of db can be even few MB. ONLY WHEN you insert > few MB of > data it will start grow. Here are the measurements for version 2.3 for the different segment sizes. The exact same input data was entered for each database for the corresponding record sizes. 4K segment size: 10: 0.668 MB 100: 0.708 MB 1000: 1.1 MB 10000: 5.8 MB 100000: 52.7 MB 8K segment size: 10: 1 MB 100: 1 MB 1000: 1.4 MB 10000: 6.1 MB 100000: 52.9 MB 16K segment size: 10: 1.6 MB 100: 1.6 MB 1000: 2.1 MB 10000: 6.7 MB 100000: 53.5 MB 32K segment size: 10: 3.2 MB 100: 3.2 MB 1000: 3.6 MB 10000: 8.3 MB 100000: 55 MB There is not a linear growth pattern across the segment sizes. Understanding why it behaves this way can help me avoid any pitfalls (if they exist). Since what you have stated for the behavior for version 2.3 is slightly different from the actual measurements, there is something going on which you are not aware. Perhaps there is some kind of optimization you can make in a future release. For me 4K segment size visibly slows performance down. 16K segment size imposes a 50% file size increase for typical file sizes (at the extreme record size there is no difference). >> I notice a slow down when using 4k segment sizes for very large >> (100,000 records) files, but no difference in speed for 8k, 16k, >> and 32k segment sizes. So it looks like 8k seems to be optimal. > > I think you have not come to barrier when 8K also will be visibly > slower of > 16K :-) It is not visibly slower. From sunshine at public.kherson.ua Wed Apr 19 19:48:19 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 19 12:25:10 2006 Subject: Need advice In-Reply-To: <9B5C30F4-AC71-4142-BBA3-6700792BA838@comcast.net> Message-ID: On 4/19/06 7:11 PM, "Brendan Murphy" wrote: > ere are the measurements for version 2.3 for the different > segment sizes. The exact same input data was entered for each > database for the corresponding record sizes. > > 4K segment size: > 10: 0.668 MB > 100: 0.708 MB > 1000: 1.1 MB > 10000: 5.8 MB > 100000: 52.7 MB > > 8K segment size: > 10: 1 MB > 100: 1 MB > 1000: 1.4 MB > 10000: 6.1 MB > 100000: 52.9 MB > > 16K segment size: > 10: 1.6 MB > 100: 1.6 MB > 1000: 2.1 MB > 10000: 6.7 MB > 100000: 53.5 MB > > 32K segment size: > 10: 3.2 MB > 100: 3.2 MB > 1000: 3.6 MB > 10000: 8.3 MB > 100000: 55 MB > > There is not a linear growth pattern across the segment sizes. > Understanding why it behaves this way can help me avoid any > pitfalls (if they exist). Since what you have stated for > the behavior for version 2.3 is slightly different from the actual > measurements, there is something going on which you are not aware. > Perhaps there is some kind of optimization you can make in a > future release. > > For me 4K segment size visibly slows performance down. 16K segment > size imposes a 50% file size increase for typical file sizes (at > the extreme record size there is no difference). I try explain on SIMPLE exmaple Image you have 2 internal files in database. One for ULONG (4 bytes) numbers, second for DOUBLE (8 bytes) * You have set segment 8Kb. Okay. * you create EMPTY db. both files allocate one segment. so you get 8 + 8 = 16Kb for empty db * you start add records. easy calculate that first segment of first file can get 8 * 1024 / 4 = 2048 records. second file can get 8 * 1024 = 8 = 1024 records. * so while you have 0-1024 records you still have one segment in each file. You see? * as only you add 1025 records, the second file must allocate one more segment. What you have now with 1025 records? 1 files - 1 segment, which us 50% full 2 file, - 1 full segment and 1 segment with 4 bytes only so also 50% of fullness. * around 2048 records, both files will get full segments, then again will be new allocations and so EMPTY space will present. * the more size of database, the smaller affect of EMPTY space. Right? 8Kb of empty / 16Kb total = 50% 8Kb of empty / 16000Kb total = 0.005% This example show that each file can grow in different way then other files depending on data it contains. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bkeeney at everestkc.net Wed Apr 19 14:37:39 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Wed Apr 19 14:37:55 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: <20060419125534.73D57413435@edison.macserve.net> References: <20060419125534.73D57413435@edison.macserve.net> Message-ID: Discovered what the problem was. Seems that my table definition for one of the objectPtr's was pointing to the wrong table. I checked very old code and it's been that way since first coded. No idea why it finally manifested itself in version 2.2. Do you think it is possible to convert existing databases with no hassles? Thanks for the help! Bob K. From ivan_smahin at valentina-db.com Wed Apr 19 22:50:06 2006 From: ivan_smahin at valentina-db.com (Ivan Smahin) Date: Wed Apr 19 14:50:09 2006 Subject: V4RB 2.2 Link Refuses Operation In-Reply-To: References: <20060419125534.73D57413435@edison.macserve.net> Message-ID: <826542904.20060419225006@valentina-db.com> Hello Bob, Wednesday, April 19, 2006, 10:37:39 PM, you wrote: > Discovered what the problem was. Seems that my table definition for > one of the objectPtr's was pointing to the wrong table. > I checked very old code and it's been that way since first coded. No > idea why it finally manifested itself in version 2.2. > Do you think it is possible to convert existing databases with no > hassles? ObjectPtr has property Target. Just set the right table using this. Or I get it wrong? -- Best regards, Ivan mailto:ivan_smahin@valentina-db.com From cbpelto at pcisys.net Thu Apr 20 02:43:22 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Thu Apr 20 03:43:28 2006 Subject: VException Information In-Reply-To: References: Message-ID: <7D5BA89B-9DFF-42FF-B591-CABD236B0C0C@pcisys.net> Morning Ruslan, Another day of putting impromptu smudge pots under the 100+ year-old bechtel double-blossom crabapple. It's supposed to get down below freezing again and the buds on the tree are just about to burst open. So I'm trying to ward off frostbite. It's 2:30 am here and I just finished firing up the pyres. On Apr 19, 2006, at 6:58 AM, Ruslan Zasukhin wrote: > On 4/19/06 3:42 PM, "Chuck Pelto" wrote: > >>>> If I change "LIKE" to "=" and drop the "%", it finds those with >>>> "Test". >>> >>> I have made simple test db here >>> >>> select * from rr where ggg LIKE '%Test%' >>> >>> It works fine here. >> >> I find that if I remove the "%" notation before and after the text >> I'm looking for, things work fine. "Test" will find "Test" and >> "Testing". "ing" will find "Testing". > > What version of Valentina you use ? Up until a few minutes ago I WAS using 2.1cf4, I think. I downloaded 2.3 and installed it. NOW, when I try to compile my RB project, I'm told that the VDatabase superclass doesn't exist. [Note: I knew I'd seen some 'concerns' about the new version.] I'm running RB2006v1 with Mac OS 10.4.6 on a Mac PowerBook with the following specs: Machine Name: PowerBook G4 15" Machine Model: PowerBook5,8 CPU Type: PowerPC G4 (1.5) Number Of CPUs: 1 CPU Speed: 1.67 GHz L2 Cache (per CPU): 512 KB Memory: 1 GB Bus Speed: 167 MHz Boot ROM Version: 4.9.6f0 Please advise. Regards, Chuck From cbpelto at pcisys.net Thu Apr 20 02:50:51 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Thu Apr 20 03:50:57 2006 Subject: VException Information [Addendum] In-Reply-To: <7D5BA89B-9DFF-42FF-B591-CABD236B0C0C@pcisys.net> References: <7D5BA89B-9DFF-42FF-B591-CABD236B0C0C@pcisys.net> Message-ID: I guess I missed it in the instructions, but the solution to the VDatabase superclass not being found by RB2006v1 seems to relate to having to put the plug-in into the PLUG-IN folder in REALbasic. Regards, Chuck On Apr 20, 2006, at 2:43 AM, Chuck Pelto wrote: > Morning Ruslan, > > Another day of putting impromptu smudge pots under the 100+ year- > old bechtel double-blossom crabapple. It's supposed to get down > below freezing again and the buds on the tree are just about to > burst open. So I'm trying to ward off frostbite. It's 2:30 am here > and I just finished firing up the pyres. > > On Apr 19, 2006, at 6:58 AM, Ruslan Zasukhin wrote: > >> On 4/19/06 3:42 PM, "Chuck Pelto" wrote: >> >>>>> If I change "LIKE" to "=" and drop the "%", it finds those with >>>>> "Test". >>>> >>>> I have made simple test db here >>>> >>>> select * from rr where ggg LIKE '%Test%' >>>> >>>> It works fine here. >>> >>> I find that if I remove the "%" notation before and after the text >>> I'm looking for, things work fine. "Test" will find "Test" and >>> "Testing". "ing" will find "Testing". >> >> What version of Valentina you use ? > > Up until a few minutes ago I WAS using 2.1cf4, I think. > > I downloaded 2.3 and installed it. > > NOW, when I try to compile my RB project, I'm told that the > VDatabase superclass doesn't exist. [Note: I knew I'd seen some > 'concerns' about the new version.] > > I'm running RB2006v1 with Mac OS 10.4.6 on a Mac PowerBook with the > following specs: > > Machine Name: PowerBook G4 15" > Machine Model: PowerBook5,8 > CPU Type: PowerPC G4 (1.5) > Number Of CPUs: 1 > CPU Speed: 1.67 GHz > L2 Cache (per CPU): 512 KB > Memory: 1 GB > Bus Speed: 167 MHz > Boot ROM Version: 4.9.6f0 > > > Please advise. > > Regards, > > Chuck > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Thu Apr 20 12:13:41 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 20 04:13:49 2006 Subject: VException Information [Addendum] In-Reply-To: Message-ID: On 4/20/06 11:50 AM, "Chuck Pelto" wrote: Chuck, Sorry, I have nothing catch. Please use clean English texts :) You have solve problem? Or you have yet some problem on hands ??? If yes DESCRIBED them detailed: I want this I do this but I get this > I guess I missed it in the instructions, but the solution to the > VDatabase superclass not being found by RB2006v1 seems to relate to > having to put the plug-in into the PLUG-IN folder in REALbasic. > > Regards, > > Chuck > > > On Apr 20, 2006, at 2:43 AM, Chuck Pelto wrote: > >> Morning Ruslan, >> >> Another day of putting impromptu smudge pots under the 100+ year- >> old bechtel double-blossom crabapple. It's supposed to get down >> below freezing again and the buds on the tree are just about to >> burst open. So I'm trying to ward off frostbite. It's 2:30 am here >> and I just finished firing up the pyres. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From cbpelto at pcisys.net Thu Apr 20 08:11:03 2006 From: cbpelto at pcisys.net (Chuck Pelto) Date: Thu Apr 20 09:11:11 2006 Subject: VException Information [Addendum] In-Reply-To: References: Message-ID: <30E71C9C-5D7A-44F5-BCBA-DA4EF8E74D33@pcisys.net> On Apr 20, 2006, at 3:13 AM, Ruslan Zasukhin wrote: > You have solve problem? Yes. I have solved the problem reported earlier. RB2006v1 NOW recognizes the VDatabase superclass. I had not moved the new plug-in into the RB Plug-In folder. Regards, Chuck From sunshine at public.kherson.ua Fri Apr 21 01:28:35 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 20 17:28:41 2006 Subject: [ANN] Valentina for Cocoa 2.4 b1 uploaded Message-ID: Hi Guys! We are happy to inform that long awaited Valentina for Cocoa product is ready for public beta testing. http://www.paradigmasoft.com/en/products/download/beta/V4CC * If you aware to V4RB, you will find that V4CC have very similar design. * V4CC is for use with Objective-C in xCode on MAC. * its API is ready for use with Apple's Binding * we have provide for now one simple example, which follow to V4RB Tutorial. - We invite everybody to test V4CC and give us your feedback. - We know many developers want switch from REALbasic to xCode, and have request us for V4CC. Now it is time to go :) - I have still not clear some issue. One of them is if it is possible to use Classes way in the V4CC. I do not see yet good how in Obj-C we can inherit fro NSObject *and* Vdatabase or VTable... * one more. V4CC is in Universal Binary Format! like C++ SDK and Valentina Studio are. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From matthew at sixredmarbles.com Thu Apr 20 22:40:53 2006 From: matthew at sixredmarbles.com (Matthew Bargar) Date: Thu Apr 20 21:44:23 2006 Subject: UPPER()/ORDER BY question Message-ID: Hi all! First question for the list, hope it's an easy one... I am trying to do a select query where the results are returned sorted by a string field. The catch I am having is that by default Valentina ORDER BY is sorting using case-sensitivity... i.e., first I get the A-Z results and then the a-z results. I'd really like to get my results ordered without case-sensitivity. I tried multiple permutations on this: SELECT * from users ORDER BY UPPER(user_last_name) in Valentina Studio but I kept getting either error 603 or 604 (field not found/syntax error). Is there another approach I should be taking? Thanks! -Matt --------------------------------------- Matthew Bargar Senior Developer sixredmarbles One Alewife Center, Suite 210 Cambridge, MA 02140 p. 617.492.9668 f. 617.492.9778 matthew@sixredmarbles.com From sunshine at public.kherson.ua Fri Apr 21 09:39:54 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 01:40:05 2006 Subject: UPPER()/ORDER BY question In-Reply-To: Message-ID: On 4/21/06 5:40 AM, "Matthew Bargar" wrote: Hi Matthew! > Hi all! First question for the list, hope it's an easy one... > I am trying to do a select query where the results are returned sorted by a > string field. The catch I am having is that by default Valentina ORDER BY is > sorting using case-sensitivity... i.e., first I get the A-Z results and then > the a-z results. I'd really like to get my results ordered without > case-sensitivity. I tried multiple permutations on this: > > SELECT * from users ORDER BY UPPER(user_last_name) Currently you can get correct result using Table Method. Define new Method (calculated filed) and use it in ORDER BY. > in Valentina Studio but I kept getting either error 603 or 604 (field not > found/syntax error). Is there another approach I should be taking? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 10:43:55 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 02:44:07 2006 Subject: [WIKI] New docs about Valentina Abstraction Links [READ ALL PLEASE] Message-ID: Hi All, Please take a look on this WIKI pages http://www.valentina-db.com/dokuwiki/doku.php?id=paradigma:public:en:documen tation:vkernel:vlink:vlink Here I have add as many information as I could about Links, FK, ObjectPtr and BinaryLink. On this page you will find links into all areas of docs, which are related to links. Please read it, provide me your feedback of any kind. Especially if you have some questions. Or if I have not explain something clean enough. May be you'd like some more examples or pictures.. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Fri Apr 21 11:22:04 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Fri Apr 21 11:22:11 2006 Subject: Issues In-Reply-To: Message-ID: <000001c6655f$baa5e2d0$9601a8c0@Brandon> Ruslan, We are using: -Windows XP -RealBasic2006r2 (STANDARD VERSION) -Valentina for RealBasic 2.3 -Valentina Office Server 2.3 -vStudio, Win32 2.3fc18 We have been working/testing Valentina for about 2 weeks. Using RealBasic Classes method. 1.) vStudio works with local databases. vStudio crashes when accessing vServer in Client/server mode. It is not usable. Is there anyone using vStudio with vServer on Windows? As of now, when I load vStudio, then choose File>Connect To.. Then Datasource=Valentina Server Host= User=SA Password=SA - Press Connect - No errors - just entire application closes instantly. 2.) We created a LOCAL database with a vBLOB field in RB. We wrote a small RB application that added 5000 records using the vBlob.FromFile method then it read the records and saved the binary files back out using vBlob.ToFile. It worked great. Then we attempted the same thing using vServer in Client/Server mode. We are able to save the binary files into the vBLOB field but we are not able to read the files back out using the vBLOB.ToFile method. This is the error that occurs when the code vBLOB.ToFile is executed: "An identifier (0x1451FC0) was specified while processing client request. Exception Error Number: 533779". We have worked on this for 6 hours and cannot resolve it. 3.) When we close RealBasic then re-open it and load a Valentina project, we get the following Failed Assertion: plugin.cpp: 7417 Failure Condition: pluginEntryTable.GetEntry( entrypointName, out) can't find plugin method VRBDataBase.__init. We have found that if we resave the project code in XML format instead of RealBasic (rbp) format the issue goes away. Why is this? 4.) We are using the STANDARD version of RealBasic - not professional. So, we placed DisableRBDB file in the plugins folder to prevent RealBasic from going into demo mode. This does not work. We found that it only works if we create a shortcut on the desktop that loads RealBasic and if we put "Start in: "C:\Program Files\REAL Software\REALbasic 2006r2\" this resolves the issue. Maybe this has something to do with issue #3 above? 5.) First we installed Valentina for RealBasic, then vStudio. When we create a local database in RealBasic and then simply use vStudio to browse it, then our RealBasic application cannot read the data anymore. I think it was a database version issue. It took many hours of wasted time to determine this. So, we reinstalled in a different sequence, vStudio first THEN Valentina for RealBasic. Now vStudio does not cause the data to be unreadable for RealBasic application. But maybe this is causing other problems? =============================================== Please let me know the absolute way to install your software so that everything will work properly and we do not have to work around all of these issues. Also, if we cannot resolve issues 1 and 2 above then we will have to abandon Valentina and use something else. This is NOT what I want to do. Thank You, Brandon From bwarlick at sunbelt-graphics.com Fri Apr 21 11:26:48 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Fri Apr 21 11:26:57 2006 Subject: Issues (small correction to last email) In-Reply-To: Message-ID: <000b01c66560$645362d0$9601a8c0@Brandon> Error we receive on issue #2 is ... "An INVALID identifier (0x1451FC0) was specified while processing client request. Exception Error Number: 533779" Thank You, Brandon From sunshine at public.kherson.ua Fri Apr 21 19:51:27 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 11:51:35 2006 Subject: Issues In-Reply-To: <000001c6655f$baa5e2d0$9601a8c0@Brandon> Message-ID: On 4/21/06 7:22 PM, "Brandon" wrote: Hi Brandon, > =============================================== > Please let me know the absolute way to install your software so that > everything will work properly and we do not have to work around all of > these issues. Also, if we cannot resolve issues 1 and 2 above then we > will have to abandon Valentina and use something else. This is NOT what > I want to do. Then please 1) help us with bugs by adding them into Mantis. you can see that we fix practically 99% of entered issues in short time, if you specify how to reproduce. Instead of describe issue on list, just copy-past them each as SEPARATE issue into Mantis. If they is not report in Mantis then our developers do not know about this bug. 2) provide us please with your timeline. 3) about Vstudio + Vserver. Ivan already 2 weeks work hard to develop new protocol for Vclient + Vserver. As far as I know, he have already done practically all low-level tests for new protocol. Now task will be develop new vclient based on this protocol. We estimate this in about 2 weeks of work.. We expected that this new protocol will bring us expected stability. And we will be able implement at last of end in complete way all API methods we have claim will work in the same way for LOCAL and SERVER. Now I will start read carefully your issues. And answer on them *** One more *** I remember that on Valentina Studio list you have specify steps which cause crash of Vstudio + Vserver. Kirill have fix this on the SECOND day after your report and we have upload new Vstudio build. But we have not get from you any feedback on that fix. We try to be as responsive as possible in bug fixes. But please help us keep this fast temp of development. If we fix your bugs, check them and confirm or reopen ASAP (while developer still keep issue in brain). You could note that we are able fix bugs and ship new build of Vstudio even in one day if that is urgent and we can reproduce problem. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Fri Apr 21 12:35:37 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Fri Apr 21 12:35:42 2006 Subject: Issues In-Reply-To: Message-ID: <000001c6656a$00e145a0$9601a8c0@Brandon> Ruslan, I am new to Valentina. Was not aware of Mantis. I just signed up and I am awaiting a confirmation email. I will submit all bug reports there. > 2) provide us please with your timeline. Not sure what you mean by this. > 3) about Vstudio + Vserver. > Ivan already 2 weeks work hard to develop new protocol for Vclient + Vserver. As far as I know, he have already done practically all low-level tests for new protocol. Now task will be develop new vclient based on this protocol. We estimate this in about 2 weeks of work.. > We expected that this new protocol will bring us expected stability. And we will be able implement at last of end in complete way all API methods we have claim will work in the same way for LOCAL and SERVER. OK. I guess I am a nooby. I thought vServer was stable and already had the same API as local databases. No problem. Just let me know what is not implemented? For example, could this explain my issue with vBLOB fields seeming to work on local database but not on vServer? > I remember that on Valentina Studio list you have specify steps which cause crash of Vstudio + Vserver. Kirill have fix this on the SECOND day after your report and we have upload new Vstudio build. But we have not get from you any feedback on that fix. > We try to be as responsive as possible in bug fixes. But please help us keep this fast temp of development. If we fix your bugs, check them and confirm or reopen ASAP (while developer still keep issue in brain). Sorry no feedback. I was not aware that any fix was implemented for my specific issue. I *thought* a new version was on your website. Then after downloading I was confused and did not know if it was different from what I was using. If I remember correctly, the version number did not seem to be right. Anyway, I have re-downloaded as recent as 2 days ago. The problems I am having when accessing client/server databases is constant crashes. Now I cannot even connect to the server. Software crashes instantly. This is why I am wondering if it has anything to do with the sequence of installing. I cannot imagine that others are having the same issues as me. Unless I am the only Windows user attempting to connect to vServer with vStudio. Could this be true? Regard, Brandon From sunshine at public.kherson.ua Fri Apr 21 20:50:26 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 12:50:32 2006 Subject: Issues In-Reply-To: <000001c6656a$00e145a0$9601a8c0@Brandon> Message-ID: On 4/21/06 8:35 PM, "Brandon" wrote: Hi Brandon, > I am new to Valentina. Was not aware of Mantis. I just signed up and I > am awaiting a confirmation email. I will submit all bug reports there. Good. It seems today dreamhost is slow... >> 2) provide us please with your timeline. > > Not sure what you mean by this. I means what is timeline of your development. If you need ship app tomorrow, probably I will say - we are not ready. If it is okay - to start with local development - help us find and fix problems with vstudio + vserver - wait 2-3 weeks while we get new protocol.. Then I hope you can go with Valentina Btw, to see participate in beta testing please make sure you are on beta list also. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 20:57:23 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 12:57:28 2006 Subject: Issues. SQL or API style for VSERVER ? In-Reply-To: <000001c6656a$00e145a0$9601a8c0@Brandon> Message-ID: On 4/21/06 8:35 PM, "Brandon" wrote: >> We expected that this new protocol will bring us expected stability. >> And we will be able implement at last of end in complete way all API >> methods we have claim will work in the same way for LOCAL and SERVER. > > OK. I guess I am a nooby. I thought vServer was stable and already had > the same API as local databases. No problem. Just let me know what is > not implemented? For example, could this explain my issue with vBLOB > fields seeming to work on local database but not on vServer? I think yes. It can. What is really stable is SQL way. Vdatabase -> SqlSelect -> Vcursor -> -> Sqlxecute We have developer for example which runs for weeks non-stop Valentina Server with about 400 bank-machines around it and 15-20 users. With a lots of updates per second.. ---------- Attention to all please. Once again I want underlie. API and Class way - are best for development of LOCAL desktop apps. well....SQL way also is not bad here...: :-) SQL way -- is best for REMOTE database. When server is in other city or even country. For such task, DO NOT use API way, or reduce it as many as possible. We want to provide support of API way for Server mainly because agree it is cool, if your app with API or Class way will work with Vserver also. But it needs understand limitations. API way can be acceptable for Vserver which are on fast internal ethernet. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 21:01:47 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 13:01:53 2006 Subject: Issues In-Reply-To: <000001c6656a$00e145a0$9601a8c0@Brandon> Message-ID: On 4/21/06 8:35 PM, "Brandon" wrote: > Sorry no feedback. I was not aware that any fix was implemented for my > specific issue. I *thought* a new version was on your website. Then Well, Mantis will help here. As only we close your bug report you get email notification. > after downloading I was confused and did not know if it was different > from what I was using. If I remember correctly, the version number did > not seem to be right. Anyway, I have re-downloaded as recent as 2 days > ago. The problems I am having when accessing client/server databases is > constant crashes. Now I cannot even connect to the server. Software > crashes instantly. This is why I am wondering if it has anything to do > with the sequence of installing. I cannot imagine that others are having > the same issues as me. Unless I am the only Windows user attempting to > connect to vServer with vStudio. Could this be true? I do not think so. First of all,at least 5-6 our developer sets which constantly work with Valentina Studio and Vserver. And they work on WIN XP. May be you need stop server, trash master database and run it again. New master db will be created. Pictures and BLOBs - not remember. In V4MD pictures work, because we have test it intensively with ShockWave. The best of course is to provide each separate issue as separate REPORT with steps to reproduce. Our developer try reproduce, then respond you via Mantis. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 21:09:12 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 13:09:17 2006 Subject: Issues #1 In-Reply-To: <000001c6655f$baa5e2d0$9601a8c0@Brandon> Message-ID: On 4/21/06 7:22 PM, "Brandon" wrote: Hi Brandon, I will not move this to Valentina Studio, because not clear where is problem yet. > 1.) vStudio works with local databases. vStudio crashes when accessing > vServer in Client/server mode. It is not usable. Is there anyone using > vStudio with vServer on Windows? As of now, when I load vStudio, then > choose File>Connect To.. Then Datasource=Valentina Server Host= User=SA > Password=SA - Press Connect - No errors - just entire application closes > instantly. 1) is Vserver running ? 2) in the ini file of Vserver set verboseLevel = 3. this will log a lots of info on side of server. 3) I recommend during develompent start VServer not as service, but from console (see Vserver.pdf how to) Then you will see in live mode, user connected query result disconnet .. 4) Igor, please check if you can connect with Valentina Studio to latest Valentina Server 2.3 from our site. As far as I know you can, because yesterday you have close bug with admin users... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 21:11:47 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 13:11:52 2006 Subject: Issues #2 - BLOB, FromFile In-Reply-To: <000001c6655f$baa5e2d0$9601a8c0@Brandon> Message-ID: On 4/21/06 7:22 PM, "Brandon" wrote: > 2.) We created a LOCAL database with a vBLOB field in RB. We wrote a > small RB application that added 5000 records using the vBlob.FromFile > method then it read the records and saved the binary files back out > using vBlob.ToFile. It worked great. > Then we attempted the same thing > using vServer in Client/Server mode. We are able to save the binary > files into the vBLOB field but we are not able to read the files back > out using the vBLOB.ToFile method. This is the error that occurs when > the code vBLOB.ToFile is executed: "An identifier (0x1451FC0) was > specified while processing client request. Exception Error Number: > 533779". We have worked on this for 6 hours and cannot resolve it. > This is know issue, it is in Mantis, from Bishop. Problem related to protocol. Ivan twice have try fix this bug already, but still some problems as we see. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Fri Apr 21 13:38:35 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Fri Apr 21 13:38:39 2006 Subject: Issues- looking better! In-Reply-To: Message-ID: <000301c66572$cca1a2e0$9601a8c0@Brandon> Ruslan, > May be you need stop server, trash master database and run it again. New master db will be created. > 1) is Vserver running ? > 2) in the ini file of Vserver set verboseLevel = 3. this will log a lots of info on side of server. > 3) I recommend during develompent start VServer not as service, but from console > Then you will see in live mode, Things are looking better with vStudio! We completely uninstalled vStudio and vServer. Deleted all application folders, databases, etc. Started Fresh. 1. Deleted folder "C:\Program Files\Paradigma Software" 2. Installed vServer in "C:\Program Files\PARADIGMA VSERVER_OFFICE\VServer_Office" 3. Installed vStudio in "C:\Program Files\PARADIGMA VSTUDIO\Valentina Studio" Then, after installing, we realized that "C:\Program Files\Paradigma Software\VComponents_Win_CW" was created. Which installation created this? Now, vStudio is working perfectly with vServer!!! This is good. Each time before today, when we installed vStudio, during the install, we would get a message regarding files that would be replaced. It would ask if it was ok and we would respond yes. This time we did not get this message. We are assuming that installing into different folders helped?? Regards, Brandon From bwarlick at sunbelt-graphics.com Fri Apr 21 13:40:49 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Fri Apr 21 13:40:54 2006 Subject: Issues #2 - BLOB, FromFile In-Reply-To: Message-ID: <000401c66573$1c402c90$9601a8c0@Brandon> > This is know issue, it is in Mantis, from Bishop. > Problem related to protocol. This is GOOD! At least we know what the problem is. We can now attempt to work around and we know it is not our code. Thank You, Brandon From sunshine at public.kherson.ua Fri Apr 21 22:08:06 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 14:08:11 2006 Subject: Issues #3 - VRBDataBase In-Reply-To: <000001c6655f$baa5e2d0$9601a8c0@Brandon> Message-ID: On 4/21/06 7:22 PM, "Brandon" wrote: > 3.) When we close RealBasic then re-open it and load a Valentina > project, we get the following Failed Assertion: plugin.cpp: 7417 Failure > Condition: pluginEntryTable.GetEntry( entrypointName, out) can't find > plugin method VRBDataBase.__init. > We have found that if we resave the project code in XML format instead of > RealBasic (rbp) format the issue goes away. Why is this? I hear first time about such problem. VRBDataBase - this is name of RBDB class for Valentina which you have disable using DisableRBDB file. You know, it sounds like REALbasic bug/issue. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 22:11:11 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 14:11:16 2006 Subject: Issues #4 - DisableRDBB In-Reply-To: <000001c6655f$baa5e2d0$9601a8c0@Brandon> Message-ID: On 4/21/06 7:22 PM, "Brandon" wrote: > 3.) When we close RealBasic then re-open it and load a Valentina > project, we get the following Failed Assertion: plugin.cpp: 7417 Failure > Condition: pluginEntryTable.GetEntry( entrypointName, out) can't find > plugin method VRBDataBase.__init. We have found that if we resave the > project code in XML format instead of RealBasic (rbp) format the issue > goes away. Why is this? > > 4.) We are using the STANDARD version of RealBasic - not professional. > So, we placed DisableRBDB file in the plugins folder to prevent > RealBasic from going into demo mode. This does not work. > We found that it only works if we create a shortcut on the desktop that loads > RealBasic and if we put "Start in: "C:\Program Files\REAL Software\REALbasic > 2006r2\" this resolves the issue. Maybe this has something to do with issue #3 > above? Well, I will test this tomorrow on XP. May be some problem here. Before I have test this only for MAC, But code do not depend on platform... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 22:16:14 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 14:16:22 2006 Subject: Issues #5 - dlls In-Reply-To: <000001c6655f$baa5e2d0$9601a8c0@Brandon> Message-ID: On 4/21/06 7:22 PM, "Brandon" wrote: > 5.) First we installed Valentina for RealBasic, then vStudio. When we > create a local database in RealBasic and then simply use vStudio to > browse it, then our RealBasic application cannot read the data anymore. Sounds like you have Valentina Studio with 2.3 engine, But V4RB with 2.2 engine. > I think it was a database version issue. It took many hours of wasted > time to determine this. So, we reinstalled in a different sequence, > vStudio first THEN Valentina for RealBasic. Now vStudio does not cause > the data to be unreadable for RealBasic application. But maybe this is > causing other problems? I think problem NOT in order of installation. Valentina Studio contains ALL required dlls inside of its folder. You can see this. So Valentina Studio do NOT depend on VComponents folder. Even more strong! We build Valentina Studio with Visual, but V4RB with CodeWarrior. So they have just different non-compatible dlls. ---------- I think that most probably, you did have Paradigma Software/VComponents_win_cw << for V4RB With some old dlls. I recommend each time trash this folder by hands, before install new build. Once somebody have told that installer do NOT override dlls if they are not HDD. But that was for MAC OS and we have fix that... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 22:22:31 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 14:22:37 2006 Subject: Issues- looking better! In-Reply-To: <000301c66572$cca1a2e0$9601a8c0@Brandon> Message-ID: On 4/21/06 9:38 PM, "Brandon" wrote: Hi Brandon, > Things are looking better with vStudio! > > We completely uninstalled vStudio and vServer. Deleted all application > folders, databases, etc. Started Fresh. > > 1. Deleted folder "C:\Program Files\Paradigma Software" > 2. Installed vServer in "C:\Program Files\PARADIGMA > VSERVER_OFFICE\VServer_Office" > 3. Installed vStudio in "C:\Program Files\PARADIGMA VSTUDIO\Valentina > Studio" > > Then, after installing, we realized that "C:\Program Files\Paradigma > Software\VComponents_Win_CW" was created. Which installation created > this? Hmm, this folder is used only by V4RB now. > Now, vStudio is working perfectly with vServer!!! This is good. Great! I almost happy :) It seems only one real issue left on your side - ToFile, FromFile. And DisableRBDB - glitches. I will check them tomorrow. > Each time before today, when we installed vStudio, during the install, > we would get a message regarding files that would be replaced. It would > ask if it was ok and we would respond yes. This time we did not get this > message. We are assuming that installing into different folders helped?? Actually expected result here must be: C:\Program Files\Paradigma Software\Valentina Studio C:\Program Files\Paradigma Software\Vserver Office So they must go into 2 different folders on default. I will also now trash Paradigma Software and try to run these 2 installers to get this configuration: C:\Program Files\Paradigma Software\Valentina Studio C:\Program Files\Paradigma Software\Vserver Office -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 22:23:42 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 14:23:48 2006 Subject: Issues #2 - BLOB, FromFile In-Reply-To: <000401c66573$1c402c90$9601a8c0@Brandon> Message-ID: On 4/21/06 9:40 PM, "Brandon" wrote: >> This is know issue, it is in Mantis, from Bishop. >> Problem related to protocol. > > This is GOOD! At least we know what the problem is. We can now attempt > to work around and we know it is not our code. Right, Again please learn Mantis. It is very powerful and helpful. You can search and browse issues, fixes, not resolved, You can read discussions of each bug, And so on. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 21 22:35:31 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 21 14:35:36 2006 Subject: Issues- looking better! In-Reply-To: <000301c66572$cca1a2e0$9601a8c0@Brandon> Message-ID: On 4/21/06 9:38 PM, "Brandon" wrote: > Things are looking better with vStudio! > > We completely uninstalled vStudio and vServer. Deleted all application > folders, databases, etc. Started Fresh. > 1. Deleted folder "C:\Program Files\Paradigma Software" > 2. Installed vServer in "C:\Program Files\PARADIGMA > VSERVER_OFFICE\VServer_Office" > 3. Installed vStudio in "C:\Program Files\PARADIGMA VSTUDIO\Valentina > Studio" > > Then, after installing, we realized that "C:\Program Files\Paradigma > Software\VComponents_Win_CW" was created. Which installation created > this? > > Now, vStudio is working perfectly with vServer!!! This is good. > > Each time before today, when we installed vStudio, during the install, > we would get a message regarding files that would be replaced. It would > ask if it was ok and we would respond yes. This time we did not get this > message. We are assuming that installing into different folders helped?? So I did next steps: * trash Paradigma Software folder * run Vserver installer. Press ONLY button NEXT. I get C:\Program Files\Paradigma Software\Vserver_Office * run VStudio installer. Press ONLY button NEXT. I get C:\Program Files\Paradigma Software\Valentina Studio ++ There is no VComponents_Win_CW here. I think you have also install V4RB, right? This folder comes with V4RB. ++ There is no questions to replace dll. Usually you get such questions if you have some VComponents folder, and you install again. Aha, I have run second time Vstudio installer, and now I get questions about override for several dlls. It is such configuration of installer. Okay. This actually should be removed for Vstudio and Vserver installers. Only V4RB and other plugins should have such protection... I will remove this setting right now for installer script. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bwarlick at sunbelt-graphics.com Fri Apr 21 14:47:26 2006 From: bwarlick at sunbelt-graphics.com (Brandon ) Date: Fri Apr 21 14:47:31 2006 Subject: Issues- looking better! In-Reply-To: Message-ID: <000001c6657c$6b480570$9601a8c0@Brandon> Thank you Ruslan, I know it has taken a lot of your time today to respond to these issues. Your time is appreciated. > > Then, after installing, we realized that "C:\Program Files\Paradigma > Software\VComponents_Win_CW" was created. Which installation created > this? > Hmm, this folder is used only by V4RB now. Now I wonder if I may be crazy and did not delete "Paradigma Software" folder. I would do it again but everything works now and I don't want to mess it up. > It seems only one real issue left on your side - ToFile, FromFile. > And DisableRBDB - glitches. I will check them tomorrow. You are right. This is all that is left. You asked about my time frame. We are required to have a client/server application built in two weeks. Now that vStudio is working we can work around the other issues. We are testing blob.readdata and we think it will work. Thank You, Brandon From bmurf at comcast.net Sat Apr 22 00:34:26 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Sat Apr 22 00:34:34 2006 Subject: Defragmenting a local database Message-ID: Using a single file local valentina database is it possible for the database to become fragmented? If so, is it possible to defragment/compact a local database programmatically? If not I would suggest a new feature that would allow me to detect the percentage of fragmentation and then allow me to defragment the database. From sunshine at public.kherson.ua Sat Apr 22 08:49:01 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 22 00:49:08 2006 Subject: Defragmenting a local database In-Reply-To: Message-ID: On 4/22/06 8:34 AM, "Brendan Murphy" wrote: Hi Brendan, > Using a single file local valentina database is it possible for > the database to become fragmented? yes > If so, is it possible to > defragment/compact a local database programmatically? Yes, please look here http://www.valentina-db.com/dokuwiki/doku.php?id=paradigma:public:en:documen tation:vsql:reference:reference > If not I would suggest a new feature that would allow me to detect > the percentage of fragmentation and then allow me to defragment > the database. We already have such function in the engine, but it is not exposed. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Sat Apr 22 09:08:59 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Sat Apr 22 10:47:51 2006 Subject: [V4RB][VSRV] - Status of Connection Message-ID: There is some discussion about this in the archives, but it left me a bit puzzled. What is the best way to verify a Vserver Client connection is still alive (has not timed out, etc..)? Db.IsOpen? Also saw a suggestion that the client should just try to perform whatever action it wishes (like build a recordset) and then just cope with any errors. Are there reliable error codes? Discussion in January suggested future changes in protocols to vserver would affect this question. Were they ever implemented, or are they part of the current protocol changes being implemented? Russ From sunshine at public.kherson.ua Sat Apr 22 19:56:47 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 22 11:57:00 2006 Subject: [V4RB][VSRV] - Status of Connection In-Reply-To: Message-ID: On 4/22/06 4:08 PM, "Russ Tyndall" wrote: Hi Russ, > There is some discussion about this in the archives, but it left me a bit > puzzled. > > What is the best way to verify a Vserver Client connection is still alive > (has not timed out, etc..)? Db.IsOpen? If I not mistake Vserver.Available property exists. > Also saw a suggestion that the client should just try to perform whatever > action it wishes (like build a recordset) and then just cope with any > errors. Are there reliable error codes? Yes, please check Vcomponents/Resources/.xml files for error codes. > Discussion in January suggested future changes in protocols to vserver would > affect this question. Were they ever implemented, or are they part of the > current protocol changes being implemented? Ivan right now work on a new protocol. Already 2 weeks. He have made a lots of new tests. In general, we want to have the same code working with local and remote db, right? So you just do what you need and have try-catch to catch any exception, then decide what todo in case of any error. Of course if you write only LOCAL code, you can think in one way, If you do ONLY REMOTE code, you can from start write it in that way, .e.g. You can write special code and special logic to prevent user even to see that connection was lost and reconnect automatically. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From etienneloubser at gmail.com Sat Apr 22 18:22:09 2006 From: etienneloubser at gmail.com (Etienne Loubser) Date: Sat Apr 22 13:12:23 2006 Subject: macromedia director mx 2004 Message-ID: <37af97870604220922v5f2dbddbt616969ce097e83ce@mail.gmail.com> Hi, I want to set up a trial of the Valentina 4 Director Xtra, using Director MX 2004 on Windows. Can someone point me to the package I need to download? There doesn't seem to be a V4MD_Carbon version for Windows, only the Win32 version, and a Carbon for Mac. Thanks, Etienne. From sunshine at public.kherson.ua Sat Apr 22 22:03:37 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 22 14:37:49 2006 Subject: macromedia director mx 2004 In-Reply-To: <37af97870604220922v5f2dbddbt616969ce097e83ce@mail.gmail.com> Message-ID: On 4/22/06 7:22 PM, "Etienne Loubser" wrote: Hi Etienne, > I want to set up a trial of the Valentina 4 Director Xtra, using Director MX > 2004 on Windows. > Can someone point me to the package I need to download? http://www.paradigmasoft.com/en/products/download/V4MD > There doesn't seem to be a V4MD_Carbon version for Windows, > only the Win32 version, and a Carbon for Mac. Right. For windows you need Valentina for Director, Win32 http://www.paradigmasoft.com/download/V4MD_2_win.exe -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From fitzbew at nc.rr.com Sat Apr 22 16:23:14 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Sat Apr 22 15:23:27 2006 Subject: [V4RB][VSRV] - Status of Connection In-Reply-To: Message-ID: On 4/22/06 12:56 PM, "Ruslan Zasukhin" wrote: > On 4/22/06 4:08 PM, "Russ Tyndall" wrote: >> There is some discussion about this in the archives, but it left me a bit >> puzzled. >> >> What is the best way to verify a Vserver Client connection is still alive >> (has not timed out, etc..)? Db.IsOpen? > > If I not mistake Vserver.Available property exists. > The docs say I have to provide an Admin user/password to construct a Vserver object. I guess that is ok, at least in my case where the app will only be distributed to a few well-known users on a controlled network. If I have to change vServer admin/password Ids, it will not be a big deal to roll out a new version. If I was rolling out an app into more uncontrolled environment, I'm not sure if I'd want to build an admin id/password into an app; a bad guy could really put hurt on me with a copy of vStudio if they sniff out that ID/password. Or is some kind of security built in? Of course, if the docs are wrong and Vserver does not require admin user ids, then this is moot. >> Also saw a suggestion that the client should just try to perform whatever >> action it wishes (like build a recordset) and then just cope with any >> errors. Are there reliable error codes? > > Yes, please check Vcomponents/Resources/.xml files for error codes. I have more questions about this, I will send a different email for the sake of topic manageability. > Ivan right now work on a new protocol. Already 2 weeks. > He have made a lots of new tests. > Great. Will this affect any existing 2.3 apps (local or remote)? Or will the new protocol be invisible to existing code? Russ From fitzbew at nc.rr.com Sat Apr 22 18:02:08 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Sat Apr 22 17:02:15 2006 Subject: [V4RB][VSRV] - Status of Connection In-Reply-To: Message-ID: On 4/22/06 12:56 PM, "Ruslan Zasukhin" wrote: > On 4/22/06 4:08 PM, "Russ Tyndall" wrote: >> There is some discussion about this in the archives, but it left me a bit >> puzzled. >> >> What is the best way to verify a Vserver Client connection is still alive >> (has not timed out, etc..)? Db.IsOpen? > > If I not mistake Vserver.Available property exists. > >> Also saw a suggestion that the client should just try to perform whatever >> action it wishes (like build a recordset) and then just cope with any >> errors. Are there reliable error codes? > > Yes, please check Vcomponents/Resources/.xml files for error codes. > I think I am approaching this problem in a too simplistic way. Suppose my app launches and connects to vserver and all is well and good. Then, a lazy employee (read: me) goes on a coffee break and vserver drops connection after twenty minutes. Employee returns and starts to use app and interact with vserver. Naturally, exceptions occur, unless app is programmed to cope. Before each server-involved action, should I test for valid connection, and try the server-involved action if connection is valid? Or, should I use a "Try..Catch" blocks and test for vException" and then try to reconnect and continue the operation that threw the vException? If I go this second route, how can I tell that it was a connection time out? If I am trying to build a cursor, it could throw an exception for a lot of different reasons, right? I would only want to attempt a reconnect under some circumstances, I think. Is there a way to get any visibility into the nature of the vException in RB code? (I see that db.ErrNumber is deprecated in 2.x so I guess I should try and avoid using db.ErrNumber in a new app?) I know that the error codes are logged depending on verbose level, but that doesn't help here. I guess that sometimes it's just impossible for a client to know why a connection was dropped. In this case, it seems to me to be more logical to verify a valid connection *before* server-involved activity and try to reconnect at least once if no good connection is found. A connection could die and it might have nothing to do with timeout. The best solution for this kind've problem might vary between different apps and different network environments. Russ From steve at steve-albin.com Sun Apr 23 12:43:32 2006 From: steve at steve-albin.com (Steve Albin) Date: Sun Apr 23 11:43:42 2006 Subject: Mantis item #1429 - Segment error Message-ID: I submitted this item to Mantis on March 14 but there has been no response so far. Did this slip through the cracks somehow? I just downloaded the latest version of V4RB and the problem still exists. Steve -- Steve Albin - Montclair, NJ http://www.jazzdiscography.com/ http://www.steve-albin.com/ From sunshine at public.kherson.ua Sun Apr 23 22:14:03 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 23 14:14:11 2006 Subject: Mantis item #1429 - Segment error In-Reply-To: Message-ID: On 4/23/06 7:43 PM, "Steve Albin" wrote: Hi Steve, > I submitted this item to Mantis on March 14 but there has been no response so > far. Did this slip through the cracks somehow? I just downloaded the latest > version of V4RB and the problem still exists. > > It seems we have overlook this bug for 2.3 release. Is this high priority for you? Or can wait some time? we do not some major changes in a couple of areas, so I'd prefer not interrupt this process.. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 23 22:14:54 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 23 14:14:59 2006 Subject: [V4RB][VSRV] - Status of Connection In-Reply-To: Message-ID: On 4/22/06 11:23 PM, "Russ Tyndall" wrote: >>> There is some discussion about this in the archives, but it left me a bit >>> puzzled. >>> >>> What is the best way to verify a Vserver Client connection is still alive >>> (has not timed out, etc..)? Db.IsOpen? >> >> If I not mistake Vserver.Available property exists. >> > > The docs say I have to provide an Admin user/password to construct a Vserver > object. I guess that is ok, at least in my case where the app will only be > distributed to a few well-known users on a controlled network. If I have to > change vServer admin/password Ids, it will not be a big deal to roll out a > new version. If I was rolling out an app into more uncontrolled > environment, I'm not sure if I'd want to build an admin id/password into an > app; a bad guy could really put hurt on me with a copy of vStudio if they > sniff out that ID/password. Or is some kind of security built in? > > Of course, if the docs are wrong and Vserver does not require admin user > ids, then this is moot. It does Agree. This should be improved -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 23 22:15:24 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 23 14:15:30 2006 Subject: [V4RB][VSRV] - Status of Connection In-Reply-To: Message-ID: On 4/22/06 11:23 PM, "Russ Tyndall" wrote: >> Ivan right now work on a new protocol. Already 2 weeks. >> He have made a lots of new tests. >> > > Great. Will this affect any existing 2.3 apps (local or remote)? Or will > the new protocol be invisible to existing code? Changes are invisible for you -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From steve at steve-albin.com Sun Apr 23 15:26:19 2006 From: steve at steve-albin.com (Steve Albin) Date: Sun Apr 23 14:26:24 2006 Subject: Mantis item #1429 - Segment error In-Reply-To: Message-ID: On Sunday, April 23, 2006 sunshine@public.kherson.ua (Ruslan Zasukhin) wrote: >> I submitted this item to Mantis on March 14 but there has been no response so >> far. Did this slip through the cracks somehow? I just downloaded the latest >> version of V4RB and the problem still exists. >> >> > >It seems we have overlook this bug for 2.3 release. > >Is this high priority for you? >Or can wait some time? > we do not some major changes in a couple of areas, so I'd prefer not > interrupt this process.. > This bug is a show-stopper for me to use Valentina 2 for one of my existing Valentina 1 projects, but I am at least a month or two away from a new release and I can work around this in my testing. This is not a high priority. Thanks, Steve -- Steve Albin - Montclair, NJ http://www.jazzdiscography.com/ http://www.steve-albin.com/ From ktekinay at mactechnologies.com Mon Apr 24 00:37:13 2006 From: ktekinay at mactechnologies.com (Kem Tekinay) Date: Sun Apr 23 23:37:23 2006 Subject: Stress tests Message-ID: While preparing to release Data-On-Demand ListBox v.1.5, I decided to run a stress test using Valentina on the backend. I created a 5 million row test file of 7 fields and imported that. I'm happy to say that Data-On-Demand ListBox performs well, but I discovered some interesting things about Valentina. Keeping in mind that none of this was done in a scientific way: - Valentina was inited with a 40 MB cache. The data was imported using Valentina's ImportText command. - Sorting data on an indexed field took about 10 seconds on my dual-2.5 GHz PowerMac G5, but the sort was incorrect. That is, in what should have been a simple alphabetical sort, the first row started with a "D" when there were "A"'s available. Reindexing with Valentina Studio solved that problem. - Searches were performed using the class-way on the three indexed fields, Zip, City and State. A "starts with" search was almost instant no matter how many results were returned. For example, "zip, city, or state starts with 1" yielded 542,283 records and took 0.015 seconds. (BTW, Data-On-Demand ListBox displayed those results in 0.147 seconds, and the whole 5 million rows in under 1.5 seconds!) - "Ends with" searches were slower. For example, "zip, city, or state ends with 1" yielded 651,666 records and took from 2.5 to 4.0 seconds. - "Contains" searches took longer. "Zip, city or state contains 55" yielded 167,816 records and took anywhere from 6.5 to 10 seconds. - "Like" searches were similar in speed to "contains" searches. For example, "zip, city, or state like 'n%w%k' yielded 254 records and took anywhere from 6.5 to 10 seconds. - While I was running these tests, Valentina did something that caused a lot of thrashing and that particular search took MUCH longer. - Even though there had been no crashes or other issues, I ran DIAGNOSE from Valentina Studio. VS reported "problems found" at the end, but the actual details showed no issues. After reindexing, there were no problems found. - The original import file was 397 MB, and the final Valentina database files combined to 736 MB. - The 10 minute demo time limit is too annoying and limiting. There should be NO time limit in the IDE and a 10 minute time limit in compiled apps only. My conclusion: Even at its slowest, Valentina truly is ridiculously fast. Even the slowest "like" search took only 10 seconds to search three fields in 5 million records. By comparison, the SQLite engine that comes with REAlbasic was too slow to use for this purpose. However, too many records reveals a bug in the creation of indexes and reindexing is probably a good idea. __________________________________________________________________________ Kem Tekinay (212) 201-1465 MacTechnologies Consulting Fax (914) 242-7294 545 Eighth Avenue, Suite 401 Pager (917) 491-5546 New York, New York 10018 http://www.mactechnologies.com To join the MacTechnologies Consulting mailing list, send an e-mail to: mactechnologies_consulting-subscribe@yahoogroups.com From sunshine at public.kherson.ua Mon Apr 24 09:42:14 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 24 01:42:23 2006 Subject: Stress tests In-Reply-To: Message-ID: On 4/24/06 7:37 AM, "Kem Tekinay" wrote: Hi Kem, > While preparing to release Data-On-Demand ListBox v.1.5, I decided to run a > stress test using Valentina on the backend. I created a 5 million row test > file of 7 fields and imported that. I'm happy to say that Data-On-Demand > ListBox performs well, but I discovered some interesting things about > Valentina. Keeping in mind that none of this was done in a scientific way: > > - Valentina was inited with a 40 MB cache. The data was imported using > Valentina's ImportText command. > > - Sorting data on an indexed field took about 10 seconds on my dual-2.5 GHz > PowerMac G5, but the sort was incorrect. That is, in what should have been a > simple alphabetical sort, the first row started with a "D" when there were > "A"'s available. Reindexing with Valentina Studio solved that problem. Yes, we also have see some bug for table with 5 millions records. In our V4rB Test Project. Soon I will check it > - Searches were performed using the class-way on the three indexed fields, > Zip, City and State. A "starts with" search was almost instant no matter how > many results were returned. For example, "zip, city, or state starts with 1" > yielded 542,283 records and took 0.015 seconds. (BTW, Data-On-Demand ListBox > displayed those results in 0.147 seconds, and the whole 5 million rows in > under 1.5 seconds!) Actually I wonder why number of results differ result. Data-On-Demand ListBox should display 1000 and 1000000 records in the same time. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Mon Apr 24 09:49:14 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 24 01:49:20 2006 Subject: Stress tests In-Reply-To: Message-ID: On 4/24/06 7:37 AM, "Kem Tekinay" wrote: > - Sorting data on an indexed field took about 10 seconds on my dual-2.5 GHz > PowerMac G5, but the sort was incorrect. That is, in what should have been a > simple alphabetical sort, the first row started with a "D" when there were > "A"'s available. Reindexing with Valentina Studio solved that problem. And time still 10 sec? Note, FIRST sorting on a field can be much slower than next sorting. So try do SECOND the same sorting. > - Searches were performed using the class-way on the three indexed fields, > Zip, City and State. A "starts with" search was almost instant no matter how > many results were returned. For example, "zip, city, or state starts with 1" > yielded 542,283 records and took 0.015 seconds. (BTW, Data-On-Demand ListBox > displayed those results in 0.147 seconds, and the whole 5 million rows in > under 1.5 seconds!) > > - "Ends with" searches were slower. For example, "zip, city, or state ends > with 1" yielded 651,666 records and took from 2.5 to 4.0 seconds. > > - "Contains" searches took longer. "Zip, city or state contains 55" yielded > 167,816 records and took anywhere from 6.5 to 10 seconds. Hmm, I'd expect the same result in both cases > - "Like" searches were similar in speed to "contains" searches. For example, > "zip, city, or state like 'n%w%k' yielded 254 records and took anywhere from > 6.5 to 10 seconds. > - While I was running these tests, Valentina did something that caused a lot > of thrashing and that particular search took MUCH longer. What search you mean here? LIKE ? > - Even though there had been no crashes or other issues, I ran DIAGNOSE from > Valentina Studio. VS reported "problems found" at the end, but the actual > details showed no issues. After reindexing, there were no problems found. > - The original import file was 397 MB, and the final Valentina database > files combined to 736 MB. This is size with indexes? > - The 10 minute demo time limit is too annoying and limiting. There should > be NO time limit in the IDE and a 10 minute time limit in compiled apps > only. Yes right. It seems even exists such request in Mantis. Please remind us constantly this point. We need fix it asap I think. Not hard in RB SDK > My conclusion: Even at its slowest, Valentina truly is ridiculously fast. > Even the slowest "like" search took only 10 seconds to search three fields > in 5 million records. By comparison, the SQLite engine that comes with > REAlbasic was too slow to use for this purpose. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From ktekinay at mactechnologies.com Mon Apr 24 12:15:28 2006 From: ktekinay at mactechnologies.com (Kem Tekinay) Date: Mon Apr 24 11:15:33 2006 Subject: Stress tests In-Reply-To: Message-ID: On 4/24/06 2:42 AM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > Data-On-Demand ListBox should display 1000 and 1000000 records in the same > time. You are absolutely right, and now it does. In fact, it now displays 5 million rows in about 1-2 ticks. Fast enough to keep up with Valentina, I'd say. :-) >> - Sorting data on an indexed field took about 10 seconds on my dual-2.5 GHz >> PowerMac G5, but the sort was incorrect. That is, in what should have been a >> simple alphabetical sort, the first row started with a "D" when there were >> "A"'s available. Reindexing with Valentina Studio solved that problem. > > And time still 10 sec? > > Note, FIRST sorting on a field can be much slower than next sorting. > So try do SECOND the same sorting. It takes longer the second time. About 7.5 seconds for the first sort, but around 11 seconds for the second one. >> - While I was running these tests, Valentina did something that caused a lot >> of thrashing and that particular search took MUCH longer. > > What search you mean here? LIKE ? Unfortunately, I didn't pay attention and can't reproduce it. >> - The original import file was 397 MB, and the final Valentina database >> files combined to 736 MB. > > This is size with indexes? Yes. __________________________________________________________________________ Kem Tekinay (212) 201-1465 MacTechnologies Consulting Fax (914) 242-7294 545 Eighth Avenue, Suite 401 Pager (917) 491-5546 New York, New York 10018 http://www.mactechnologies.com To join the MacTechnologies Consulting mailing list, send an e-mail to: mactechnologies_consulting-subscribe@yahoogroups.com From ktekinay at mactechnologies.com Mon Apr 24 12:19:11 2006 From: ktekinay at mactechnologies.com (Kem Tekinay) Date: Mon Apr 24 11:19:16 2006 Subject: Stress tests In-Reply-To: Message-ID: On 4/24/06 2:49 AM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >> - While I was running these tests, Valentina did something that caused a lot >> of thrashing and that particular search took MUCH longer. > > What search you mean here? LIKE ? It just happened again, and it was a LIKE search. 41 seconds to search, 10 seconds to run another LIKE search. __________________________________________________________________________ Kem Tekinay (212) 201-1465 MacTechnologies Consulting Fax (914) 242-7294 545 Eighth Avenue, Suite 401 Pager (917) 491-5546 New York, New York 10018 http://www.mactechnologies.com To join the MacTechnologies Consulting mailing list, send an e-mail to: mactechnologies_consulting-subscribe@yahoogroups.com From fitzbew at nc.rr.com Mon Apr 24 12:34:52 2006 From: fitzbew at nc.rr.com (Russ Tyndall) Date: Mon Apr 24 11:34:58 2006 Subject: Stress tests In-Reply-To: Message-ID: On 4/24/06 12:37 AM, "Kem Tekinay" wrote: > My conclusion: Even at its slowest, Valentina truly is ridiculously fast. I've done no testing at Kem's level, but I've been familiarizing myself with V4RB 2.x and Vserver over the last few weeks. As an exercise, I converted a Valentina 1.x db to 2.x and re-coded an app to work as a client app (although app and db were never intended to be run in such a way!). This app uses a rather badly designed db with 11 tables. Some tables have 30k records, some a few thousand, one table has a million+ records. (Long story.) App runs a horrible query that selects 36 fields from 7 tables, does 6 joins, checks for 18 values using "OR", and sorts on 4 fields. Desktop-based version of app using 1.x took a second or two to run this query. Test query returns 1,000 records. Amazingly, sometimes V4RB/VSRV returns this *client* side 36-field 1k-record cursor to my app on XP 2.5 ghz machine in under 2 seconds! (Vserver is running on X.4.6, DP 800mhz machine.) Even running app on 800mhz G4 X.2.8 iMac, cursor is returned in 3-4 seconds! This is including network transfer! This is on small office network, 3-4 computers behind an off-the-shelf Netgear router. Bottom line: In my environment, Vsrv/V4rb 2.3 is performing close to 1.x desktop-based app! And, this is without any vlinks, or other Valentina speed-enhancing mechanisms. Frankly, I don't even see how this is possible. And compared to most of you, I have poor db skills. If you have not yet added Valentina 2.x (and Vserver!) to your development toolkit, I urge you to take a careful look at these products. So far, I have not even been able to put any strain on Vserver. I have not even been able to get it to show any CPU consumption in Activity Monitor. -- Russ Tyndall Wake Forest, NC P.S.: Paradigma is bundling 5-connection copy of Vserver with 2.x upgrades/new licenses until the end of the month. I am only a customer, I have no other relationship with Paradigma outside of endlessly nagging Ruslan and helping with the docs a little. From sunshine at public.kherson.ua Tue Apr 25 00:19:59 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Apr 24 16:20:07 2006 Subject: Re [V4MD 1.x]: XML dump & load In-Reply-To: <000601c667de$d6d85420$8408fa0a@lexia.int> Message-ID: On 4/24/06 11:36 PM, "Debby Gillespie" wrote: Hi Guys, Just in case I ask on list. May be I am blind... Anybody can see any mistake in the below code? > I am trying to use XML dump and create a new database without corruption. I > have create the xml file with the statement > poVDB.dump( "C:\Yikes\test1.xml", 2 ) > > but I can not create a new database with the xml data loaded. > > According to the documentations that I got from your website, I should use a > statement like > > LoadDump(gMyDataBase, "customers.xml", "newcustomers", 2) > > My statement is > poVDB.loadDump( "C:\Yikes\test.xml","C:\Yikes\LexiaDataManager.dat",2 ) > > I get an error 2 - The system cannot find the file specified. > I have tried many possibilities for the second parameter ( ex: > "C:\Yikes\LexiaDataManager","C:\Yikes","C\Yikes\LexiaDataManager.vdb","C:\Yi > kes\LexiaDataManager.dat",","C:\Yikes\") > > What should I use to avoid the error? I am running v1. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From ktekinay at mactechnologies.com Mon Apr 24 19:29:28 2006 From: ktekinay at mactechnologies.com (Kem Tekinay) Date: Mon Apr 24 18:29:34 2006 Subject: [ANN] Data-On-Demand ListBox 2.0 Message-ID: MacTechnologies Consulting Releases the Data-On-Demand ListBox 2.0; significantly faster; more memory-efficient; more features; SQLite3 example; now requires REALbasic 2005 and later. NEW YORK, NY (April 24, 2006) -- MacTechnologies Consulting is pleased to announce Data-On-Demand ListBox 2.0, an update to the "virtual" ListBox replacement for REALbasic. This version is significantly faster than previous versions, allowing a REALbasic programmer to display millions of rows almost instantly. There are also features that provide finer control during runtime, and new options to allow rows to be added in a tight loop, all while drastically reducing memory requirements. This version requires REALbasic 2005 and later, and includes examples for use with REALbasic's database engine, Valentina and, new for this version, SQLite3 Professional. ABOUT THE DATA-ON-DEMAND LISTBOX: The Data-On-Demand ListBox is a subclass of the native REALbasic ListBox and, as far as the end-user is concerned, will behave in the same way. The key difference for the programmer is that the Data-On-Demand ListBox does not store any data. Rather, it is a "virtual" ListBox that relies on you, the programmer, to provide data, row-by-row, as requested. As a result, the Data-On-Demand ListBox is much faster at populating millions of rows and, because you maintain the data, does not require you to coordinate changes from the data in your database to the ListBox. The Data-On-Demand ListBox requires REALbasic 2005 or later and, because it is written entirely in REALbasic, will work across platforms. It is available as an unrestricted demo (IDE only) with an extensive manual and examples from: Licenses are available for $50 per developer and allow for royalty-free inclusion of the Data-On-Demand ListBox in compiled applications. Site licenses are also available. For more information, MacTechnologies Consulting at . __________________________________________________________________________ Kem Tekinay (212) 201-1465 MacTechnologies Consulting Fax (914) 242-7294 545 Eighth Avenue, Suite 401 Pager (917) 491-5546 New York, New York 10018 http://www.mactechnologies.com To join the MacTechnologies Consulting mailing list, send an e-mail to: mactechnologies_consulting-subscribe@yahoogroups.com From sunshine at public.kherson.ua Wed Apr 26 01:26:22 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Apr 25 17:26:30 2006 Subject: Valentina question, In-Reply-To: <20060425210624.541E8FEAB7@merc.astrocalc.net> Message-ID: On 4/26/06 12:13 AM, "Joakim Schramm" wrote: > Ok I think I got most of it, just need to pounder on which implementasion to > go for, but that's a decision I can take along the way as I test it. > > Just 2 more things or 2 1/2, > > Are the implementation in my program the same, if I go for single client or > client/server, I mainly mean the coding in a general sense? yes > I understand there probably are a few more things to do with a client/server > model. Also, which of the 3 differnet db models valentina offer would you > recommend for VB6 apps? VCOM can use SQL and API ways. VNET also can use Classes way. > I am familiar with the relational model, althoug I mostly just Ah, you ask about DB models... > have worked with M$ Access for desktops, but MySql together with PHP for web > apps - My SQL is a bit rusty though so have to fresh that up. > Tsunami which I use now is not relational in any sense, although it's possible > to create it by own coding which I have done, but it affects performance which > is not good. > The binary link model looks cool, but how hard is it to "catch" and > implement in comparison with relational? Does the coding as such differs > much? One developer have told about binary links: wow! So easy! So powerful! Note, Object-Relational model still IS relational model PLUS something more. You can start with relational model, then start use some Valentina features. > Another thing, currently I am interested in COM to use with VB6 as I think > RB isn't quite ready yet, but my perspective is that it will be in a year or > two, when I plan to ditch VB in favour of it. Well I may get it before to > get warm, but not for my main apps. Anyhow, will it be possible to "replace" > VDN COM with VDN RealBasic when it's time to extend the maintainance or will > I have to cash out another $599 instead of $200 (or what ever these sums > will be then) in such case? It hard plan something and promise for 2 years :) * In worse case you will need just add $199 ADK * but important to note, that with Valentina Server you can use ANY Valentina ADK as client for FREE. i.e. You purchase VDN + COM, but then at any time download V4RB or VPHP and use that ADKs with your Valentina Servers as clients. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 26 20:58:33 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 26 12:58:40 2006 Subject: MacFOH In-Reply-To: <8F822CF6-0C88-4545-8460-A56EBABE4A2F@macfoh.com> Message-ID: On 4/26/06 8:31 PM, "Shaun Wexler" wrote: Hi Shaun, > Is is possible for me to get a copy of the kernel and other libraries > built as a static lib (.a) instead of dylib or framework? Problematic. But why? Reading... > It would simplify things for my particular implementation. > Although I copy macfohd and other executables into the main application's > package for MacFOH and MacFOH Remote, during development I instruct launchd > to use the development-build paths in my Xcode built products folder and > relaunch it upon each build. > > Also, not having to make an Installer bundle and place the components of > Valentina in /usr/lib would allow me to keep the all-in-one aspect of the > MacFOH drag-and-drop install, and also when a user blindly reinstalls their > OS and destroys /usr/ lib, it would not break MacFOH's database functions. ;) Actually all is simpler. 1) when you develop you have VComponents located in /usr/local/lib/VComponents this allow your debug build find and use all Valentina dlls without any problems. Right? 2) WHEN you will be ready to deploy your RELEASE you do 2 simple steps, and of course you can put on script: - copy /usr/local/lib/Vcomponents to yourapp/contents/VComponents - run script which is located in our VComponents folder to change executable path Now you have normal MacOS Application which you can deploy to users by drag and drop. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 26 22:38:28 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 26 14:38:34 2006 Subject: collating multiple databases In-Reply-To: <52D81A6E-5193-4406-B5C7-A2A755E26AAB@macfoh.com> Message-ID: On 4/26/06 9:30 PM, "Shaun Wexler" wrote: Hi Shaun, > Can you describe to me how best to access multiple databases in the client? > > In some cases, MacFOH may need to access several database servers and > disk-based databases simultaneously. > There will be a local cache of the public database, plus caches of any other > servers [such as per-company], as well as a per-host local private database, > and possibly a per-user local private database. > Users will need to SELECT from one-or-many of these databases simultaneously, > and typically will deal with the data as if it were all from one database. > I will have to store any changes made to the cached databases, and then > synchronize all with the real databases whenever the user goes online. I see. Answer is 1) no need to do anything special! 2) note, that when you work with LOCAL and REMOTE database the difference is only how you create that database object: db1 = new Vdatabase() db2 = new Vdatabase() // another local db3 = new Vdatabase( "localhost", "sa", "sa" ) Future any else code work with db1, db2, db3 without any difference. Well exists one more point to keep in mind. If you want to have several databases inside of single connection to Vserver then you need to use Verver class to establish that connection, then create db objects with help of this Vserver object: db3 = new Vdatabase( srv ) db4 = new Vdatabase( srv ) > Also a question; does Valentina use SSL for its socket transactions? Not yet, but it looks to be not big problem. Also note, We use in Valentina Server the ACE framework. Cool framework for development of network apps. You can find it on google. ACE do have SSL support as I remember. > Just a bit of detail regarding encryption will help me understand better. I > have read all the .pdf doc's so far, but I do not recall about its > connections. Btw, we have now in WIKI even more info than PDFs. In nearest weaks I am going finish port to wiki, and drop all PDFs except References. All manuals, tutorials, example guides, faq, tips -- will present in WIKI. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From pete at fxlibrary.co.uk Wed Apr 26 21:10:13 2006 From: pete at fxlibrary.co.uk (Pete Gates) Date: Wed Apr 26 15:05:37 2006 Subject: Problem with 1.11 Message-ID: <444FD3A5.6010303@fxlibrary.co.uk> Hi, I've got a table structure like this (Version 1.11 Valentina): CREATE TABLE system (key String(64,"ASCII") NOT NULL UNIQUE INDEXED, stringdata VarChar(200,"ASCII"), intdata Long, booldata Boolean); I'm doing a rapid modification of 1 row (there are only half a dozen rows in the table) and after several 10s of thousands of updates, access to the database slows to a crawl - only an update a second. Accessing other tables also becomes very slow. Delphi code but you'll get the idea (also as a separate question is there a single 'INSERT OR UPDATE' statement?): var search: CursorRef; begin search := DataBase_SqlSelect(userdb, pchar(format('SELECT * FROM system WHERE key=%s', [QuotedStr(key)])), kServer, kReadWrite, kRandom); if Cursor_GetRecordCount(search) > 0 then begin Field_PutString(Cursor_GetField(search, 'stringdata'), pchar(value.k_string)); Field_PutLong(Cursor_GetField(search, 'intdata'), value.k_int); Field_PutBoolean(Cursor_GetField(search, 'booldata'), byte(value.k_bool)); Cursor_Updaterecord(search); Cursor_Remove(search); end else begin Cursor_Setblank(search); Field_PutString(Cursor_GetField(search, 'key'), pchar(key)); Field_PutString(Cursor_GetField(search, 'stringdata'), pchar(value.k_string)); Field_PutLong(Cursor_GetField(search, 'intdata'), value.k_int); Field_PutBoolean(Cursor_GetField(search, 'booldata'), byte(value.k_bool)); Cursor_Addrecord(search); Cursor_Remove(search); end; DataBase_Flush(userdb); Any ideas? Thanks, Pete Gates From sunshine at public.kherson.ua Wed Apr 26 23:25:02 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 26 15:25:08 2006 Subject: Problem with 1.11 In-Reply-To: <444FD3A5.6010303@fxlibrary.co.uk> Message-ID: On 4/26/06 11:10 PM, "Pete Gates" wrote: Hi Pete, So I assume this is VCOM 1.11, Windows, Delphi. Right? Advice from start. If you need so intensive updates, and IF you do not use and not going to use REMOTE server, then use not SQL but API way. IT will work in TIMES faster. Also I's like to ask: any chance upgrade to VCOM 2 ? With VCOM2 we could test this on our side.. Actually may be with V2 you will not see such behavior.. In your case, please check Process Manager, if RAM is not leaking... > Hi, > I've got a table structure like this (Version 1.11 Valentina): > > CREATE TABLE system > (key String(64,"ASCII") NOT NULL UNIQUE INDEXED, > stringdata VarChar(200,"ASCII"), > intdata Long, > booldata Boolean); > > I'm doing a rapid modification of 1 row (there are only half a dozen > rows in the table) and after several 10s of thousands of updates, access > to the database slows to a crawl - only an update a second. Accessing > other tables also becomes very slow. > > Delphi code but you'll get the idea (also as a separate question is > there a single 'INSERT OR UPDATE' statement?): > > var > search: CursorRef; > begin > search := DataBase_SqlSelect(userdb, pchar(format('SELECT * FROM > system WHERE key=%s', [QuotedStr(key)])), kServer, kReadWrite, kRandom); > if Cursor_GetRecordCount(search) > 0 then > begin > Field_PutString(Cursor_GetField(search, 'stringdata'), > pchar(value.k_string)); > Field_PutLong(Cursor_GetField(search, 'intdata'), value.k_int); > Field_PutBoolean(Cursor_GetField(search, 'booldata'), > byte(value.k_bool)); > Cursor_Updaterecord(search); > Cursor_Remove(search); > end else > begin > Cursor_Setblank(search); > Field_PutString(Cursor_GetField(search, 'key'), pchar(key)); > Field_PutString(Cursor_GetField(search, 'stringdata'), > pchar(value.k_string)); > Field_PutLong(Cursor_GetField(search, 'intdata'), value.k_int); > Field_PutBoolean(Cursor_GetField(search, 'booldata'), > byte(value.k_bool)); > Cursor_Addrecord(search); > Cursor_Remove(search); > end; > DataBase_Flush(userdb); > > Any ideas? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Wed Apr 26 23:48:42 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 26 15:48:47 2006 Subject: collating multiple databases In-Reply-To: Message-ID: On 4/26/06 11:30 PM, "Shaun Wexler" wrote: >> db3 = new Vdatabase( srv ) >> db4 = new Vdatabase( srv ) > > Is there an easy way to execute the same search simultaneously across > multiple databases, and retrieve one set of filtered results? > Or does this require post-processing to filter the result sets from each > database? Let's clarify... To multiple databases where? * on the same HDD under the same Vserver? or * located on different Vservers? I think you CAN self run queries to REMOTE dbs in separate threads. So it is up to you. Queries to Vserver also can be done in separate threads, but result will depend on how it schedule work... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From pete at fxlibrary.co.uk Wed Apr 26 22:03:31 2006 From: pete at fxlibrary.co.uk (Pete Gates) Date: Wed Apr 26 16:00:12 2006 Subject: Problem with 1.11 Message-ID: <444FE023.9070802@fxlibrary.co.uk> ** >Hi Pete, > >So I assume this is VCOM 1.11, Windows, Delphi. Right? No, it's the C DLL being called from Delphi. >Advice from start. If you need so intensive updates, and IF you do not use >and not going to use REMOTE server, then use not SQL but API way. IT will >work in TIMES faster. Where is the API way described, I can only find SQL info? How can I do a search via API? I'm hoping I've got it fixed, it looks like a cursor wasn't being released - hopefully! Thanks, Pete >/ Hi, />/ I've got a table structure like this (Version 1.11 Valentina): />/ />/ CREATE TABLE system />/ (key String(64,"ASCII") NOT NULL UNIQUE INDEXED, />/ stringdata VarChar(200,"ASCII"), />/ intdata Long, />/ booldata Boolean); />/ />/ I'm doing a rapid modification of 1 row (there are only half a dozen />/ rows in the table) and after several 10s of thousands of updates, access />/ to the database slows to a crawl - only an update a second. Accessing />/ other tables also becomes very slow. />/ />/ Delphi code but you'll get the idea (also as a separate question is />/ there a single 'INSERT OR UPDATE' statement?): />/ />/ var />/ search: CursorRef; />/ begin />/ search := DataBase_SqlSelect(userdb, pchar(format('SELECT * FROM />/ system WHERE key=%s', [QuotedStr(key)])), kServer, kReadWrite, kRandom); />/ if Cursor_GetRecordCount(search) > 0 then />/ begin />/ Field_PutString(Cursor_GetField(search, 'stringdata'), />/ pchar(value.k_string)); />/ Field_PutLong(Cursor_GetField(search, 'intdata'), value.k_int); />/ Field_PutBoolean(Cursor_GetField(search, 'booldata'), />/ byte(value.k_bool)); />/ Cursor_Updaterecord(search); />/ Cursor_Remove(search); />/ end else />/ begin />/ Cursor_Setblank(search); />/ Field_PutString(Cursor_GetField(search, 'key'), pchar(key)); />/ Field_PutString(Cursor_GetField(search, 'stringdata'), />/ pchar(value.k_string)); />/ Field_PutLong(Cursor_GetField(search, 'intdata'), value.k_int); />/ Field_PutBoolean(Cursor_GetField(search, 'booldata'), />/ byte(value.k_bool)); />/ Cursor_Addrecord(search); />/ Cursor_Remove(search); />/ end; />/ DataBase_Flush(userdb); />/ />/ Any ideas? / From sunshine at public.kherson.ua Thu Apr 27 00:10:08 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 26 16:10:17 2006 Subject: Problem with 1.11 In-Reply-To: <444FE023.9070802@fxlibrary.co.uk> Message-ID: On 4/27/06 12:03 AM, "Pete Gates" wrote: Hi Pete, >> So I assume this is VCOM 1.11, Windows, Delphi. Right? > No, it's the C DLL being called from Delphi. Aha. >> Advice from start. If you need so intensive updates, and IF you do not use >> and not going to use REMOTE server, then use not SQL but API way. IT will >> work in TIMES faster. > Where is the API way described, I can only find SQL info? How can I do a > search via API? Check if C SDK 1.x have such methods as Table_AddRecord() Table_UpdateRecord() > I'm hoping I've got it fixed, it looks like a cursor wasn't being released - > hopefully! This is strong reason ;-) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Thu Apr 27 00:15:09 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 26 16:15:15 2006 Subject: collating multiple databases In-Reply-To: Message-ID: On 4/26/06 11:56 PM, "Shaun Wexler" wrote: >> Let's clarify... To multiple databases where? >> >> * on the same HDD under the same Vserver? >> or >> * located on different Vservers? >> >> I think you CAN self run queries to REMOTE dbs in separate threads. >> So it is >> up to you. >> >> Queries to Vserver also can be done in separate threads, but result >> will >> depend on how it schedule work... > > A user will have some search criteria executed on the client app. > The client app connects to 1 or more servers, one of which might be > the localhost server process, and the local server might have 1 or > more different databases open (public-cache, company-cache, private/ > local, etc). Okay I see. > Does Valentina require a separate thread for each > query, and block it waiting on results?!! Yes of course. What sense go forward if you do not have cursor as result of query. Or what sense move forward if you do not know yet if your insert/update is successful. May be it will fail because you put not unique value? So you cannot chose where to move until you get response. > If so, then this is a definite area we can improve upon. I afraid no. > Everything in MacFOH is designed to be async. I think DBMS is other task. > The GUI is never blocked waiting on an operation, nor > is any other ongoing task. This is one reason I think it will be of > great benefit to have source code access, if not to modify, then to > know what is going on and work around it. You can put GUI into one thread and not block it by waiting response from different servers, which are executed in different threads. > I should get a System Profile from your own Mac Dual-G4, etc, and I > could show you how fast and smoothly MacFOH runs! I have DUAL G5/2.0 -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From pete at fxlibrary.co.uk Wed Apr 26 22:30:15 2006 From: pete at fxlibrary.co.uk (Pete Gates) Date: Wed Apr 26 16:28:47 2006 Subject: Problem with 1.11 Message-ID: <444FE667.4090003@fxlibrary.co.uk> >>/ So I assume this is VCOM 1.11, Windows, Delphi. Right? />/ No, it's the C DLL being called from Delphi. / >Aha. >>/ Advice from start. If you need so intensive updates, and IF you do not use />>/ and not going to use REMOTE server, then use not SQL but API way. IT will />>/ work in TIMES faster. / >/ Where is the API way described, I can only find SQL info? How can I do a />/ search via API? / >Check if C SDK 1.x have such methods as > Table_AddRecord() > Table_UpdateRecord() No, nothing in any PDF or .h header file like that! >/ I'm hoping I've got it fixed, it looks like a cursor wasn't being released - />/ hopefully! / >This is strong reason ;-) Unfortunately wasn't that, it's still doing it. From sunshine at public.kherson.ua Thu Apr 27 00:37:04 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Apr 26 16:37:11 2006 Subject: Problem with 1.11 In-Reply-To: <444FE667.4090003@fxlibrary.co.uk> Message-ID: On 4/27/06 12:30 AM, "Pete Gates" wrote: >> Check if C SDK 1.x have such methods as > >> Table_AddRecord() >> Table_UpdateRecord() > No, nothing in any PDF or .h header file like that! Then it present only in V2 of Valentina In 1.x was Cursor_AddRecord(), Cursor_UpdateRecord(), But still SQL is required to build cursor itself.. >> / I'm hoping I've got it fixed, it looks like a cursor wasn't being released >> - > />/ hopefully! > / >> This is strong reason ;-) > Unfortunately wasn't that, it's still doing it. What about to use VCOM2 with Delphi? We have developers that use it about 8 months. And it seems VCOM better fit to Delphi than C library. You will get T-classes which delphi self build for VCOM2. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From christer at ljusaideer.se Thu Apr 27 00:01:20 2006 From: christer at ljusaideer.se (Christer Olsson) Date: Wed Apr 26 17:01:28 2006 Subject: collating multiple databases In-Reply-To: References: Message-ID: <94D61945-5F0C-4F14-927D-BF8668582492@ljusaideer.se> >> Also a question; does Valentina use SSL for its socket transactions? > > Not yet, but it looks to be not big problem. I'm really looking forward to this! From sunshine at public.kherson.ua Thu Apr 27 15:30:39 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 27 07:30:45 2006 Subject: RB 2006 r2 Windows + V4RB 2.3 ? In-Reply-To: <00a001c669f5$a0edc980$0301a8c0@internet> Message-ID: On 4/27/06 3:25 PM, "Gunnar Jacobsen" wrote: > hmmm you spell the link wrong > http://www.valentina-db.com/dokuwiki/doku.php?id=paradigma:public:en:documenta > tion:vkernel:faqs:faqs > > and none of the question answer my question. I have the path to the > installation on my computer. Right. The LAST faq on that page suggest try to copy this path to FORWARD. Sometimes Windows glitches with logn PATH. We have see that this trick hep about 5 times. > Why are version 1 not asking for this mfunc.dll but version2 > It is working fine with version1 and if I only remove the plugins from > plugins RB it is working fine with RB demo but only by adding your plugins > to RB plugins dir RB stop compiling any project and come with the same > errror. > > Have you try your product with RB 2006 2qrt. the newest version? I think somebody from our team - yes. Lets ask on Valentina list. Guys, Anybody use RB 2006 r2 Windows + V4RB 2.3 ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From martin at kinetix.co.uk Thu Apr 27 14:05:15 2006 From: martin at kinetix.co.uk (Martin Wright) Date: Thu Apr 27 08:05:24 2006 Subject: [V4MD] LIKE search In-Reply-To: Message-ID: <20060427130521.867114195C4@edison.macserve.net> Hi Using V1 in Director: Is there any reson why: "WHERE (content_xml LIKE 'physicians\Z' no_case)" Returns no results but: "WHERE (content_xml LIKE 'physicians' no_case)" Returns many results of the word 'physicians'. The content_xml field is a text field and is indexed by word. Martin From sunshine at public.kherson.ua Thu Apr 27 16:37:34 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 27 08:37:41 2006 Subject: Ruby/Valentina In-Reply-To: <20060427114050.2594@localhost> Message-ID: On 4/27/06 2:40 PM, "oerwie" wrote: Hi All, >> * btw, I have not yet mention Inheritance. >> >> So again in short, Valentina Database model will have >> Tables = Classes >> Instances = Records >> >> Property of Class >> properties of instances. >> >> Link between Classes >> few kinds of links between records. >> >> Inheritance of Classes >> this bring many hidden issues: >> - hidden link 1 : 1 of IS-A kind >> - hidden mechanism of search on few tables >> - hidden mechanism to use links of inherited classes. >> >> Collections (?) >> Different kinds of links can be considered as >> Collections of objects. This may fit nice to ODMG points of view. >> >> What is the best, is that having all this Valentina still will be in >> fundamental based on relational tables...Well Links only are other >> structures... >> >> Deal is that I do not like OO DBMS ideas about how they store information. >> NOT EFFECTIVE! Although they claim reverse. Even child can see that their >> way to store objects may work good only on stream access to objects. >> > Although the way an OO DBMS is accessed, is mostly a combination of > query (construct a basic object graph) and stream (keep feeding the > graph with data as the programmer navigates through it). It's a little > different then the relational way (just send a query and return the > data). yes > So there is optimisation possible for the navigation of object > graphs, and this is what you are doing with the link abstractions, but > this without sacrificing the query speed and the relational model. Right? In general yes, right. But all is more interesting. We bring new things NOT only on high level. For example mature DB Vendors like Oracle and MS do add some Object wrappers to own dbs, but any such OO feature is based in deep on some TABLE(s) We are not afraid to add in fundament something totally new. You see, Links they bring few benefits in few areas: - more effective disk storage - more simple and effective SQL - ability to introduce new SQL functions - more natural and simple database structure - more simple and effective low level API to navigate between linked records. - ... ------------------------------------ Let me repeat few points. * Valentina SUPPORT relational model 100% we have PK and FK, identity, tables, fields, indexes. we can do SQL with joins, group by, .. * Internally, Valentina keep tables not on pages like do all other, but in separate logical format. * Valentina add some OO features such as: - RecID - each table have it. Eat ZERO disk space! in wiki this is shown that others can eat Mbs only for this field and its index. * OID - follow ODMG standard. Again eat ZERO on disk! * ObjectPtr - similar to FK of ULONG type. But work with RecID only. so it is simpler than FK. * Binary Link -- attention. THIS IS NOT A TABLE !!! it is other structure on disk. *** The fact that we have such kind of link already more Valentina from the Relational model. We say: that WE EXTEND Relational model by a new abstraction. ------------------------------------ And as I have told, in Valentina we offer to developer few way to work with his database. So he can choose or even mix them in the same time: 1) SQL way - normal way for current DBMS world. 2) API way and its kind - Class way. API way give you ability do navigation by graph of records very effective. But as you have correctly point, it is not stream access, but normal random access. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Thu Apr 27 16:41:49 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 27 08:41:54 2006 Subject: [V4MD] LIKE search In-Reply-To: <20060427130521.867114195C4@edison.macserve.net> Message-ID: On 4/27/06 4:05 PM, "Martin Wright" wrote: Hi Martin, > Using V1 in Director: > > Is there any reson why: > "WHERE (content_xml LIKE 'physicians\Z' no_case)" > Returns no results but: \Z means that word is AT END OF LINE, right ? May be you do not have any such word 'physicians' ? > "WHERE (content_xml LIKE 'physicians' no_case)" > Returns many results of the word 'physicians'. > > The content_xml field is a text field and is indexed by word. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From martin at kinetix.co.uk Thu Apr 27 15:18:21 2006 From: martin at kinetix.co.uk (Martin Wright) Date: Thu Apr 27 09:18:31 2006 Subject: [V4MD] LIKE search In-Reply-To: Message-ID: <20060427141828.8471141961B@edison.macserve.net> Hi There many instances of the word 'physicians' but not necessarily at the end of a line, simply within the text. Maybe I should explain what I need to do. The field I need to search is a text field which is indexed by word. The user can type in the search term. The search much search for exact matches of the word by default. For example, searching for 'physicians' will find some results, whereas 'physici' should not find any results. If the user wishes, they can use a wildcard in the search, such as 'physic*', which would return many results. Is this possible with V1? Martin > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 27 April 2006 14:42 > To: valentina@lists.macserve.net > Subject: Re: [V4MD] LIKE search > > On 4/27/06 4:05 PM, "Martin Wright" wrote: > > Hi Martin, > > > Using V1 in Director: > > > > Is there any reson why: > > "WHERE (content_xml LIKE 'physicians\Z' no_case)" > > Returns no results but: > > \Z means that word is AT END OF LINE, right ? > > May be you do not have any such word 'physicians' ? > > > "WHERE (content_xml LIKE 'physicians' no_case)" > > Returns many results of the word 'physicians'. > > > > The content_xml field is a text field and is indexed by word. > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > From sunshine at public.kherson.ua Thu Apr 27 17:27:36 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 27 09:27:40 2006 Subject: [V4MD] LIKE search In-Reply-To: <20060427141828.8471141961B@edison.macserve.net> Message-ID: On 4/27/06 5:18 PM, "Martin Wright" wrote: > Hi > > There many instances of the word 'physicians' but not necessarily at the end > of a line, simply within the text. > > Maybe I should explain what I need to do. > > The field I need to search is a text field which is indexed by word. > The user can type in the search term. The search much search for exact matches > of the word by default. For example, searching for > 'physicians' will find some results, whereas 'physici' should not find any > results. > > If the user wishes, they can use a wildcard in the search, such as 'physic*', > which would return many results. > > Is this possible with V1? I believe that in REGEX exists anchors for WORD boundary. it seems this is \b Please check file Syntax of RegEx in your V4MD archive -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From martin at kinetix.co.uk Thu Apr 27 17:49:41 2006 From: martin at kinetix.co.uk (Martin Wright) Date: Thu Apr 27 11:49:54 2006 Subject: [V4MD] LIKE search In-Reply-To: Message-ID: <20060427164949.B36614196AC@edison.macserve.net> I'm not too familiar with RegEx. Is this the only way to do wildcard searches? If so, where can I find some examples? I've given example of the current SQL below. SELECT * FROM tbl_subsections, tbl_chapters WHERE (((tbl_subsections.subsection_name <> 'ss1') AND (tbl_subsections.subsection_type <> 'bibliography')) AND ((tbl_subsections.content_xml LIKE 'dermis' no_case))) ORDER BY tbl_chapters.chapter_num, tbl_subsections.heading_txt I need to search for the exact term 'dermis' unless the user types in 'dermis*'. Thanks Martin > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 27 April 2006 15:28 > To: valentina@lists.macserve.net > Subject: Re: [V4MD] LIKE search > > On 4/27/06 5:18 PM, "Martin Wright" wrote: > > > Hi > > > > There many instances of the word 'physicians' but not > necessarily at > > the end of a line, simply within the text. > > > > Maybe I should explain what I need to do. > > > > The field I need to search is a text field which is indexed by word. > > The user can type in the search term. The search much > search for exact > > matches of the word by default. For example, searching for > > 'physicians' will find some results, whereas 'physici' > should not find > > any results. > > > > If the user wishes, they can use a wildcard in the search, such as > > 'physic*', which would return many results. > > > > Is this possible with V1? > > I believe that in REGEX exists anchors for WORD boundary. > > it seems this is \b > > Please check file Syntax of RegEx in your V4MD archive > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > From sunshine at public.kherson.ua Thu Apr 27 22:29:03 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 27 14:29:10 2006 Subject: [V4MD] LIKE search In-Reply-To: <20060427164949.B36614196AC@edison.macserve.net> Message-ID: On 4/27/06 7:49 PM, "Martin Wright" wrote: > I'm not too familiar with RegEx. Is this the only way to do wildcard searches? > If so, where can I find some examples? > I've given example of the current SQL below. > > > SELECT * > FROM tbl_subsections, tbl_chapters > WHERE (((tbl_subsections.subsection_name <> 'ss1') > AND (tbl_subsections.subsection_type <> 'bibliography')) > AND ((tbl_subsections.content_xml LIKE 'dermis' no_case))) > ORDER BY tbl_chapters.chapter_num, tbl_subsections.heading_txt > > I need to search for the exact term 'dermis' unless the user types in > 'dermis*'. But then most easy way AND ((tbl_subsections.content_xml = 'dermis' ))) Is this okay? Although you also do no_case ... In Valentina 2 you'd simple set collation to ignore case. ------------- If think about LIKE: Note, in V1 LIKE (which in fact is REGEX) ignore index REGEX SYNTAX: \b matches the empty string at the beginning or end of a word - anchoring the pattern to any word boundary. AND ((tbl_subsections.content_xml LIKE '\bdermis\b' no_case ))) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Thu Apr 27 22:37:42 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 27 14:37:49 2006 Subject: Valentina question In-Reply-To: <20060427150530.8AC702886AA@merc.astrocalc.net> Message-ID: On 4/27/06 6:11 PM, "Joakim Schramm" wrote: > Ruslan, > > I have now installed COM ADK and had a first look, an emediate question that > comes to my mind is, which files do I need to include in my distributed > program? Describe in the section Deployment of VCOM docs > The document tell me to bundle the whole Vcomponents folder, that's > almost 15mb of dll's or 3 times as much as whole my program! Right > Ok I can compress it down to about 3.5mb in my setup program - but it will > still increase the download size of my program with 100% > > Size might not be of that big matter but it still raises the question if my > program really need all this? Also, still I haven't installed the server > component... > > I list the files here and maybe you could tell in which conditions each file > is needed. > > \VCOM_2\VCOM.DLL > > \VComponents_Win_VC\icudt30.dll > \VComponents_Win_VC\icuin30.dll > \VComponents_Win_VC\icuio30.dll > \VComponents_Win_VC\icuuc30.dll > \VComponents_Win_VC\Kernel_Win32_Release.dll > \VComponents_Win_VC\Vclient_Win32_Release_VC.dll > \VComponents_Win_VC\VDK_VC.dll > \VComponents_Win_VC\Vshared_Win32_Release_VC.dll You can skip only VDK_VC 1.x engine Vclient if you work LOCAL > I understand this is dementioned to drive big database applications, well my > program is not of that format... It basically make use of 2 databases, of > which one is large (well maybe not in your messures) holding approx 220 000 > main records, with approx 500 000 "sub" records in second table as I have it > structured now. The second one is a rather small one were users store > records created from work they do, it's something like an "employee" > database. The result of a lookup in the big db is used as a part of what is > stored here. > The question I have to put to myself now is if I really need all this, if I > really need a client/server model, if it wouldn't make my program > unnecessarily complicated? At least with c/s as I understand the server will > install as a service on XP/NT4/Win2000? And what about Win98/ME? I have some > users still running these as well. You need decide parameters of your app. Not me. I can also mention that we consider "Valentina Light". May be in few near months we will get such option. It is expected to be about 3-5 MB -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bmurf at comcast.net Thu Apr 27 15:18:40 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Thu Apr 27 15:18:47 2006 Subject: Setting VCursor to nil Message-ID: <6BB95506-1142-4F86-8F22-5C4B999C22A9@comcast.net> Page 138 in the V4RB reference it says, "Note: When finished with a cursor, you must assign it the value nil to destroy it and free memory." Ordinarily under REALbasic you do not have to set items to nil to free them because when they go out of scope they are freed automatically. Can you clarify why this is stated for VCursor. Is there a problem with the plugin that requires us to set it to nil? Does this apply to creating cursors using the SQLSelect method? From sunshine at public.kherson.ua Fri Apr 28 00:36:37 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Apr 27 16:36:42 2006 Subject: Setting VCursor to nil In-Reply-To: <6BB95506-1142-4F86-8F22-5C4B999C22A9@comcast.net> Message-ID: On 4/27/06 11:18 PM, "Brendan Murphy" wrote: Hi Brendan, > Page 138 in the V4RB reference it says, "Note: When finished with > a cursor, you must assign it the value nil to destroy it and free > memory." > Ordinarily under REALbasic you do not have to set items > to nil to free them because when they go out of scope they are > freed automatically. Right. > Can you clarify why this is stated for VCursor. Is there a problem with the > plugin that requires us to set it to nil? > > Does this apply to creating cursors using the SQLSelect method? Yes It is mentioned because exists MORE complex case-sensitive than just exit from function. You can for example have big function, and you MAY KNOW that starting from middle of this function you do not need cursor any more. So it is GOOD IDEA to release it asap. Or even more complex - inside of single function you build few cursors. This is why it is mentioned For simple case YES you can do not null. But simple case today tomorrow can become complex...and you may miss this moment. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bkeeney at everestkc.net Thu Apr 27 18:07:57 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Thu Apr 27 18:08:14 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <20051104190019.407B23BEF62@edison.macserve.net> References: <20051104190019.407B23BEF62@edison.macserve.net> Message-ID: Sorry I am very dense, but this is driving me crazy. I am storing a picture using this code using API way: if me.RecordExists(myID) then me.RecID = myID me.mPicture.WritePictureAs myPic, EVPictType.kUnknown, 100 // <-HARD CRASH me.UpdateRecord me.Flush end I get a hard crash as soon as the WritePictureAs method is called. I *know* 100% that myPic is valid picture because I can view it in RB debugger. Here's the crash log: Thread 0 Crashed: 0 Kernel_Carbon_Final.shlb 0x059dbad4 Write__Q23fbl24FileIterator_Cached_BaseFPCcUl + 188 1 Kernel_Carbon_Final.shlb 0x05ab9b24 Write__Q23fbl15LogicalFile_ImpFPCcUl + 28 2 Kernel_Carbon_Final.shlb 0x05d18fd4 WriteRecord__Q23fbl11SegmentFileFPCcUlUl + 256 3 Kernel_Carbon_Final.shlb 0x05d20cac WriteData__Q23fbl5VBlobFPCcUl + 336 4 Kernel_Carbon_Final.shlb 0x05d6e8c4 WritePictureAs__Q23fbl8VPictureFPP7PictureQ23fbl8PictTypeUsUl + 188 5 Plugin 0x05871b7c Picture_WriteAs__FP16REALobjectStructP17REALpictureStructii + 232 6 MyApp.debug 0x007da090 VPicture.WritePictureAs% ooi4i4 + 112 The end user can pick any graphic file that can be displayed on the Mac and put it into the database. What am I doing wrong and how do I fix it? Why the hard crash? Shouldn't the plugin fail gracefully and generate VException rather than die a horrible death? version 2.2 (client won't go to 2.3). RB 2006 r1. Mac OS X Tiger. From sunshine at public.kherson.ua Fri Apr 28 10:48:36 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 02:48:44 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: Message-ID: On 4/28/06 2:07 AM, "Bob Keeney" wrote: Hi Bob, > Sorry I am very dense, but this is driving me crazy. I am storing a > picture using this code using API way: > > if me.RecordExists(myID) then > me.RecID = myID > me.mPicture.WritePictureAs myPic, EVPictType.kUnknown, 100 // > <-HARD CRASH > me.UpdateRecord > me.Flush > end > > I get a hard crash as soon as the WritePictureAs method is called. I > *know* 100% that myPic is valid picture because I can view it in RB > debugger. Mistake is: you should specify not EVPictType.kUnknown, but some specific type. > Here's the crash log: > Thread 0 Crashed: > 0 Kernel_Carbon_Final.shlb 0x059dbad4 > Write__Q23fbl24FileIterator_Cached_BaseFPCcUl + 188 > 1 Kernel_Carbon_Final.shlb 0x05ab9b24 > Write__Q23fbl15LogicalFile_ImpFPCcUl + 28 > 2 Kernel_Carbon_Final.shlb 0x05d18fd4 > WriteRecord__Q23fbl11SegmentFileFPCcUlUl + 256 > 3 Kernel_Carbon_Final.shlb 0x05d20cac > WriteData__Q23fbl5VBlobFPCcUl + 336 > 4 Kernel_Carbon_Final.shlb 0x05d6e8c4 > WritePictureAs__Q23fbl8VPictureFPP7PictureQ23fbl8PictTypeUsUl + 188 > 5 Plugin 0x05871b7c > Picture_WriteAs__FP16REALobjectStructP17REALpictureStructii + 232 > 6 MyApp.debug 0x007da090 VPicture.WritePictureAs% > ooi4i4 + 112 > > > The end user can pick any graphic file that can be displayed on the > Mac and put it into the database. What am I doing wrong and how do I > fix it? > > Why the hard crash? Shouldn't the plugin fail gracefully and > generate VException rather than die a horrible death? > > version 2.2 (client won't go to 2.3). RB 2006 r1. Mac OS X Tiger. Yes, we will check this crash -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From bkeeney at everestkc.net Fri Apr 28 07:51:50 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Fri Apr 28 07:51:55 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <20060427192919.58625419761@edison.macserve.net> References: <20060427192919.58625419761@edison.macserve.net> Message-ID: < Mistake is: you should specify not EVPictType.kUnknown, but some specific < type. Then why is it even available for use? Seems kind of dumb to keep it. Right? From sunshine at public.kherson.ua Fri Apr 28 16:18:35 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 08:18:42 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: Message-ID: On 4/28/06 3:51 PM, "Bob Keeney" wrote: > < Mistake is: you should specify not EVPictType.kUnknown, but some > specific > < type. > > Then why is it even available for use? Seems kind of dumb to keep > it. Right? Yes and actually PLUGIN can return this. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Fri Apr 28 19:10:58 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 12:11:03 2006 Subject: Table structure? Message-ID: <20060428170430.9E27F7E6E9B@merc.astrocalc.net> Hi, I would like to ask for advice in a db/table structure question, if my idea I have about would matter in any sense to Valentina (VCOM). I want to set up a db to import a lot of data from it's current source and have decided to go for binary links right away although it's completely new to me. It looks briliant though at least on paper. Anyhow, my dataset basically consist of 2 parts, now stored in 2 tables. The first table has about 220 000 records and the second table has about 500 000 records. As my current datasourse isn't relational in a true sense I link that bit in code now and the second table serve as something like a "lookup" table for items of the first table. But each item in T1 only look for data within a limited range of the whole data in T2, and several items can look for same data so one could say it's something of a M:M relation. Important to mention as well is that the T2 data need to be in a certain sequencial order, either in the db or as it's returned for evaluation (like in an array as it's returned now). So my question is; I can devide the 500 000 records in to about 300 "logical" groups related to certain records in T1, would it be an idea to split up this data in say 300 tables to easily exclude most of the irrelative data to lookup in? The lookup data is really sort of a DateTime value in 16 character string where each DT has a result value in a second field, were DT mark a boundury to set a value. I was thinking of using IVDateTime but the examples in the docs (at least VCOM) are really sparse so not sure if this would do? Instead of just a single line or two shoing how to asign and read a value, it would be really bice (and helpful) if the was at least a small piece of code showing a typical context to use it together with other calls. It exists in a few places, but far to few. I know, you are probably aware of it, but ponting it out anyway. The documentation is also a bit contradictional on this, while the VCOM doc show you can set date format, kernel doc say it's depends on system settings (internal storage), what matter to me of course is what I get when need to use this value in my other code? Just to give as an example, my data looks something like this with | as field separator 19971026030000|-1 19980329020000|-2 19981025030000|-1 19990328020000|-2 19991031030000|-1 20000326020000|-2 20001029030000|-1 Lets say if I make a lookup using the value 19990429073000 (29 April 1999 07:30:00) it will return me -2 as it's more then 19990328020000 but not as much as 19991031030000, but it's really not the comparison I am after here but the best way to structure the data. The above is just a small shunk from one set of about 2000, which is further grouped into about 300 subsets. If I can use DateTime it would be great as it would cut the needed storage space with about 50% if I have understood it right, or even more if the string is UTF-16. Question is just if I can effectively make a lookup with all the data in one table (I need to first pick the correct group of 300, then the correct subgroup holding the data above and determine were in the range the the given parrameter fits)? Maybe this was all just too many words confusiong the whole thing, but... I am just asking Valentina up for the first dance ;-) Joakim From bmurf at comcast.net Fri Apr 28 13:31:16 2006 From: bmurf at comcast.net (Brendan Murphy) Date: Fri Apr 28 13:31:26 2006 Subject: Trimming the icudt30 file Message-ID: <6D93389C-B4F5-404D-A98C-DD062D424D05@comcast.net> In the Valentina Kernal manual it states on page 19... > Also part of ICU is file icudt30l.dat. It is on default is quite > big (about 8 MB). This file contains information about all Locales > of the world. It is possible to reduce this file to 3.5 MB if to > remove not needed Locales. How does one go about trimming this file? From bkeeney at everestkc.net Fri Apr 28 13:42:14 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Fri Apr 28 13:42:20 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <20060428183133.4750D419D1A@edison.macserve.net> References: <20060428183133.4750D419D1A@edison.macserve.net> Message-ID: > >> < Mistake is: you should specify not EVPictType.kUnknown, but some >> specific >> < type. >> >> Then why is it even available for use? Seems kind of dumb to keep >> it. Right? > > Yes and actually PLUGIN can return this. This does not make sense. Plugin should NOT have this constant if it should not be used. Take it and remove from documentation. Throw exception when used, etc. From bkeeney at everestkc.net Fri Apr 28 14:22:42 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Fri Apr 28 14:22:48 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <20060428183133.4750D419D1A@edison.macserve.net> References: <20060428183133.4750D419D1A@edison.macserve.net> Message-ID: <3D2288E0-66AE-421D-B007-28BE47F60D48@everestkc.net> I ran the same graphic (jpg) using all the possible variables. Here are the results. me.mPicture.WritePictureAs myPic, EVPictType.kJPG, 100 //CRASH me.mPicture.WritePictureAs myPic, EVPictType.kMacPict, 100 //CRASH me.mPicture.WritePictureAs myPic, EVPictType.kTIFF, 100 //CRASH me.mPicture.WritePictureAs myPic, EVPictType.kWinDIB, 100 //CRASH So regardless of PictType I get hard crash. Now. Using Field_Picture api example using different external graphics (so far I've tried pict and jpg and png) always get same result (crash). This has been issue since July of 2005. Bug ID: 0000987 From sunshine at public.kherson.ua Fri Apr 28 22:59:06 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 14:59:12 2006 Subject: Table structure? In-Reply-To: <20060428170430.9E27F7E6E9B@merc.astrocalc.net> Message-ID: On 4/28/06 8:10 PM, "Joakim Schramm" wrote: Hi Joakim, > I would like to ask for advice in a db/table structure question, if my idea > I have about would matter in any sense to Valentina (VCOM). > > I want to set up a db to import a lot of data from it's current source and > have decided to go for binary links right away although it's completely new > to me. It looks briliant though at least on paper. > > Anyhow, my dataset basically consist of 2 parts, now stored in 2 tables. The > first table has about 220 000 records and the second table has about 500 000 > records. As my current datasourse isn't relational in a true sense I link > that bit in code now and the second table serve as something like a "lookup" > table for items of the first table. But each item in T1 only look for data > within a limited range of the whole data in T2, and several items can look > for same data so one could say it's something of a M:M relation. Important > to mention as well is that the T2 data need to be in a certain sequencial > order, either in the db or as it's returned for evaluation (like in an array > as it's returned now). > > So my question is; I can devide the 500 000 records in to about 300 > "logical" groups related to certain records in T1, would it be an idea to > split up this data in say 300 tables to easily exclude most of the > irrelative data to lookup in? No, this is bad idea I think. Do you have in your table some field, WHICH divide records into 300 groups? I.e. This fields have 300 distinct values? I think you have such field, and it is ENOUGH... We do not split into separate tables people born in 1970-1979 and 1980-1989. Right? Of course, in some rare projects may be this will have sense, but you have generally speaking NOT huge database. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 28 23:01:13 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:01:18 2006 Subject: Table structure? In-Reply-To: <20060428170430.9E27F7E6E9B@merc.astrocalc.net> Message-ID: On 4/28/06 8:10 PM, "Joakim Schramm" wrote: > The lookup data is really sort of a DateTime value in 16 character string > where each DT has a result value in a second field, were DT mark a boundury > to set a value. I was thinking of using IVDateTime but the examples in the > docs (at least VCOM) are really sparse so not sure if this would do? Instead > of just a single line or two shoing how to asign and read a value, it would > be really bice (and helpful) if the was at least a small piece of code > showing a typical context to use it together with other calls. It exists in > a few places, but far to few. I know, you are probably aware of it, but > ponting it out anyway. The documentation is also a bit contradictional on > this, while the VCOM doc show you can set date format, kernel doc say it's > depends on system settings (internal storage), what matter to me of course > is what I get when need to use this value in my other code? > > Just to give as an example, my data looks something like this with | as > field separator > > 19971026030000|-1 > 19980329020000|-2 > 19981025030000|-1 > 19990328020000|-2 > 19991031030000|-1 > 20000326020000|-2 > 20001029030000|-1 > > Lets say if I make a lookup using the value 19990429073000 (29 April 1999 > 07:30:00) it will return me -2 as it's more then 19990328020000 but not as > much as 19991031030000, but it's really not the comparison I am after here > but the best way to structure the data. Of course you can store this DateTime values into VCOM IVDateTime type. You even will win in db size and therefore in speed. Now you spend 16 + 1 bytes per value. With DateTime field of Valentina you will use 8 bytes. so you win about 4MB in table, and about 6 MB in the index file if it exists -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 28 23:06:04 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:06:09 2006 Subject: Table structure? In-Reply-To: <20060428170430.9E27F7E6E9B@merc.astrocalc.net> Message-ID: On 4/28/06 8:10 PM, "Joakim Schramm" wrote: > Just to give as an example, my data looks something like this with | as > field separator > > 19971026030000|-1 > 19980329020000|-2 > 19981025030000|-1 > 19990328020000|-2 > 19991031030000|-1 > 20000326020000|-2 > 20001029030000|-1 > > Lets say if I make a lookup using the value 19990429073000 (29 April 1999 > 07:30:00) it will return me -2 as it's more then 19990328020000 but not as > much as 19991031030000, but it's really not the comparison I am after here > but the best way to structure the data. > > The above is just a small shunk from one set of about 2000, which is further > grouped into about 300 subsets. If I can use DateTime it would be great as > it would cut the needed storage space with about 50% if I have understood it :-) Aha! You have catch it. Right! > right, or even more if the string is UTF-16. Question is just if I can > effectively make a lookup with all the data in one table (I need to first > pick the correct group of 300, then the correct subgroup holding the data > above and determine were in the range the the given parrameter fits)? > > Maybe this was all just too many words confusiong the whole thing, but... I > am just asking Valentina up for the first dance ;-) In fact you need just use SQL. In SQL you task looks simple: SELECT * FROM T WHERE fldGroup = SomeGtoupID AND fldDateTime BETWEEN date1 AND date2 DONE. All rest job will do Valentina for you. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 28 23:09:19 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:09:25 2006 Subject: Table structure? In-Reply-To: <20060428170430.9E27F7E6E9B@merc.astrocalc.net> Message-ID: On 4/28/06 8:10 PM, "Joakim Schramm" wrote: > Hi, > > I would like to ask for advice in a db/table structure question, if my idea > I have about would matter in any sense to Valentina (VCOM). > > I want to set up a db to import a lot of data from it's current source and > have decided to go for binary links right away although it's completely new > to me. It looks briliant though at least on paper. > > Anyhow, my dataset basically consist of 2 parts, now stored in 2 tables. The > first table has about 220 000 records and the second table has about 500 000 > records. As my current datasourse isn't relational in a true sense I link > that bit in code now and the second table serve as something like a "lookup" > table for items of the first table. But each item in T1 only look for data > within a limited range of the whole data in T2, and several items can look > for same data so one could say it's something of a M:M relation. Important > to mention as well is that the T2 data need to be in a certain sequencial > order, either in the db or as it's returned for evaluation (like in an array > as it's returned now). Also I'd like to point. it is NOT clear yet where you can use BinaryLink here. The M:M relation between records, which you describe is not canonic. The canonic MM link in relational model is built with help of third helper table. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Fri Apr 28 22:11:39 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 15:11:46 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428200511.2ADB97E6F2A@merc.astrocalc.net> Yes that was what I was thinking. By the way, I like your way of replying separating out each question to email. Very practical! Joakim > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 28 April 2006 22:01 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/28/06 8:10 PM, "Joakim Schramm" wrote: > > > The lookup data is really sort of a DateTime value in 16 character > > string where each DT has a result value in a second field, were DT > > mark a boundury to set a value. I was thinking of using > IVDateTime but > > the examples in the docs (at least VCOM) are really sparse > so not sure > > if this would do? Instead of just a single line or two > shoing how to > > asign and read a value, it would be really bice (and > helpful) if the > > was at least a small piece of code showing a typical > context to use it > > together with other calls. It exists in a few places, but > far to few. > > I know, you are probably aware of it, but ponting it out > anyway. The > > documentation is also a bit contradictional on this, while the VCOM > > doc show you can set date format, kernel doc say it's depends on > > system settings (internal storage), what matter to me of > course is what I get when need to use this value in my other code? > > > > Just to give as an example, my data looks something like > this with | > > as field separator > > > > 19971026030000|-1 > > 19980329020000|-2 > > 19981025030000|-1 > > 19990328020000|-2 > > 19991031030000|-1 > > 20000326020000|-2 > > 20001029030000|-1 > > > > Lets say if I make a lookup using the value 19990429073000 > (29 April > > 1999 > > 07:30:00) it will return me -2 as it's more then 19990328020000 but > > not as much as 19991031030000, but it's really not the > comparison I am > > after here but the best way to structure the data. > > Of course you can store this DateTime values into VCOM > IVDateTime type. > > You even will win in db size and therefore in speed. > > Now you spend 16 + 1 bytes per value. > With DateTime field of Valentina you will use 8 bytes. > so you win about 4MB in table, > and about 6 MB in the index file if it exists > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Fri Apr 28 23:12:06 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:12:11 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: Message-ID: On 4/28/06 9:42 PM, "Bob Keeney" wrote: >> Yes and actually PLUGIN can return this. > > This does not make sense. > > Plugin should NOT have this constant if it should not be used. > > Take it and remove from documentation. Throw exception when used, etc. You have not understand. MAY HAPPENS that somebody will put into Picture field something bad. You can use for this VBLob.WriteData() for example, which do not care what you put there. You see? Then you can Vpicture.ReadPicture(). So Valentina self CAN return you EVPictType.kUnknown But you should not use it when you store in legal way some picture. YOU know which picture you give to Valentina, right ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 28 23:14:08 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:14:15 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <3D2288E0-66AE-421D-B007-28BE47F60D48@everestkc.net> Message-ID: On 4/28/06 10:22 PM, "Bob Keeney" wrote: > I ran the same graphic (jpg) using all the possible variables. Here > are the results. > > me.mPicture.WritePictureAs myPic, EVPictType.kJPG, 100 //CRASH > me.mPicture.WritePictureAs myPic, EVPictType.kMacPict, 100 //CRASH > me.mPicture.WritePictureAs myPic, EVPictType.kTIFF, 100 //CRASH > me.mPicture.WritePictureAs myPic, EVPictType.kWinDIB, 100 //CRASH > > So regardless of PictType I get hard crash. > > > Now. Using Field_Picture api example using different external > graphics (so far I've tried pict and jpg and png) always get same > result (crash). > > This has been issue since July of 2005. Bug ID: 0000987 Hmm, do you work on MAC or Windows? If you have some simple project that reproduce, please send it to me. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 28 23:19:31 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:19:37 2006 Subject: Trimming the icudt30 file In-Reply-To: <6D93389C-B4F5-404D-A98C-DD062D424D05@comcast.net> Message-ID: On 4/28/06 9:31 PM, "Brendan Murphy" wrote: Hi Brendan, > In the Valentina Kernal manual it states on page 19... > >> Also part of ICU is file icudt30l.dat. It is on default is quite >> big (about 8 MB). This file contains information about all Locales >> of the world. It is possible to reduce this file to 3.5 MB if to >> remove not needed Locales. > > How does one go about trimming this file First point - nobody have try todo this yet from Valentina community. Information can be found on IBM site. http://www-306.ibm.com/software/globalization/icu/index.jsp I think info is located in User Guide and/or FAQs at bottom of this page. ------------- In short (by my memory) .dat file now contains 230 locales of the world. It is possible split it to say 270 separate files. But the total size will be bigger. So split have sense only if you you want to deploy one or few locales. During build of ICU they produce set of command line tools. I assume one of this tools do this job. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 28 23:22:40 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:22:48 2006 Subject: Trimming the icudt30 file In-Reply-To: Message-ID: On 4/28/06 11:19 PM, "Ruslan Zasukhin" wrote: > First point - nobody have try todo this yet from Valentina community. > > Information can be found on IBM site. > > http://www-306.ibm.com/software/globalization/icu/index.jsp > > I think info is located in User Guide and/or FAQs at bottom of this page. > > ------------- > In short (by my memory) .dat file now contains 230 locales of the world. > It is possible split it to say 270 separate files. But the total size will > be bigger. So split have sense only if you you want to deploy one or few > locales. > > During build of ICU they produce set of command line tools. > I assume one of this tools do this job. I think this is paragraph of interest: http://icu.sourceforge.net/userguide/packaging.html -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Fri Apr 28 23:26:04 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 15:26:10 2006 Subject: Trimming the icudt30 file In-Reply-To: Message-ID: On 4/28/06 11:22 PM, "Ruslan Zasukhin" wrote: >> First point - nobody have try todo this yet from Valentina community. >> >> Information can be found on IBM site. >> >> http://www-306.ibm.com/software/globalization/icu/index.jsp >> >> I think info is located in User Guide and/or FAQs at bottom of this page. >> >> ------------- >> In short (by my memory) .dat file now contains 230 locales of the world. >> It is possible split it to say 270 separate files. But the total size will >> be bigger. So split have sense only if you you want to deploy one or few >> locales. >> >> During build of ICU they produce set of command line tools. >> I assume one of this tools do this job. > > I think this is paragraph of interest: > > http://icu.sourceforge.net/userguide/packaging.html No, this one http://icu.sourceforge.net/userguide/icudata.html Here part: Customizing ICU's Data Library -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Fri Apr 28 22:31:12 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 15:31:16 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428202444.762827E6F2A@merc.astrocalc.net> > -----Original Message----- > From: > valentina-bounces+joakim=astrocalc.com@lists.macserve.net > [mailto:valentina-bounces+joakim=astrocalc.com@lists.macserve. > net] On Behalf Of Ruslan Zasukhin > Sent: 28 April 2006 21:59 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/28/06 8:10 PM, "Joakim Schramm" wrote: > > Hi Joakim, > [snip] > > So my question is; I can devide the 500 000 records in to about 300 > > "logical" groups related to certain records in T1, would it > be an idea > > to split up this data in say 300 tables to easily exclude > most of the > > irrelative data to lookup in? > > No, this is bad idea I think. > > Do you have in your table some field, WHICH divide records > into 300 groups? > I.e. This fields have 300 distinct values? > I think you have such field, and it is ENOUGH... > > We do not split into separate tables people born in 1970-1979 > and 1980-1989. > Right? > > Of course, in some rare projects may be this will have sense, > but you have generally speaking NOT huge database. > I know, it's not a huge db, but a bit special. Let me explain... This is an "Atlas" database (none graphical, just data) so I have following, in a relational schema: Table1 (A place in the world) Place|LatDeg|LatMin|LatSec|LatCompass|LongDeg|LogMin|LongSec|LongCompass|Cou ntry|TimeZoneID Table2 (Timezones in the world) DateTimeOfChange|ChangeVal|Ptr_Country|Ptr_TimeZoneID I know how to set this up in a "traditional" way, but I wanted to use unique features of Valentina, preferably BinaryLinks as they seem very clean and simple to me, and probably the fastest. I am not sure though if BinaryLinks are usable here, but maybe ObjectPtr? How it works in practice in program is, a place are picked, either from returned SearchCollection or from List. Next, based on country AND ZoneID (most countries have just 1 but some have over 300) a timezone value are returned with passed DateTime as criteria. Quite simple yes in Relational, but I like to learn and use something new and is still unfamilar with Valentina. My way of thinking though is if I learn and understand something difficult, then I understand everything, sort of... Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From bkeeney at everestkc.net Fri Apr 28 15:33:26 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Fri Apr 28 15:33:32 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <20060428201415.824AB419E86@edison.macserve.net> References: <20060428201415.824AB419E86@edison.macserve.net> Message-ID: <41E24C5C-EA1B-4E4A-94DB-3CB28004D279@everestkc.net> On Apr 28, 2006, at 3:14 PM, valentina-request@lists.macserve.net wrote: >> >> This does not make sense. >> >> Plugin should NOT have this constant if it should not be used. >> >> Take it and remove from documentation. Throw exception when used, >> etc. > > You have not understand. > > MAY HAPPENS that somebody will put into Picture field something bad. > > You can use for this VBLob.WriteData() for example, which do not > care what > you put there. You see? > > Then you can Vpicture.ReadPicture(). So Valentina self CAN return you > EVPictType.kUnknown > > But you should not use it when you store in legal way some picture. > YOU know which picture you give to Valentina, right ? I don't understand what you are saying. Documentation says nothing about returning EVPictType after reading from database. From documentation: Example: fldPicture.WritePictureAs( inPict, EVPictureFormat.kJPG, 50 ) This is what puts the picture INTO database. What the heck does this have to do with reading FROM database? From sunshine at public.kherson.ua Sat Apr 29 00:28:28 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 16:28:34 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <41E24C5C-EA1B-4E4A-94DB-3CB28004D279@everestkc.net> Message-ID: On 4/28/06 11:33 PM, "Bob Keeney" wrote: >> Then you can Vpicture.ReadPicture(). So Valentina self CAN return you ^^^^^^^^^^^^^^^^^^^^^^ > I don't understand what you are saying. Documentation says nothing > about returning EVPictType after reading from database. > > From documentation: > > Example: > fldPicture.WritePictureAs( inPict, EVPictureFormat.kJPG, 50 ) ^^^^^^^^^^^^^ > This is what puts the picture INTO database. What the heck does this > have to do with reading FROM database? Bob, exists function to WRITE, and exists function to READ. Right ? I talk about READ. You want to hear about WRITE. :-) Forget it. May be it is really useless value, which present only for completeness. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 29 00:36:08 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 16:36:14 2006 Subject: Table structure? In-Reply-To: <20060428202444.762827E6F2A@merc.astrocalc.net> Message-ID: On 4/28/06 11:31 PM, "Joakim Schramm" wrote: > > This is an "Atlas" database (none graphical, just data) so I have following, > in a relational schema: > > Table1 (A place in the world) Place| LatDeg| LatMin| LatSec| LatCompass| LongDeg| LogMin| LongSec| LongCompass| Country| TimeZoneID 1) where is KEY field in this table ? > Table2 (Timezones in the world) DateTimeOfChange| ChangeVal| Ptr_Country| << this is Foreign Key? It point to T1.Country field? Ptr_TimeZoneID << this is another Foreign Key ? it point to TimeZoneID ? so this is 3 Foreign Keys? or single Foreing key Can you give first of all CONCEPTUAL diagram, i.e. Which Objects you have and which links between them exists? Something like: Person has Phones M M > I know how to set this up in a "traditional" way, but I wanted to use unique > features of Valentina, preferably BinaryLinks as they seem very clean and > simple to me, and probably the fastest. I am not sure though if BinaryLinks > are usable here, but maybe ObjectPtr? > > How it works in practice in program is, a place are picked, either from > returned SearchCollection or from List. Next, based on country AND ZoneID > (most countries have just 1 but some have over 300) a timezone value are > returned with passed DateTime as criteria. Quite simple yes in Relational, > but I like to learn and use something new and is still unfamilar with > Valentina. My way of thinking though is if I learn and understand something > difficult, then I understand everything, sort of... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 29 00:54:48 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 16:54:54 2006 Subject: Table structure? In-Reply-To: <20060428202444.762827E6F2A@merc.astrocalc.net> Message-ID: On 4/28/06 11:31 PM, "Joakim Schramm" wrote: For info: am I right that in your old app you have not use SQL and are used to just API access to a database ? -------------------- > This is an "Atlas" database (none graphical, just data) so I have following, > in a relational schema: > > Table1 (A place in the world) > Place|LatDeg|LatMin|LatSec|LatCompass|LongDeg|LogMin|LongSec|LongCompass|Cou > ntry|TimeZoneID > > Table2 (Timezones in the world) > DateTimeOfChange|ChangeVal|Ptr_Country|Ptr_TimeZoneID > How it works in practice in program is, a place are picked, either from > returned SearchCollection or from List. Ok. So you have one select place, i.e. RECORD of T1. You know its RecID. > Next, based on country AND ZoneID (most countries have just 1 but some have > over 300) One country have 300 time zones? Dummy question, isn't we have only 24 zones on earth? > a timezone value are returned with passed DateTime as criteria. Okay, so ONE record in T1 is "linked" to some set of records in T2 But condition based on 2 fields. > Quite simple yes in Relational, > but I like to learn and use something new and is still unfamilar with > Valentina. My way of thinking though is if I learn and understand something > difficult, then I understand everything, sort of... Okay, lets try. Look on T2. Table2 (Timezones in the world) DateTimeOfChange ChangeVal Ptr_Country <<<<<<<< Ptr_TimeZoneID <<<<<<<< The last 2 fields present here ONLY BECAUSE you need establish link to T1. Am I right ? Remember pictures from Valentina WIKI about links? In Relational model Tables have USEFUL fields and UTILITY/HELPER fields. Am I right that this is enough for T2 to bring USEFUL info: Table2 (Timezones in the world) DateTimeOfChange ChangeVal I think enough. Then be happy. Just only you have win again a lots of disk space Ptr_Country VarChar? Avg 7 bytes Ptr_TimeZoneID Ulong ? 4 bytes (7 + 4 = 11) + (11 * 1.5 = 16) = 27 bytes. 13MB of garbage, go out from my disk!! :-) Aha, and now question how to link records of T1 and T2? Answer - using Binary Link. How to build it? Easy: At first build table as you have, then write special function to iterate records and build BinaryLink records. Then DROP that 2 fields. You do not need any more. P.S. Also it seems good idea to me to extract separate table COUNTRY, and put into your T1 only ObjectPtr to it. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Fri Apr 28 23:58:51 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 16:58:55 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428215222.AAEB67DF4A7@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 28 April 2006 23:55 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/28/06 11:31 PM, "Joakim Schramm" wrote: > > For info: am I right that in your old app you have not use > SQL and are used to just API access to a database ? > Yes basically, I am doing a concept replying other mail, and important part I forgot about one thing, it's 3 tables. Just a minute... Joakim > -------------------- > > This is an "Atlas" database (none graphical, just data) so I have > > following, in a relational schema: > > > > Table1 (A place in the world) > > > Place|LatDeg|LatMin|LatSec|LatCompass|LongDeg|LogMin|LongSec|L > ongCompass|Cou > > ntry|TimeZoneID > > > > Table2 (Timezones in the world) > > DateTimeOfChange|ChangeVal|Ptr_Country|Ptr_TimeZoneID > > > How it works in practice in program is, a place are picked, either > > from returned SearchCollection or from List. > > Ok. So you have one select place, i.e. RECORD of T1. > You know its RecID. > > > Next, based on country AND ZoneID (most countries have just > 1 but some > > have over 300) > > One country have 300 time zones? > > Dummy question, isn't we have only 24 zones on earth? > > > a timezone value are returned with passed DateTime as criteria. > > Okay, so ONE record in T1 is "linked" to some set of records > in T2 But condition based on 2 fields. > > > Quite simple yes in Relational, > > > but I like to learn and use something new and is still > unfamilar with > > Valentina. My way of thinking though is if I learn and understand > > something difficult, then I understand everything, sort of... > > Okay, lets try. > > Look on T2. > > Table2 (Timezones in the world) > DateTimeOfChange > ChangeVal > Ptr_Country <<<<<<<< > Ptr_TimeZoneID <<<<<<<< > > > The last 2 fields present here ONLY BECAUSE you need > establish link to T1. > Am I right ? > > Remember pictures from Valentina WIKI about links? > In Relational model Tables have USEFUL fields and > UTILITY/HELPER fields. > > Am I right that this is enough for T2 to bring USEFUL info: > > Table2 (Timezones in the world) > DateTimeOfChange > ChangeVal > > I think enough. Then be happy. Just only you have win again a > lots of disk space > Ptr_Country VarChar? Avg 7 bytes > Ptr_TimeZoneID Ulong ? 4 bytes > > (7 + 4 = 11) + (11 * 1.5 = 16) = 27 bytes. > > 13MB of garbage, go out from my disk!! :-) > > Aha, and now question how to link records of T1 and T2? > Answer - using Binary Link. > > How to build it? Easy: > At first build table as you have, then write special function > to iterate records and build BinaryLink records. Then DROP > that 2 fields. You do not > need any more. > > > P.S. Also it seems good idea to me to extract separate table COUNTRY, > and put into your T1 only ObjectPtr to it. > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From bkeeney at everestkc.net Fri Apr 28 17:00:51 2006 From: bkeeney at everestkc.net (Bob Keeney) Date: Fri Apr 28 17:01:30 2006 Subject: V4RB 2.2 VPicture Revisted In-Reply-To: <20060428215459.C6B0F419F14@edison.macserve.net> References: <20060428215459.C6B0F419F14@edison.macserve.net> Message-ID: <3A269997-9448-4C2F-9162-3E2C0D68F28C@everestkc.net> >>> Then you can Vpicture.ReadPicture(). So Valentina self CAN return >>> you > ^^^^^^^^^^^^^^^^^^^^^^ > >> I don't understand what you are saying. Documentation says nothing >> about returning EVPictType after reading from database. >> >> From documentation: >> >> Example: >> fldPicture.WritePictureAs( inPict, EVPictureFormat.kJPG, 50 ) > ^^^^^^^^^^^^^ > >> This is what puts the picture INTO database. What the heck does this >> have to do with reading FROM database? > > Bob, exists function to WRITE, and exists function to READ. Right ? > I talk about READ. You want to hear about WRITE. :-) YES! It *is* the write function that causes the hard crash after all. From joakim at astrocalc.com Sat Apr 29 00:04:37 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 17:04:41 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428215808.8649C7DF4A7@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 28 April 2006 23:36 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/28/06 11:31 PM, "Joakim Schramm" wrote: > > > > > This is an "Atlas" database (none graphical, just data) so I have > > following, in a relational schema: > > I actually forgot, there is one more table. Table0 (this loaded in a combo, with CountryID as ItemData) CountryName| CountryID << Key > > Table1 (A place in the world) > Place| << Key > LatDeg| > LatMin| > LatSec| > LatCompass| > LongDeg| > LogMin| > LongSec| > LongCompass| > Country| << Foreign key of CountryID in Table0 > TimeZoneID << Key > > 1) where is KEY field in this table ? > > > Table2 (Timezones in the world) > DateTimeOfChange| > ChangeVal| > Ptr_Country| << this is Foreign Key? > It point to T1.Country field? No, FK to CountryID in T0 > > Ptr_TimeZoneID << this is another Foreign Key ? > it point to TimeZoneID ? > > so this is 3 Foreign Keys? > or single Foreing key > Now I am not really sure about keys, as before all was in 3 tables, which actually was 3 databases as engine not is relational. So I am now poundering on which is K and which is FK > Can you give first of all CONCEPTUAL diagram, i.e. Which > Objects you have and which links between them exists? > > Something like: > Person has Phones > M M > I will try Country has Places 1 M Country has Zones 1 M Places has Zone(s) M 1 /--T1 / | T0 |-- Result \ | \--T2 In words it's like, a place is located in country (we know), most country has normally just one zone but some has many. Each place is located in 1 of countries zones. App lookup place and get country and which zone in country it's located. Each Zone has different DateTimes for change of zone hour, in relation to GMT (=0) if not SDT. Is it understandble? Joakim > > > I know how to set this up in a "traditional" way, but I > wanted to use > > unique features of Valentina, preferably BinaryLinks as > they seem very > > clean and simple to me, and probably the fastest. I am not > sure though > > if BinaryLinks are usable here, but maybe ObjectPtr? > > > > How it works in practice in program is, a place are picked, either > > from returned SearchCollection or from List. Next, based on country > > AND ZoneID (most countries have just 1 but some have over 300) a > > timezone value are returned with passed DateTime as criteria. Quite > > simple yes in Relational, but I like to learn and use something new > > and is still unfamilar with Valentina. My way of thinking > though is if > > I learn and understand something difficult, then I > understand everything, sort of... > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sat Apr 29 01:11:26 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 17:11:32 2006 Subject: Table structure? In-Reply-To: <20060428215808.8649C7DF4A7@merc.astrocalc.net> Message-ID: On 4/29/06 1:04 AM, "Joakim Schramm" wrote: > Country has Places > 1 M > Country has Zones > 1 M > Places has Zone(s) > M 1 > > /--T1 > / | > T0 |-- Result > \ | > \--T2 > > In words it's like, a place is located in country (we know), most country > has normally just one zone but some has many. Each place is located in 1 of > countries zones. App lookup place and get country and which zone in country > it's located. Each Zone has different DateTimes for change of zone hour, in > relation to GMT (=0) if not SDT. > > Is it understandble? Yes, now we talk on natural language of humans! :-) you have 3 Tables and 3 links between them so you need 3 Tables and 3 BinaryLinks between them. Agree? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 29 01:12:57 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Apr 28 17:13:02 2006 Subject: Table structure? In-Reply-To: <20060428215808.8649C7DF4A7@merc.astrocalc.net> Message-ID: On 4/29/06 1:04 AM, "Joakim Schramm" wrote: >> DateTimeOfChange| >> ChangeVal| >> Ptr_Country| << this is Foreign Key? >> It point to T1.Country field? > No, FK to CountryID in T0 > >> >> Ptr_TimeZoneID << this is another Foreign Key ? >> it point to TimeZoneID ? >> >> so this is 3 Foreign Keys? >> or single Foreing key >> > Now I am not really sure about keys, as before all was in 3 tables, which > actually was 3 databases as engine not is relational. So I am now poundering > on which is K and which is FK Note, that in Valentina's way with ObjectPtr and BinaryLinks You can allow self to be lazy and DO NOT care about KEYs in tables. You already have RecID for each table. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sat Apr 29 00:17:25 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 17:17:28 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428221056.E2B1880862F@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 00:13 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 1:04 AM, "Joakim Schramm" wrote: > > >> DateTimeOfChange| > >> ChangeVal| > >> Ptr_Country| << this is Foreign Key? > >> It point to T1.Country field? > > No, FK to CountryID in T0 > > > >> > >> Ptr_TimeZoneID << this is another Foreign Key ? > >> it point to TimeZoneID ? > >> > >> so this is 3 Foreign Keys? > >> or single Foreing key > >> > > Now I am not really sure about keys, as before all was in 3 tables, > > which actually was 3 databases as engine not is relational. So I am > > now poundering on which is K and which is FK > > Note, that in Valentina's way with ObjectPtr and BinaryLinks > > You can allow self to be lazy and DO NOT care about KEYs in tables. > You already have RecID for each table. > Exactly, that's why I want to to this! I do already see the beauty of Valentina, just not sure about how to ride her yet ;-) That's why I ask her master for direction... As he ought to know best ;-) Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sat Apr 29 00:22:14 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 17:22:17 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428221546.1641E80862F@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 00:11 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 1:04 AM, "Joakim Schramm" wrote: > > > Country has Places > > 1 M > > Country has Zones > > 1 M > > Places has Zone(s) > > M 1 > > > > /--T1 > > / | > > T0 |-- Result > > \ | > > \--T2 > > > > In words it's like, a place is located in country (we know), most > > country has normally just one zone but some has many. Each place is > > located in 1 of countries zones. App lookup place and get > country and > > which zone in country it's located. Each Zone has different > DateTimes > > for change of zone hour, in relation to GMT (=0) if not SDT. > > > > Is it understandble? > > Yes, now we talk on natural language of humans! :-) > > you have 3 Tables and 3 links between them > > so you need 3 Tables and 3 BinaryLinks between them. > > Agree? > Yes I think so :-) Just see if I have got it right by study examples. Country.CountryID Link Places.Place Country.CountryID Link TimeZones.Ptr_Country Places.Country Link TimeZones.Ptr_Country Is that correct? Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sat Apr 29 00:29:12 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 17:29:16 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428222244.0E22D80862F@merc.astrocalc.net> Something like this? Sub CreateLinks() Dim mTblCountry As VTable Dim mTblPlaces As VTable Dim mTblZones As VTable Dim blink As VLink ' get table references Set mTblCountry = mDatabase.Table("Country") Set mTblPlaces = mDatabase.Table("Places") Set mTblZones = mDatabase.Table("ZoneData") ' create BINARY LINK between 2 tables. Set blink = mDatabase.CreateBinaryLink("lnkCountryPlace", mTblCountry, mTblPlaces, EVLinkType.kOne, EVLinkType.kMany) Set blink = mDatabase.CreateBinaryLink("lnkCountryZone", mTblCountry, mTblZones, EVLinkType.kOne, EVLinkType.kMany) Set blink = mDatabase.CreateBinaryLink("lnkCountryPlace", mTblZones, mTblPlaces, EVLinkType.kOne, EVLinkType.kMany) End Sub Joakim > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 00:11 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 1:04 AM, "Joakim Schramm" wrote: > > > Country has Places > > 1 M > > Country has Zones > > 1 M > > Places has Zone(s) > > M 1 > > > > /--T1 > > / | > > T0 |-- Result > > \ | > > \--T2 > > > > In words it's like, a place is located in country (we know), most > > country has normally just one zone but some has many. Each place is > > located in 1 of countries zones. App lookup place and get > country and > > which zone in country it's located. Each Zone has different > DateTimes > > for change of zone hour, in relation to GMT (=0) if not SDT. > > > > Is it understandble? > > Yes, now we talk on natural language of humans! :-) > > you have 3 Tables and 3 links between them > > so you need 3 Tables and 3 BinaryLinks between them. > > Agree? > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sat Apr 29 00:51:54 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Fri Apr 28 17:51:58 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060428224525.B60D47DF4A7@merc.astrocalc.net> > > Note, that in Valentina's way with ObjectPtr and BinaryLinks > > You can allow self to be lazy and DO NOT care about KEYs in tables. > You already have RecID for each table. > I am still a bit confused about this. From example below of linking records Private Sub LinkRecords() Dim mLink As VLink Dim recs(1) As Variant ' get link object by name Set mLink = mDatabase.Link("link_person_phone") 'in this method assign values to ObjectPtr field to link records ' of 2 tables in this way: ' 1 - 1 ' 1 - 3 ' 2 - 4 ' 3 - 2 ' 1 - 1 recs(0) = 1 recs(1) = 1 mLink.LinkRecords (recs) ' 1 - 3 recs(0) = 1 recs(1) = 3 mLink.LinkRecords (recs) ' 2 - 4 recs(0) = 2 recs(1) = 4 mLink.LinkRecords (recs) ' 3 - 2 recs(0) = 3 recs(1) = 2 mLink.LinkRecords (recs) End Sub Here we from human conception which number belong to which person, but computer don't have that conception. Isn't it that each record or pair of records need to be linked right after they are added or we don't know relation if first filling one table then next etc.? I am here talking about I am going to read lots of data from other source, from 3 "tables". So I must either link while they are in "memory" or I need to store a temp pointer in memory bank (e.g. array) for later use - is this correct? As data comes from 3 sources interacting with each other I can't just do it all at one time as one depends on the other and the third depends on the first... Must be that way, right? Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sat Apr 29 16:37:29 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 08:37:35 2006 Subject: Table structure? In-Reply-To: <20060428221546.1641E80862F@merc.astrocalc.net> Message-ID: On 4/29/06 1:22 AM, "Joakim Schramm" wrote: >> Yes, now we talk on natural language of humans! :-) >> >> you have 3 Tables and 3 links between them >> >> so you need 3 Tables and 3 BinaryLinks between them. >> >> Agree? >> > Yes I think so :-) Just see if I have got it right by study examples. > > Country.CountryID Link Places.Place > Country.CountryID Link TimeZones.Ptr_Country > Places.Country Link TimeZones.Ptr_Country > > Is that correct? Not exactly. IF you use Binary Links, then it is NOT important what fields you have in table. Linking happens simply by RecID values: Country Place -------------------- ------------------ RecID Name recID Name 1 Albania 1 Hamburg 2 Bulgaria 2 Berlin 3 Germany 3 Munich 4 Leipzig 5 Sofia AGAIN, * RecID field exists automatically in each Table * RecID use ZERO space on disk. So to link records you make BinaryLink and add into it pairs ......... 3 1 3 2 3 3 3 4 2 5 .......... Order of pairs do not mater. So you do NOT need at all such fields as CountryID, PTR_Country, ... -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 29 16:38:21 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 08:38:26 2006 Subject: Table structure? In-Reply-To: <20060428222244.0E22D80862F@merc.astrocalc.net> Message-ID: On 4/29/06 1:29 AM, "Joakim Schramm" wrote: > Something like this? > > Sub CreateLinks() > Dim mTblCountry As VTable > Dim mTblPlaces As VTable > Dim mTblZones As VTable > Dim blink As VLink > > ' get table references > Set mTblCountry = mDatabase.Table("Country") > Set mTblPlaces = mDatabase.Table("Places") > Set mTblZones = mDatabase.Table("ZoneData") > ' create BINARY LINK between 2 tables. > Set blink = mDatabase.CreateBinaryLink("lnkCountryPlace", mTblCountry, > mTblPlaces, EVLinkType.kOne, EVLinkType.kMany) > Set blink = mDatabase.CreateBinaryLink("lnkCountryZone", mTblCountry, > mTblZones, EVLinkType.kOne, EVLinkType.kMany) > Set blink = mDatabase.CreateBinaryLink("lnkCountryPlace", mTblZones, > mTblPlaces, EVLinkType.kOne, EVLinkType.kMany) > End Sub Yes -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 29 16:46:08 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 08:46:12 2006 Subject: Table structure? In-Reply-To: <20060428224525.B60D47DF4A7@merc.astrocalc.net> Message-ID: On 4/29/06 1:51 AM, "Joakim Schramm" wrote: > I am still a bit confused about this. From example below of linking records > > Private Sub LinkRecords() > > Dim mLink As VLink > Dim recs(1) As Variant > > ' get link object by name > Set mLink = mDatabase.Link("link_person_phone") > > 'in this method assign values to ObjectPtr field to link records > ' of 2 tables in this way: > ' 1 - 1 > ' 1 - 3 > ' 2 - 4 > ' 3 - 2 > > ' 1 - 1 > recs(0) = 1 > recs(1) = 1 > mLink.LinkRecords (recs) > > ' 1 - 3 > recs(0) = 1 > recs(1) = 3 > mLink.LinkRecords (recs) > > ' 2 - 4 > recs(0) = 2 > recs(1) = 4 > mLink.LinkRecords (recs) > > ' 3 - 2 > recs(0) = 3 > recs(1) = 2 > mLink.LinkRecords (recs) > > End Sub > > Here we from human conception which number belong to which person, but > computer don't have that conception. right > Isn't it that each record or pair of records need to be linked right after > they are added or we don't know relation if first filling one table then > next etc.? Right. > I am here talking about I am going to read lots of data from > other source, from 3 "tables". So I must either link while they are in > "memory" or I need to store a temp pointer in memory bank (e.g. array) for > later use - is this correct? > As data comes from 3 sources interacting with each other I can't just do it > all at one time as one depends on the other and the third depends on the > first... Must be that way, right? I already have point how to **CONVERT** your existed db. 1) as first step you can make in Valentina THE SAME relational fields. 2) import your data AS IS 3) write and run ONCE function to link records using BinaryLink with help of info of YOUR old fields 4) DROP that OLD fields Now you have correct database with BinaryLinks. ------------------------------ HOW TO LINK future records? As far as I see EASY. * you show to use list of places, right? * user click some place -- now you know RecID of select record. Right? * you add new record into T2 - and you also get its RecID. * now you simple do binaryLink.LinkRecords( recid1, recid2 ) P.S. in the next beta build we will introduce this function to link 2 records, it will be more comfortable than using arrays now. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sat Apr 29 16:01:57 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 09:02:02 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060429135528.2B3EB2E6244@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 15:37 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 1:22 AM, "Joakim Schramm" wrote: > > >> Yes, now we talk on natural language of humans! :-) > >> > >> you have 3 Tables and 3 links between them > >> > >> so you need 3 Tables and 3 BinaryLinks between them. > >> > >> Agree? > >> > > Yes I think so :-) Just see if I have got it right by study > examples. > > > > Country.CountryID Link Places.Place > > Country.CountryID Link TimeZones.Ptr_Country > > Places.Country Link TimeZones.Ptr_Country > > > > Is that correct? > > Not exactly. > > IF you use Binary Links, then it is NOT important what fields > you have in table. > > Linking happens simply by RecID values: > > Country Place > -------------------- ------------------ > RecID Name recID Name > 1 Albania 1 Hamburg > 2 Bulgaria 2 Berlin > 3 Germany 3 Munich > 4 Leipzig > 5 Sofia > > > AGAIN, > * RecID field exists automatically in each Table > * RecID use ZERO space on disk. > > > So to link records you make BinaryLink and add into it pairs > > ......... > 3 1 > 3 2 > 3 3 > 3 4 > 2 5 > .......... > > Order of pairs do not mater. > > So you do NOT need at all such fields as CountryID, PTR_Country, ... > > Ruslan, I came to realize that after I sent my mails yesterday and also realized some sleep was a good thing to make the brain work better :-) Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sat Apr 29 16:19:38 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 09:19:43 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060429141309.AC4E0DF47A@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 15:46 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 1:51 AM, "Joakim Schramm" wrote: > > > I am still a bit confused about this. From example below of linking > > records > > > > Private Sub LinkRecords() > > > > Dim mLink As VLink > > Dim recs(1) As Variant > > > > ' get link object by name > > Set mLink = mDatabase.Link("link_person_phone") > > > > 'in this method assign values to ObjectPtr field to link records > > ' of 2 tables in this way: > > ' 1 - 1 > > ' 1 - 3 > > ' 2 - 4 > > ' 3 - 2 > > > > ' 1 - 1 > > recs(0) = 1 > > recs(1) = 1 > > mLink.LinkRecords (recs) > > > > ' 1 - 3 > > recs(0) = 1 > > recs(1) = 3 > > mLink.LinkRecords (recs) > > > > ' 2 - 4 > > recs(0) = 2 > > recs(1) = 4 > > mLink.LinkRecords (recs) > > > > ' 3 - 2 > > recs(0) = 3 > > recs(1) = 2 > > mLink.LinkRecords (recs) > > > > End Sub > > > > Here we from human conception which number belong to which > person, but > > computer don't have that conception. > > right > > > Isn't it that each record or pair of records need to be > linked right > > after they are added or we don't know relation if first filling one > > table then next etc.? > > Right. > > > I am here talking about I am going to read lots of data from other > > source, from 3 "tables". So I must either link while they are in > > "memory" or I need to store a temp pointer in memory bank > (e.g. array) > > for later use - is this correct? > > > As data comes from 3 sources interacting with each other I > can't just > > do it all at one time as one depends on the other and the third > > depends on the first... Must be that way, right? > > I already have point how to **CONVERT** your existed db. > > 1) as first step you can make in Valentina THE SAME relational fields. > > 2) import your data AS IS > > 3) write and run ONCE function to link records using > BinaryLink with help of info of YOUR old fields > > 4) DROP that OLD fields > > Now you have correct database with BinaryLinks. > > ------------------------------ > HOW TO LINK future records? > > As far as I see EASY. > > * you show to use list of places, right? > > * user click some place -- now you know RecID of select record. Right? > > * you add new record into T2 - and you also get its RecID. > > * now you simple do > > binaryLink.LinkRecords( recid1, recid2 ) > > > P.S. in the next beta build we will introduce this function > to link 2 records, it will be more comfortable than using arrays now. > Yes that's the simple way! Didn't realized I could drop the fields when done with them. No I see what's behind what have become my favourite phrase in your documentation "I is easy to see..." :-) During the day I have come a bit further, but working with loading data into arrays to keep things in "memory", that works as well but not as easy. However, there is a new more complications I have come cross as when I rebuild the database now I also like to deal with some short comings from before, like countries and places can have alternative names and also differs in different languages. If I have understood it right, if you have a 1:M between T1 & T2 two or more items in T1 can't have BinaryLinks to same items in T2, I need a M:M relation for that, right? However, when most records on left side really are like 1:M you don't want to setup a M:M just to cope with the few. I am trying to deal with this by creating an alias table holding the alternative items, and with BL I think that can be easy to work, hopefully. But I am still learning this new tool so just have to experiment. It is hard to break old habbits! I just have a support case for one of my program where the customer want to have her "old" program back as the new works differantly, and you know when users get frustrated how much useful info you get from them :-) Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sat Apr 29 17:49:19 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 09:49:24 2006 Subject: Table structure? In-Reply-To: <20060429141309.AC4E0DF47A@merc.astrocalc.net> Message-ID: On 4/29/06 5:19 PM, "Joakim Schramm" wrote: > If I have understood it right, if you have a 1:M between T1 & T2 two or more > items in T1 can't have BinaryLinks to same items in T2, I need a M:M > relation for that, right? Yes. Actually this is true for FOREING KEY and ObjectPtr. > However, when most records on left side really are > like 1:M you don't want to setup a M:M just to cope with the few. > I am trying to deal with this by creating an alias table holding the > alternative items, and with BL I think that can be easy to work, hopefully. > But I am still learning this new tool so just have to experiment. For Alias Table may be better to have Country Alias 1 M (Alias, ObjectPtr to Country ) > It is hard to break old habbits! I just have a support case for one of my > program where the customer want to have her "old" program back as the new > works differantly, and you know when users get frustrated how much useful > info you get from them :-) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sat Apr 29 20:56:24 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 13:56:26 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060429184954.311944A64AB@merc.astrocalc.net> I must do something wrong, import of data crashes after about 80% with automation error, it's on AddRecord call. Also, the data which I read from text files occupy 11Mb on disc, but on scrash the db .dat file is 333Mb! I expet this to be more then the text files, as when imoprting to my old db it takes 46Mb - 333 sounds rediculus much and the import isn't even ready! Ok, this is no complain, I realize something must be wrong with my code. I was able to open the db in Vstudio and noticed that nothing had gone inte to my zone table and probably I assign value to DateTime field wrongly (Table.Field("DateTime").SetString "1999/10/04 13:23:00") but I couldn't find anywere in the docs about how to format the string to add to this field. Does VarChar fields affect size depending on maxsize aka 1022, if only 3 or 4 charcters is stored in field? Joakim > From joakim at astrocalc.com Sat Apr 29 21:23:37 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 14:23:39 2006 Subject: Table structure? In-Reply-To: <20060429184954.311944A64AB@merc.astrocalc.net> Message-ID: <20060429191706.C2CB12E6244@merc.astrocalc.net> > -----Original Message----- > From: > valentina-bounces+joakim=astrocalc.com@lists.macserve.net > [mailto:valentina-bounces+joakim=astrocalc.com@lists.macserve. > net] On Behalf Of Joakim Schramm > Sent: 29 April 2006 20:56 > To: 'Valentina Developers' > Subject: RE: Table structure? > > I must do something wrong, import of data crashes after about > 80% with automation error, it's on AddRecord call. Also, the > data which I read from text files occupy 11Mb on disc, but on > scrash the db .dat file is 333Mb! > Aha end of the 400+mb logfile says VTable.AddRecord... PARAM: this = 25451568 ERROR: 0x99520 Demo-version time limit reached But error message say Automation error, Catastrofic! Valentina wasn't fast enough :-) Well it's not only her... Joakim > I expet this to be more then the text files, as when > imoprting to my old db it takes 46Mb - 333 sounds rediculus > much and the import isn't even ready! > Ok, this is no complain, I realize something must be wrong > with my code. I was able to open the db in Vstudio and > noticed that nothing had gone inte to my zone table and > probably I assign value to DateTime field wrongly > (Table.Field("DateTime").SetString "1999/10/04 13:23:00") but > I couldn't find anywere in the docs about how to format the > string to add to this field. > > Does VarChar fields affect size depending on maxsize aka > 1022, if only 3 or > 4 charcters is stored in field? > > Joakim > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sat Apr 29 22:30:23 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 14:30:28 2006 Subject: Table structure? In-Reply-To: <20060429184954.311944A64AB@merc.astrocalc.net> Message-ID: On 4/29/06 9:56 PM, "Joakim Schramm" wrote: Hi Joakim, > I must do something wrong, import of data crashes after about 80% with > automation error, it's on AddRecord call. Also, the data which I read from > text files occupy 11Mb on disc, but on scrash the db .dat file is 333Mb! How much it is compressed in RAR? I expect not big, yes? So if needed you can send to us this file and VB project to test here.. > I expet this to be more then the text files, as when imoprting to my old db > it takes 46Mb - 333 sounds rediculus much and the import isn't even ready! Show please your table structure. May be you use String[N] fields? Also what size of EMPTY Valentina db, after you create your tables? > Ok, this is no complain, I realize something must be wrong with my code. I > was able to open the db in Vstudio and noticed that nothing had gone inte to > my zone table and probably I assign value to DateTime field wrongly > (Table.Field("DateTime").SetString "1999/10/04 13:23:00") but I couldn't > find anywere in the docs about how to format the string to add to this > field. 1) I believe exists API function to set numeric values into DateTime fields. 2) Format in the string can be controlled by YOU with help db.DateTimeformat > Does VarChar fields affect size depending on maxsize aka 1022, if only 3 or > 4 charcters is stored in field? No, On disk should be used 3-4 bytes PLUS at ULONG. Note, for such small strings ( <= 8 bytes) it can be more effective to use String[4] -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 29 22:32:09 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 14:32:14 2006 Subject: Table structure? In-Reply-To: <20060429191706.C2CB12E6244@merc.astrocalc.net> Message-ID: On 4/29/06 10:23 PM, "Joakim Schramm" wrote: >> I must do something wrong, import of data crashes after about >> 80% with automation error, it's on AddRecord call. Also, the >> data which I read from text files occupy 11Mb on disc, but on >> scrash the db .dat file is 333Mb! >> > Aha end of the 400+mb logfile says > VTable.AddRecord... > PARAM: this = 25451568 > ERROR: 0x99520 Demo-version time limit reached > > But error message say Automation error, Catastrofic! Valentina wasn't fast > enough :-) Well it's not only her... :-) Let's see how speed up it. 1) set bigger cache size. E.g. 20-50 MB 2) make sure that you DO NOT make flush() after each AddRecord(). 3) Ohhhhhhh! and set OFF this LOG file !!!!!!!!!!! it slow down a lots! -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sat Apr 29 22:33:01 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 14:33:07 2006 Subject: Table structure? In-Reply-To: Message-ID: On 4/29/06 10:32 PM, "Ruslan Zasukhin" wrote: > On 4/29/06 10:23 PM, "Joakim Schramm" wrote: > >>> I must do something wrong, import of data crashes after about >>> 80% with automation error, it's on AddRecord call. Also, the >>> data which I read from text files occupy 11Mb on disc, but on >>> scrash the db .dat file is 333Mb! >>> >> Aha end of the 400+mb logfile says >> VTable.AddRecord... >> PARAM: this = 25451568 >> ERROR: 0x99520 Demo-version time limit reached >> >> But error message say Automation error, Catastrofic! Valentina wasn't fast >> enough :-) Well it's not only her... > > :-) Let's see how speed up it. > > 1) set bigger cache size. E.g. 20-50 MB > > 2) make sure that you DO NOT make flush() after each AddRecord(). > > 3) Ohhhhhhh! > > and set OFF this LOG file !!!!!!!!!!! > it slow down a lots! Actually you can set it in mode DebugLEvel = LogErrors So log file will write ONLY errors if any. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sat Apr 29 22:48:37 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 15:48:41 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060429204206.99EC47E95D3@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 21:32 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 10:23 PM, "Joakim Schramm" wrote: > > >> I must do something wrong, import of data crashes after about 80% > >> with automation error, it's on AddRecord call. Also, the > data which I > >> read from text files occupy 11Mb on disc, but on scrash > the db .dat > >> file is 333Mb! > >> > > Aha end of the 400+mb logfile says > > VTable.AddRecord... > > PARAM: this = 25451568 > > ERROR: 0x99520 Demo-version time limit reached > > > > But error message say Automation error, Catastrofic! > Valentina wasn't > > fast enough :-) Well it's not only her... > > :-) Let's see how speed up it. > > 1) set bigger cache size. E.g. 20-50 MB > How much is InitValentina 9 * 1048576, is it 9 Mb? I have 2GB so I guess there are some to spare :-) > 2) make sure that you DO NOT make flush() after each AddRecord(). > I don't flush at all, not yet, as I have much memory. > 3) Ohhhhhhh! > > and set OFF this LOG file !!!!!!!!!!! > it slow down a lots! > Yes I realized that as layed down to take a 10 minute relax! Some statistics: Roughly 4min 20sec 459965 records added, including creation of db and structure. But db size 1.73 GB! Of which index 16.5 Mb and data 1.72 GB, NoLog. RAR 7060Kb ZIP 10879 Kb (With RAR) 7z 4537kb All normal compression, whole db 4 files. Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 00:01:33 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 16:01:40 2006 Subject: Table structure? In-Reply-To: <20060429204206.99EC47E95D3@merc.astrocalc.net> Message-ID: On 4/29/06 11:48 PM, "Joakim Schramm" wrote: >> 1) set bigger cache size. E.g. 20-50 MB >> > How much is InitValentina 9 * 1048576, is it 9 Mb? I have 2GB so I guess > there are some to spare :-) > >> 2) make sure that you DO NOT make flush() after each AddRecord(). >> > I don't flush at all, not yet, as I have much memory. > >> 3) Ohhhhhhh! >> >> and set OFF this LOG file !!!!!!!!!!! >> it slow down a lots! >> > Yes I realized that as layed down to take a 10 minute relax! > > Some statistics: > > Roughly 4min 20sec 459965 records added, including creation of db and > structure. But db size 1.73 GB! Of which index 16.5 Mb and data 1.72 GB, > NoLog. > > RAR 7060Kb > ZIP 10879 Kb (With RAR) > 7z 4537kb > > All normal compression, whole db 4 files. Db size is wrong.... Well, in latest 2.3.1 Valentina Studio you can see size of separate table and even field. To see easy all sizes in top bar, at left you can see 2 buttons. Switch to Tree View. And here find who eat space.. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sat Apr 29 23:06:12 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 16:06:17 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060429205941.E536E5A3B75@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 21:30 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 9:56 PM, "Joakim Schramm" wrote: > > Hi Joakim, > > > So if needed you can send to us this file and VB project to > test here.. > Not yet, error gone so no reason and I can sure slim both my code and structure probably. > > I expet this to be more then the text files, as when > imoprting to my > > old db it takes 46Mb - 333 sounds rediculus much and the > import isn't even ready! > > Show please your table structure. > May be you use String[N] fields? > Hard for me though to see what creates such big size in in structure, here it is: Private Sub CreateStructure() Dim mTblCountry As VTable Dim mTblPlaces As VTable Dim mTblZones As VTable Dim blink As VLink Set mTblCountry = mDatabase.CreateTable(tblCountry + sLang) mTblCountry.CreateVarCharField "CName", 1022, fIndexed mTblCountry.CreateVarCharField "CID", 1022, fIndexed ' Set mTblCountry = mDatabase.CreateTable(tblCountryAlias) mTblCountry.CreateVarCharField "CName", 1022, fIndexed mTblCountry.CreateVarCharField "CID", 1022, fIndexed ' Set mTblPlaces = mDatabase.CreateTable(tblPlaces) mTblPlaces.CreateVarCharField "PName", 1022, fIndexed mTblPlaces.CreateByteField "LongDeg" mTblPlaces.CreateByteField "LongMin" mTblPlaces.CreateByteField "LongSec" mTblPlaces.CreateShortField "LongSign" mTblPlaces.CreateByteField "LatDeg" mTblPlaces.CreateByteField "LatMin" mTblPlaces.CreateByteField "LatSec" mTblPlaces.CreateShortField "LatSign" mTblPlaces.CreateVarCharField "FK_CID", 1022, fIndexed mTblPlaces.CreateShortField "ZID" ' Set mTblZones = mDatabase.CreateTable(tblZoneData) mTblZones.CreateDateTimeField "DateChange", fIndexed mTblZones.CreateVarCharField "ZoneDiff", 1022, fNone mTblZones.CreateVarCharField "FK_CID", 1022, fIndexed mTblZones.CreateShortField "FK_ZID", fIndexed End Sub > Also what size of EMPTY Valentina db, after you create your tables? > 1,43 Mb > > code. I was able to open the db in Vstudio and noticed that nothing > > had gone inte to my zone table and probably I assign value > to DateTime Coding mistake of me, now data when in and db size went up :-) Dramatically I would say. I belive though when after setting Binary Links and removing unnecessary key fields it will get smaller, would prefere though not to a have db larger the 50-75Mb, old one is 46Mb > > field wrongly (Table.Field("DateTime").SetString "1999/10/04 > > 13:23:00") but I couldn't find anywere in the docs about > how to format > > the string to add to this field. > > 1) I believe exists API function to set numeric values into > DateTime fields. You mean I can use .SetDate() and .SetTime with DateTime field? I suspect this field contribute a lot to size. But the data there is now visible as I added it but 8 byte? > > 2) Format in the string can be controlled by YOU with help > db.DateTimeformat I know, I have set format. > > > Does VarChar fields affect size depending on maxsize aka > 1022, if only > > 3 or > > 4 charcters is stored in field? > > No, OK > > On disk should be used 3-4 bytes PLUS at ULONG. > > Note, for such small strings ( <= 8 bytes) it can be more > effective to use String[4] > CreateStringField( "Name", 4) ? Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sat Apr 29 23:19:59 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 16:20:01 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060429211328.ADCBD70DBE3@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 29 April 2006 23:02 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/29/06 11:48 PM, "Joakim Schramm" wrote: > > > > > Some statistics: > > > > Roughly 4min 20sec 459965 records added, including creation > of db and > > structure. But db size 1.73 GB! Of which index 16.5 Mb and > data 1.72 > > GB, NoLog. > > > > RAR 7060Kb > > ZIP 10879 Kb (With RAR) > > 7z 4537kb > > > > All normal compression, whole db 4 files. > > Db size is wrong.... Yes it sure must be! > > Well, in latest 2.3.1 Valentina Studio you can see size of > separate table and even field. > I have 2.3 fc18 - is that the one? > To see easy all sizes in top bar, at left you can see 2 buttons. > Switch to Tree View. And here find who eat space.. > How can I see size? I see field Length in tree view but always 0 or empty, and in property dialog Length of String sometime 1022, that's Maxsize varChald set to. I will try reduce and see it that changes, maybe also test compact - but is that compression or just "cleaning"? Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sat Apr 29 23:31:12 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 16:31:15 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060429212442.12D4370D963@merc.astrocalc.net> > > Db size is wrong.... > > Well, in latest 2.3.1 Valentina Studio you can see size of > separate table and even field. > > To see easy all sizes in top bar, at left you can see 2 buttons. > Switch to Tree View. And here find who eat space.. > Changed Maxsize of VarChar, all except 2 to 4 and the 2 to 100, 2 short changed to Byte. Db now 539 MB, but that still rediculus big, or do Valentina create BIG size db's? Will test compression, but were most effective and best performance? Have you consider 7zip for compression? It's Open Source and very effective, you see my figures before about half size of RAR. Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sat Apr 29 23:44:01 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 16:44:03 2006 Subject: Table structure? In-Reply-To: <20060429212442.12D4370D963@merc.astrocalc.net> Message-ID: <20060429213731.007015A3B75@merc.astrocalc.net> Ahh now it start to look like something! I tested removing key field as if I have added Binary Links, and import was very fast, less then 1 minute AND db only 42Mb :-) Now we are in bisiness my fiend! Joakim > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Joakim Schramm > Sent: 29 April 2006 23:31 > To: 'Valentina Developers' > Subject: RE: Table structure? > > > > > Db size is wrong.... > > > > Well, in latest 2.3.1 Valentina Studio you can see size of > separate > > table and even field. > > > > To see easy all sizes in top bar, at left you can see 2 buttons. > > Switch to Tree View. And here find who eat space.. > > > Changed Maxsize of VarChar, all except 2 to 4 and the 2 to > 100, 2 short changed to Byte. > > Db now 539 MB, but that still rediculus big, or do Valentina > create BIG size db's? > > Will test compression, but were most effective and best performance? > > Have you consider 7zip for compression? It's Open Source and > very effective, you see my figures before about half size of RAR. > > Joakim > > > > -- > > Best regards, > > > > Ruslan Zasukhin > > VP Engineering and New Technology > > Paradigma Software, Inc > > > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > > > [I feel the need: the need for speed] > > > > > > _______________________________________________ > > Valentina mailing list > > Valentina@lists.macserve.net > > http://lists.macserve.net/mailman/listinfo/valentina > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 01:54:15 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 17:54:23 2006 Subject: Table structure? In-Reply-To: <20060429212442.12D4370D963@merc.astrocalc.net> Message-ID: On 4/30/06 12:31 AM, "Joakim Schramm" wrote: >> Db size is wrong.... >> >> Well, in latest 2.3.1 Valentina Studio you can see size of >> separate table and even field. >> >> To see easy all sizes in top bar, at left you can see 2 buttons. >> Switch to Tree View. And here find who eat space.. >> > Changed Maxsize of VarChar, all except 2 to 4 and the 2 to 100, 2 short > changed to Byte. > > Db now 539 MB, but that still rediculus big, or do Valentina create BIG size > db's? NO. Valentina create dbs smaller than other dbs do! > Will test compression, but were most effective and best performance? ^^^^^^^^^ text compression? > Have you consider 7zip for compression? It's Open Source and very effective, > you see my figures before about half size of RAR. 7z compress better of RAR ?! I have hear about it, but never try it. Yes, we can add it into Valentina also -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 01:54:41 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 17:54:47 2006 Subject: Table structure? In-Reply-To: <20060429212442.12D4370D963@merc.astrocalc.net> Message-ID: On 4/30/06 12:31 AM, "Joakim Schramm" wrote: > Have you consider 7zip for compression? It's Open Source and very effective, > you see my figures before about half size of RAR. Now it is possible to use ZIP compression for BLOB/TEXT -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 01:55:37 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 17:55:44 2006 Subject: Table structure? In-Reply-To: <20060429213731.007015A3B75@merc.astrocalc.net> Message-ID: On 4/30/06 12:44 AM, "Joakim Schramm" wrote: > Ahh now it start to look like something! > > I tested removing key field as if I have added Binary Links, and import was > very fast, less then 1 minute AND db only 42Mb :-) > > Now we are in bisiness my fiend! Good, I have not catch WHAT STEP have fix db size for you? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 01:55:59 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Apr 29 17:56:06 2006 Subject: Table structure? In-Reply-To: <20060429211328.ADCBD70DBE3@merc.astrocalc.net> Message-ID: On 4/30/06 12:19 AM, "Joakim Schramm" wrote: >> Well, in latest 2.3.1 Valentina Studio you can see size of >> separate table and even field. >> > I have 2.3 fc18 - is that the one? Now, you need 2.3.1 RELEASE -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 04:07:32 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 21:07:36 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430020101.2D7DE88FAE@merc.astrocalc.net> Hoo couldn't sleep, thinking db all time ho ho... > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 00:54 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 12:31 AM, "Joakim Schramm" wrote: > > > > Have you consider 7zip for compression? It's Open Source and very > > effective, you see my figures before about half size of RAR. > > 7z compress better of RAR ?! > Yes, much better but I compressed with old RAR I think 3.20 and old 7z 3.13 (is 4.something now), so not sure if differs the same as with these versions - half size - but it might depend on type of data compressed. Btw, 7z developed by another Russian - of course :-) > I have hear about it, but never try it. > Yes, we can add it into Valentina also > Good idea. Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 04:13:05 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 21:13:12 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430020634.B828B89155@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 00:56 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 12:44 AM, "Joakim Schramm" wrote: > > > Ahh now it start to look like something! > > > > I tested removing key field as if I have added Binary Links, and > > import was very fast, less then 1 minute AND db only 42Mb :-) > > > > Now we are in bisiness my fiend! > > Good, > > I have not catch WHAT STEP have fix db size for you? Not really me either, I removed keys and imported and it dropped from 500+ to 42Mb, I added keys again and now only 75Mb instead of 500+ - very strange. There must have been some big baloon of air somewere in memory/cache maybe? I noticed when doing 500+ Mb db it didn't flush until it was ready, if it can say something. I have big memory 2GB so maybe Valentina felt too comfortable :-) Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 04:13:58 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sat Apr 29 21:13:59 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430020727.2981489155@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 00:56 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 12:19 AM, "Joakim Schramm" wrote: > > >> Well, in latest 2.3.1 Valentina Studio you can see size > of separate > >> table and even field. > >> > > I have 2.3 fc18 - is that the one? > > Now, you need 2.3.1 RELEASE > And were is it? I downloaded this from site some days ago. Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 10:11:55 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 02:12:04 2006 Subject: Table structure? In-Reply-To: <20060430020727.2981489155@merc.astrocalc.net> Message-ID: On 4/30/06 5:13 AM, "Joakim Schramm" wrote: >> Now, you need 2.3.1 RELEASE >> > And were is it? I downloaded this from site some days ago. It is on site http://www.paradigmasoft.com/en/products/download/VSTUDIO -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 10:12:24 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 02:12:32 2006 Subject: Table structure? In-Reply-To: <20060430020634.B828B89155@merc.astrocalc.net> Message-ID: On 4/30/06 5:13 AM, "Joakim Schramm" wrote: > Not really me either, I removed keys and imported and it dropped from 500+ > to 42Mb, I added keys again and now only 75Mb instead of 500+ - very > strange. There must have been some big baloon of air somewere in > memory/cache maybe? I noticed when doing 500+ Mb db it didn't flush until it > was ready, if it can say something. I have big memory 2GB so maybe Valentina > felt too comfortable :-) No, flush, cache, RAM do not affect size of db. Strange -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 11:05:24 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 04:05:26 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430085852.E4AE749409@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 09:12 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 5:13 AM, "Joakim Schramm" wrote: > > >> Now, you need 2.3.1 RELEASE > >> > > And were is it? I downloaded this from site some days ago. > > It is on site > > http://www.paradigmasoft.com/en/products/download/VSTUDIO > Ahh uploaded just some days ago, I have missed it. It's field for Place name taking big space, 50mb. I set it to max length 100, but maybe 60 is enough. Btw, if you install without removing old VS exe is not overwritten and start give exception error. Joakim Thanks, > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 11:07:03 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 04:07:03 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430090032.4B5E688FAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 09:12 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 5:13 AM, "Joakim Schramm" wrote: > > > Not really me either, I removed keys and imported and it > dropped from > > 500+ to 42Mb, I added keys again and now only 75Mb instead > of 500+ - > > very strange. There must have been some big baloon of air > somewere in > > memory/cache maybe? I noticed when doing 500+ Mb db it didn't flush > > until it was ready, if it can say something. I have big > memory 2GB so > > maybe Valentina felt too comfortable :-) > > No, flush, cache, RAM do not affect size of db. > > Strange Ok no problem, size is decent now so all is well. Now I will try the next step, getting binlinks in. Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 13:06:31 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 06:06:37 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: Message-ID: <20060430110004.1693273DDAE@merc.astrocalc.net> Hi, Why does the (VB6) code below not work? NextRecord does't do anything just stay on same RecId 1, so field references etc. never gets updated etc. does COM object don't work with With ... End With? Dim IdRec As Long Dim B As Boolean Dim sKey As String Dim fldPtr As VField Dim fldFK As VField Dim fldPK As VField Dim mTblCountry As VTable Dim mTblAlias As VTable 'prepare binary links 'Set mLinkCA = mDatabase.Link(lnkCountryAlias) Set mTblCountry = mDatabase.Table(tblCountry & sLang) Set mTblAlias = mDatabase.Table(tblCountryAlias) With mTblAlias Set fldPtr = .Field("PtrAlias") Set fldFK = .Field("CID") Set fldPK = mTblCountry.Field("CID") Call .FirstRecord Do While Not .EOF sKey = Trim$(fldFK.Value) IdRec = fldPK.FindSingle(sKey) If IdRec <> 0 Then fldPtr.Value = IdRec .UpdateRecord Else MsgBox "No " & sKey End If B = .NextRecord Loop End With Only part working is sKey = Trim$(fldFK.Value) IdRec = fldPK.FindSingle(sKey) If IdRec <> 0 Then fldPtr.Value = IdRec .UpdateRecord Else MsgBox "No " & sKey End If What am I doing wrong? Regards, Joakim > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 09:12 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 5:13 AM, "Joakim Schramm" wrote: > > > Not really me either, I removed keys and imported and it > dropped from > > 500+ to 42Mb, I added keys again and now only 75Mb instead > of 500+ - > > very strange. There must have been some big baloon of air > somewere in > > memory/cache maybe? I noticed when doing 500+ Mb db it didn't flush > > until it was ready, if it can say something. I have big > memory 2GB so > > maybe Valentina felt too comfortable :-) > > No, flush, cache, RAM do not affect size of db. > > Strange > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 13:18:27 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 06:18:27 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: <20060430110004.1693273DDAE@merc.astrocalc.net> Message-ID: <20060430111155.6A6E074EFE0@merc.astrocalc.net> I think NextRecord is broken in COM, With Tbl .LastRecord Do while Not Cbool(.BOF) ... ... .PrevRecord Loop End With Works, but not the other way around. I know the code above misses 1 rec but it's just to show. Joakim > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Joakim Schramm > Sent: 30 April 2006 13:07 > To: 'Valentina Developers' > Subject: NextRecord and ObjectPtr? > > Hi, > > Why does the (VB6) code below not work? NextRecord does't do > anything just stay on same RecId 1, so field references etc. > never gets updated etc. does COM object don't work with With > ... End With? > Dim IdRec As Long > Dim B As Boolean > Dim sKey As String > Dim fldPtr As VField > Dim fldFK As VField > Dim fldPK As VField > Dim mTblCountry As VTable > Dim mTblAlias As VTable > > 'prepare binary links > 'Set mLinkCA = mDatabase.Link(lnkCountryAlias) Set > mTblCountry = mDatabase.Table(tblCountry & sLang) Set > mTblAlias = mDatabase.Table(tblCountryAlias) > > With mTblAlias > Set fldPtr = .Field("PtrAlias") > Set fldFK = .Field("CID") > Set fldPK = mTblCountry.Field("CID") > Call .FirstRecord > > Do While Not .EOF > sKey = Trim$(fldFK.Value) > IdRec = fldPK.FindSingle(sKey) > > If IdRec <> 0 Then > fldPtr.Value = IdRec > .UpdateRecord > Else > MsgBox "No " & sKey > End If > > B = .NextRecord > Loop > > End With > > Only part working is > > sKey = Trim$(fldFK.Value) > IdRec = fldPK.FindSingle(sKey) > > If IdRec <> 0 Then > fldPtr.Value = IdRec > .UpdateRecord > Else > MsgBox "No " & sKey > End If > > What am I doing wrong? > > Regards, > > Joakim > > -----Original Message----- > > From: valentina-bounces@lists.macserve.net > > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ruslan > > Zasukhin > > Sent: 30 April 2006 09:12 > > To: valentina@lists.macserve.net > > Subject: Re: Table structure? > > > > On 4/30/06 5:13 AM, "Joakim Schramm" wrote: > > > > > Not really me either, I removed keys and imported and it > > dropped from > > > 500+ to 42Mb, I added keys again and now only 75Mb instead > > of 500+ - > > > very strange. There must have been some big baloon of air > > somewere in > > > memory/cache maybe? I noticed when doing 500+ Mb db it > didn't flush > > > until it was ready, if it can say something. I have big > > memory 2GB so > > > maybe Valentina felt too comfortable :-) > > > > No, flush, cache, RAM do not affect size of db. > > > > Strange > > > > -- > > Best regards, > > > > Ruslan Zasukhin > > VP Engineering and New Technology > > Paradigma Software, Inc > > > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > > > [I feel the need: the need for speed] > > > > > > _______________________________________________ > > Valentina mailing list > > Valentina@lists.macserve.net > > http://lists.macserve.net/mailman/listinfo/valentina > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 13:32:54 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 06:32:57 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: <20060430111155.6A6E074EFE0@merc.astrocalc.net> Message-ID: <20060430112623.A231F7C625E@merc.astrocalc.net> Well that wasn't really true either PrevRecord works once then it stays on same record and doesn't move on. Joakim > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Joakim Schramm > Sent: 30 April 2006 13:18 > To: 'Valentina Developers' > Subject: RE: NextRecord and ObjectPtr? > > I think NextRecord is broken in COM, > > With Tbl > .LastRecord > Do while Not Cbool(.BOF) > ... > ... > .PrevRecord > Loop > End With > > Works, but not the other way around. I know the code above > misses 1 rec but it's just to show. > > Joakim > > > -----Original Message----- > > From: valentina-bounces@lists.macserve.net > > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Joakim > > Schramm > > Sent: 30 April 2006 13:07 > > To: 'Valentina Developers' > > Subject: NextRecord and ObjectPtr? > > > > Hi, > > > > Why does the (VB6) code below not work? NextRecord does't > do anything > > just stay on same RecId 1, so field references etc. > > never gets updated etc. does COM object don't work with > With ... End > > With? > > Dim IdRec As Long > > Dim B As Boolean > > Dim sKey As String > > Dim fldPtr As VField > > Dim fldFK As VField > > Dim fldPK As VField > > Dim mTblCountry As VTable > > Dim mTblAlias As VTable > > > > 'prepare binary links > > 'Set mLinkCA = mDatabase.Link(lnkCountryAlias) Set mTblCountry = > > mDatabase.Table(tblCountry & sLang) Set mTblAlias = > > mDatabase.Table(tblCountryAlias) > > > > With mTblAlias > > Set fldPtr = .Field("PtrAlias") > > Set fldFK = .Field("CID") > > Set fldPK = mTblCountry.Field("CID") > > Call .FirstRecord > > > > Do While Not .EOF > > sKey = Trim$(fldFK.Value) > > IdRec = fldPK.FindSingle(sKey) > > > > If IdRec <> 0 Then > > fldPtr.Value = IdRec > > .UpdateRecord > > Else > > MsgBox "No " & sKey > > End If > > > > B = .NextRecord > > Loop > > > > End With > > > > Only part working is > > > > sKey = Trim$(fldFK.Value) > > IdRec = fldPK.FindSingle(sKey) > > > > If IdRec <> 0 Then > > fldPtr.Value = IdRec > > .UpdateRecord > > Else > > MsgBox "No " & sKey > > End If > > > > What am I doing wrong? > > > > Regards, > > > > Joakim > > > -----Original Message----- > > > From: valentina-bounces@lists.macserve.net > > > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ruslan > > > Zasukhin > > > Sent: 30 April 2006 09:12 > > > To: valentina@lists.macserve.net > > > Subject: Re: Table structure? > > > > > > On 4/30/06 5:13 AM, "Joakim Schramm" wrote: > > > > > > > Not really me either, I removed keys and imported and it > > > dropped from > > > > 500+ to 42Mb, I added keys again and now only 75Mb instead > > > of 500+ - > > > > very strange. There must have been some big baloon of air > > > somewere in > > > > memory/cache maybe? I noticed when doing 500+ Mb db it > > didn't flush > > > > until it was ready, if it can say something. I have big > > > memory 2GB so > > > > maybe Valentina felt too comfortable :-) > > > > > > No, flush, cache, RAM do not affect size of db. > > > > > > Strange > > > > > > -- > > > Best regards, > > > > > > Ruslan Zasukhin > > > VP Engineering and New Technology > > > Paradigma Software, Inc > > > > > > Valentina - Joining Worlds of Information > > http://www.paradigmasoft.com > > > > > > [I feel the need: the need for speed] > > > > > > > > > _______________________________________________ > > > Valentina mailing list > > > Valentina@lists.macserve.net > > > http://lists.macserve.net/mailman/listinfo/valentina > > > > > > > _______________________________________________ > > Valentina mailing list > > Valentina@lists.macserve.net > > http://lists.macserve.net/mailman/listinfo/valentina > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 14:48:27 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 06:48:32 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: <20060430111155.6A6E074EFE0@merc.astrocalc.net> Message-ID: On 4/30/06 2:18 PM, "Joakim Schramm" wrote: > I think NextRecord is broken in COM, I think we use this method in the Examples/API/Records_AddDeleteUpdate Please check this example. IT should have 4 navigation buttons, And I doubt they are not working. Let me know -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 14:50:14 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 06:50:18 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: <20060430110004.1693273DDAE@merc.astrocalc.net> Message-ID: On 4/30/06 2:06 PM, "Joakim Schramm" wrote: > Why does the (VB6) code below not work? NextRecord does't do anything just > stay on same RecId 1, so field references etc. never gets updated etc. does > COM object don't work with With ... End With? Kirill, Please check point with in VCOM asap With ... End With > Dim IdRec As Long > Dim B As Boolean > Dim sKey As String > Dim fldPtr As VField > Dim fldFK As VField > Dim fldPK As VField > Dim mTblCountry As VTable > Dim mTblAlias As VTable > > 'prepare binary links > 'Set mLinkCA = mDatabase.Link(lnkCountryAlias) > Set mTblCountry = mDatabase.Table(tblCountry & sLang) > Set mTblAlias = mDatabase.Table(tblCountryAlias) > > With mTblAlias > Set fldPtr = .Field("PtrAlias") > Set fldFK = .Field("CID") > Set fldPK = mTblCountry.Field("CID") > Call .FirstRecord > > Do While Not .EOF > sKey = Trim$(fldFK.Value) > IdRec = fldPK.FindSingle(sKey) > > If IdRec <> 0 Then > fldPtr.Value = IdRec > .UpdateRecord > Else > MsgBox "No " & sKey > End If > > B = .NextRecord > Loop > > End With > > Only part working is > > sKey = Trim$(fldFK.Value) > IdRec = fldPK.FindSingle(sKey) > > If IdRec <> 0 Then > fldPtr.Value = IdRec > .UpdateRecord > Else > MsgBox "No " & sKey > End If > > What am I doing wrong? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 14:53:33 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 06:53:38 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: <20060430110004.1693273DDAE@merc.astrocalc.net> Message-ID: On 4/30/06 2:06 PM, "Joakim Schramm" wrote: > Hi, > > Why does the (VB6) code below not work? NextRecord does't do anything just > stay on same RecId 1, so field references etc. never gets updated etc. does > COM object don't work with With ... End With? > Dim IdRec As Long > Dim B As Boolean > Dim sKey As String > Dim fldPtr As VField > Dim fldFK As VField > Dim fldPK As VField > Dim mTblCountry As VTable > Dim mTblAlias As VTable > > 'prepare binary links > 'Set mLinkCA = mDatabase.Link(lnkCountryAlias) > Set mTblCountry = mDatabase.Table(tblCountry & sLang) > Set mTblAlias = mDatabase.Table(tblCountryAlias) > > With mTblAlias > Set fldPtr = .Field("PtrAlias") > Set fldFK = .Field("CID") > Set fldPK = mTblCountry.Field("CID") > Call .FirstRecord > > Do While Not .EOF > sKey = Trim$(fldFK.Value) > IdRec = fldPK.FindSingle(sKey) > > If IdRec <> 0 Then > fldPtr.Value = IdRec > .UpdateRecord > Else > MsgBox "No " & sKey > End If > > B = .NextRecord > Loop Okay I see mistake. To do loop you use Do While Not .EOF Loop EOF() property is from group of methods for ODBC style navigation. You can use it only with NextRecord_ODBC methods. The normal loop should looks as: tbl.FirstRecord() do while( tbl.NextRecord() ) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 15:00:46 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 07:00:50 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: <20060430110004.1693273DDAE@merc.astrocalc.net> Message-ID: On 4/30/06 2:06 PM, "Joakim Schramm" wrote: > Dim IdRec As Long > Dim B As Boolean > Dim sKey As String > Dim fldPtr As VField > Dim fldFK As VField > Dim fldPK As VField > Dim mTblCountry As VTable > Dim mTblAlias As VTable > > 'prepare binary links > 'Set mLinkCA = mDatabase.Link(lnkCountryAlias) > Set mTblCountry = mDatabase.Table(tblCountry & sLang) > Set mTblAlias = mDatabase.Table(tblCountryAlias) > > With mTblAlias > Set fldPtr = .Field("PtrAlias") > Set fldFK = .Field("CID") > Set fldPK = mTblCountry.Field("CID") > Call .FirstRecord > > Do While Not .EOF > sKey = Trim$(fldFK.Value) > IdRec = fldPK.FindSingle(sKey) > > If IdRec <> 0 Then > fldPtr.Value = IdRec > .UpdateRecord > Else > MsgBox "No " & sKey > End If > > B = .NextRecord > Loop > > End With Joakim, 1) am I right that you here convert FK-link to ObjectPtr link ? it seems yes. 2) you do iteration by MANY table, and use FindSingle() to find record in ONE table. This is not best way. Better do reverse: iterate ONE table, and do FindLinked(). 3) But, even simpler! Valentina can do this operation for you. look on method VObjectPtr.ConvertRDBLink() also exists analog SQL command 4) we have no yet similar function to convert FK to BinaryLink. in WIKI on Vlink pages, this set of tasks is named REFACTORING of links. We need yet develop it to get complete picture -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 14:46:09 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 07:18:21 2006 Subject: Table structure? In-Reply-To: <20060430085852.E4AE749409@merc.astrocalc.net> Message-ID: On 4/30/06 12:05 PM, "Joakim Schramm" wrote: >> http://www.paradigmasoft.com/en/products/download/VSTUDIO >> > Ahh uploaded just some days ago, I have missed it. It's field for Place name > taking big space, 50mb. I set it to max length 100, but maybe 60 is enough. But what its type is? IF it is String, you need replace on VarChar! In below code I see only VarChars with 1022 length > Private Sub CreateStructure() > Dim mTblCountry As VTable > Dim mTblPlaces As VTable > Dim mTblZones As VTable > Dim blink As VLink > > Set mTblCountry = mDatabase.CreateTable(tblCountry + sLang) > mTblCountry.CreateVarCharField "CName", 1022, fIndexed > mTblCountry.CreateVarCharField "CID", 1022, fIndexed > ' > Set mTblCountry = mDatabase.CreateTable(tblCountryAlias) > mTblCountry.CreateVarCharField "CName", 1022, fIndexed > mTblCountry.CreateVarCharField "CID", 1022, fIndexed > ' > Set mTblPlaces = mDatabase.CreateTable(tblPlaces) > mTblPlaces.CreateVarCharField "PName", 1022, fIndexed > mTblPlaces.CreateByteField "LongDeg" > mTblPlaces.CreateByteField "LongMin" > mTblPlaces.CreateByteField "LongSec" > mTblPlaces.CreateShortField "LongSign" > mTblPlaces.CreateByteField "LatDeg" > mTblPlaces.CreateByteField "LatMin" > mTblPlaces.CreateByteField "LatSec" > mTblPlaces.CreateShortField "LatSign" > mTblPlaces.CreateVarCharField "FK_CID", 1022, fIndexed > mTblPlaces.CreateShortField "ZID" > ' > Set mTblZones = mDatabase.CreateTable(tblZoneData) > mTblZones.CreateDateTimeField "DateChange", fIndexed > mTblZones.CreateVarCharField "ZoneDiff", 1022, fNone > mTblZones.CreateVarCharField "FK_CID", 1022, fIndexed > mTblZones.CreateShortField "FK_ZID", fIndexed > End Sub ----------------- > Btw, if you install without removing old VS exe is not overwritten and start > give exception error. Thank you for point, we will check flags of installer. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 14:41:22 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 07:41:27 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: Message-ID: <20060430123450.6D2A579AE38@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 13:48 > To: valentina@lists.macserve.net > Subject: Re: NextRecord and ObjectPtr? > > On 4/30/06 2:18 PM, "Joakim Schramm" wrote: > > > I think NextRecord is broken in COM, > > I think we use this method in the > > Examples/API/Records_AddDeleteUpdate > > Please check this example. IT should have 4 navigation > buttons, And I doubt they are not working. > > Let me know > Yes example works, so it must be something with my code OR db. Will look at the things in your other answers. Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 14:43:24 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 07:43:25 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: Message-ID: <20060430123652.7079D30265@merc.astrocalc.net> I don't think it's With ... End With as same without. So Kilill can rest :-) Joakim > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 13:50 > To: valentina@lists.macserve.net; kirill_pekarov@valentina-db.com > Subject: Re: NextRecord and ObjectPtr? > > On 4/30/06 2:06 PM, "Joakim Schramm" wrote: > > > Why does the (VB6) code below not work? NextRecord does't > do anything > > just stay on same RecId 1, so field references etc. never > gets updated > > etc. does COM object don't work with With ... End With? > > Kirill, > > Please check point with in VCOM asap > > With ... End With > > > > Dim IdRec As Long > > Dim B As Boolean > > Dim sKey As String > > Dim fldPtr As VField > > Dim fldFK As VField > > Dim fldPK As VField > > Dim mTblCountry As VTable > > Dim mTblAlias As VTable > > > > 'prepare binary links > > 'Set mLinkCA = mDatabase.Link(lnkCountryAlias) Set mTblCountry = > > mDatabase.Table(tblCountry & sLang) Set mTblAlias = > > mDatabase.Table(tblCountryAlias) > > > > With mTblAlias > > Set fldPtr = .Field("PtrAlias") > > Set fldFK = .Field("CID") > > Set fldPK = mTblCountry.Field("CID") > > Call .FirstRecord > > > > Do While Not .EOF > > sKey = Trim$(fldFK.Value) > > IdRec = fldPK.FindSingle(sKey) > > > > If IdRec <> 0 Then > > fldPtr.Value = IdRec > > .UpdateRecord > > Else > > MsgBox "No " & sKey > > End If > > > > B = .NextRecord > > Loop > > > > End With > > > > Only part working is > > > > sKey = Trim$(fldFK.Value) > > IdRec = fldPK.FindSingle(sKey) > > > > If IdRec <> 0 Then > > fldPtr.Value = IdRec > > .UpdateRecord > > Else > > MsgBox "No " & sKey > > End If > > > > What am I doing wrong? > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 14:49:07 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 07:49:11 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: Message-ID: <20060430124235.9188C30265@merc.astrocalc.net> > > Okay I see mistake. > > To do loop you use > > Do While Not .EOF > Loop > > EOF() property is from group of methods for ODBC style navigation. > You can use it only with NextRecord_ODBC methods. > > The normal loop should looks as: > > tbl.FirstRecord() > > do > > > while( tbl.NextRecord() ) > > Yes that works AND cleaner code as well - Thanks! Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 15:00:35 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 08:00:36 2006 Subject: NextRecord and ObjectPtr? In-Reply-To: Message-ID: <20060430125404.9A07230265@merc.astrocalc.net> > -----Original Message----- > > > > With mTblAlias > > Set fldPtr = .Field("PtrAlias") > > Set fldFK = .Field("CID") > > Set fldPK = mTblCountry.Field("CID") > > Call .FirstRecord > > > > Do While Not .EOF > > sKey = Trim$(fldFK.Value) > > IdRec = fldPK.FindSingle(sKey) > > > > If IdRec <> 0 Then > > fldPtr.Value = IdRec > > .UpdateRecord > > Else > > MsgBox "No " & sKey > > End If > > > > B = .NextRecord > > Loop > > > > End With > > Joakim, > > 1) am I right that you here convert FK-link to ObjectPtr link ? > it seems yes. > Yes. > 2) you do iteration by MANY table, and use FindSingle() to > find record in ONE table. > > This is not best way. Better do reverse: > iterate ONE table, and do FindLinked(). > Yes I understand so would be normally, but I only had 29 alias to link here and I just wanted to test. I sure do understand that Valentina has more power then I have understanding of her so far. Thanks for pointing this way out. > > 3) But, even simpler! > > Valentina can do this operation for you. > look on method VObjectPtr.ConvertRDBLink() > I was actually thinking of this one, but wasn't sure if it would do it, and then I got terribly hungry and had to run for a Pizza! > also exists analog SQL command > > 4) we have no yet similar function to convert FK to BinaryLink. > in WIKI on Vlink pages, this set of tasks is named > REFACTORING of links. > We need yet develop it to get complete picture > Ok THAT would have been very useful! But I understand everything has its time, just as with life you develop and getter by years, if you want to and work on it. Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 15:02:34 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 08:02:34 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430125602.9566430265@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 13:46 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 12:05 PM, "Joakim Schramm" wrote: > > >> http://www.paradigmasoft.com/en/products/download/VSTUDIO > >> > > Ahh uploaded just some days ago, I have missed it. It's field for > > Place name taking big space, 50mb. I set it to max length > 100, but maybe 60 is enough. > > But what its type is? IF it is String, you need replace on VarChar! > > In below code I see only VarChars with 1022 length > This code is now somewhat old as I have done changes so no more VarChar 1022 Size of db is now fine, even with the indexed key fields which I will remove when Binary links is in. Joakim > > Private Sub CreateStructure() > > Dim mTblCountry As VTable > > Dim mTblPlaces As VTable > > Dim mTblZones As VTable > > Dim blink As VLink > > > > Set mTblCountry = mDatabase.CreateTable(tblCountry + sLang) > > mTblCountry.CreateVarCharField "CName", 1022, fIndexed > > mTblCountry.CreateVarCharField "CID", 1022, fIndexed ' > > Set mTblCountry = mDatabase.CreateTable(tblCountryAlias) > > mTblCountry.CreateVarCharField "CName", 1022, fIndexed > > mTblCountry.CreateVarCharField "CID", 1022, fIndexed ' > > Set mTblPlaces = mDatabase.CreateTable(tblPlaces) > > mTblPlaces.CreateVarCharField "PName", 1022, fIndexed > > mTblPlaces.CreateByteField "LongDeg" > > mTblPlaces.CreateByteField "LongMin" > > mTblPlaces.CreateByteField "LongSec" > > mTblPlaces.CreateShortField "LongSign" > > mTblPlaces.CreateByteField "LatDeg" > > mTblPlaces.CreateByteField "LatMin" > > mTblPlaces.CreateByteField "LatSec" > > mTblPlaces.CreateShortField "LatSign" > > mTblPlaces.CreateVarCharField "FK_CID", 1022, fIndexed > > mTblPlaces.CreateShortField "ZID" > > ' > > Set mTblZones = mDatabase.CreateTable(tblZoneData) > > mTblZones.CreateDateTimeField "DateChange", fIndexed > > mTblZones.CreateVarCharField "ZoneDiff", 1022, fNone > > mTblZones.CreateVarCharField "FK_CID", 1022, fIndexed > > mTblZones.CreateShortField "FK_ZID", fIndexed End Sub > > > ----------------- > > > Btw, if you install without removing old VS exe is not > overwritten and > > start give exception error. > > Thank you for point, we will check flags of installer. > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 15:40:29 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 08:40:28 2006 Subject: Binary Links Message-ID: <20060430133357.75E9E7D810C@merc.astrocalc.net> Just a small question before dig into set up my binary links. Can I setup 2 or more links from the one side so I kind of get it like a WERE A=This AND B=That ? Well I might get it more as I get along the road, but was just thinking of this one in setting conitions on 2 or more tables... I intuitively sense the briliance of the binary links, just haven't fully got it into practice yet! Joakim From sunshine at public.kherson.ua Sun Apr 30 16:53:41 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 08:53:47 2006 Subject: Table structure? In-Reply-To: <20060430125602.9566430265@merc.astrocalc.net> Message-ID: On 4/30/06 4:02 PM, "Joakim Schramm" wrote: >> In below code I see only VarChars with 1022 length >> > This code is now somewhat old as I have done changes so no more VarChar 1022 You mean that you have convert all VarChar to Strings ??? This is also not good idea! For strings that can vary, and which can be with length > lets say 10 bytes, VarChars can be more effective of strings. String[20] - okay still can be String[60] ? Hmm. In 90% NO String[100] -- most probably no. VarChar better -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 16:55:06 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 08:55:10 2006 Subject: Binary Links In-Reply-To: <20060430133357.75E9E7D810C@merc.astrocalc.net> Message-ID: On 4/30/06 4:40 PM, "Joakim Schramm" wrote: > Just a small question before dig into set up my binary links. Can I setup 2 > or more links from the one side so I kind of get it like a WERE A=This AND > B=That ? Well I might get it more as I get along the road, but was just > thinking of this one in setting conitions on 2 or more tables... You ask if you can have several binary links between 2 tables? YES. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 15:58:42 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 08:58:43 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430135210.F3C4688FAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 15:54 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 4:02 PM, "Joakim Schramm" wrote: > > >> In below code I see only VarChars with 1022 length > >> > > This code is now somewhat old as I have done changes so no more > > VarChar 1022 > > You mean that you have convert all VarChar to Strings ??? No. > This is also not good idea! > I know, I read manual :-) > For strings that can vary, and which can be with length > > lets say 10 bytes, VarChars can be more effective of strings. > > String[20] - okay still can be > > String[60] ? Hmm. In 90% NO > > String[100] -- most probably no. VarChar better > I have only changed the maxsize of VarChar to smaller values, but most of them will go as I remove the keys. I have some of these now as 4 char strings. I know try to find out how I can iterate a BitSet returned from FindValue - but I guess it's somewere in the manual, so am looking for it. Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 16:01:35 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 09:01:37 2006 Subject: Binary Links In-Reply-To: Message-ID: <20060430135504.A6FED88FAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 15:55 > To: valentina@lists.macserve.net > Subject: Re: Binary Links > > On 4/30/06 4:40 PM, "Joakim Schramm" wrote: > > > Just a small question before dig into set up my binary links. Can I > > setup 2 or more links from the one side so I kind of get it like a > > WERE A=This AND B=That ? Well I might get it more as I get > along the > > road, but was just thinking of this one in setting > conitions on 2 or more tables... > > You ask if you can have several binary links between 2 tables? > YES. SAME 2 tables? It will then act as Field1Val AND Field2Val critera, or OR or etc. depending on function used to return RecSet/Item? Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 16:09:02 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 09:09:04 2006 Subject: Table structure? In-Reply-To: <20060430135210.F3C4688FAE@merc.astrocalc.net> Message-ID: <20060430140231.8BFB288FAE@merc.astrocalc.net> > > I know try to find out how I can iterate a BitSet returned > from FindValue - but I guess it's somewere in the manual, so > am looking for it. > Hmm I must this one fools me, I guess it's IVSetIterator to use to navigate record by record, but there is no exmaple how to actually get this linked with some real data. Joakim > Joakim > > > > -- > > Best regards, > > > > Ruslan Zasukhin > > VP Engineering and New Technology > > Paradigma Software, Inc > > > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > > > [I feel the need: the need for speed] > > > > > > _______________________________________________ > > Valentina mailing list > > Valentina@lists.macserve.net > > http://lists.macserve.net/mailman/listinfo/valentina > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 17:09:08 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 09:09:12 2006 Subject: Binary Links In-Reply-To: <20060430135504.A6FED88FAE@merc.astrocalc.net> Message-ID: On 4/30/06 5:01 PM, "Joakim Schramm" wrote: >> >>> Just a small question before dig into set up my binary links. Can I >>> setup 2 or more links from the one side so I kind of get it like a >>> WERE A=This AND B=That ? Well I might get it more as I get >> along the >>> road, but was just thinking of this one in setting >> conitions on 2 or more tables... >> >> You ask if you can have several binary links between 2 tables? >> YES. > > SAME 2 tables? yes > It will then act as Field1Val AND Field2Val critera, or OR or > etc. depending on function used to return RecSet/Item? Not exactly Let you have on left table T1 some record with RecID = 555 THIS record by link1 is linked to such records of right table T2 { 7 9 11 13 15 } And THIS record also is linked by link2 to record of right table T2 { 9 13 17 21 } You have function set1 = link1.FindLinked( 555, T1, T2 ) set2 = link2.FindLinked( 555, T1, T2 ) Now you have 2 sets. So you want "WERE A=This AND B=That" then you simple do intresection set3 = set1.intersect( set2 ) // => { 9, 13 } Works ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 16:28:52 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 09:28:57 2006 Subject: Binary Links In-Reply-To: Message-ID: <20060430142222.9A5487D8103@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 16:09 > To: valentina@lists.macserve.net > Subject: Re: Binary Links > > On 4/30/06 5:01 PM, "Joakim Schramm" wrote: > > >> > >>> Just a small question before dig into set up my binary > links. Can I > >>> setup 2 or more links from the one side so I kind of get > it like a > >>> WERE A=This AND B=That ? Well I might get it more as I get > >> along the > >>> road, but was just thinking of this one in setting > >> conitions on 2 or more tables... > >> > >> You ask if you can have several binary links between 2 tables? > >> YES. > > > > SAME 2 tables? > > yes > > > It will then act as Field1Val AND Field2Val critera, or OR or etc. > > depending on function used to return RecSet/Item? > > Not exactly > > Let you have on left table T1 some record with RecID = 555 > > THIS record by link1 is linked to such records of right table T2 > { 7 9 11 13 15 } > > And THIS record also is linked by link2 to record of right table T2 > { 9 13 17 21 } > > You have function > > set1 = link1.FindLinked( 555, T1, T2 ) > > set2 = link2.FindLinked( 555, T1, T2 ) > > Now you have 2 sets. > > So you want "WERE A=This AND B=That" then you simple do intresection > > set3 = set1.intersect( set2 ) // => { 9, 13 } > > Works ? > Ok I think I get it, BUT HOW do I get anything out if the returned BitSet??? I can only see it have these methods intersection etc. but no way to iterate the records or read a value? I have searched the docs over and over but just can't find it but I must be missing something. Probably due not used to work with this. Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 17:30:31 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 09:30:36 2006 Subject: Binary Links In-Reply-To: <20060430142222.9A5487D8103@merc.astrocalc.net> Message-ID: On 4/30/06 5:28 PM, "Joakim Schramm" wrote: > Ok I think I get it, BUT HOW do I get anything out if the returned BitSet??? > I can only see it have these methods intersection etc. but no way to iterate > the records or read a value? To iterate sets exists SetIterators. And set have Vset.MakeNewIterator() > I have searched the docs over and over but just can't find it but I must be > missing something. Probably due not used to work with this. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 17:31:30 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 09:31:33 2006 Subject: Table structure? In-Reply-To: <20060430135210.F3C4688FAE@merc.astrocalc.net> Message-ID: On 4/30/06 4:58 PM, "Joakim Schramm" wrote: >> For strings that can vary, and which can be with length > >> lets say 10 bytes, VarChars can be more effective of strings. >> >> String[20] - okay still can be >> >> String[60] ? Hmm. In 90% NO >> >> String[100] -- most probably no. VarChar better >> > I have only changed the maxsize of VarChar to smaller values, but most of > them will go as I remove the keys. I have some of these now as 4 char > strings. Deal is that maxsize of VarChar DO NOT make smaller db. IT is just logical limit which work on INSERT > I know try to find out how I can iterate a BitSet returned from FindValue - > but I guess it's somewere in the manual, so am looking for it. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 17:32:50 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 09:32:54 2006 Subject: Table structure? In-Reply-To: <20060430140231.8BFB288FAE@merc.astrocalc.net> Message-ID: On 4/30/06 5:09 PM, "Joakim Schramm" wrote: >> I know try to find out how I can iterate a BitSet returned >> from FindValue - but I guess it's somewere in the manual, so >> am looking for it. >> > > Hmm I must this one fools me, I guess it's IVSetIterator to use to navigate > record by record, but there is no exmaple how to actually get this linked > with some real data. Iterator is able return you current RecID So you do Table.RecID = iter.get() << not remember exact method name of get() -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 16:38:07 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 09:38:07 2006 Subject: Binary Links In-Reply-To: Message-ID: <20060430143135.542DC73DDAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 16:31 > To: valentina@lists.macserve.net > Subject: Re: Binary Links > > On 4/30/06 5:28 PM, "Joakim Schramm" wrote: > > > Ok I think I get it, BUT HOW do I get anything out if the > returned BitSet??? > > I can only see it have these methods intersection etc. but > no way to > > iterate the records or read a value? > > To iterate sets exists SetIterators. > > And set have Vset.MakeNewIterator() > Yes IVSet, but find functions retur IVBitSet or IVBitArraySet and they don't have .MakeNewIterator() Ok I guess I have to find the link between IVSet and the other 2, but why not possible to MakeNewIterator from BitSet? Joakim > > I have searched the docs over and over but just can't find it but I > > must be missing something. Probably due not used to work with this. > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 16:44:29 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 09:44:34 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430143757.864B488FAE@merc.astrocalc.net> > > I have only changed the maxsize of VarChar to smaller > values, but most > > of them will go as I remove the keys. I have some of these now as 4 > > char strings. > > Deal is that maxsize of VarChar DO NOT make smaller db. > IT is just logical limit which work on INSERT > Are you sure? It was by changing maxsize from default 1022 in all VarChar's to 4 for some and 60 to some size of db went down from 1.8 GB to 50 MB! However, when I tested and set back 1022 it didn't increase db again. Except, if I left old db and again created my structure and imported - that increased it lots so maybe there is a bug here somewere? I used to delete files before creating new db for test but I might forgot some time, giving base for db growing so big. I don't know, it just happened. Joakim Joakim > > I know try to find out how I can iterate a BitSet returned from > > FindValue - but I guess it's somewere in the manual, so am > looking for it. > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 17:47:53 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 09:47:57 2006 Subject: Binary Links In-Reply-To: <20060430143135.542DC73DDAE@merc.astrocalc.net> Message-ID: On 4/30/06 5:38 PM, "Joakim Schramm" wrote: >> To iterate sets exists SetIterators. >> >> And set have Vset.MakeNewIterator() >> > Yes IVSet, but find functions retur IVBitSet or IVBitArraySet and they don't > have .MakeNewIterator() It is in their parent Vset > Ok I guess I have to find the link between IVSet and the other 2, but why > not possible to MakeNewIterator from BitSet? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 16:55:54 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 09:55:54 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430144922.2FCD088FAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 16:33 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 5:09 PM, "Joakim Schramm" wrote: > > >> I know try to find out how I can iterate a BitSet returned from > >> FindValue - but I guess it's somewere in the manual, so am looking > >> for it. > >> > > > > Hmm I must this one fools me, I guess it's IVSetIterator to use to > > navigate record by record, but there is no exmaple how to > actually get > > this linked with some real data. > > Iterator is able return you current RecID > > So you do > > Table.RecID = iter.get() << not remember exact method > name of get() > Yes but what I don't undestand is HOW I get my returned IVBitSet into an IVSet object, I can't find any link between them. You say in other mail it's in there parent and I do understand what a Parent is, but still don't see any connection between them, not in the docs nor in the object browser, they all are clesses of ValentinaCOM2 - I guess I must be stupid not seeing it! Joakim > > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 18:00:09 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 10:00:13 2006 Subject: Table structure? In-Reply-To: <20060430143757.864B488FAE@merc.astrocalc.net> Message-ID: On 4/30/06 5:44 PM, "Joakim Schramm" wrote: >> Deal is that maxsize of VarChar DO NOT make smaller db. >> IT is just logical limit which work on INSERT >> > Are you sure? It was by changing maxsize from default 1022 in all VarChar's > to 4 for some and 60 to some size of db went down from 1.8 GB to 50 MB! > However, when I tested and set back 1022 it didn't increase db again. > Except, if I left old db and again created my structure and imported - that > increased it lots so maybe there is a bug here somewere? > > I used to delete files before creating new db for test but I might forgot > some time, giving base for db growing so big. I don't know, it just > happened. We nee check this. May be VCOM have but and instead of VarChar it create String. Please check this in Valentina Studio. What types of fields you see ? -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 17:04:03 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 10:04:08 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430145731.E59DD88FAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 17:00 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 5:44 PM, "Joakim Schramm" wrote: > > >> Deal is that maxsize of VarChar DO NOT make smaller db. > >> IT is just logical limit which work on INSERT > >> > > Are you sure? It was by changing maxsize from default 1022 in all > > VarChar's to 4 for some and 60 to some size of db went down > from 1.8 GB to 50 MB! > > However, when I tested and set back 1022 it didn't increase > db again. > > Except, if I left old db and again created my structure and > imported - > > that increased it lots so maybe there is a bug here somewere? > > > > I used to delete files before creating new db for test but I might > > forgot some time, giving base for db growing so big. I > don't know, it > > just happened. > > We nee check this. May be VCOM have but and instead of > VarChar it create String. > > Please check this in Valentina Studio. > > What types of fields you see ? I create VarChar but Vstudio say String YES, that's it. I just found a part in kernel doc about Vset and VBitSet and array, so maybe I can figure it out from there. It's a lot to get into the head! Joakim > > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Apr 30 18:05:23 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 10:05:27 2006 Subject: Table structure? In-Reply-To: <20060430144922.2FCD088FAE@merc.astrocalc.net> Message-ID: On 4/30/06 5:55 PM, "Joakim Schramm" wrote: >> Iterator is able return you current RecID >> >> So you do >> >> Table.RecID = iter.get() << not remember exact method >> name of get() >> > > Yes but what I don't undestand is HOW I get my returned IVBitSet into an > IVSet object, I can't find any link between them. You say in other mail it's > in there parent and I do understand what a Parent is, but still don't see > any connection between them, not in the docs nor in the object browser, they > all are clesses of ValentinaCOM2 - I guess I must be stupid not seeing it! prompt: IVSet and IVBitSet are 2 interfaces of the same object. so to switch in VB6 you simply use 'set' set set3 = pBitSet3 -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From sunshine at public.kherson.ua Sun Apr 30 18:07:03 2006 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Apr 30 10:07:06 2006 Subject: Table structure? In-Reply-To: <20060430145731.E59DD88FAE@merc.astrocalc.net> Message-ID: On 4/30/06 6:04 PM, "Joakim Schramm" wrote: >> What types of fields you see ? > > I create VarChar but Vstudio say String YES, that's it. Aha. Then please add this issue into our Mantis! > I just found a part in kernel doc about Vset and VBitSet and array, so maybe > I can figure it out from there. It's a lot to get into the head! Just keep in mind that we all try implement in NATURAL EASY way :-) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From joakim at astrocalc.com Sun Apr 30 17:13:04 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 10:13:05 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430150631.ED2BA73DDAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 17:05 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 5:55 PM, "Joakim Schramm" wrote: > > >> Iterator is able return you current RecID > >> > >> So you do > >> > >> Table.RecID = iter.get() << not remember exact method > >> name of get() > >> > > > > Yes but what I don't undestand is HOW I get my returned > IVBitSet into > > an IVSet object, I can't find any link between them. You > say in other > > mail it's in there parent and I do understand what a Parent is, but > > still don't see any connection between them, not in the docs nor in > > the object browser, they all are clesses of ValentinaCOM2 - > I guess I must be stupid not seeing it! > > prompt: IVSet and IVBitSet are 2 interfaces of the same object. > > so to switch in VB6 you simply use 'set' > > set set3 = pBitSet3 > Arrghh, it was so simple so it wasn't (almost) visible! I am not that used to work with classes. Ok then I see it, I didn't thought such thing was possible in VB6 as its implementation of classes are a bit limited. Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 17:16:07 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 10:16:06 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430150935.0004474EFE0@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 17:07 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 6:04 PM, "Joakim Schramm" wrote: > > >> What types of fields you see ? > > > > I create VarChar but Vstudio say String YES, that's it. > > Aha. Then please add this issue into our Mantis! > OK will do. > > I just found a part in kernel doc about Vset and VBitSet > and array, so > > maybe I can figure it out from there. It's a lot to get > into the head! > > Just keep in mind that we all try implement in NATURAL EASY way :-) > I know and what I have seen of Valentina so far I like very much but when you are new and not used to something it can become hard even if it's easy as there is so many thing that have to make place in small head getting bigger :-) Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 17:53:58 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 10:54:00 2006 Subject: Table structure? In-Reply-To: Message-ID: <20060430154726.39DDD88FAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Ruslan Zasukhin > Sent: 30 April 2006 17:07 > To: valentina@lists.macserve.net > Subject: Re: Table structure? > > On 4/30/06 6:04 PM, "Joakim Schramm" wrote: > > >> What types of fields you see ? > > > > I create VarChar but Vstudio say String YES, that's it. > > Aha. Then please add this issue into our Mantis! > > > I just found a part in kernel doc about Vset and VBitSet > and array, so > > maybe I can figure it out from there. It's a lot to get > into the head! > > Just keep in mind that we all try implement in NATURAL EASY way :-) > Ok but what I am doing wrong now, I get a cathastrofic automation error on the secont loop for .LinkRecords below. The first loop went fine and I can see the linked items in Vstudio. Set mTblPlaces = mDatabase.Table(tblPlaces) Set mLink = mDatabase.Link(lnkCountryPlace) ' lnkCountryPlace = const With mTblCountry If .RecordCount Then Set fldPK = .Field("CID") Set fldFK = mTblPlaces.Field("FK_CID") .FirstRecord Do IdRec = .RecID Set RecBitSet = fldFK.FindValue(fldPK.Value) 'As IVBitSet Set RecSet = RecBitSet Set RecItr = RecSet.MakeNewIterator recs(0) = .RecID With RecItr Do recs(1) = .Value Call mLink.LinkRecords(recs) <<-- crash here on second parent loop (RecId = 2) recs(2,1) Loop While .NextItem End With Loop While .NextRecord End If End With Joakim > -- > Best regards, > > Ruslan Zasukhin > VP Engineering and New Technology > Paradigma Software, Inc > > Valentina - Joining Worlds of Information http://www.paradigmasoft.com > > [I feel the need: the need for speed] > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From joakim at astrocalc.com Sun Apr 30 20:42:00 2006 From: joakim at astrocalc.com (Joakim Schramm) Date: Sun Apr 30 13:42:02 2006 Subject: Table structure? In-Reply-To: <20060430154726.39DDD88FAE@merc.astrocalc.net> Message-ID: <20060430183527.EE62F88FAE@merc.astrocalc.net> > -----Original Message----- > From: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] On Behalf Of > Joakim Schramm Well I found! > Ok but what I am doing wrong now, I get a cathastrofic > automation error on the secont loop for .LinkRecords below. > The first loop went fine and I can see the linked items in Vstudio. > > Set mTblPlaces = mDatabase.Table(tblPlaces) Set mLink = > mDatabase.Link(lnkCountryPlace) ' lnkCountryPlace = const > > With mTblCountry > > If .RecordCount Then > Set fldPK = .Field("CID") > Set fldFK = mTblPlaces.Field("FK_CID") > .FirstRecord > > Do > IdRec = .RecID > Set RecBitSet = fldFK.FindValue(fldPK.Value) 'As IVBitSet > Set RecSet = RecBitSet > Set RecItr = RecSet.MakeNewIterator > recs(0) = .RecID > > With RecItr > > Do > recs(1) = .Value > Call mLink.LinkRecords(recs) <<-- crash > here on second parent loop (RecId = 2) recs(2,1) > Loop While .NextItem > I though .Value returned RecId but it's just an index of the set, from 1 to amount. I, logically I think, assumed iterators just gave True/False as in Table object. Maybe something to stress in documentation as all the information make it easy to miss this thing as I did. Joakim > End With > > Loop While .NextRecord > > End If > > End With > > Joakim > > > -- > > Best regards, > > > > Ruslan Zasukhin > > VP Engineering and New Technology > > Paradigma Software, Inc > > > > Valentina - Joining Worlds of Information > http://www.paradigmasoft.com > > > > [I feel the need: the need for speed] > > > > > > _______________________________________________ > > Valentina mailing list > > Valentina@lists.macserve.net > > http://lists.macserve.net/mailman/listinfo/valentina > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina >