Python GUI for Visual Basic 6 Programmer

I spent decades developing complex software using Visual Basic 6 for our oceanographic science program. I am not a programmer but a biological oceanographer with some computer aptitude. I took Fortran and Pascal programming in college. When hired at Scripps Institution of Oceanography, I took over a data acquistion program from a colleague who wrote it in Basic. Most higher level programming languages are similar in structure such as ‘for loops’ or ‘if…then’, so it mainly comes down to semantics. So I taught myself QuickBasic then when Windows became our primary operating system, Visual Basic. I considered Visual C++ but Visual Basic was so quick and easy to read and debug. I never switched. So decades of Visual Basic programs starting with Windows 3.11, 95. 98…all the way to Windows 7. Then I retired but my legacy is my Visual Basic data acquisition and processing programs. They are still used in 2023 but the migration of Python is happening. A new programmer for the oceanographic seagoing program is working on re-developing/re-writing my VB programs in Python. I hope to help and one tool I found is QtDesigner.
If you install Anaconda Python, it installs the PyQt & QtDesigner. Anaconda is a great amalgam of Python tools & it can be confusing to mentally organize the various packages it includes. QtDesigner is what I’m mainly interested in and you have to hunt for designer.exe under the Anaconda installation dir, usually: “Users/username/anaconda3/Library/bin/designer.exe”.
There are plenty of way to install PyQt & QtDesigner but I find using Anaconda’s install package, although bloated, my favorite.

Create a shortcut to designer.exe on your desktop and open the python gui. Start by Create Main Window and you’ll see a very Visual Basic-like GUI development environment. Select a component from the toolbox by single click-hold then drag onto the Main Window. The properties windows on the right is very much like Visual Basic.

There are plenty of tutorials on how to create a python app with QtDesigner online & on YouTube. If you are looking for a Visual Basic type of GUI tool to develop Python apps or to migrate your VB programs. QtDesigner may be a good place to start.
I tried RealBasic, which has been rename Xojo, and was successful at quickly writing some apps for the later version of Windows. It’s still being developed but is probably another dead-end for passing on your source code. Although it’s a modern, multi-platform Basic programming language environment. Most of the current generation of programmers prefer something like Python.

Homemade Dog Treats

Our Terrier-Poodle mix, Bodhi, had food-allergies so bad he developed hot spots. These areas would itch so much he would lick them raw. So we took him to our vet and he was put on prescription dog food, Royal Canin HP. Since using Royal Canin HP, his fur has grown back and his coat is back to normal and the itch that was driving him crazy is gone.

Unfortunately, this and similar veterinary-diet dog treats are always out-of-stock. So I decided to make my own from the veterinary-diet canned dog foods. The dermatologist recommends I stick to prescription canned dog foods only because of their stricter manufacturing guidelines. But I’ve supplemented with regular cans of Evangers Rabbit, Instinct Rabbit and Natures Choice Venison. These are not made under the strict veterinary dietary guidelines so could have ‘contaminants’. But so far, the mix combining Royal Canin HP canned food with rabbit has not caused the hot spots to return or the itching.

Favorite Method
I’ve experimented with several techniques to improve and streamline the process of baking dog treats. My current method is fairly fast, less tedious than earlier methods, and has great results. Using a 25mm/0.5tbs ice cream scoop is very good at producing professional looking dog treats but takes a lot of time and is tedious. My latest tool is a jerky gun and, so far, it works the best at making dog treat bites and buttons quickly.

Step 1: mix the canned dog food in a large bowl into mush. Two cans of vet-diet Royal Canin HP (Hills Science Z/D &/or Purina Pro HA) are grated into a large bowl. Two cans of Evangers or Instinct Rabbit are added and mixed till smooth by hand. The canned rabbit dog food is much softer than the vet-diet. If you are concerned about non-prescription food quality, you can stick to strictly using vet-diet canned food. But novel proteins such as rabbit, alligator or venison are not supposed to trigger an allergic response.
I use a grater to shred the clumps of dog food so it can be extruded by the jerky gun. The smoother the mix, the smoother the strips will extrude from the tip(s). Be sure to break-up any chunks between your fingers. Wearing gloves is helpful so you can knead the mix until smooth.

