From jwcolby at colbyconsulting.com Thu Mar 1 15:33:57 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 01 Mar 2012 16:33:57 -0500 Subject: [dba-VB] C# - Finding panels in a form Message-ID: <4F4FEB45.1030806@colbyconsulting.com> How do I find physical controls on a form if they are behind something else? I have panels which it seems are almost completely covered by other controls. I need to change the name but I can't get ahold of the control to allow me to get at the properties. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From bill_patten at embarqmail.com Thu Mar 1 15:52:03 2012 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 1 Mar 2012 13:52:03 -0800 Subject: [dba-VB] C# - Finding panels in a form In-Reply-To: <4F4FEB45.1030806@colbyconsulting.com> References: <4F4FEB45.1030806@colbyconsulting.com> Message-ID: <61021C7BBE5E4BB9AEC846A9AC99C66B@BPCS> John, If your talking about VS C#, I usually just select the form view in the IDE and then in the drop down in the properties window, look for the name of the control, select it and the control will now be selected in the form window. HTH Bill -------------------------------------------------- From: "jwcolby" Sent: Thursday, March 01, 2012 1:33 PM To: "VBA" Subject: [dba-VB] C# - Finding panels in a form How do I find physical controls on a form if they are behind something else? I have panels which it seems are almost completely covered by other controls. I need to change the name but I can't get ahold of the control to allow me to get at the properties. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 1 16:03:55 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 01 Mar 2012 17:03:55 -0500 Subject: [dba-VB] C# - Finding panels in a form In-Reply-To: <61021C7BBE5E4BB9AEC846A9AC99C66B@BPCS> References: <4F4FEB45.1030806@colbyconsulting.com> <61021C7BBE5E4BB9AEC846A9AC99C66B@BPCS> Message-ID: <4F4FF24B.6040708@colbyconsulting.com> Ohhhh... I didn't see that. Thanks! John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 3/1/2012 4:52 PM, Bill Patten wrote: > > John, > > If your talking about VS C#, I usually just select the form view in the IDE > and then in the drop down in the properties window, look for the name of the > control, select it and the control will now be selected in the form window. > > HTH > > Bill > -------------------------------------------------- > From: "jwcolby" > Sent: Thursday, March 01, 2012 1:33 PM > To: "VBA" > Subject: [dba-VB] C# - Finding panels in a form > > How do I find physical controls on a form if they are behind something else? > I have panels which it > seems are almost completely covered by other controls. I need to change the > name but I can't get > ahold of the control to allow me to get at the properties. > From mcp2004 at mail.ru Thu Mar 1 18:47:30 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Fri, 02 Mar 2012 04:47:30 +0400 Subject: [dba-VB] =?utf-8?q?C=23_-_Finding_panels_in_a_form?= In-Reply-To: <4F4FEB45.1030806@colbyconsulting.com> References: <4F4FEB45.1030806@colbyconsulting.com> Message-ID: Hi John -- You can use Document Outline window: Ctrl+W,U Thank you. -- Shamil 02 ????? 2012, 01:35 ?? jwcolby : > How do I find physical controls on a form if they are behind something else? I have panels which it > seems are almost completely covered by other controls. I need to change the name but I can't get > ahold of the control to allow me to get at the properties. > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From bill_patten at embarqmail.com Thu Mar 1 19:06:31 2012 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 1 Mar 2012 17:06:31 -0800 Subject: [dba-VB] C# - Finding panels in a form In-Reply-To: References: <4F4FEB45.1030806@colbyconsulting.com> Message-ID: Shamil, That?s cool, but on my VS 2010 it's Ctrl Alt + T Much easier then my method. Bill -------------------------------------------------- From: "Salakhetdinov Shamil" Sent: Thursday, March 01, 2012 4:47 PM To: "Discussion concerning Visual Basic and related programming issues." Subject: Re: [dba-VB] C# - Finding panels in a form Hi John -- You can use Document Outline window: Ctrl+W,U Thank you. -- Shamil 02 ????? 2012, 01:35 ?? jwcolby : > How do I find physical controls on a form if they are behind something > else? I have panels which it > seems are almost completely covered by other controls. I need to change > the name but I can't get > ahold of the control to allow me to get at the properties. > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Sun Mar 4 05:38:20 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sun, 04 Mar 2012 15:38:20 +0400 Subject: [dba-VB] =?utf-8?q?C=23_development_stats?= Message-ID: Hi All -- The last 20+ days were rather intensive C# development here - and now when a VS2010 solution is ready to be accepted by customer I decided to calculate that solution's code stats - here they are - .cs files only, *.designer.* files not accounted: Solutions = 1 Projects = 7 Code Files = 141 Total Lines = 37,055 Total Chars = 1,362,574 Empty lines = 5,087 Comment lines = 3,888 Not empty Code Lines = 28,080 Avg chars per day = 68,128 <= [ 1,362,574 / 20] Avg lines per day = 1,703 <= [ 1,362,574 / 20 / 40] Avg code pages per fay = 28 <= [ 1,362,574 / 20 / 40/60] Then I decided to calculate stats of one customer projects for about last four years, again .cs files only, *.designer.* files are not accounted, there are no .aspx.cs files for this customer Solutions = 36 Projects = 170 Code Files = 3,326 Total Lines = 787,600 Total Chars = 23,552,926 Empty lines = 95,579 Comment lines = 131,460 Not empty Code Lines = 560,561 Avg chars per day = 16,823 <= [23,552,926 / 1400] Avg lines per day = 420 <= 23,552,926 / 1400/40] Avg code pages per fay = 7 <= 23,552,926 / 1400/40/60] It looks not bad, isn't it? I do use "copy and paste" to port code between projects, not that often but I do use it. When ported code starts to "live its own life" within host project... Most of the time I'm trying to reuse existing code from my classlibs as well as I'm applying OOP development principles to minimize code duplication... I do have common classlibs for all the projects so "copy & paste" duplication factor shouldn't be higher than 20% I guess. All in all even if just 50% of code was typed here manually during last four it happens to be: 8411.759 286 210.2939821 Avg. chars per day: 8412 <= [16,823 / 2 ] Avg. code lines per day: 210 <= [420 /2 ] Avg. code pages per day: ~3 .5 ( 40 chars per line, 60 lines per page) And that is in average for *every day* during last four years. And counted code lines constitute current "clean" code - how many code lines were typed, copied but edited out during last four years - that isn't known... 80% of developed projects are working in that customer's business 24x7x365... And this is just for one customer, main one taking 70-80% of work time. I must note I have never had such a productivity before with any other development tools... Please correct me if you'll find the above stats unreal... And what are your development stats? Thank you. -- Shamil From gustav at cactus.dk Sun Mar 4 11:28:23 2012 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 04 Mar 2012 18:28:23 +0100 Subject: [dba-VB] C# development stats Message-ID: Hi Shamil I have no statistics here, but I'm absolutely convinced that I hardly could reach higher than your feet. Most impressive ... indeed when one have in mind the quality of code you produce. Now, isn't it the time where you start billing by the code line and not by the hour!? /gustav >>> Salakhetdinov Shamil 04-03-12 12:38 >>> Hi All -- The last 20+ days were rather intensive C# development here - and now when a VS2010 solution is ready to be accepted by customer I decided to calculate that solution's code stats - here they are - .cs files only, *.designer.* files not accounted: Solutions = 1 Projects = 7 Code Files = 141 Total Lines = 37,055 Total Chars = 1,362,574 Empty lines = 5,087 Comment lines = 3,888 Not empty Code Lines = 28,080 Avg chars per day = 68,128 <= [ 1,362,574 / 20] Avg lines per day = 1,703 <= [ 1,362,574 / 20 / 40] Avg code pages per fay = 28 <= [ 1,362,574 / 20 / 40/60] Then I decided to calculate stats of one customer projects for about last four years, again .cs files only, *.designer.* files are not accounted, there are no .aspx.cs files for this customer Solutions = 36 Projects = 170 Code Files = 3,326 Total Lines = 787,600 Total Chars = 23,552,926 Empty lines = 95,579 Comment lines = 131,460 Not empty Code Lines = 560,561 Avg chars per day = 16,823 <= [23,552,926 / 1400] Avg lines per day = 420 <= 23,552,926 / 1400/40] Avg code pages per fay = 7 <= 23,552,926 / 1400/40/60] It looks not bad, isn't it? I do use "copy and paste" to port code between projects, not that often but I do use it. When ported code starts to "live its own life" within host project... Most of the time I'm trying to reuse existing code from my classlibs as well as I'm applying OOP development principles to minimize code duplication... I do have common classlibs for all the projects so "copy & paste" duplication factor shouldn't be higher than 20% I guess. All in all even if just 50% of code was typed here manually during last four it happens to be: 8411.759 286 210.2939821 Avg. chars per day: 8412 <= [16,823 / 2 ] Avg. code lines per day: 210 <= [420 /2 ] Avg. code pages per day: ~3 .5 ( 40 chars per line, 60 lines per page) And that is in average for *every day* during last four years. And counted code lines constitute current "clean" code - how many code lines were typed, copied but edited out during last four years - that isn't known... 80% of developed projects are working in that customer's business 24x7x365... And this is just for one customer, main one taking 70-80% of work time. I must note I have never had such a productivity before with any other development tools... Please correct me if you'll find the above stats unreal... And what are your development stats? Thank you. -- Shamil From mcp2004 at mail.ru Sun Mar 4 16:30:25 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Mon, 05 Mar 2012 02:30:25 +0400 Subject: [dba-VB] =?utf-8?q?C=23_development_stats?= In-Reply-To: References: Message-ID: Hi Gustav -- > Now, isn't it the time where you start billing > by the code line and not by the hour!? No joy :( I have to work fixed price - sometimes it works well, sometimes not, you know... If I have ever had opportunity to work paid by the code line I'd have had made a small fortune already... And I do rather strictly follow Edsger Dijkstra's maxim: "If we wish to count lines of code, we should not regard them as "lines produced" but as "lines spent". " which is quoted in an interesting discussion on subject published here: http://stackoverflow.com/questions/966800/mythical-man-month-10-lines-per-developer-day-how-close-on-large-projects It looks like 80-100 good quality well tested and documented code lines per day is a real average figure nowadays, independent from programming language used... Thank you. -- Shamil 04 ????? 2012, 21:21 ?? "Gustav Brock" : > Hi Shamil > > I have no statistics here, but I'm absolutely convinced that I hardly could reach higher than your feet. Most impressive ... indeed when one have in mind the quality of code you produce. > > Now, isn't it the time where you start billing by the code line and not by the hour!? > > /gustav > > >>> Salakhetdinov Shamil 04-03-12 12:38 >>> > Hi All -- > > The last 20+ days were rather intensive C# development here - and now when a VS2010 solution is ready to be accepted by customer I decided to calculate that solution's code stats - here they are - .cs files only, *.designer.* files not accounted: > > Solutions = 1 > Projects = 7 > Code Files = 141 > Total Lines = 37,055 > Total Chars = 1,362,574 > Empty lines = 5,087 > Comment lines = 3,888 > Not empty Code Lines = 28,080 > > Avg chars per day = 68,128 <= [ 1,362,574 / 20] > Avg lines per day = 1,703 <= [ 1,362,574 / 20 / 40] > Avg code pages per fay = 28 <= [ 1,362,574 / 20 / 40/60] > > Then I decided to calculate stats of one customer projects for about last four years, again .cs files only, *.designer.* files are not accounted, there are no .aspx.cs files for this customer > > Solutions = 36 > Projects = 170 > Code Files = 3,326 > Total Lines = 787,600 > Total Chars = 23,552,926 > Empty lines = 95,579 > Comment lines = 131,460 > Not empty Code Lines = 560,561 > > Avg chars per day = 16,823 <= [23,552,926 / 1400] > Avg lines per day = 420 <= 23,552,926 / 1400/40] > Avg code pages per fay = 7 <= 23,552,926 / 1400/40/60] > > It looks not bad, isn't it? > > I do use "copy and paste" to port code between projects, not that often but I do use it. > When ported code starts to "live its own life" within host project... > Most of the time I'm trying to reuse existing code from my classlibs as well as I'm applying OOP development principles to minimize code duplication... > I do have common classlibs for all the projects so "copy & paste" duplication factor shouldn't be higher than 20% I guess. > > All in all even if just 50% of code was typed here manually during last four it happens to be: > > 8411.759 286 210.2939821 > > Avg. chars per day: 8412 <= [16,823 / 2 ] > Avg. code lines per day: 210 <= [420 /2 ] > Avg. code pages per day: ~3 .5 ( 40 chars per line, 60 lines per page) > > And that is in average for *every day* during last four years. > And counted code lines constitute current "clean" code - how many code lines were typed, copied but edited out during last four years - that isn't known... > > 80% of developed projects are working in that customer's business 24x7x365... > > And this is just for one customer, main one taking 70-80% of work time. > > I must note I have never had such a productivity before with any other development tools... > > Please correct me if you'll find the above stats unreal... > > And what are your development stats? > > Thank you. > > -- Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From accessd at shaw.ca Wed Mar 7 22:07:24 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 7 Mar 2012 20:07:24 -0800 Subject: [dba-VB] Awesome new cloud software In-Reply-To: References: Message-ID: <4C824B444BC24D6D9BA01DEF448F80F3@creativesystemdesigns.com> Here is an incredible new software for Cloud managing via pages. http://www.numecent.com/ Here are comments about the product... http://tinyurl.com/7a5aaj5 Startup Numecent has come out of stealth mode today with some of the most impressive enterprise technology we've seen in a decade. Very strong words to have to support...but if it lives up to its current billing watch out. The claims are that IT CAN MAKE ANY APP A WEB APP. http://tinyurl.com/7z8fjyu Can this technology be used to deploy even an Access DB or desktop .Net application on the web? Jim From fuller.artful at gmail.com Sun Mar 11 12:40:57 2012 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 11 Mar 2012 13:40:57 -0400 Subject: [dba-VB] Create a Module and Write to It Message-ID: I've decided to resurrect an old utility I wrote years back, that accepts the name of a table and then generates a class definition complete with LETs and GETs for the fields, and methods for Load(), Insert(), Update() and Delete(). Naturally, I can't locate the code which is somewhere on one of my numerous CDs. And besides, now that I'm a tad more mature, I can probably do it better now. The original, for example, just banged its generated code out to a text file, which I then had to manually import. Which brings me to the question in the Subject. How can I create a module in code, then write the generated code directly into it? TIA. -- Arthur Cell: 647.710.1314 The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents. -Nathaniel Borenstein From df.waters at comcast.net Sun Mar 11 13:14:38 2012 From: df.waters at comcast.net (Dan Waters) Date: Sun, 11 Mar 2012 13:14:38 -0500 Subject: [dba-VB] Create a Module and Write to It In-Reply-To: References: Message-ID: <001301ccffb2$d2a4a990$77edfcb0$@comcast.net> Hi Arthur, If you are using SQL Server tables it's likely that you can skip all this entirely by using Linq-to-SQL. With this method you can drag a table to the Linq-to-SQL screen to create the class. Then in code you do things like Submit() to have LINQ-to-SQL update the data in the database. It's a change, but it's a good one. Just do a search and you'll find a lot of explanation. Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, March 11, 2012 12:41 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Create a Module and Write to It I've decided to resurrect an old utility I wrote years back, that accepts the name of a table and then generates a class definition complete with LETs and GETs for the fields, and methods for Load(), Insert(), Update() and Delete(). Naturally, I can't locate the code which is somewhere on one of my numerous CDs. And besides, now that I'm a tad more mature, I can probably do it better now. The original, for example, just banged its generated code out to a text file, which I then had to manually import. Which brings me to the question in the Subject. How can I create a module in code, then write the generated code directly into it? TIA. -- Arthur Cell: 647.710.1314 The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents. -Nathaniel Borenstein _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Sun Mar 11 13:23:20 2012 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 11 Mar 2012 11:23:20 -0700 Subject: [dba-VB] Create a Module and Write to It In-Reply-To: <001301ccffb2$d2a4a990$77edfcb0$@comcast.net> References: <001301ccffb2$d2a4a990$77edfcb0$@comcast.net> Message-ID: This may be what you need. From Access 97, no less: http://support.microsoft.com/kb/187318 Doug On Sun, Mar 11, 2012 at 11:14 AM, Dan Waters wrote: > Hi Arthur, > > If you are using SQL Server tables it's likely that you can skip all this > entirely by using Linq-to-SQL. With this method you can drag a table to > the > Linq-to-SQL screen to create the class. Then in code you do things like > Submit() to have LINQ-to-SQL update the data in the database. It's a > change, but it's a good one. > > Just do a search and you'll find a lot of explanation. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Sunday, March 11, 2012 12:41 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Create a Module and Write to It > > I've decided to resurrect an old utility I wrote years back, that accepts > the name of a table and then generates a class definition complete with > LETs > and GETs for the fields, and methods for Load(), Insert(), Update() and > Delete(). > > Naturally, I can't locate the code which is somewhere on one of my numerous > CDs. And besides, now that I'm a tad more mature, I can probably do it > better now. The original, for example, just banged its generated code out > to > a text file, which I then had to manually import. Which brings me to the > question in the Subject. How can I create a module in code, then write the > generated code directly into it? > > TIA. > -- > Arthur > Cell: 647.710.1314 > > The most likely way for the world to be destroyed, most experts agree, is > by > accident. That's where we come in; we're computer professionals. We cause > accidents. > > -Nathaniel > Borenstein > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From fuller.artful at gmail.com Sun Mar 11 13:27:13 2012 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 11 Mar 2012 14:27:13 -0400 Subject: [dba-VB] Create a Module and Write to It In-Reply-To: <001301ccffb2$d2a4a990$77edfcb0$@comcast.net> References: <001301ccffb2$d2a4a990$77edfcb0$@comcast.net> Message-ID: Good point. My old code was for MDB tables but I hardly ever use them any more anyway. But nevertheless, the question remains: how does one create an Access module and write to it programmatically? On Sun, Mar 11, 2012 at 2:14 PM, Dan Waters wrote: > Hi Arthur, > > If you are using SQL Server tables it's likely that you can skip all this > entirely by using Linq-to-SQL. With this method you can drag a table to > the > Linq-to-SQL screen to create the class. Then in code you do things like > Submit() to have LINQ-to-SQL update the data in the database. It's a > change, but it's a good one. > > Just do a search and you'll find a lot of explanation. > > Dan > > From fuller.artful at gmail.com Sun Mar 11 14:37:15 2012 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 11 Mar 2012 15:37:15 -0400 Subject: [dba-VB] Create a Module and Write to It In-Reply-To: References: <001301ccffb2$d2a4a990$77edfcb0$@comcast.net> Message-ID: Thanks! That seems to be just what I need. On Sun, Mar 11, 2012 at 2:23 PM, Doug Steele wrote: > This may be what you need. From Access 97, no less: > > http://support.microsoft.com/kb/187318 > > Doug > > From jwcolby at colbyconsulting.com Sat Mar 17 10:37:55 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 17 Mar 2012 11:37:55 -0400 Subject: [dba-VB] look what I found Message-ID: <4F64AFD3.2000909@colbyconsulting.com> http://msdn.microsoft.com/en-us/library/15s06t57%28v=vs.80%29.aspx I am trying to automate Access from C#. Specifically I want to export all the objects to text files ala EatBloat, specifically so that I can pull it into my version control system. If anyone is doing Access automation from C#, and in particular accessing the DAO object, please respond and let's discuss how to. Thanks, -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From mcp2004 at mail.ru Sat Mar 17 14:29:25 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sat, 17 Mar 2012 23:29:25 +0400 Subject: [dba-VB] =?utf-8?q?look_what_I_found?= In-Reply-To: <4F64AFD3.2000909@colbyconsulting.com> References: <4F64AFD3.2000909@colbyconsulting.com> Message-ID: Hi John -- But how DAO could help you to "export all the objects to text file"? Except to enumerate all the objects but such an enumeration can be done another way using AccesObjects AFAIKR... And except using DAO to export data and tabledefs but the latter can be more effectively(?) done using MS Access Application XML export feature... So DAO is to be used just to enumerate and export User Defined Properties?... Have a look - http://accesspowertools.codeplex.com/ - a while ago there was rather active discussion in AccessD/some work done on "EatBloat" C# clone. You can borrow some sources from that "frozen" project if you'll find them useful.. Thank you. -- Shamil Sat, 17 Mar 2012 11:37:55 -0400 ?? jwcolby : > > http://msdn.microsoft.com/en-us/library/15s06t57%28v=vs.80%29.aspx > > I am trying to automate Access from C#. Specifically I want to export all the objects to text files > ala EatBloat, specifically so that I can pull it into my version control system. > > If anyone is doing Access automation from C#, and in particular accessing the DAO object, please > respond and let's discuss how to. > > Thanks, > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From dw-murphy at cox.net Sat Mar 17 14:55:16 2012 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 17 Mar 2012 12:55:16 -0700 Subject: [dba-VB] look what I found In-Reply-To: References: <4F64AFD3.2000909@colbyconsulting.com> Message-ID: <006701cd0477$e084eec0$a18ecc40$@cox.net> This might also be of interest http://www.codeproject.com/Articles/283626/MsAccess-MdbTools-with-MFC-and-NET -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Saturday, March 17, 2012 12:29 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] look what I found Hi John -- But how DAO could help you to "export all the objects to text file"? Except to enumerate all the objects but such an enumeration can be done another way using AccesObjects AFAIKR... And except using DAO to export data and tabledefs but the latter can be more effectively(?) done using MS Access Application XML export feature... So DAO is to be used just to enumerate and export User Defined Properties?... Have a look - http://accesspowertools.codeplex.com/ - a while ago there was rather active discussion in AccessD/some work done on "EatBloat" C# clone. You can borrow some sources from that "frozen" project if you'll find them useful.. Thank you. -- Shamil Sat, 17 Mar 2012 11:37:55 -0400 ?? jwcolby : > > http://msdn.microsoft.com/en-us/library/15s06t57%28v=vs.80%29.aspx > > I am trying to automate Access from C#. Specifically I want to export > all the objects to text files ala EatBloat, specifically so that I can pull it into my version control system. > > If anyone is doing Access automation from C#, and in particular > accessing the DAO object, please respond and let's discuss how to. > > Thanks, > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Mar 17 16:31:12 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 17 Mar 2012 17:31:12 -0400 Subject: [dba-VB] look what I found In-Reply-To: References: <4F64AFD3.2000909@colbyconsulting.com> Message-ID: <4F6502A0.7000004@colbyconsulting.com> Thanks Shamil. Is this designed to perform this from a C# project, or from an Add-in from inside of Access? My concept at this moment is to build a little C# application to grab any Access database and export it out to text files and then pull the resulting text files into source control. My objective is simple: 1) To get Access FEs and libraries into source. 2) To have an environment where I can view differences between versions 3) To have an environment where I can "build" a specific version of an access container. It seems to me that doing that from inside of Access is inside out. I don't want to have to add in an add-in and get inside of Access to be able to do this, I want to have an application (C#) where I can browse versions, see differences between versions etc., and if I desire "build" a version of some Access object. I use libraries as well as my applications, and if I am on the outside looking in, then I can switch seamlessly between any Access container, whether an FE or a library, pull anything into source control, build anything out of source control. I can see where it would be useful to put changes to source from inside of Access as well. It seems problematic to pull changes from inside of Access given how compile errors could arise as modules change. I will be looking at your project though. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 3/17/2012 3:29 PM, Salakhetdinov Shamil wrote: > Hi John -- > > But how DAO could help you to "export all the objects to text file"? > Except to enumerate all the objects but such an enumeration can be done another way using AccesObjects AFAIKR... > And except using DAO to export data and tabledefs but the latter can be more effectively(?) done using MS Access Application XML export feature... > So DAO is to be used just to enumerate and export User Defined Properties?... > > Have a look - http://accesspowertools.codeplex.com/ - a while ago there was rather active discussion in AccessD/some work done on "EatBloat" C# clone. > > You can borrow some sources from that "frozen" project if you'll find them useful.. > > Thank you. > > -- Shamil From mcp2004 at mail.ru Sat Mar 17 16:50:30 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sun, 18 Mar 2012 01:50:30 +0400 Subject: [dba-VB] =?utf-8?q?look_what_I_found?= In-Reply-To: <4F6502A0.7000004@colbyconsulting.com> References: <4F64AFD3.2000909@colbyconsulting.com> <4F6502A0.7000004@colbyconsulting.com> Message-ID: Hi John -- The code of the project I referred (http://accesspowertools.codeplex.com) uses MS Access Application instance as parameter so it can work "inside out" or "outside in" - whatever mode is more appropriate for a given context... Thank you. -- Shamil Sat, 17 Mar 2012 17:31:12 -0400 ?? jwcolby : > Thanks Shamil. > > Is this designed to perform this from a C# project, or from an Add-in from inside of Access? > > My concept at this moment is to build a little C# application to grab any Access database and export > it out to text files and then pull the resulting text files into source control. My objective is > simple: > > 1) To get Access FEs and libraries into source. > 2) To have an environment where I can view differences between versions > 3) To have an environment where I can "build" a specific version of an access container. > > It seems to me that doing that from inside of Access is inside out. I don't want to have to add in > an add-in and get inside of Access to be able to do this, I want to have an application (C#) where I > can browse versions, see differences between versions etc., and if I desire "build" a version of > some Access object. > > I use libraries as well as my applications, and if I am on the outside looking in, then I can switch > seamlessly between any Access container, whether an FE or a library, pull anything into source > control, build anything out of source control. > > I can see where it would be useful to put changes to source from inside of Access as well. It seems > problematic to pull changes from inside of Access given how compile errors could arise as modules > change. > > I will be looking at your project though. > > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > On 3/17/2012 3:29 PM, Salakhetdinov Shamil wrote: > > Hi John -- > > > > But how DAO could help you to "export all the objects to text file"? > > Except to enumerate all the objects but such an enumeration can be done another way using AccesObjects AFAIKR... > > And except using DAO to export data and tabledefs but the latter can be more effectively(?) done using MS Access Application XML export feature... > > So DAO is to be used just to enumerate and export User Defined Properties?... > > > > Have a look - http://accesspowertools.codeplex.com/ - a while ago there was rather active discussion in AccessD/some work done on "EatBloat" C# clone. > > > > You can borrow some sources from that "frozen" project if you'll find them useful.. > > > > Thank you. > > > > -- Shamil > > From jwcolby at colbyconsulting.com Tue Mar 20 07:02:22 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 20 Mar 2012 08:02:22 -0400 Subject: [dba-VB] Pushing the Limits of Windows: Virtual Memory - Mark's Blog - Site Home - TechNet Blogs Message-ID: <4F6871CE.3010807@colbyconsulting.com> Just something I ran across. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it http://blogs.technet.com/b/markrussinovich/archive/2008/11/17/3155406.aspx From fhtapia at gmail.com Thu Mar 22 01:23:59 2012 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 21 Mar 2012 23:23:59 -0700 Subject: [dba-VB] regex Message-ID: anybody here good with regex? or classic ASP? I need to convert the following Ø to a printable character by xml, I am using the following object to read a webpage on my server that is not pre-parsed in XML and it's the way the source system works...The idea is to be able to yank the text [Liner Kit, 1.75" MAX ?] out of the original document and push it back out via XML so when I hit the url it looks like http://localserver/myhtml2xml.asp and I get a standard xml feed using the XML document, but I keep getting an error reading that O slash character, other than that one character I can't seem to nab it, I've tried instr for the exact character but to no avail, my current function just does a few instr functions to nab the html down to this node, but I really probably ought to get down to the span tag instead of the td tag. If you have ideas, let me know it's late and I need to get this thing kick started... :( Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") Liner Kit, 1.75" MAX ? -Francisco http://bit.ly/sqlthis | Tsql and More... From marklbreen at gmail.com Thu Mar 22 02:49:42 2012 From: marklbreen at gmail.com (Mark Breen) Date: Thu, 22 Mar 2012 07:49:42 +0000 Subject: [dba-VB] regex In-Reply-To: References: Message-ID: Hello Francisco, I am afraid I have little to add, other than, have you tried Expresso I used it once about 6 years ago to assist in some Regex patterns and I understood at the time it was a good Regex tool. Mark On 22 March 2012 06:23, Francisco Tapia wrote: > anybody here good with regex? or classic ASP? > > I need to convert the following Ø to a printable character by xml, I > am using the following object to read a webpage on my server that is not > pre-parsed in XML and it's the way the source system works...The idea is to > be able to yank the text [Liner Kit, 1.75" MAX ?] out of the original > document and push it back out via XML so when I hit the url it looks like > http://localserver/myhtml2xml.asp and I get a standard xml feed using the > XML document, but I keep getting an error reading that O slash character, > other than that one character I can't seem to nab it, I've tried instr for > the exact character but to no avail, my current function just does a few > instr functions to nab the html down to this node, but I really probably > ought to get down to the span tag instead of the td tag. If you have > ideas, let me know it's late and I need to get this thing kick started... > :( > > Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") > > align="left" class="urSTTD urSTTDBdr urSTSHL2" > style="vertical-align:top;height:21px;"> id="ANALYSIS_interactive_mc9691_tv" ct="TV" class="urTxtStd" > style="white-space:nowrap;">Liner Kit, 1.75" MAX ? > > > -Francisco > http://bit.ly/sqlthis | Tsql and More... > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Thu Mar 22 03:26:08 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Mar 2012 09:26:08 +0100 Subject: [dba-VB] regex Message-ID: Hi Francisco I may be missing something, but what do mean by "a printable character by xml". The ? is perfectly printable (at least here where it belongs to our national set of characters!). By the way, the diameter sign is not really an "O-slash" but a true circle with a 45 degrees angled line across. It can be found in the Symbol OpenType font (symbol.ttf) from Monotype Corporation as well as the old Microsoft Symbol bitmap font, symbole.fon. /gustav >>> fhtapia at gmail.com 22-03-2012 07:23 >>> anybody here good with regex? or classic ASP? I need to convert the following Ø to a printable character by xml, I am using the following object to read a webpage on my server that is not pre-parsed in XML and it's the way the source system works...The idea is to be able to yank the text [Liner Kit, 1.75" MAX ?] out of the original document and push it back out via XML so when I hit the url it looks like http://localserver/myhtml2xml.asp and I get a standard xml feed using the XML document, but I keep getting an error reading that O slash character, other than that one character I can't seem to nab it, I've tried instr for the exact character but to no avail, my current function just does a few instr functions to nab the html down to this node, but I really probably ought to get down to the span tag instead of the td tag. If you have ideas, let me know it's late and I need to get this thing kick started... :( Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") Liner Kit, 1.75" MAX ? -Francisco http://bit.ly/sqlthis | Tsql and More... From hans.andersen at phulse.com Thu Mar 22 04:07:35 2012 From: hans.andersen at phulse.com (Hans-Christian Andersen) Date: Thu, 22 Mar 2012 02:07:35 -0700 Subject: [dba-VB] regex In-Reply-To: References: Message-ID: <6FCA3106-6C72-4CF1-B932-85ACF971FF06@phulse.com> Gustav, Unless I am mistaken, I think what Francisco is asking is how to convert HTML entities into extended characters. Ie. Ø -> ? In PHP, for instance, this would be htmlentities() and html_entity_decode(). I don't think going down the route of regular expressions would even work, but I feign ignorance when it comes to ASP. It may not even be possible without coding in your own lookup table in code (which isn't all that hard, if you look for the right resources, i.e.: http://ascii.cl/htmlcodes.htm Hans On 2012-03-22, at 1:26 AM, Gustav Brock wrote: > Hi Francisco > > I may be missing something, but what do mean by "a printable character by xml". The ? is perfectly printable (at least here where it belongs to our national set of characters!). > > By the way, the diameter sign is not really an "O-slash" but a true circle with a 45 degrees angled line across. It can be found in the Symbol OpenType font (symbol.ttf) from Monotype Corporation as well as the old Microsoft Symbol bitmap font, symbole.fon. > > /gustav > > >>>> fhtapia at gmail.com 22-03-2012 07:23 >>> > anybody here good with regex? or classic ASP? > > I need to convert the following Ø to a printable character by xml, I > am using the following object to read a webpage on my server that is not > pre-parsed in XML and it's the way the source system works...The idea is to > be able to yank the text [Liner Kit, 1.75" MAX ?] out of the original > document and push it back out via XML so when I hit the url it looks like > http://localserver/myhtml2xml.asp and I get a standard xml feed using the > XML document, but I keep getting an error reading that O slash character, > other than that one character I can't seem to nab it, I've tried instr for > the exact character but to no avail, my current function just does a few > instr functions to nab the html down to this node, but I really probably > ought to get down to the span tag instead of the td tag. If you have > ideas, let me know it's late and I need to get this thing kick started... :( > > Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") > > align="left" class="urSTTD urSTTDBdr urSTSHL2" > style="vertical-align:top;height:21px;"> id="ANALYSIS_interactive_mc9691_tv" ct="TV" class="urTxtStd" > style="white-space:nowrap;">Liner Kit, 1.75" MAX ? > > > -Francisco > http://bit.ly/sqlthis | Tsql and More... > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Thu Mar 22 04:55:30 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Mar 2012 10:55:30 +0100 Subject: [dba-VB] regex Message-ID: Hi Hans and Francisco Found this monster but can't believe there shouldn't be an easier approach: http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-compact-framework/3530/UrlEncode-UrlDecode Perhaps this will do: http://dotnet-snippets.de/dns/austauch-von-kritischen-zeichen-in-einem--string-SID585.aspx but still, wouldn't the .Net framework have built in methods for this like WebUtility.HtmlEncode() and .HtmlDecode(). What is the official naming of this encoding style? /gustav >>> hans.andersen at phulse.com 22-03-2012 10:07 >>> Gustav, Unless I am mistaken, I think what Francisco is asking is how to convert HTML entities into extended characters. Ie. Ø -> ? In PHP, for instance, this would be htmlentities() and html_entity_decode(). I don't think going down the route of regular expressions would even work, but I feign ignorance when it comes to ASP. It may not even be possible without coding in your own lookup table in code (which isn't all that hard, if you look for the right resources, i.e.: http://ascii.cl/htmlcodes.htm Hans On 2012-03-22, at 1:26 AM, Gustav Brock wrote: > Hi Francisco > > I may be missing something, but what do mean by "a printable character by xml". The ? is perfectly printable (at least here where it belongs to our national set of characters!). > > By the way, the diameter sign is not really an "O-slash" but a true circle with a 45 degrees angled line across. It can be found in the Symbol OpenType font (symbol.ttf) from Monotype Corporation as well as the old Microsoft Symbol bitmap font, symbole.fon. > > /gustav > > >>>> fhtapia at gmail.com 22-03-2012 07:23 >>> > anybody here good with regex? or classic ASP? > > I need to convert the following Ø to a printable character by xml, I > am using the following object to read a webpage on my server that is not > pre-parsed in XML and it's the way the source system works...The idea is to > be able to yank the text [Liner Kit, 1.75" MAX ?] out of the original > document and push it back out via XML so when I hit the url it looks like > http://localserver/myhtml2xml.asp and I get a standard xml feed using the > XML document, but I keep getting an error reading that O slash character, > other than that one character I can't seem to nab it, I've tried instr for > the exact character but to no avail, my current function just does a few > instr functions to nab the html down to this node, but I really probably > ought to get down to the span tag instead of the td tag. If you have > ideas, let me know it's late and I need to get this thing kick started... :( > > Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") > > align="left" class="urSTTD urSTTDBdr urSTSHL2" > style="vertical-align:top;height:21px;"> id="ANALYSIS_interactive_mc9691_tv" ct="TV" class="urTxtStd" > style="white-space:nowrap;">Liner Kit, 1.75" MAX ? > > > -Francisco > http://bit.ly/sqlthis | Tsql and More... > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fhtapia at gmail.com Thu Mar 22 10:14:34 2012 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 22 Mar 2012 08:14:34 -0700 Subject: [dba-VB] regex In-Reply-To: References: Message-ID: woke up to kick this out, Public Function GetValue(oXMLnode, xNode) if xNode = "" Then GetValue = "" Else dim iEndTag, i iEndTag = instr(1, oXMLnode, "",0) if iEndTag > 0 Then i = iEndTag 'Starts @ Tag "" and walks backwards While Mid(oXMLnode, i, 1) <> ">" i = i - 1 Wend i = i + 1 'skip the ">" character GetValue = MID(oXMLnode, i , iEndTag - i) end if end if End Function all my tags in the HTML page end with for each section, and that is predictable. So this function rips out the data in the SPAN tag. I still have an issue trying to punch this out as an XML value as the 0Slash value seems to be the bad character... I don't know yet how to clean it up... my error message for that odd character is this: XML Parsing Error: not well-formed Location: http://localserver/myhtml2xml.asp Line Number 1, Column 81:Liner Kit, 1.75" MAX --------------------------------------------------------------------------------^ on my browser the caret points to the square text that gets displayed in my browser. -Francisco http://bit.ly/sqlthis | Tsql and More... On Thu, Mar 22, 2012 at 02:55, Gustav Brock wrote: > Hi Hans and Francisco > > Found this monster but can't believe there shouldn't be an easier approach: > > > http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-compact-framework/3530/UrlEncode-UrlDecode > > Perhaps this will do: > > > http://dotnet-snippets.de/dns/austauch-von-kritischen-zeichen-in-einem--string-SID585.aspx > > but still, wouldn't the .Net framework have built in methods for this like > WebUtility.HtmlEncode() and .HtmlDecode(). > > What is the official naming of this encoding style? > > /gustav > > > >>> hans.andersen at phulse.com 22-03-2012 10:07 >>> > Gustav, > > Unless I am mistaken, I think what Francisco is asking is how to convert > HTML entities into extended characters. Ie. Ø -> ? > > In PHP, for instance, this would be htmlentities() and > html_entity_decode(). I don't think going down the route of regular > expressions would even work, but I feign ignorance when it comes to ASP. It > may not even be possible without coding in your own lookup table in code > (which isn't all that hard, if you look for the right resources, i.e.: > http://ascii.cl/htmlcodes.htm > > Hans > > > On 2012-03-22, at 1:26 AM, Gustav Brock wrote: > > > Hi Francisco > > > > I may be missing something, but what do mean by "a printable character > by xml". The ? is perfectly printable (at least here where it belongs to > our national set of characters!). > > > > By the way, the diameter sign is not really an "O-slash" but a true > circle with a 45 degrees angled line across. It can be found in the Symbol > OpenType font (symbol.ttf) from Monotype Corporation as well as the old > Microsoft Symbol bitmap font, symbole.fon. > > > > /gustav > > > > > >>>> fhtapia at gmail.com 22-03-2012 07:23 >>> > > anybody here good with regex? or classic ASP? > > > > I need to convert the following Ø to a printable character by > xml, I > > am using the following object to read a webpage on my server that is not > > pre-parsed in XML and it's the way the source system works...The idea is > to > > be able to yank the text [Liner Kit, 1.75" MAX ?] out of the original > > document and push it back out via XML so when I hit the url it looks like > > http://localserver/myhtml2xml.asp and I get a standard xml feed using > the > > XML document, but I keep getting an error reading that O slash character, > > other than that one character I can't seem to nab it, I've tried instr > for > > the exact character but to no avail, my current function just does a few > > instr functions to nab the html down to this node, but I really probably > > ought to get down to the span tag instead of the td tag. If you have > > ideas, let me know it's late and I need to get this thing kick > started... :( > > > > Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") > > > > > align="left" class="urSTTD urSTTDBdr urSTSHL2" > > style="vertical-align:top;height:21px;"> > id="ANALYSIS_interactive_mc9691_tv" ct="TV" class="urTxtStd" > > style="white-space:nowrap;">Liner Kit, 1.75" MAX ? > > > > > > -Francisco > > http://bit.ly/sqlthis | Tsql and More... > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From marklbreen at gmail.com Fri Mar 23 05:41:21 2012 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 23 Mar 2012 10:41:21 +0000 Subject: [dba-VB] Pushing the Limits of Windows: Virtual Memory - Mark's Blog - Site Home - TechNet Blogs In-Reply-To: <4F6871CE.3010807@colbyconsulting.com> References: <4F6871CE.3010807@colbyconsulting.com> Message-ID: Hi John, very interesting. I looked my PC today and I am using 2.7 GB out of 12 GB. Page file is 12 GB. No page file for Drive D where I hold my data. Should I allow windows to manage the page file ? Should I turn off paging ? Still not really sure what is best. What do you do? Mark On 20 March 2012 12:02, jwcolby wrote: > Just something I ran across. > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > http://blogs.technet.com/b/**markrussinovich/archive/2008/** > 11/17/3155406.aspx > > ______________________________**_________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/**mailman/listinfo/dba-vb > http://www.databaseadvisors.**com > > From jwcolby at colbyconsulting.com Fri Mar 23 07:30:13 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 23 Mar 2012 08:30:13 -0400 Subject: [dba-VB] Pushing the Limits of Windows: Virtual Memory - Mark's Blog - Site Home - TechNet Blogs In-Reply-To: References: <4F6871CE.3010807@colbyconsulting.com> Message-ID: <4F6C6CD5.5070205@colbyconsulting.com> > Still not really sure what is best. LOL. And this article while very detailed only makes the situation more complicated. > What do you do? Basically the 1.5 times rule seems to encompass (be bigger than) what this article prescribes, though the blog is so data intensive that it is tough to really get a handle on it. I just use the 1.5 times rule. In fact I use "system managed" on a drive that will always have enough room to contain a page file of that size. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 3/23/2012 6:41 AM, Mark Breen wrote: > Hi John, > > very interesting. > > I looked my PC today and I am using 2.7 GB out of 12 GB. Page file is 12 > GB. No page file for Drive D where I hold my data. > > Should I allow windows to manage the page file ? > Should I turn off paging ? > > Still not really sure what is best. > > What do you do? > > Mark > > > On 20 March 2012 12:02, jwcolby wrote: > >> Just something I ran across. >> >> -- >> John W. Colby >> Colby Consulting >> >> Reality is what refuses to go away >> when you do not believe in it >> http://blogs.technet.com/b/**markrussinovich/archive/2008/** >> 11/17/3155406.aspx >> >> ______________________________**_________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/**mailman/listinfo/dba-vb >> http://www.databaseadvisors.**com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From marklbreen at gmail.com Fri Mar 23 09:33:04 2012 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 23 Mar 2012 14:33:04 +0000 Subject: [dba-VB] Pushing the Limits of Windows: Virtual Memory - Mark's Blog - Site Home - TechNet Blogs In-Reply-To: <4F6C6CD5.5070205@colbyconsulting.com> References: <4F6871CE.3010807@colbyconsulting.com> <4F6C6CD5.5070205@colbyconsulting.com> Message-ID: Hello John, Glad that I am not the only one that thinks it is data intensive. What about turning it off completely? In my case, I have so much spare ram I could increase performance by simply turning off paging. Is there a downside when I have 9 GB's ram free? Is it silly to be using a page file when the ram is free. Or maybe windows is clever enough to not use the page file at all if the is empty ram ? Thanks Mark On 23 March 2012 12:30, jwcolby wrote: > > Still not really sure what is best. > > LOL. And this article while very detailed only makes the situation more > complicated. > > > What do you do? > > Basically the 1.5 times rule seems to encompass (be bigger than) what this > article prescribes, though the blog is so data intensive that it is tough > to really get a handle on it. > > I just use the 1.5 times rule. In fact I use "system managed" on a drive > that will always have enough room to contain a page file of that size. > > > > > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > On 3/23/2012 6:41 AM, Mark Breen wrote: > >> Hi John, >> >> very interesting. >> >> I looked my PC today and I am using 2.7 GB out of 12 GB. Page file is 12 >> GB. No page file for Drive D where I hold my data. >> >> Should I allow windows to manage the page file ? >> Should I turn off paging ? >> >> Still not really sure what is best. >> >> What do you do? >> >> Mark >> >> >> On 20 March 2012 12:02, jwcolby> >> wrote: >> >> Just something I ran across. >>> >>> -- >>> John W. Colby >>> Colby Consulting >>> >>> Reality is what refuses to go away >>> when you do not believe in it >>> http://blogs.technet.com/b/****markrussinovich/archive/2008/**** >>> 11/17/3155406.aspx>> markrussinovich/archive/2008/**11/17/3155406.aspx >>> > >>> >>> ______________________________****_________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/****mailman/listinfo/dba-vb >>> >>> > >>> http://www.databaseadvisors.****com >>> > >>> >>> >>> ______________________________**_________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/**mailman/listinfo/dba-vb >> http://www.databaseadvisors.**com >> >> >> > ______________________________**_________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/**mailman/listinfo/dba-vb > http://www.databaseadvisors.**com > > From jwcolby at colbyconsulting.com Fri Mar 23 09:56:10 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 23 Mar 2012 10:56:10 -0400 Subject: [dba-VB] Pushing the Limits of Windows: Virtual Memory - Mark's Blog - Site Home - TechNet Blogs In-Reply-To: References: <4F6871CE.3010807@colbyconsulting.com> <4F6C6CD5.5070205@colbyconsulting.com> Message-ID: <4F6C8F0A.7010001@colbyconsulting.com> This blog article seems to indicate that it is best to just let Windows have its paging file and be done with it. It also seems to indicate that no page file can cause the system to lock up entirely in some instances. Personally I am doing "better safe than sorry". I see nothing that indicates that not having a page file increases performance and not having one can cause issues in certain scenarios. Since disk is cheap, why take the chance. That is my thought. BTW I went looking for this exactly because I have servers with 64 gigs of RAM. At that level the size of the page file can get large. Still, better safe than sorry. I just let Windows manage it and place it on a drive with plenty of room. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 3/23/2012 10:33 AM, Mark Breen wrote: > Hello John, > > Glad that I am not the only one that thinks it is data intensive. > > What about turning it off completely? > > In my case, I have so much spare ram I could increase performance by simply > turning off paging. Is there a downside when I have 9 GB's ram free? Is > it silly to be using a page file when the ram is free. Or maybe windows is > clever enough to not use the page file at all if the is empty ram ? > > Thanks > > Mark > > > > > On 23 March 2012 12:30, jwcolby wrote: > >>> Still not really sure what is best. >> >> LOL. And this article while very detailed only makes the situation more >> complicated. >> >>> What do you do? >> >> Basically the 1.5 times rule seems to encompass (be bigger than) what this >> article prescribes, though the blog is so data intensive that it is tough >> to really get a handle on it. >> >> I just use the 1.5 times rule. In fact I use "system managed" on a drive >> that will always have enough room to contain a page file of that size. >> >> >> >> >> John W. Colby >> Colby Consulting >> >> Reality is what refuses to go away >> when you do not believe in it >> >> On 3/23/2012 6:41 AM, Mark Breen wrote: >> >>> Hi John, >>> >>> very interesting. >>> >>> I looked my PC today and I am using 2.7 GB out of 12 GB. Page file is 12 >>> GB. No page file for Drive D where I hold my data. >>> >>> Should I allow windows to manage the page file ? >>> Should I turn off paging ? >>> >>> Still not really sure what is best. >>> >>> What do you do? >>> >>> Mark >>> >>> >>> On 20 March 2012 12:02, jwcolby> >>> wrote: >>> >>> Just something I ran across. >>>> >>>> -- >>>> John W. Colby >>>> Colby Consulting >>>> >>>> Reality is what refuses to go away >>>> when you do not believe in it >>>> http://blogs.technet.com/b/****markrussinovich/archive/2008/**** >>>> 11/17/3155406.aspx>>> markrussinovich/archive/2008/**11/17/3155406.aspx >>>>> >>>> >>>> ______________________________****_________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/****mailman/listinfo/dba-vb >>>> >>>>> >>>> http://www.databaseadvisors.****com >>>>> >>>> >>>> >>>> ______________________________**_________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/**mailman/listinfo/dba-vb >>> http://www.databaseadvisors.**com >>> >>> >>> >> ______________________________**_________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/**mailman/listinfo/dba-vb >> http://www.databaseadvisors.**com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From accessd at shaw.ca Wed Mar 28 09:59:33 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 28 Mar 2012 07:59:33 -0700 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: <4F6C6CD5.5070205@colbyconsulting.com> References: <4F6871CE.3010807@colbyconsulting.com> <4F6C6CD5.5070205@colbyconsulting.com> Message-ID: <01DDED203F874411AA2E1387F6561A45@creativesystemdesigns.com> Hi All: Hans posted this link to me this morning and I am fowarding here: Some people at Microsoft are starting to get it... a decade late, but oh well http://weblogs.asp.net/scottgu/archive/2012/03/27/asp-net-mvc-web-api-razor- and-open-source.aspx I will now expect ASP.Net, in a short while, after all the paper work, second guessing and the wringing of hands, to proceed. It is like a Catholic officially converting to Buddhism.I would expect MS has done a lot of soul searching first, even after the ASP.Net Microsoft team has publically come out. And then, after the programming community is assured that the ice isn't going crack and no one is going come and take all the hockey equipment away, at a moments notice, I will expect an unprecedented surge in fixes, features, advances and compatibility. This is excellent news. Jim From Gustav at cactus.dk Wed Mar 28 12:17:19 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Mar 2012 19:17:19 +0200 Subject: [dba-VB] Metro icons Message-ID: Hi all Syncfusion offers a free (for the registration) Metro Studio icon library including a customizer (not a designer): http://www.syncfusion.com/downloads/metrostudio Help and screen shots: http://help.syncfusion.com/resources/metrostudio.htm But don't get fooled; other tools offerings are very expensive. /gustav From rls at WeBeDb.com Wed Mar 28 15:07:02 2012 From: rls at WeBeDb.com (Robert Stewart) Date: Wed, 28 Mar 2012 15:07:02 -0500 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: References: Message-ID: <60F4969C-93EF-40A0-8E49-9546E3883007@holly.arvixe.com> Now, if they could just get it down to making it work like Silverlight or WPF!!!!!!! And STOP all of the other language garbage. At 09:54 AM 3/28/2012, you wrote: >Date: Wed, 28 Mar 2012 07:59:33 -0700 >From: "Jim Lawrence" >To: "'Discussion concerning Visual Basic and related programming > issues.'" >Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - > ScottGu's Blog >Message-ID: > <01DDED203F874411AA2E1387F6561A45 at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi All: > >Hans posted this link to me this morning and I am fowarding here: > > >Some people at Microsoft are starting to get it... a decade late, but oh >well > >http://weblogs.asp.net/scottgu/archive/2012/03/27/asp-net-mvc-web-api-razor- >and-open-source.aspx > > > >I will now expect ASP.Net, in a short while, after all the paper work, >second guessing and the wringing of hands, to proceed. It is like a Catholic >officially converting to Buddhism.I would expect MS has done a lot of soul >searching first, even after the ASP.Net Microsoft team has publically come >out. > >And then, after the programming community is assured that the ice isn't >going crack and no one is going come and take all the hockey equipment away, >at a moments notice, I will expect an unprecedented surge in fixes, >features, advances and compatibility. > >This is excellent news. > >Jim Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com From accessd at shaw.ca Wed Mar 28 18:32:24 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 28 Mar 2012 16:32:24 -0700 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: <60F4969C-93EF-40A0-8E49-9546E3883007@holly.arvixe.com> References: <60F4969C-93EF-40A0-8E49-9546E3883007@holly.arvixe.com> Message-ID: <0724C1F5A91A4D47ACEF53F0320DF016@creativesystemdesigns.com> So what is wrong with just a standard web forms, HTML5, CSS3, JavaScript FE and even ASP.Net BE/MS SQL and so on... For the easy stuff there are dozens of frameworks out there on every language platform Let us forget all the other gimmicky pseudo languages, trying to carve out some little nitch. ;-) They appear more like time-wasting diversions and not solutions. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart Sent: Wednesday, March 28, 2012 1:07 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog Now, if they could just get it down to making it work like Silverlight or WPF!!!!!!! And STOP all of the other language garbage. At 09:54 AM 3/28/2012, you wrote: >Date: Wed, 28 Mar 2012 07:59:33 -0700 >From: "Jim Lawrence" >To: "'Discussion concerning Visual Basic and related programming > issues.'" >Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - > ScottGu's Blog >Message-ID: > <01DDED203F874411AA2E1387F6561A45 at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi All: > >Hans posted this link to me this morning and I am fowarding here: > > >Some people at Microsoft are starting to get it... a decade late, but oh >well > >http://weblogs.asp.net/scottgu/archive/2012/03/27/asp-net-mvc-web-api-razor - >and-open-source.aspx > > > >I will now expect ASP.Net, in a short while, after all the paper work, >second guessing and the wringing of hands, to proceed. It is like a Catholic >officially converting to Buddhism.I would expect MS has done a lot of soul >searching first, even after the ASP.Net Microsoft team has publically come >out. > >And then, after the programming community is assured that the ice isn't >going crack and no one is going come and take all the hockey equipment away, >at a moments notice, I will expect an unprecedented surge in fixes, >features, advances and compatibility. > >This is excellent news. > >Jim Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Thu Mar 29 00:04:11 2012 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 29 Mar 2012 16:04:11 +1100 Subject: [dba-VB] C# Regex? Message-ID: <99266C61B516644D9727F983FAFAB46511BCE8@remote.ddisolutions.com.au> Hi Guys, Anyone good at regex? My strings could look like any of these 1 sec 11 sec 1 min 5 sec 1 min 26 sec 1 hr 1 min 5 sec 1 hr 12 min 26 sec The goal is to get total # of seconds but splitting into a MatchCollection would do. Any takers? Cheers Michael M From stuart at lexacorp.com.pg Thu Mar 29 01:39:45 2012 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 29 Mar 2012 16:39:45 +1000 Subject: [dba-VB] C# Regex? In-Reply-To: <99266C61B516644D9727F983FAFAB46511BCE8@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB46511BCE8@remote.ddisolutions.com.au> Message-ID: <4F7403B1.19303.15ABE7EF@stuart.lexacorp.com.pg> Doesn't look like a case for Regex to me, you need to extract values, not just match strings. I'd probably parse the string into an array based on th space delimiter and the step through the array, mulitplying umeric values by 1, 60 or 3600 depending on what text is in the subsequent array element. -- Stuart On 29 Mar 2012 at 16:04, Michael Maddison wrote: > Hi Guys, > > Anyone good at regex? > > My strings could look like any of these > 1 sec > 11 sec > 1 min 5 sec > 1 min 26 sec > 1 hr 1 min 5 sec > 1 hr 12 min 26 sec > > The goal is to get total # of seconds but splitting into a > MatchCollection would do. > > Any takers? > > Cheers > > Michael M > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From michael at ddisolutions.com.au Thu Mar 29 01:46:52 2012 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 29 Mar 2012 17:46:52 +1100 Subject: [dba-VB] C# Regex? References: <99266C61B516644D9727F983FAFAB46511BCE8@remote.ddisolutions.com.au> <4F7403B1.19303.15ABE7EF@stuart.lexacorp.com.pg> Message-ID: <99266C61B516644D9727F983FAFAB46511BCEA@remote.ddisolutions.com.au> Hi Stuart, You are possibly right. This seems to be working at the moment though, [0-9]+ Have to do the math separately though. Testing all variants now.... Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, 29 March 2012 5:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] C# Regex? Doesn't look like a case for Regex to me, you need to extract values, not just match strings. I'd probably parse the string into an array based on th space delimiter and the step through the array, mulitplying umeric values by 1, 60 or 3600 depending on what text is in the subsequent array element. -- Stuart On 29 Mar 2012 at 16:04, Michael Maddison wrote: > Hi Guys, > > Anyone good at regex? > > My strings could look like any of these > 1 sec > 11 sec > 1 min 5 sec > 1 min 26 sec > 1 hr 1 min 5 sec > 1 hr 12 min 26 sec > > The goal is to get total # of seconds but splitting into a > MatchCollection would do. > > Any takers? > > Cheers > > Michael M > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1424 / Virus Database: 2113/4900 - Release Date: 03/28/12 From Gustav at cactus.dk Thu Mar 29 03:19:32 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Mar 2012 10:19:32 +0200 Subject: [dba-VB] C# Regex? Message-ID: Hi Michael You could cheat a little and use a reverse split and timespan: // string t = "1 hr 12 min 26 sec"; // string t = " 12 min 26 sec"; string t = " 26 sec"; string time = "0:0:" + t.TrimStart().Replace("hr", ":").Replace("min", ":").Replace("sec", "").Replace(" ", ""); Char[] separators = {':'}; IEnumerable timeParts= time.Split(separators).Reverse(); TimeSpan timeSpan = new TimeSpan(int.Parse(timeParts.ElementAt(2)), int.Parse(timeParts.ElementAt(1)), int.Parse(timeParts.ElementAt(0))); int seconds = Convert.ToInt32(timeSpan.TotalSeconds); Console.WriteLine(time); Console.WriteLine(seconds.ToString()); Console.ReadKey(); /gustav >>> michael at ddisolutions.com.au 29-03-2012 07:04 >>> Hi Guys, Anyone good at regex? My strings could look like any of these 1 sec 11 sec 1 min 5 sec 1 min 26 sec 1 hr 1 min 5 sec 1 hr 12 min 26 sec The goal is to get total # of seconds but splitting into a MatchCollection would do. Any takers? Cheers Michael M From michael at ddisolutions.com.au Thu Mar 29 17:28:14 2012 From: michael at ddisolutions.com.au (Michael Maddison) Date: Fri, 30 Mar 2012 09:28:14 +1100 Subject: [dba-VB] C# Regex? References: Message-ID: <99266C61B516644D9727F983FAFAB46511BCED@remote.ddisolutions.com.au> Nice, never occurred to use TimeSpan. I'll try it out. Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, 29 March 2012 7:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Regex? Hi Michael You could cheat a little and use a reverse split and timespan: // string t = "1 hr 12 min 26 sec"; // string t = " 12 min 26 sec"; string t = " 26 sec"; string time = "0:0:" + t.TrimStart().Replace("hr", ":").Replace("min", ":").Replace("sec", "").Replace(" ", ""); Char[] separators = {':'}; IEnumerable timeParts= time.Split(separators).Reverse(); TimeSpan timeSpan = new TimeSpan(int.Parse(timeParts.ElementAt(2)), int.Parse(timeParts.ElementAt(1)), int.Parse(timeParts.ElementAt(0))); int seconds = Convert.ToInt32(timeSpan.TotalSeconds); Console.WriteLine(time); Console.WriteLine(seconds.ToString()); Console.ReadKey(); /gustav >>> michael at ddisolutions.com.au 29-03-2012 07:04 >>> Hi Guys, Anyone good at regex? My strings could look like any of these 1 sec 11 sec 1 min 5 sec 1 min 26 sec 1 hr 1 min 5 sec 1 hr 12 min 26 sec The goal is to get total # of seconds but splitting into a MatchCollection would do. Any takers? Cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1424 / Virus Database: 2113/4903 - Release Date: 03/29/12 From michael at ddisolutions.com.au Thu Mar 29 22:41:21 2012 From: michael at ddisolutions.com.au (Michael Maddison) Date: Fri, 30 Mar 2012 14:41:21 +1100 Subject: [dba-VB] C# Regex? Message-ID: <99266C61B516644D9727F983FAFAB46511BCF5@remote.ddisolutions.com.au> Adam, My strings could look like any of these 1 sec 11 sec 1 min 5 sec 1 min 26 sec 1 hr 1 min 5 sec 1 hr 12 min 26 sec The goal is to get total # of seconds but splitting into a MatchCollection would do. private int GetRecLength ( string value ) { //x hr 3 min 8 sec string hr = string.Empty, min = string.Empty, sec = string.Empty; int val = 0; //sec = value.Substring ( value.Length - 6, 2 ); //min = value.Substring(value.Length - //@"(^[0-9]*$)" min\s(?\d\S+) Regex r = new Regex ( @"[0-9]+" ); MatchCollection mc = r.Matches ( value ); min = mc [ 0 ].Value; sec = mc [ 1 ].Value; //Change to looping through collection members if ( !string.IsNullOrEmpty ( min ) ) val = Convert.ToInt32 ( min ) * 60; if ( !string.IsNullOrEmpty ( sec ) ) val = Convert.ToInt32 ( sec ) + val; // //(?\d\S+\s)min\s(?\d\S+) return val; } Cheers Michael M From michael at ddisolutions.com.au Thu Mar 29 22:42:51 2012 From: michael at ddisolutions.com.au (Michael Maddison) Date: Fri, 30 Mar 2012 14:42:51 +1100 Subject: [dba-VB] C# Regex? - Ignore :-) Message-ID: <99266C61B516644D9727F983FAFAB46511BCF6@remote.ddisolutions.com.au> Ooops, Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, 30 March 2012 2:41 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] C# Regex? Adam, My strings could look like any of these 1 sec 11 sec 1 min 5 sec 1 min 26 sec 1 hr 1 min 5 sec 1 hr 12 min 26 sec The goal is to get total # of seconds but splitting into a MatchCollection would do. private int GetRecLength ( string value ) { //x hr 3 min 8 sec string hr = string.Empty, min = string.Empty, sec = string.Empty; int val = 0; //sec = value.Substring ( value.Length - 6, 2 ); //min = value.Substring(value.Length - //@"(^[0-9]*$)" min\s(?\d\S+) Regex r = new Regex ( @"[0-9]+" ); MatchCollection mc = r.Matches ( value ); min = mc [ 0 ].Value; sec = mc [ 1 ].Value; //Change to looping through collection members if ( !string.IsNullOrEmpty ( min ) ) val = Convert.ToInt32 ( min ) * 60; if ( !string.IsNullOrEmpty ( sec ) ) val = Convert.ToInt32 ( sec ) + val; // //(?\d\S+\s)min\s(?\d\S+) return val; } Cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1424 / Virus Database: 2113/4903 - Release Date: 03/29/12 From fhtapia at gmail.com Fri Mar 30 10:30:42 2012 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 30 Mar 2012 08:30:42 -0700 Subject: [dba-VB] Chrome nuked my email shortcuts In-Reply-To: <4F0B2DB4.2030001@colbyconsulting.com> References: <4F0B2DB4.2030001@colbyconsulting.com> Message-ID: wow, I have chrome installed, (in fact version 18 just self installed) no email hotlink errors here. Of course I do prefer to still use FF as my defacto browser... -Francisco http://bit.ly/sqlthis | Tsql and More... On Mon, Jan 9, 2012 at 10:11, jwcolby wrote: > Suddenly I was unable to click on email hotlinks and get my browser to > open. > > I searched for several hours over the last few weeks trying to find out > why. Today I found someone saying that Chrome was the culpret. I > uninstalled Chrome and rebooted and voila, I can click on hotlinks in my > email again. And yes I know how to tell good from bad and yes, I have > several layers of "can't install jack" protection. > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > ______________________________**_________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/**mailman/listinfo/dba-vb > http://www.databaseadvisors.**com > > From rls at WeBeDb.com Fri Mar 30 16:40:30 2012 From: rls at WeBeDb.com (Robert Stewart) Date: Fri, 30 Mar 2012 16:40:30 -0500 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: References: Message-ID: <61A1633A-E9E7-4958-B950-5D32011F8F3F@holly.arvixe.com> That is my point Jim. Silverlight= XAML + C# WPF = XAML + C# ASP.Net = HTML + ASP + JavaScript + CSS + JQuery + How many others you have to add in to make it look half way decent. How about forgetting the ancient languages trying to look like the new, easier languages? At 10:43 PM 3/29/2012, you wrote: >Date: Wed, 28 Mar 2012 16:32:24 -0700 >From: "Jim Lawrence" >To: "'Discussion concerning Visual Basic and related programming > issues.'" >Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - > ScottGu's Blog >Message-ID: > <0724C1F5A91A4D47ACEF53F0320DF016 at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >So what is wrong with just a standard web forms, HTML5, CSS3, JavaScript FE >and even ASP.Net BE/MS SQL and so on... For the easy stuff there are dozens >of frameworks out there on every language platform > >Let us forget all the other gimmicky pseudo languages, trying to carve out >some little nitch. ;-) They appear more like time-wasting diversions and not >solutions. > >Jim > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart >Sent: Wednesday, March 28, 2012 1:07 PM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - >ScottGu's Blog > >Now, if they could just get it down to making it work like >Silverlight or WPF!!!!!!! >And STOP all of the other language garbage. Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com From accessd at shaw.ca Fri Mar 30 18:25:39 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 30 Mar 2012 16:25:39 -0700 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: <61A1633A-E9E7-4958-B950-5D32011F8F3F@holly.arvixe.com> References: <61A1633A-E9E7-4958-B950-5D32011F8F3F@holly.arvixe.com> Message-ID: <0F4C2F9A878B45208942289708985BB6@creativesystemdesigns.com> The fact is that within 10 years, ninety percent and maybe more of all applications will be on the web and not on the desktop. Those new applications will have to run and work on all browsers and on all platforms. Unless Microsoft is planning to move such proprietary packages as Silverlight and WPF off the desktop, their future will be limited and/or short lived. MS's bold move for ASP.Net is the first step and then there is more. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart Sent: Friday, March 30, 2012 2:41 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog That is my point Jim. Silverlight= XAML + C# WPF = XAML + C# ASP.Net = HTML + ASP + JavaScript + CSS + JQuery + How many others you have to add in to make it look half way decent. How about forgetting the ancient languages trying to look like the new, easier languages? At 10:43 PM 3/29/2012, you wrote: >Date: Wed, 28 Mar 2012 16:32:24 -0700 >From: "Jim Lawrence" >To: "'Discussion concerning Visual Basic and related programming > issues.'" >Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - > ScottGu's Blog >Message-ID: > <0724C1F5A91A4D47ACEF53F0320DF016 at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >So what is wrong with just a standard web forms, HTML5, CSS3, JavaScript FE >and even ASP.Net BE/MS SQL and so on... For the easy stuff there are dozens >of frameworks out there on every language platform > >Let us forget all the other gimmicky pseudo languages, trying to carve out >some little nitch. ;-) They appear more like time-wasting diversions and not >solutions. > >Jim > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart >Sent: Wednesday, March 28, 2012 1:07 PM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - >ScottGu's Blog > >Now, if they could just get it down to making it work like >Silverlight or WPF!!!!!!! >And STOP all of the other language garbage. Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From hans.andersen at phulse.com Fri Mar 30 23:44:35 2012 From: hans.andersen at phulse.com (Hans-Christian Andersen) Date: Fri, 30 Mar 2012 21:44:35 -0700 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: <61A1633A-E9E7-4958-B950-5D32011F8F3F@holly.arvixe.com> References: <61A1633A-E9E7-4958-B950-5D32011F8F3F@holly.arvixe.com> Message-ID: This comparison is a bit misleading though, as you have simplified a lot of things into "C# and XAML", while, in the case of ASP.NET MVC, you have been more explicit. But, in any event, this feels like comparing apples and oranges. Silverlight was not designed to be an markup language designed to be used in the same way that HTML/CSS (and JS) is used. WPF is something else altogether. And ASP.NET MVC should, like any good framework, do a lot of the grunt work for you anyways (at least, I hope it does). Let's also not forget that SL is a Microsoft technology, which is under their control and effectively forces everyone to use Microsoft tech to build anything. This defeats what has made the web so great. Hans On 30 Mar 2012, at 14:40, Robert Stewart wrote: > That is my point Jim. > Silverlight= XAML + C# > WPF = XAML + C# > ASP.Net = HTML + ASP + JavaScript + CSS + JQuery + How many others you have to add in to make it look half way decent. > > How about forgetting the ancient languages trying to look like the new, easier languages? > > > At 10:43 PM 3/29/2012, you wrote: >> Date: Wed, 28 Mar 2012 16:32:24 -0700 >> From: "Jim Lawrence" >> To: "'Discussion concerning Visual Basic and related programming >> issues.'" >> Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - >> ScottGu's Blog >> Message-ID: >> <0724C1F5A91A4D47ACEF53F0320DF016 at creativesystemdesigns.com> >> Content-Type: text/plain; charset="us-ascii" >> >> So what is wrong with just a standard web forms, HTML5, CSS3, JavaScript FE >> and even ASP.Net BE/MS SQL and so on... For the easy stuff there are dozens >> of frameworks out there on every language platform >> >> Let us forget all the other gimmicky pseudo languages, trying to carve out >> some little nitch. ;-) They appear more like time-wasting diversions and not >> solutions. >> >> Jim >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart >> Sent: Wednesday, March 28, 2012 1:07 PM >> To: dba-vb at databaseadvisors.com >> Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - >> ScottGu's Blog >> >> Now, if they could just get it down to making it work like >> Silverlight or WPF!!!!!!! >> And STOP all of the other language garbage. > > Robert L. Stewart > www.WeBeDb.com > www.DBGUIDesign.com > www.RLStewartPhotography.com _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Mar 31 08:17:58 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 31 Mar 2012 09:17:58 -0400 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: References: <61A1633A-E9E7-4958-B950-5D32011F8F3F@holly.arvixe.com> Message-ID: <4F770406.4030601@colbyconsulting.com> Hans, > This comparison is a bit misleading though, as you have simplified a lot of things into "C# and XAML", while, in the case of ASP.NET MVC I agree with everything you say. The point however is that developing on / for the web is a mish-mash of technologies which barely play together, all controlled by different factors / companies / standards. It is just a stinking mess. We need a single environment with a single "language" or the web will always remain the abomination it is today. Say what you will, but .Net is a *huge* advance in programming, allowing a developer to select a language and develop in a common environment (yea yea, in Windows only). The best that can be said today is that "the web kinda sorta works, some of the time, in some browsers (and differently in every browser), depending entirely on the skills of the developers in the specific mish-mash of tools that they decide to use, and the testing that they did with the various browsers, and the capabilities of the user's selected browser to deal with said mish-mash of tools". Not what I want, and not how I want to develop. I'll give you an example. My wife had to investigate phone calls made from our phone by a baby sitter. I wasn't here to help, so she bravely got on the phone with Charter. We use Firefox. Charter tech support had to change the password because Mary did not know the password I use to manage the account. Changing the password did not work. An HOUR later, after trying this that and this other thing, the tech support asked her to switch to Internet Explorer. Badaboom, she is in with a new password. What a mess the internet is. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 3/31/2012 12:44 AM, Hans-Christian Andersen wrote: > This comparison is a bit misleading though, as you have simplified a lot of things into "C# and XAML", while, in the case of ASP.NET MVC, you have been more explicit. But, in any event, this feels like comparing apples and oranges. Silverlight was not designed to be an markup language designed to be used in the same way that HTML/CSS (and JS) is used. WPF is something else altogether. And ASP.NET MVC should, like any good framework, do a lot of the grunt work for you anyways (at least, I hope it does). > > Let's also not forget that SL is a Microsoft technology, which is under their control and effectively forces everyone to use Microsoft tech to build anything. This defeats what has made the web so great. > > Hans From accessd at shaw.ca Sat Mar 31 11:30:10 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 31 Mar 2012 09:30:10 -0700 Subject: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog In-Reply-To: <4F770406.4030601@colbyconsulting.com> References: <61A1633A-E9E7-4958-B950-5D32011F8F3F@holly.arvixe.com> <4F770406.4030601@colbyconsulting.com> Message-ID: <6F17E35147934E7CB0318FF64590D1EC@creativesystemdesigns.com> The internet is very complex. To that end though, with organizations like W3C (http://www.w3.org/), which all major internet companies subscribe to, are a sets of open standards. All major browsers have complied, FF, Chrome, Safari, Opera and even Microsoft's IE has been forced, kicking and screaming to toe the line. Example IE6 DOA, IE7 pooched, IE8 your kidding, right?, IE9 keep trying and IE10 just about and I am sure IE11 will be where the other browsers have been for the last5 years. OT: MS does not believe in standards, not even their own, which is one of the reasons their sales have been declining for the last 8 to 9 years but I do think they may be turning the corner. There is never going to be one language on the internet to rule them all but select a couple that are using good open standards and OSS (open source software) that you can therefore depend on and you can work with them for next 20 or 30 years. Developers have become feed up working with proprietary software that can be re-designed regardless of the industry evolution or user and developer requirements, all on a whim or just dropped for no apparent reason; MS Access comes to mind... (People are just tired of dead-end unreliable products.) As for .Net running on the web or on other platforms check out the following site: http://www.mono-project.com/Main_Page (It has been wonderful to watch the two companies...MS introduces a new feature to .Net and in less than two days it has been added to Mono...MS even supports Mono; interesting huh?) OTOH I would hardly blame internet failure for some individual screw up...I have discovered, over the years, that I can make enough mistakes on my own and don't need competition. ;-) Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 31, 2012 6:18 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog Hans, > This comparison is a bit misleading though, as you have simplified a lot of things into "C# and XAML", while, in the case of ASP.NET MVC I agree with everything you say. The point however is that developing on / for the web is a mish-mash of technologies which barely play together, all controlled by different factors / companies / standards. It is just a stinking mess. We need a single environment with a single "language" or the web will always remain the abomination it is today. Say what you will, but .Net is a *huge* advance in programming, allowing a developer to select a language and develop in a common environment (yea yea, in Windows only). The best that can be said today is that "the web kinda sorta works, some of the time, in some browsers (and differently in every browser), depending entirely on the skills of the developers in the specific mish-mash of tools that they decide to use, and the testing that they did with the various browsers, and the capabilities of the user's selected browser to deal with said mish-mash of tools". Not what I want, and not how I want to develop. I'll give you an example. My wife had to investigate phone calls made from our phone by a baby sitter. I wasn't here to help, so she bravely got on the phone with Charter. We use Firefox. Charter tech support had to change the password because Mary did not know the password I use to manage the account. Changing the password did not work. An HOUR later, after trying this that and this other thing, the tech support asked her to switch to Internet Explorer. Badaboom, she is in with a new password. What a mess the internet is. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 3/31/2012 12:44 AM, Hans-Christian Andersen wrote: > This comparison is a bit misleading though, as you have simplified a lot of things into "C# and XAML", while, in the case of ASP.NET MVC, you have been more explicit. But, in any event, this feels like comparing apples and oranges. Silverlight was not designed to be an markup language designed to be used in the same way that HTML/CSS (and JS) is used. WPF is something else altogether. And ASP.NET MVC should, like any good framework, do a lot of the grunt work for you anyways (at least, I hope it does). > > Let's also not forget that SL is a Microsoft technology, which is under their control and effectively forces everyone to use Microsoft tech to build anything. This defeats what has made the web so great. > > Hans _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com