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 openai-env    (this creates a virtual environment so the libraries do not interfere with other libraries)

(openai-env) 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/pip-install-access-denied-on-windows



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/j-s-bach-prelude-no-1-in-c-major-bwv-846/

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 

Thursday, August 24, 2023

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 &#x2713

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

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
Negation

3-1
-1

* (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 base-2 logarithm of a number

LOG2(number)

LOG10

Returns the base-10 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)

JSP - Java Description

https://docs.oracle.com/javaee/5/tutorial/doc/bnair.html