Step 2: load the jerky gun with the mix – the less air the better so shake the mix down into the tube. Once filled, select the extrusion tip, I prefer the large sausage-filler tip which extrudes a cylindrical 1″ diameter ‘log’. With rabbit or venison added, the mix can be pretty soft so after dispensing several logs onto a cookie sheet. I chill them for ~30mins in the freezer or an hour in the fridge. This results in a cookie-dough texture that can be cut cleanly with a long knife. Note: this changes as the logs warm, so I try to cut several logs at once to speed the process.

.

Step 3: slice the logs into 1/2″x1″ buttons. I cut four logs at the same time with a butchers knife. Then space the buttons out onto a large cookie sheet lined with parchment paper. The buttons will usually shrink when baking but if there is more rabbit (more fat), they may spread. If you have this problem then adjust your mix or space your buttons further apart.

Alternately – use the double-barrel jerky extrusion tip: form two continuous thick strips of dog food jerky onto the large cookie sheet lined with parchment paper. Then using the tip of a butter knife, cut into/notch the strips every 1″. This is the quickest way to make bite-size squares but I prefer the round crispier buttons. These are easier to throw if you want to play a treat-fetching game.

Step 4: any dog food remnants are put in the 25mm scoop and dolloped onto the cookie sheet. Once all of the dog food mix is expelled onto the cookie sheet, scrap the extrusion tip(s) & bowl clean and use remnants to fill the scoop. Or you use a spoon or fingers to form buttons with the leftovers.

Step 5: bake for 30mins at 300°: I use a convection oven but a regular oven works just as well. Bake for 30mins, let cool for ~30mins, place an empty parchment paper-lined cookie sheet on top of the baked treats, then flip the entire cookie sheet in one motion. This saves you from having to flip each treat individually by hand. Peel any stuck treats off the old sheet and onto the new paper-sheet (see photos below). Be sure all the treats are flipped so the less-cooked surface is up. Bake another 30mins at 300° then cool – I leave the cookie sheets in the oven so they cook/dry a little longer while cooling. But be sure to crack the oven door open so the steam escapes. Or just remove from the oven to cool.

Step 6: Storage (optional) – I place the baked treats into a chest freezer for storage then defrost a batch in the fridge before using. If baked well, these treats do not need to be refrigerated or frozen but I do both. I store them uncovered in the freezer then move portions into the fridge to thaw & use. My hope is freezing may do some freeze-drying of the treats and keep them crisp. Some thicker baked pieces still have soft chewy middles so refrigeration/freezing helps maintains freshness. Not a big concern since most batches are consumed in one week.

Different Things I’ve Tried

Method 1 (Simplest): Just cut the canned food into cubes and bake – see 1st photo below.

For the first few batches of dog treats, I only used prescription canned dog food: Hills Science Z/D, Royal Canin HP & Purina Pro HA. I wanted to try the different brands to see if one worked better or if Bodhi preferred of one over another. There was no obvious preference – Bodhi loved all of the treats equally. I think baking the dog food concentrates the flavor, smell & adds crunch.
Since all the vet-diet canned foods have a solid pâté texture. Once out of the can, I just sliced the block into cubes about 3/4″x1/2″x1/2″. I baked these on a cookie sheet in a convection oven at 300° for 30mins. I noticed the undersides were oily and still soft. So, after letting them cool slightly, I flipped each cube and baked for another 30min at 300°.
These cube-shaped treats turned out pretty good but were not easy to throw very far for ‘treat-hunt’, our treat-finding game. Plus this process takes a long time & flipping each treat is tedious.
I thought a confectioner scoop might speed up the process. After a short search on Amazon for confectioner & ice cream scoops, I ordered this 25mm (0.5 tbs) scoop.

