John Hufnagel
Friday, October 4, 2024
Thursday, September 5, 2024
Google Colab first program, Hello World
Google Colab first program, Hello World: https://www.youtube.com/watch?v=uOx0iLkPwgo
Saturday, August 10, 2024
Python with OpenAI on Windows Computer
Install python. https://platform.openai.com/docs/quickstart
at command prompt:
C:\Users\Jhufnagel>python m venv openaienv (this creates a virtual environment so the libraries do not interfere with other libraries)
(openaienv) C:\Users\Jhufnagel>python m pip install upgrade openai (Note, the openai platform states that I can just use 'pip install upgrade openai', but that gives an access error). I found the work around at https://stackoverflow.com/questions/31172719/pipinstallaccessdeniedonwindows
Sunday, November 5, 2023
Solidworks macros eith ChatGPT
Record a simple using thr Solidworks macro recorder, upload it to ChatGPT, and explain to ChatGPT how you want it changed: https://youtu.be/QJfYaIGAmdY?si=j2N52jE9NZl67tWA
A similar second example where we start with giving ChatGPT some basic code ideas and even telling the references to use:https://youtu.be/ksOW4Sap6So?si=5bhrn3TmI8qSuJHb
Tuesday, September 19, 2023
Musical theory behind Bach Prelude in CMaj
Theory explained https://andrewhennington.wordpress.com/2015/10/22/jsbachpreludeno1incmajorbwv846/
Tonic cord  the root cord
Supersonic: the second note in a normal 8 note (heptatonic: 7 pitches) scale
Phrase usually 4 bars long, ending in some form of a cadence. The first phrase ends in a imperfect authentic cadence
Authentic cadence goes from the dominant to the tonic. Perfect cadence has tonic the highest tone in the final cord. Imperfect does
Tuesday, September 12, 2023
Thursday, August 24, 2023
AI in Manufacturing: How It’s Used and Why It’s Important for Future Factories
Redshift: https://redshift.autodesk.com/articles/aiinmanufacturing
Friday, February 10, 2023
Checkmark in Office Products
Font: Wingding, ALT 0525: ✓
Note that the Unicode for that to be able to see it in HTML is ✓
Note that the Blogger editor gets this messed up if you switch between HTML view and Compose View. This post was written stricly in HTML view
Friday, February 3, 2023
Wednesday, December 21, 2022
Import Vector Graphics image from Solidwords Drawing to Word
Inside Solidworks, create the drawing. Print it to PDF. You may want to change the orientation to Portrait
Inside Adobe Acrobat Pro, clean whatever you don't want in the pdf.
Inside MS Word, open PDF and chose the option to convert to word document.
It will bring it in as an image on a page. Now you can add text to that page.
Wednesday, October 19, 2022
OneNote Math Operations
Supported arithmetic operators
Operator  Meaning  Example 
+ (plus sign)  Addition  3+3 
 (minus sign)  Subtraction  31 
* (asterisk)  Multiplication  3*3 
X (upper or lowercase)  Multiplication  3x3 
/ (forward slash)  Division  3/3 
% (percent sign)  Percent  20% 
^ (caret)  Exponentiation  3^2 
! (exclamation)  Factorial computation  5! 
Supported math and trigonometry functions
Function  Description  Syntax 
ABS  Returns the absolute value of a number  ABS(number) 
ACOS  Returns the arccosine of a number  ACOS(number) 
ASIN  Returns the arcsine of a number  ASIN(number) 
ATAN  Returns the arctangent of a number  ATAN(number) 
COS  Returns the cosine of a number  COS(number) 
DEG  Converts an angle (in radians) to degrees  DEG(angle) 
LN  Returns the natural logarithm of a number  LN(number) 
LOG  Returns the natural logarithm of a number  LOG(number) 
LOG2  Returns the base2 logarithm of a number  LOG2(number) 
LOG10  Returns the base10 logarithm of a number  LOG10(number) 
MOD  Returns the remainder of a division operation  (number)MOD(number) 
PI  Returns the value of π as a constant  PI 
PHI  Returns the value of Φ (the golden ratio)  PHI 
PMT  Calculates a loan payment based on a constant interest rate, a constant number of payments, and the present value of the total amount  PMT(rate;nper;pv) 
RAD  Converts an angle (in degrees) to radians  RAD(angle) 
SIN  Returns the sine of the given angle  SIN(angle) 
SQRT  Returns a positive square root  SQRT(number) 
TAN  Returns the tangent of a number  TAN(number) 
For further details, see: Insert and calculate simple math equations in OneNote
JSP  Java Description
https://docs.oracle.com/javaee/5/tutorial/doc/bnair.html

In a regular annotation note, create a stack that looks the way you like. It will take a couple of trial and error attempts since there'...

I just finished a 1 hour marketing meeting with an organization that I volunteer with. They are trying to create an new website and the look...