From ssharkins at gmail.com Mon Aug 5 16:20:43 2019 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 5 Aug 2019 17:20:43 -0400 Subject: [dba-Tech] Word VBA question Message-ID: <04c501d54bd3$a42ad1f0$ec8075d0$@gmail.com> Hi everyone! I need to copy a range to a new Word document, but it's a complicated search. When the search pattern find a match, I need to select the words to the left -- using the length of the match (which can change, I'm using wildcards). I'm stumped. An example: The search string matches (BBB) at the text, Better Business Bureau (BBB). I need to copy the definition of the acronym, to the left of BBB, and the acronym. The acronym is easy. But I can't figure out for the life of me how to set a range to "three words to the left of BBB". I'd like to avoid using Selection because the editors will be working with big documents. If that's the only way it can be done, that's the route I'll go. But I'd rather set a range -- just can' figure out how to do it. Thanks! Susan H. From fhtapia at gmail.com Thu Aug 8 23:23:25 2019 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 8 Aug 2019 21:23:25 -0700 Subject: [dba-Tech] Check out Distros In-Reply-To: References: <20190517113723.86c3debdd1c3983866efe200e2feb95f.970998f3f2.wbe@email25.godaddy.com> <1845274155.109487644.1558293593975.JavaMail.zimbra@shaw.ca> <427146488.110556985.1558306943222.JavaMail.zimbra@shaw.ca> <1897072370.279842131.1562539575575.JavaMail.zimbra@shaw.ca> <379165877.312293737.1562889716381.JavaMail.zimbra@shaw.ca> Message-ID: You boys are living the dream :). I?ve been playing with Azure VMs and kubernetes. Ideally building a template here allows you to spin up as many windows server/sql server instances while you test different scenarios. Pretty slick but no on prem hardware :,( On Jul 12, 2019, 2:05 PM -0700, John Colby , wrote: > I run VMs on my Unraid server. It runs on an AMD 2600 6c/12t with 32 gigs > RAM. I can manually assign the core and the matching thread for that code. > Pretty handy. > > With my current cpu I tend to pass in 2 cores and 4 threads. It really > runs pretty well considering it is Windows 10 Pro. If I were to need more > horse power I can just shut down the vm, assign more cores and bring it > back up. Dito assign memory as needed. Also pretty handy. I can (and do) > pass in my AMD RX580 video card to the VM as well which means native > graphics. I can also pass in a mouse and keyboard so it is essentially a > full blown hardware system in a VM. BTW the VM "drive" file is hosted on a > 1 tb NVME SSD drive. > > ATM I only run Linux Mint latest version. Technically it looks very > similar to the Windows VM. I don't know Linux well enough to do battle > with various distros. Mint just works and so that is what I use. > > I have been waiting for the new Ryzen 3xxx CPUs which are with us now. I > was dreaming of a 16c / 32t in this machine. The 12c / 24t is released, > though not in stock. TBH now I am waiting for Intel to drop their prices > to see if AMD drops theirs as well. $500 for a 12c / 24t is just too rich > for my blood. My dream had the 16c / 32t at that price. OK... my fantasy > had that price. > > But given I have been patiently waiting for the better part of a year, I > suppose i can manage a few more months to see what black friday brings. ? > > On Thu, Jul 11, 2019 at 8:02 PM Jim Lawrence wrote: > > > Hi All: > > > > For those of who a familiar with a few desktop versions of Linux here is a > > location that will allow you to pre-test a version before ever trying to > > install it on your system: > > > > https://distrotest.net/ > > > > Depending on the version you select to review it may take longer to > > complete a OS clone and display on your browser screen. There will also be > > a bit a delay between mouse movement and selection but of course the > > version is an OS that is running remotely and is only as quick as your > > internet bandwidth. Some distros are as little as 60K and others can be up > > to 4GB (Considering the size of a fully install Windows 10 distro may be > > 40GB in size.) > > > > Aside: The server hosting the Linux clones are using the Debian core > > distro and the incredible QEMU emulator and virtualizer (Xen and KVM > > virtual machines.): > > > > https://www.qemu.org/ > > > > For more information on emulators and virtualizers check out the following: > > > > https://www.techradar.com/news/best-virtual-machine-software > > > > Aside: It is fairly easy to run up a Windows 10 OS distro on my Ubuntu > > desktop. (https://dennisnotes.com/note/20180614-ubuntu-18.04-qemu-setup/) > > Good fun but as Windows is a pig and a slow one at that. Setting up remote > > access works but only tried a couple of connections to the virtual Windows > > 10 system. My test was running off a small 64bit Linux desktop with only > > 8GB of RAM...should have 16GB. There is a few ways to completely strip out > > all the bloatware and create a smaller image but I have not tried that yet. > > VirtualBox and VMware could be used but this product is definitely faster. > > > > Jim > > > > > > _______________________________________________ > > dba-Tech mailing list > > dba-Tech at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-tech > > Website: http://www.databaseadvisors.com > > > > > -- > John W. Colby > Colby Consulting > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Aug 8 23:33:44 2019 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 8 Aug 2019 22:33:44 -0600 (MDT) Subject: [dba-Tech] Check out Distros In-Reply-To: References: <20190517113723.86c3debdd1c3983866efe200e2feb95f.970998f3f2.wbe@email25.godaddy.com> <1845274155.109487644.1558293593975.JavaMail.zimbra@shaw.ca> <427146488.110556985.1558306943222.JavaMail.zimbra@shaw.ca> <1897072370.279842131.1562539575575.JavaMail.zimbra@shaw.ca> <379165877.312293737.1562889716381.JavaMail.zimbra@shaw.ca> Message-ID: <542259519.82503285.1565325224615.JavaMail.zimbra@shaw.ca> Hi Francisco: Microsoft is on route to be fully included as a Linux supporter and writer. Was listening to a podcast this afternoon. Both Azure and Kunbernetes are deemed as MS's contribution to the Linux world. (They are getting extra brownie points.) Sounds like you should be having fun, right on the leading edge. Jim ----- Original Message ----- From: "Francisco Tapia" To: "Discussion of Hardware and Software issues" Sent: Thursday, August 8, 2019 9:23:25 PM Subject: Re: [dba-Tech] Check out Distros You boys are living the dream :). I?ve been playing with Azure VMs and kubernetes. Ideally building a template here allows you to spin up as many windows server/sql server instances while you test different scenarios. Pretty slick but no on prem hardware :,( On Jul 12, 2019, 2:05 PM -0700, John Colby , wrote: > I run VMs on my Unraid server. It runs on an AMD 2600 6c/12t with 32 gigs > RAM. I can manually assign the core and the matching thread for that code. > Pretty handy. > > With my current cpu I tend to pass in 2 cores and 4 threads. It really > runs pretty well considering it is Windows 10 Pro. If I were to need more > horse power I can just shut down the vm, assign more cores and bring it > back up. Dito assign memory as needed. Also pretty handy. I can (and do) > pass in my AMD RX580 video card to the VM as well which means native > graphics. I can also pass in a mouse and keyboard so it is essentially a > full blown hardware system in a VM. BTW the VM "drive" file is hosted on a > 1 tb NVME SSD drive. > > ATM I only run Linux Mint latest version. Technically it looks very > similar to the Windows VM. I don't know Linux well enough to do battle > with various distros. Mint just works and so that is what I use. > > I have been waiting for the new Ryzen 3xxx CPUs which are with us now. I > was dreaming of a 16c / 32t in this machine. The 12c / 24t is released, > though not in stock. TBH now I am waiting for Intel to drop their prices > to see if AMD drops theirs as well. $500 for a 12c / 24t is just too rich > for my blood. My dream had the 16c / 32t at that price. OK... my fantasy > had that price. > > But given I have been patiently waiting for the better part of a year, I > suppose i can manage a few more months to see what black friday brings. ? > > On Thu, Jul 11, 2019 at 8:02 PM Jim Lawrence wrote: > > > Hi All: > > > > For those of who a familiar with a few desktop versions of Linux here is a > > location that will allow you to pre-test a version before ever trying to > > install it on your system: > > > > https://distrotest.net/ > > > > Depending on the version you select to review it may take longer to > > complete a OS clone and display on your browser screen. There will also be > > a bit a delay between mouse movement and selection but of course the > > version is an OS that is running remotely and is only as quick as your > > internet bandwidth. Some distros are as little as 60K and others can be up > > to 4GB (Considering the size of a fully install Windows 10 distro may be > > 40GB in size.) > > > > Aside: The server hosting the Linux clones are using the Debian core > > distro and the incredible QEMU emulator and virtualizer (Xen and KVM > > virtual machines.): > > > > https://www.qemu.org/ > > > > For more information on emulators and virtualizers check out the following: > > > > https://www.techradar.com/news/best-virtual-machine-software > > > > Aside: It is fairly easy to run up a Windows 10 OS distro on my Ubuntu > > desktop. (https://dennisnotes.com/note/20180614-ubuntu-18.04-qemu-setup/) > > Good fun but as Windows is a pig and a slow one at that. Setting up remote > > access works but only tried a couple of connections to the virtual Windows > > 10 system. My test was running off a small 64bit Linux desktop with only > > 8GB of RAM...should have 16GB. There is a few ways to completely strip out > > all the bloatware and create a smaller image but I have not tried that yet. > > VirtualBox and VMware could be used but this product is definitely faster. > > > > Jim > > > > > > _______________________________________________ > > dba-Tech mailing list > > dba-Tech at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-tech > > Website: http://www.databaseadvisors.com > > > > > -- > John W. Colby > Colby Consulting > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Aug 9 12:22:55 2019 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 9 Aug 2019 11:22:55 -0600 (MDT) Subject: [dba-Tech] Games of Linux In-Reply-To: <379165877.312293737.1562889716381.JavaMail.zimbra@shaw.ca> References: <20190517113723.86c3debdd1c3983866efe200e2feb95f.970998f3f2.wbe@email25.godaddy.com> <1845274155.109487644.1558293593975.JavaMail.zimbra@shaw.ca> <427146488.110556985.1558306943222.JavaMail.zimbra@shaw.ca> <1897072370.279842131.1562539575575.JavaMail.zimbra@shaw.ca> <379165877.312293737.1562889716381.JavaMail.zimbra@shaw.ca> Message-ID: <1096452119.85359573.1565371375038.JavaMail.zimbra@shaw.ca> Hi All: There has always been the concerns on whether serious gaming can be done on Linux. I have found it amazing how many people come home after a day at the office, the company or finishing a rough day at school and start gaming. For me who thinks games are a total waste of time, I do not truly understand this need but Gaming on computers is larger than Movie viewing and Movie viewing is huge...who would have guessed(?). To that end, anyone wishing to brave the strange world of Linux but fearing that they will lose Gaming ability, well that is not so. Gaming companies are staring to first build their games to run on Linux and additionally, there are companies that are actively designing templates so older games can also run. If as a Gamer you want to run a specific Game package and you have access to a Linux box, here is where you can check it out: The company called Stream. This company makes their living selling games and Windows Games modified to run on a Linux desktop, for download. There are a number of older titles and many of the newest games: https://store.steampowered.com/games/ The following sites rate the compatibility and popularity of various Linux and Windows games that run on Linux: https://www.protondb.com/ ...and: https://lutris.net/ Aside: Though there may be games that are free or even sold at a reduced price, that run on Linux...and Windows for that matter, this is like any other business where games are sold at the market price. Jim From accessd at shaw.ca Sat Aug 10 17:08:05 2019 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 10 Aug 2019 16:08:05 -0600 (MDT) Subject: [dba-Tech] How to Setup a Website | Domain Registration, DNS, and VPS In-Reply-To: References: Message-ID: <1611478921.91406841.1565474885438.JavaMail.zimbra@shaw.ca> A simple visual on how to setup your own Wordpress site on a Cloud location. https://youtu.be/1JBCKNIT2Ys Jim From rockysmolin at bchacc.com Thu Aug 15 11:42:59 2019 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Aug 2019 09:42:59 -0700 Subject: [dba-Tech] Call Blocker Message-ID: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> I'm waiting for Verizon to get back to me on why their call blocking app "Call Filter" is not working on my Android Motorola Moto (g6). Until then, I'm trying to figure out what third party app to use. The web sites comparing and rating products are not giving me a clear winner. Any opinions? TIA R From eptept at gmail.com Thu Aug 15 13:32:35 2019 From: eptept at gmail.com (Ed Tesiny) Date: Thu, 15 Aug 2019 14:32:35 -0400 Subject: [dba-Tech] Call Blocker In-Reply-To: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> References: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> Message-ID: We use Avast, works well for call blocking. On Thu, Aug 15, 2019, 12:43 PM Rocky Smolin wrote: > I'm waiting for Verizon to get back to me on why their call blocking app > "Call Filter" is not working on my Android Motorola Moto (g6). > > > > Until then, I'm trying to figure out what third party app to use. The web > sites comparing and rating products are not giving me a clear winner. > > > > Any opinions? > > > > TIA > > > > R > > > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > From peter.brawley at earthlink.net Thu Aug 15 17:34:43 2019 From: peter.brawley at earthlink.net (Peter Brawley) Date: Thu, 15 Aug 2019 17:34:43 -0500 Subject: [dba-Tech] Call Blocker In-Reply-To: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> References: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> Message-ID: On 8/15/2019 11:42, Rocky Smolin wrote: > I'm waiting for Verizon to get back to me on why their call blocking app > "Call Filter" is not working on my Android Motorola Moto (g6). My phone uses Google Contacts, blocks calls just fine (carrier is AT&T). PB ----- > > > > Until then, I'm trying to figure out what third party app to use. The web > sites comparing and rating products are not giving me a clear winner. > > > > Any opinions? > > > > TIA > > > > R > > > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Aug 15 18:20:49 2019 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Aug 2019 16:20:49 -0700 Subject: [dba-Tech] Call Blocker In-Reply-To: References: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> Message-ID: <003801d553c0$13122480$39366d80$@bchacc.com> Avast? Really? Who knew? Used to use that as an AV program. Until it fell out of favor. Did not know they had a call blocking app. r -----Original Message----- From: dba-Tech [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Ed Tesiny Sent: Thursday, August 15, 2019 11:33 AM To: Discussion of Hardware and Software issues Subject: Re: [dba-Tech] Call Blocker We use Avast, works well for call blocking. On Thu, Aug 15, 2019, 12:43 PM Rocky Smolin wrote: > I'm waiting for Verizon to get back to me on why their call blocking app > "Call Filter" is not working on my Android Motorola Moto (g6). > > > > Until then, I'm trying to figure out what third party app to use. The web > sites comparing and rating products are not giving me a clear winner. > > > > Any opinions? > > > > TIA > > > > R > > > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Aug 15 18:46:26 2019 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Aug 2019 16:46:26 -0700 Subject: [dba-Tech] Call Blocker In-Reply-To: References: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> Message-ID: <004001d553c3$a7811380$f6833a80$@bchacc.com> Will your phone then only allow calls from those in your Goggle Contacts? r -----Original Message----- From: dba-Tech [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Peter Brawley Sent: Thursday, August 15, 2019 3:35 PM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Call Blocker On 8/15/2019 11:42, Rocky Smolin wrote: > I'm waiting for Verizon to get back to me on why their call blocking app > "Call Filter" is not working on my Android Motorola Moto (g6). My phone uses Google Contacts, blocks calls just fine (carrier is AT&T). PB ----- > > > > Until then, I'm trying to figure out what third party app to use. The web > sites comparing and rating products are not giving me a clear winner. > > > > Any opinions? > > > > TIA > > > > R > > > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From peter.brawley at earthlink.net Fri Aug 16 12:48:56 2019 From: peter.brawley at earthlink.net (Peter Brawley) Date: Fri, 16 Aug 2019 12:48:56 -0500 Subject: [dba-Tech] Call Blocker In-Reply-To: <004001d553c3$a7811380$f6833a80$@bchacc.com> References: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> <004001d553c3$a7811380$f6833a80$@bchacc.com> Message-ID: <8414d6fa-5da4-1783-7ee0-4bf421cf09ba@earthlink.net> On 8/15/2019 18:46, Rocky Smolin wrote: > Will your phone then only allow calls from those in your Goggle Contacts? Nope, won't do that. PB ----- > > r > > -----Original Message----- > From: dba-Tech [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of > Peter Brawley > Sent: Thursday, August 15, 2019 3:35 PM > To: dba-tech at databaseadvisors.com > Subject: Re: [dba-Tech] Call Blocker > > On 8/15/2019 11:42, Rocky Smolin wrote: >> I'm waiting for Verizon to get back to me on why their call blocking app >> "Call Filter" is not working on my Android Motorola Moto (g6). > My phone uses Google Contacts, blocks calls just fine (carrier is AT&T). > > PB > > ----- > >> >> >> Until then, I'm trying to figure out what third party app to use. The web >> sites comparing and rating products are not giving me a clear winner. >> >> >> >> Any opinions? >> >> >> >> TIA >> >> >> >> R >> >> >> >> _______________________________________________ >> dba-Tech mailing list >> dba-Tech at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-tech >> Website: http://www.databaseadvisors.com >> > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Aug 16 13:00:52 2019 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 16 Aug 2019 11:00:52 -0700 Subject: [dba-Tech] Call Blocker In-Reply-To: <8414d6fa-5da4-1783-7ee0-4bf421cf09ba@earthlink.net> References: <001001d55388$7fdc0140$7f9403c0$@bchacc.com> <004001d553c3$a7811380$f6833a80$@bchacc.com> <8414d6fa-5da4-1783-7ee0-4bf421cf09ba@earthlink.net> Message-ID: <00bc01d5545c$8b6d2cd0$a2478670$@bchacc.com> How does it work with Google Contacts? r -----Original Message----- From: dba-Tech [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Peter Brawley Sent: Friday, August 16, 2019 10:49 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Call Blocker On 8/15/2019 18:46, Rocky Smolin wrote: > Will your phone then only allow calls from those in your Goggle Contacts? Nope, won't do that. PB ----- > > r > > -----Original Message----- > From: dba-Tech [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of > Peter Brawley > Sent: Thursday, August 15, 2019 3:35 PM > To: dba-tech at databaseadvisors.com > Subject: Re: [dba-Tech] Call Blocker > > On 8/15/2019 11:42, Rocky Smolin wrote: >> I'm waiting for Verizon to get back to me on why their call blocking app >> "Call Filter" is not working on my Android Motorola Moto (g6). > My phone uses Google Contacts, blocks calls just fine (carrier is AT&T). > > PB > > ----- > >> >> >> Until then, I'm trying to figure out what third party app to use. The web >> sites comparing and rating products are not giving me a clear winner. >> >> >> >> Any opinions? >> >> >> >> TIA >> >> >> >> R >> >> >> >> _______________________________________________ >> dba-Tech mailing list >> dba-Tech at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-tech >> Website: http://www.databaseadvisors.com >> > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Aug 28 20:17:39 2019 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 28 Aug 2019 19:17:39 -0600 (MDT) Subject: [dba-Tech] A new OS for our cellphones In-Reply-To: <1776945624.110191543.1558302350143.JavaMail.zimbra@shaw.ca> References: <20190517113723.86c3debdd1c3983866efe200e2feb95f.970998f3f2.wbe@email25.godaddy.com> <1845274155.109487644.1558293593975.JavaMail.zimbra@shaw.ca> <1776945624.110191543.1558302350143.JavaMail.zimbra@shaw.ca> Message-ID: <1978157361.197026413.1567041459781.JavaMail.zimbra@shaw.ca> A new OS for our cellphones. Well eventually run on all Android phones. The OS Sailfish, is not completely new as it was running some trials, a few years ago, but all development on the system collapsed. Now it appears to have been revived and it is available. I don't know where as I could not find a VPN link that would allow me to take a look at how much the new system is charging but it looks and sounds real nice: https://sailfishos.org/ It is always good to have an alternative as our phone wars heat up. Jim From accessd at shaw.ca Wed Aug 28 21:24:01 2019 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 28 Aug 2019 20:24:01 -0600 (MDT) Subject: [dba-Tech] Chinesee hardware/software tech Advancements In-Reply-To: <1096452119.85359573.1565371375038.JavaMail.zimbra@shaw.ca> References: <20190517113723.86c3debdd1c3983866efe200e2feb95f.970998f3f2.wbe@email25.godaddy.com> <1845274155.109487644.1558293593975.JavaMail.zimbra@shaw.ca> <427146488.110556985.1558306943222.JavaMail.zimbra@shaw.ca> <1897072370.279842131.1562539575575.JavaMail.zimbra@shaw.ca> <379165877.312293737.1562889716381.JavaMail.zimbra@shaw.ca> <1096452119.85359573.1565371375038.JavaMail.zimbra@shaw.ca> Message-ID: <508478556.197311035.1567045441524.JavaMail.zimbra@shaw.ca> In the last two weeks there has been announced a few solid tech advancements coming out of China. 1. China's Alibaba is making a 16-core, 2.5 GHz RISC-V processor: https://www.techspot.com/news/81177-china-alibaba-making-16-core-25-ghz-risc.html 2. Alibaba is releasing the code for their new XT910 on Github https://support.motorola.com/ca/en/solution/MS88695 https://github.com/AOKP/device_motorola_umts_spyder 3. Huawei has just released it beta version of its new phone OS: http://bit.ly/32gLbxL and http://bit.ly/32a2MXP There is a similarity to Google's in development, OS called Fuchsia. Considering both Google and Huawei's development teams worked together for years, it may not be that much of a coincidence: https://en.wikipedia.org/wiki/Google_Fuchsia The new Fuchsia's features and capabilities are quite incredible: https://www.androidauthority.com/what-is-google-fuchsia-os-847784/ 4. Huawei just finished building an AI chip which it claims is the world's most powerful AI processor: http://bit.ly/2Pjp3B6 Jim From mcp2004 at mail.ru Sat Aug 31 07:08:45 2019 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sat, 31 Aug 2019 15:08:45 +0300 Subject: [dba-Tech] =?utf-8?q?Word_VBA_question?= In-Reply-To: <04c501d54bd3$a42ad1f0$ec8075d0$@gmail.com> References: <04c501d54bd3$a42ad1f0$ec8075d0$@gmail.com> Message-ID: <1567253325.161028209@f509.i.mail.ru> Hi Susan -- I'm not sure what method do you use to find the abbreviation - here are two possible solution cases: *** First one *** Sub Macro1() Dim searchWord As String searchWord = "BBB" Dim sel As word.Selection Set sel = word.Application.Selection sel.ClearFormatting With sel.Find .Text = searchWord .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Dim wordFound As Boolean wordFound = sel.Find.Execute If wordFound Then Dim wordLength As Integer wordLength = Strings.Len(searchWord) Dim wdoc As word.Document Set wdoc = word.Application.ActiveDocument Dim wordIndex As Integer wordIndex = GetWordIndex(wdoc, sel.Words.First.Start) If (wordIndex > -1) Then Dim rangeToCopy As word.Range Set rangeToCopy = wdoc.Range(wdoc.Words(wordIndex - wordLength - 1).Start, wdoc.Words(wordIndex - 1).Start) Dim strToCopy As String strToCopy = Strings.Trim(rangeToCopy) Debug.Print "'" + strToCopy + "'" End If End If End Sub Function GetWordIndex(wdoc As word.Document, wordStartPosition As Integer) As Integer Dim wordIndex As Integer wordFound = False For wordIndex = 1 To wdoc.Words.Count If (wdoc.Words(wordIndex).Start = wordStartPosition) Then GetWordIndex = wordIndex Exit Function End If Next wordIndex GetWordIndex = -1 End Function *** Second one *** Sub Macro2() Dim searchWord As String searchWord = "BBB" Dim wdoc As word.Document Dim wordIndex As Integer Dim wordFound As Boolean Set wdoc = word.Application.ActiveDocument wordFound = False For wordIndex = 1 To wdoc.Words.Count If (wdoc.Words(wordIndex) = searchWord) Then wordFound = True Exit For End If Next wordIndex If wordFound Then Dim wordLength As Integer wordLength = Strings.Len(searchWord) Dim rangeToCopy As word.Range Set rangeToCopy = wdoc.Range(wdoc.Words(wordIndex - wordLength - 1).Start, wdoc.Words(wordIndex - 1).Start) Dim strToCopy As String strToCopy = Strings.Trim(rangeToCopy) Debug.Print "'" + strToCopy + "'" End If End Sub HTH. -- Shamil P.S. I'm a rare guest here these days - if you have any questions on the subject please e-mail me directly. >Tuesday, August 6, 2019 12:21 AM +03:00 from Susan Harkins : > >Hi everyone! > >I need to copy a range to a new Word document, but it's a complicated >search. When the search pattern find a match, I need to select the words to >the left -- using the length of the match (which can change, I'm using >wildcards). I'm stumped. > >An example: > >The search string matches (BBB) at the text, Better Business Bureau (BBB). I >need to copy the definition of the acronym, to the left of BBB, and the >acronym. The acronym is easy. But I can't figure out for the life of me how >to set a range to "three words to the left of BBB". > >I'd like to avoid using Selection because the editors will be working with >big documents. If that's the only way it can be done, that's the route I'll >go. But I'd rather set a range -- just can' figure out how to do it. > >Thanks! >Susan H. > >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com -- Salakhetdinov Shamil From ssharkins at gmail.com Sat Aug 31 07:40:54 2019 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 31 Aug 2019 08:40:54 -0400 Subject: [dba-Tech] Word VBA question In-Reply-To: <1567253325.161028209@f509.i.mail.ru> References: <04c501d54bd3$a42ad1f0$ec8075d0$@gmail.com> <1567253325.161028209@f509.i.mail.ru> Message-ID: <01b701d55ff9$555bc270$00134750$@gmail.com> Shamil! How are you??? I haven't been back to that macro since I posted that -- I will take a look. Thank you! Susan H. Hi Susan -- I'm not sure what method do you use to find the abbreviation - here are two possible solution cases: *** First one *** Sub Macro1() Dim searchWord As String searchWord = "BBB" Dim sel As word.Selection Set sel = word.Application.Selection sel.ClearFormatting With sel.Find .Text = searchWord .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Dim wordFound As Boolean wordFound = sel.Find.Execute If wordFound Then Dim wordLength As Integer wordLength = Strings.Len(searchWord) Dim wdoc As word.Document Set wdoc = word.Application.ActiveDocument Dim wordIndex As Integer wordIndex = GetWordIndex(wdoc, sel.Words.First.Start) If (wordIndex > -1) Then Dim rangeToCopy As word.Range Set rangeToCopy = wdoc.Range(wdoc.Words(wordIndex - wordLength - 1).Start, wdoc.Words(wordIndex - 1).Start) Dim strToCopy As String strToCopy = Strings.Trim(rangeToCopy) Debug.Print "'" + strToCopy + "'" End If End If End Sub Function GetWordIndex(wdoc As word.Document, wordStartPosition As Integer) As Integer Dim wordIndex As Integer wordFound = False For wordIndex = 1 To wdoc.Words.Count If (wdoc.Words(wordIndex).Start = wordStartPosition) Then GetWordIndex = wordIndex Exit Function End If Next wordIndex GetWordIndex = -1 End Function *** Second one *** Sub Macro2() Dim searchWord As String searchWord = "BBB" Dim wdoc As word.Document Dim wordIndex As Integer Dim wordFound As Boolean Set wdoc = word.Application.ActiveDocument wordFound = False For wordIndex = 1 To wdoc.Words.Count If (wdoc.Words(wordIndex) = searchWord) Then wordFound = True Exit For End If Next wordIndex If wordFound Then Dim wordLength As Integer wordLength = Strings.Len(searchWord) Dim rangeToCopy As word.Range Set rangeToCopy = wdoc.Range(wdoc.Words(wordIndex - wordLength - 1).Start, wdoc.Words(wordIndex - 1).Start) Dim strToCopy As String strToCopy = Strings.Trim(rangeToCopy) Debug.Print "'" + strToCopy + "'" End If End Sub HTH. -- Shamil P.S. I'm a rare guest here these days - if you have any questions on the subject please e-mail me directly. >Tuesday, August 6, 2019 12:21 AM +03:00 from Susan Harkins : > >Hi everyone! > >I need to copy a range to a new Word document, but it's a complicated >search. When the search pattern find a match, I need to select the >words to the left -- using the length of the match (which can change, >I'm using wildcards). I'm stumped. > >An example: > >The search string matches (BBB) at the text, Better Business Bureau >(BBB). I need to copy the definition of the acronym, to the left of >BBB, and the acronym. The acronym is easy. But I can't figure out for >the life of me how to set a range to "three words to the left of BBB". > >I'd like to avoid using Selection because the editors will be working >with big documents. If that's the only way it can be done, that's the >route I'll go. But I'd rather set a range -- just can' figure out how to do it. > >Thanks! >Susan H. > >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com -- Salakhetdinov Shamil _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Aug 31 13:38:13 2019 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 31 Aug 2019 12:38:13 -0600 (MDT) Subject: [dba-Tech] Word VBA question In-Reply-To: <1567253325.161028209@f509.i.mail.ru> References: <04c501d54bd3$a42ad1f0$ec8075d0$@gmail.com> <1567253325.161028209@f509.i.mail.ru> Message-ID: <601187028.214234656.1567276693863.JavaMail.zimbra@shaw.ca> Hi Shamil: Longtime no see. A fine piece of code. Jim ----- Original Message ----- From: "Discussion of Hardware and Software issues" To: "Discussion of Hardware and Software issues" Cc: "Salakhetdinov Shamil" Sent: Saturday, August 31, 2019 5:08:45 AM Subject: Re: [dba-Tech] Word VBA question Hi Susan -- I'm not sure what method do you use to find the abbreviation - here are two possible solution cases: *** First one *** Sub Macro1() Dim searchWord As String searchWord = "BBB" Dim sel As word.Selection Set sel = word.Application.Selection sel.ClearFormatting With sel.Find .Text = searchWord .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Dim wordFound As Boolean wordFound = sel.Find.Execute If wordFound Then Dim wordLength As Integer wordLength = Strings.Len(searchWord) Dim wdoc As word.Document Set wdoc = word.Application.ActiveDocument Dim wordIndex As Integer wordIndex = GetWordIndex(wdoc, sel.Words.First.Start) If (wordIndex > -1) Then Dim rangeToCopy As word.Range Set rangeToCopy = wdoc.Range(wdoc.Words(wordIndex - wordLength - 1).Start, wdoc.Words(wordIndex - 1).Start) Dim strToCopy As String strToCopy = Strings.Trim(rangeToCopy) Debug.Print "'" + strToCopy + "'" End If End If End Sub Function GetWordIndex(wdoc As word.Document, wordStartPosition As Integer) As Integer Dim wordIndex As Integer wordFound = False For wordIndex = 1 To wdoc.Words.Count If (wdoc.Words(wordIndex).Start = wordStartPosition) Then GetWordIndex = wordIndex Exit Function End If Next wordIndex GetWordIndex = -1 End Function *** Second one *** Sub Macro2() Dim searchWord As String searchWord = "BBB" Dim wdoc As word.Document Dim wordIndex As Integer Dim wordFound As Boolean Set wdoc = word.Application.ActiveDocument wordFound = False For wordIndex = 1 To wdoc.Words.Count If (wdoc.Words(wordIndex) = searchWord) Then wordFound = True Exit For End If Next wordIndex If wordFound Then Dim wordLength As Integer wordLength = Strings.Len(searchWord) Dim rangeToCopy As word.Range Set rangeToCopy = wdoc.Range(wdoc.Words(wordIndex - wordLength - 1).Start, wdoc.Words(wordIndex - 1).Start) Dim strToCopy As String strToCopy = Strings.Trim(rangeToCopy) Debug.Print "'" + strToCopy + "'" End If End Sub HTH. -- Shamil P.S. I'm a rare guest here these days - if you have any questions on the subject please e-mail me directly. >Tuesday, August 6, 2019 12:21 AM +03:00 from Susan Harkins : > >Hi everyone! > >I need to copy a range to a new Word document, but it's a complicated >search. When the search pattern find a match, I need to select the words to >the left -- using the length of the match (which can change, I'm using >wildcards). I'm stumped. > >An example: > >The search string matches (BBB) at the text, Better Business Bureau (BBB). I >need to copy the definition of the acronym, to the left of BBB, and the >acronym. The acronym is easy. But I can't figure out for the life of me how >to set a range to "three words to the left of BBB". > >I'd like to avoid using Selection because the editors will be working with >big documents. If that's the only way it can be done, that's the route I'll >go. But I'd rather set a range -- just can' figure out how to do it. > >Thanks! >Susan H. > >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com -- Salakhetdinov Shamil _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com