Method 2: Combination of cubes and scooped treats. Some canned dog food will plop out of the can whole (Z/D), some won’t (HP or HA). I tried punching a few holes in the bottom of the can to break the vacuum & release the content. It helped but it was still a lot of work to extract the contents whole or in big blocks. On flat bottom cans, you can open both ends and push out the entire can’s contents. The bottom of these cans all had rounded edges so that method wasn’t possible.
I resorted to slicing the loaf in the can with a knife then prying out the chunks. The larger chunks were cubed then placed on a cookie sheet. The rest were pressed into a melon baller or 25mm ice-cream scoop to form round dog treats. The 25mm scoop is the perfect size but it’s a lot of work, making one treat at a time.
Tip – Adding parchment paper makes flipping & clean-up easier.
The trimmings and leftover dog food were pressed into the scoop and dropped onto the cookie sheet lined with parchment paper. The 25mm (0.5 tbs) scoop dollop is the perfect size, shrinking as it bakes into a perfect bite-size treat. Convection baking at 300° for 30mins, letting cool, flipping, then baking another 30mins at 300° resulted in a great batch. The 25mm scoop treats were shaped & baked near-perfect. I flattened them slightly with a spoon since they are dome-shaped out of the scoop. But this isn’t really necessary since they naturally flatten when baking. The melon-ball tool can also be used but getting the mix to drop onto the cookie sheet requires a ton effort unless using only the softer canned rabbit.

Method 3: Combining all the techniques tried so far, I used the single large tip to make button logs, chill and cut; then switch to the dual jerky tip & made continuous thin jerky strips. Jerky strips tend to crumble when breaking into piece so are a little more messy. But the fastest & easiest batch of treats would be twice-baked jerky strips.

Update – Silicone Molds: my wife brought home a silicone mold from World Market shaped with paw-prints. One sheet of 18 pieces would be inefficient so I browsed Amazon and found a variety of similar molds. For Christmas dog treat bags, I made a batch of various paw-print and round molded treats. I tried 350° for 30mins since these molds were thicker and would insulate the mix while baking. I then extracted them from the mold onto parchment-lined cookie sheets for the 2nd bake – 40mins at 300°. They turned out well although some food stuck to the mold on roughly 5% of the pieces. I did not photograph this trial but using molds may be the fastest method yet.

  • Mix the mash in a bowl
  • Load the molds with a spatula – packing the mix into each cell then scrapping each cell flat
  • Arrange the filled molds onto a large cookie sheet (no parchment) and bake 350° for 30mins
  • Let cool then drop each treat onto a parchment-lined cookie sheet and bake again at 300° for 40mins

The top of the treats bake nice and crispy in the molds but the bottoms are oily and can stick. They need the 2nd bake much more than non-mold methods. Provided you are not too particular about how well the treats take the molded shape, the process is very quick.
The silicone mold with 1″ by 1/2″ deep paw-prints turned out the best in terms of size & crispness. But the paw design was lost except for the outline.

Dear Starbucks

Dear Starbucks,

Update #1: Yea! Starbucks (somewhat) came to their senses and brought back Iced Green Tea. My wife is happy to have her favorite, everyday Starbucks beverage back. I’m still waiting for a Iced Guava White or Black Tea to return.

For some reason all the drinks I’ve loved and ordered over the years have ended up being discontinued. Like seeing a great deal at CostCo that you hold off on pulling the trigger. When you finally decide you want that CostCo deal, the item is gone. Or after you find, buy & enjoy a new food item a few times, they stop carrying it. That’s CostCo and there’s probably a future letter to the ‘Dead Letter Office’ addressed to them as well. For some reason, I expect this to happen more at CostCo because of their unique & seasonal buying practices.
Starbucks is more like McDonald’s. You can walk into a McDonald’s in Japan or Starbucks in Barcelona and order your favorite food or drinks. Although some institutions like KFC in Japan or Burger King in India have a culturally-adapted menu. You have expectations that most US-based companies will provide travelers with a taste of home. Like TGIF in downtown Yokohama serving burgers, fries, Diet Coke and unsweetened ice-tea – Thanks TGIF!
But I’ve hit an exasperated point where Starbucks has discontinued one too many of my favorites. Of course their coffee is always a great drink, a Venti Iced Latte or Grande Hot Latte still being available.

