Wednesday, October 30, 2019

Linking to a Specific Part of a Webpage


It's useful to be able to link exactly where you want to go on a webpage, instead of only the top of the page - and it's pretty easy to do!

1. Open your desired webpage.  I'm going to use some Altium documentation pages.
2. In your browser of choice, open the menu and find "Developer Tools"

Brave:




















Chrome:


Firefox:













3. Click on the arrow with the tool tops "Select Element" and click on your desired area in the webpage.  (All three browsers use the same icon)











4. Add the "id" of that element (in the highlighted text) at the end of the original url, prefaced by " #! " so in this case:
Original URL:




Element-Linked URL:




5. Double check that it worked, and send that sucker out to impress your friends!







Cheers!




Wednesday, October 9, 2019

Create a Demo of All Installed Fonts


Summary:


I have a lot of fonts installed on my computer.  But what’s annoying is that they aren’t always rendered in the preview, or I just want to see all of them at once to pick the perfect font, so I created a Font List from a script in Word (Yep, you can write scripts for Word!)  Here we go:




Glorious.

Let's Break it Down:


1. Open a blank Word document
2. Press Alt+F11 to open VBE
    Or, Developer -> Visual Basic






3. In Project -> Modules, right click, Insert New Module


4. Copy and paste the code base below
5. Save and close

6. From your Word Document Press Alt+F8
    Or, Developer -> Macros








7. Select the macro ListAllFonts

















8. Click 'Run'

9. Be Amazed!



Cheers!