But the Latte Macchiato was discontinued several months after I discovered the delicious, stronger latte experience. They still serve a Caramel Macchiato that I can order without caramel but its not the same & more expensive.

My next discontinued favorite was the Guava White Iced Tea. It was my go-to drink when I didn’t want a coffee. I’ve tried the Refreshers but they are too sweet so this tea drink was a perfect thirst quencher in either tea-only or a tea+lemonade form.

Next I switched to the Guava Black Iced Tea or Guava Black Iced Tea w/ Lemonade – a decent replacement for the white iced tea but now that’s discontinued.
The Passion Tango, Passionfruit and Peach teas are not viable substitutes for me.

Lastly, the reason I’ve always thought I should have stock in Starbucks. My wife’s favorite Green Iced Tea – a Trenta Green Iced Tea Unsweetened was attached to every order for as long as I’ve been going to Starbucks – is now gone, discontinued. She’s broken-hearted and has no reason to leave a little earlier so she can pick one up on the way.

So Starbucks, it’s been a great run but I’ll be relying on my Nespresso machine for my Iced Lattes ($1.00-$1.20/drink). My wife will order ChinaMist and Tazo Green Tea from Amazon (<$0.50/drink) and brew her own teas. We’ll miss the convenience of the Starbucks Mobile App & drive-thru ordering when on the road. But we will not miss the scavenger hunt of finding the last Starbucks serving our favorite discontinued drink.
We’ll keep an eye out for the return of our favorites and perhaps even try some of the new drinks when out & about. But if your marketing team is trying to adapt the menu selections to draw new consumers. Remember Classic Coke and your long-time regulars like us that want their “usuals”. There should be room on the menu for both new and “classic” drinks.

McDonald’s Ice Cream Machine Is Broken…Again

I watched a informative video this morning and had to post this to help vent my frustration in its absurdity. It’s a video by YouTuber Johnny Harris that explains, in detail, why the McDonald’s ice cream machine is too often “broken”: https://youtu.be/SrDEtSlqJC4

If you enjoy McDonald’s milk shakes & ice cream or get it for your kids or grand-kids. Nothing is more disappointing then sitting in the drive-thru line only to find out their ice cream machine is out-of-order…again. This includes milkshakes as well – we tried to get a Shamrock Shake on St Patty’s Day, sat in line for 10mins only to find the machine was “broken”. Turns out this is part of a McDonald’s and Taylor Ice Cream Machines agreement to generate revenue from franchises. The machines are designed so if there’s a glitch only the service technician can fix them. This is how the operational software works so do not gripe to the McDonald’s employees or manager. It’s not their fault. They are required to use only Taylor (C602) ice cream machines. They are required to run a 4hr daily maintenance routine and it is this routine that can cause the problem. If there is ANY glitch in the maintenance & sterilization routine, the system halts with an error code that only the Taylor technician can diagnose. It could be a problem as simple as too much ice cream mix in the hopper.
A development company named Kytch designs and sells a device that help McDonald’s (& other soft serve machine) users troubleshoot problems. Deciphering the cryptic error codes so they can fix problems themselves in many cases. But since this takes revenue away from Taylor, McDonald’s issued a warning that said using this device is dangerous & will void the warranty. Meanwhile the parent company of Taylor has a subsidiary, Powerhouse Dynamics, developing their own Kytch-type diagnostic device. They will most likely market this device to franchises for a subscription or hefty price to make up for the lost repair revenue.

It would be great if McDonald’s could improve the reliability of their ice cream/milk shake machines. But until they do so, I’ll be taking the grand-kids to Sonic, Wendy’s, Chick-fil-a, In-n-Out, or for frozen yogurt. I refuse to wait in the drive-thru only to hear the overused “ice-cream machine is broken”.

There are growing resources of information about this inconvenience and the cause. Just google “McDonalds broken ice cream machine”.

  • Watch Johnny Harris’ Youtube video that explains, in detail, all this and is the source for most of what’s above: https://youtu.be/SrDEtSlqJC4
  • Mcbroken.com: this website tracks the “broken” McDonald’s ice cream machines regionally – awesome.
  • TheVerge article: https://bit.ly/2S0qYMy | Food & Wine article: https://bit.ly/3dZ0DHa

HP Photosmart S20 Scanner on Windows 7

I’ve had a HP PhotoSmart S20 scanner for years and never really got around to seriously scanning in my slides & negatives. Now that I have the time and interest, I find it will not work with Windows 10. Fortunately, I have a Windows 7 laptop that seems to handshake with my scanner. I follow these directions found by googling “HP Photosmart S20 Windows 10” on the Dell Forums. Some advice is to install Vuescan which is supposed to install a compatible Win 10 driver but this isn’t true. In fact, on Vuescan’s website, it says to make the scanner work requires a HP driver.
After installing ps804en,exe on my Windows 7 laptop, the scanner appears under ‘Devices’. I’ll see if and how it works before spending a lot of time trying to get it working on my desktop running Windows 10.
If you are trying to get your scanner working on newer versions of Windows. Give the following instructions a try. I’ll add the driver download link from a good resource that worked for me.
https://www.helpjet.net/Fs-60847854-80177087-39633014-devices.html

If you have HP drivers installed, follow the first 12 instructions. Otherwise, start at Go to www.HP.com or get the driver from the helpjet link above, or google ‘ps804en.exe’. You’ll get several links including cnet.com.

  • Disconnect the scanner from the system
  • Click Start- (Settings)- Control Panel
  • Look to the left. If listed, click “Switch to Classic View”
  • Double-click the Add or Remove Programs icon
  • Look to the left. If listed, click the Change or Remove Programs button. A listing of all installed programs should be available
  • Select all HP scanner applications/drivers you want removed and then click the Change/Remove button
  • The InstallShield Wizard dialog box, select the Remove check box
  • Click Next
  • If you get a window for “Remove Share Component”, click “Yes to All”
  • If you get a window for “Remove Share File”, click “Yes to All”
  • Click Yes
  • When finished, close all boxes
  • Go to www.HP.com
  • Select ‘Home & Home Office.’
  • Type ‘S20 ps804en.exe’ into the top Search field [press the ENTER key]
  • Click HP Photosmart s20 photo scanner
  • Select ‘Download drivers & software’ from this screen.
  • Select ‘Microsoft Windows XP.’
  • Select ‘PhotoSmart Scanner (SCSI) and S20/S20xi Photo Scanner (USB) Software.’
  • Click ‘Download now’ to being downloading ps804en.exe
  • Click Save
  • Click Desktop
  • Click Save
  • When done, double-click the downloaded file
  • A Windows-based message will appear during installation that recommends stopping installation because the HP Photosmart software has not passed Windows Logo testing
  • Ignore this and click ‘Continue Anyway’
  • Follow the prompts to finish loading the software
  • Click Start- Shutdown- Restart- OK or Click Start- Turn Off Computer- Restart
  • Reconnect the powered on scanner

Helpjet’s driver page also has instructions you can try:

Here is a step by step manual guide for HP PhotoSmart C5101A – S20 software installation process on Windows 7 / 8 / 8.1 / 10 / Vista / XP.
1 Download ps804en.exe file for Windows 7 / 8 / 8.1 / 10 / Vista / XP, save and unpack it if needed.
2 Switch on your new hpphotosmartscanner hardware.
3 Right click on the My computer icon and push Properties tab then. Choose Hardware tab. Click on Device Manager button.
4 Find your HP PhotoSmart C5101A – S20 device in the list and press double click on the hpphotosmartscanner device. Click Reinstall driver button.
5 Choose Install from the specific location and click on the Browse button. Click on the Next and Finish button after that to complete the installation process.
6 After these steps, you should see HP PhotoSmart C5101A – S20 device in Windows peripheral manager.

TopazLab Old Versions

After watching YouTube videos on two of my favorite TopazLabs plugins for Lightroom & Photoshop, DenoiseAI & SharpenAI. The reviewers of version 3.02 of SharpenAI thought the lowlight correction did not work as well as the older version.
Note: version 3.0.3 rolled back the low-light module back to the older version. So it’s probably safe to install the latest version and get the best results. Still, it’s nice to have the full installer archived just in case. So consider downloading the full versions of the programs to insure future updates don’t change some aspect of the program you prefer.
DenoiseAI has also been updated to 3.0.2. I installed both programs using the online installer so did not have an archive of the older versions. Fortunately, I was able to find the older versions on TopazAI’s website so I downloaded the full installers. These pages are not very easy to find so I thought listing them here might help anyone wanting older versions. I do not know how long these link will work but as of Apr 2021, they provide download links to older versions. Since these are from TopazLabs, I feel confident they are legit. But I do not take any responsibility for them and any security flaws that may have been addressed in the latest versions.

NordVPN Old Version Pre-Web Browser Login

I’ve been a user of NordVPN for a couple years. It works well to help keep my Amazon FireTV, Windows & Apple computers & phone secure. The last update, 6.35, changed the way you login in Windows, requiring a web browser pop-up login. I do not know if there is a workaround but from what I found posted on Reddit. Others who do not like this method, downgraded to version 6.32.24. The link on Reddit wanted to download a rar, appearing a little suspect – I was not sure if it’s legit or tampered with. So I tracked down direct download links that are from nordvpn. I’ve posted then here in case others wanted to downgrade to the older version that auto-logins. I take no responsibility for these older versions, or any security flaws that new versions patch etc. So far, I’ve only noticed the inconvenience of the Windows login so will run the latest version on my other devices. Once you download these archive, scan them with your own anti-virus/anti-malware software. If you look at the urls linked below, as far as I know, they are nordvpn servers & legit. I do not know how long these links will work but as of Apr 2021, they are good. Update: Oct 2023 these links are 404, looks like we’ll have to find this version elsewhere like filehippo.com. I’ve switch to SurfShark so no longer use NordVPN. But if I did, I would use the latest version for maximum security.

Drive-mapping in Windows 7/10

I’ve written a lot of programs in Visual Basic, starting a LONG time ago. I never transitioned over to Visual Basic.net or Studio. The ease & speed of Window program development kept me using Visual Basic 6 long after its retirement. I dabbled with other similar IDE like RealBasic/Xojo which is a worthy successor. But I had invested so much time developing VB programs, I never fully switched over.
One aspect of my VB programming is I did not want to edit the registry when installing my programs or rely on .ini files. So I used .cfg text files for file paths & program configurations. To enable my programs to save data to a network server. The server’s data directory would be mapped to a drive letter, typically Q:. Q being available on most data acquisition and processing workstations & tablets. Unfortunately, mapping a network drive to a letter was phased out by Microsoft. But I found a registry hack posted by Technet that would revive this option. This allows my “.cfg-file-path-driven” programs to work in Windows 7 and 10.
Here is the method as written for the calcofi.org website:

Some Programs Cannot Access Network Locations When UAC Is Enabled

Source URL: http://technet.microsoft.com/en-us/library/ee844140%28v=ws.10%29.aspx

Updated: November 16, 2009

Applies To: Windows 7 & Windows Server 2008 R2 (and Windows 10)

Symptom

SIO-CalCOFI Visual Basic Windows programs reading or writing files to a network, mapped (to a letter) drive may display a “network not found” error. This prevents the program from accessing files or writing files to the network drive. The registry changed outlined in the Microsoft white paper will fix the “visibility” of a mapped network drive and allow the program to read & write properly.

After you turn on User Account Control (UAC) in Windows Vista or Windows 7, programs may not be able to access some network locations. This problem may also occur when you use the command prompt to access a network location.

Cause

This problem occurs because UAC treats members of the Administrators group as standard users. Therefore, network shares that are mapped by logon scripts are shared with the standard user access token instead of with the full administrator access token.

When a member of the Administrators group logs on to a computer running Windows Vista or Windows 7 that has UAC enabled, the user runs as a standard user. Standard users are members of the Users group. If you are a member of the Administrators group and you want to perform a task that requires a full administrator access token, UAC prompts you for approval. For example, if you try to edit security policies on the computer, you are prompted. If you approve the action in the User Account Control dialog box, you can then complete the administrative task by using the full administrator access token.

When an administrator logs on to a computer running Windows Vista or Windows 7, the Local Security Authority (LSA) creates two access tokens. If LSA is notified that the user is a member of the Administrators group, LSA creates the second logon that has the administrator rights removed (filtered). This filtered access token is used to start the user’s desktop. Applications can use the full administrator access token if the administrator user provides approval in a User Account Control dialog box.

If a user is logged on to a computer running Windows Vista or Windows 7 and if UAC is enabled, a program that uses the user’s filtered access token and a program that uses the user’s full administrator access token can run at the same time. Because LSA created the access tokens during two separate logon sessions, the access tokens contain separate logon IDs.

When network shares are mapped, they are linked to the current logon session for the current process access token. This means that if a user uses the command prompt (cmd.exe) together with the filtered access token to map a network share, the network share is not mapped for processes that run with the full administrator access token.

Resolution

Important
This section contains steps that modify the registry. Incorrectly editing the registry may severely damage your system or make your system unsafe. Before making changes to the registry, you should back up any data on the computer. For more information about how to back up and restore the registry, see article 322756 in the Microsoft Knowledge Base (http://go.microsoft.com/fwlink/?LinkID=133378).

To work around this problem, configure the EnableLinkedConnections registry value. This value enables Windows Vista and Windows 7 to share network connections between the filtered access token and the full administrator access token for a member of the Administrators group. After you configure this registry value, LSA checks whether there is another access token that is associated with the current user session if a network resource is mapped to an access token. If LSA determines that there is a linked access token, it adds the network share to the linked location.

To configure the EnableLinkedConnections registry value

  1. Click Start, type regedit in the Start programs and files box, and then press ENTER.
  2. Locate and then right-click the registry subkeyHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
  3. Point to New, and then click DWORD Value.
  4. Type EnableLinkedConnections, and then press ENTER.
  5. Right-click EnableLinkedConnections, and then click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Exit Registry Editor, and then restart the computer.

Welcome to mindwander.com

This site has been a long time coming. I’ve been meaning to develop a website that collects all the eclectic information I’ve discovered when researching various topics of current interest. Sometimes it takes quite a lot of digging to find the solution to different issues. This blog is my way of collecting this information into another location so obscure, obsolete, or lost/dead links information has another archive. Welcome, I hope you find the information you are looking for here.

Line.Sta Algorithms

Click for larger ImageCorrected Conversion Algorithm for CalCOFI Station Grid And Their Implementation in Several Computer Languages by Edward Weber & Thomas Moorem, NOAA Fisheries, 2013 CalCOFI Report v 54.

Link to downloadable code (Java, Perl, Python & R) file presented in the CalCOFI Report vol 54, pages 102-106.

Matlab scripts by Robert Thombley, SIO-CalCOFI with Sep2014 error correction by Augusto Valencia, UABC; based on Weber & Moor 2013.

Link to MatLab downloadable code authored by Robert Thombley, SIO-CalCOFI

(Abstract from pdf) “Converting between geographic coordinates in latitude and longitude and the line and station sampling pattern of the California Cooperative Fisheries Investigations (CalCOFI) program is a commonly required task for conducting research on the California Current ecosystem. This note presents several corrections and clarifications to the previously published algorithms for performing these conversions. We include computer code to implement the algorithms in Java™1, Perl, Python, and R. We note that freely available code to conduct the conversions in Fortran, Matlab®2, JavaScript™, and Visual Basic®6 has previously been published, and an online conversion tool is also available. A future version of the PROJ.4 cartographic projections library will also include support for CalCOFI conversions, thereby allowing for convenient conversions using the GRASS GIS, PostGIS, Python, Perl, R, and many other programs and programming languages.”

For individual language – Java, Perl, Python, or R – implementations & downloads, see sections below

Continue reading “Line.Sta Algorithms”