
Watched “It’s the Great Pumpkin, Charlie Brown” on 4k Blu-ray




Background: I’m a Windows user. I now use a Mac for work. I’m going to document the differences as I run into them.
First up: launching multiple instances of an app.
I was doing 3d modeling work in Blender on macOS. I have a CAD model of a vehicle (model A). I used Blender to reduce the complexity of the model (model B). Now that I’m done with model B, I want to compare model A to model B.
I have model B loaded in Blender. Now I want to load model A in a second instance of Blender. How do you do that?

There are several ways I can think of to do this on Windows

I tried right-clicking the Blender icon in the Dock and selecting Blender, but it just brings up the existing Blender.
I tried middle-clicking, and playing around with modifier keys. Nothing worked.
I searched the internet and found a post that said it was possible to launch a second copy of an app…but you had to do it from the command line.

I now have DDD in a demo-able state, and you can try it out too.
What is DDD?
Cross-platform (Windows, Linux, Mac) 3D tools for PowerShell
That is an odd tagline, because PowerShell is known for automating IT tasks. It has nothing to do with computer graphics.
DDD is a PowerShell module. It adds commands to PowerShell to make working with 3D graphics easy.
For more info on what DDD is, see my kickoff post: http://www.davidlenihan.com/2020/04/17/introducing-ddd/
The commands available in this release:
These commands allow you to create points, vectors, and matrices. You can manipulate points and vectors by multiplying them by matrices. You can view the primitives in 3D by piping (‘|’) the output to the command ‘Out-3d.’
Here is a simple example. Create a point at 1, 1, 1 and display it in 3D.
New-Point 1 1 1 | Out-3d

In the 3D view, you can rotate with the mouse, keyboard (WASD or arrow keys), or touch gestures. Press Esc to exit.
DDD has a single requirement: PowerShell 7 or higher. In the near future, PowerShell 7 will be built into Windows 10. For now, you have to add it to your system.
NOTE: Even though DDD will work on any platform supported by PowerShell 7, I have not yet created a version of Out-3d that works on Mac or Linux. I plan on working on that next.
Once you have PowerShell 7 installed, you can copy and paste these demos into the PowerShell 7 console to run the scripts. You can modify these scripts and see what results you get. If you come up with your own creation, please share it with me via me@davidlenihan.com.

# create a coil
Install-Module DDD -Repository PSGallery
Import-Module DDD
0..3600 | ForEach-Object {
$deg = $_
$rad = $deg*[Math]::PI/180
$x = [Math]::Sin($rad)*360
$y = $deg
$z = [Math]::Cos($rad)*360
New-Point $x $y $z
} | Out-3d

# create a sphere
Install-Module DDD -Repository PSGallery
Import-Module DDD
$allPoints = @() # empty array
for($degY = 0; $degY -lt 360; $degY += 10) {
for($degZ = 0; $degZ -lt 360; $degZ += 10) {
$x = 1
$y = 0
$z = 0
$pt = New-Point $x $y $z
$rotZ = New-RotateZMatrix $degZ
$rotY = New-RotateYMatrix $degY
$allPoints += $rotZ * $rotY * $pt
}
}
$allPoints | Out-3d

The last demo is of a the iconic Utah teapot. This simple script is doing quite a bit…
# load a teapot in OBJ file format
Install-Module DDD -Repository PSGallery
Import-Module DDD
$url = "https://graphics.cs.utah.edu/courses/cs6620/fall2019/prj05/teapot.obj"
$obj = (Invoke-WebRequest $url).ToString()
$windowsLineEnding = "`r`n"
$lines = $obj -split $windowsLineEnding
# regular expression to match a vertex: "v <X_FLOAT> <Y_FLOAT> <Z_FLOAT>"
$geometricVertex = '^v' # https://en.wikipedia.org/wiki/Wavefront_.obj_file#Geometric_vertex
$whitespace = '\s+'
$float = '[\d\.\-]+'
$restOfLine = '.*$'
# use "Named Captures" to get x, y, and z: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_regular_expressions?view=powershell-7#named-captures
$vertRegex = "$geometricVertex$whitespace(?<x>$float)$whitespace(?<y>$float)$whitespace(?<z>$float)$restOfLine"
# parse .obj and output verts
$teapot = $lines | ForEach-Object {
if ($_ -match $vertRegex) {New-Point $Matches.x $Matches.y $Matches.z}
}
$teapot | Out-3d
I proved to myself that I could make PowerShell a great environment for quickly working with 3D graphics. Here are some of the things I plan on doing…
The source code for building DDD is available here: https://github.com/lenihan/DDD
Let me know what you think. I want this to be a solid product, so if you have any problems, please let me know. Post in the comments or send me an email: me@davidlenihan.com.
I heard that Twitter was not allowing you to share a link to a news story on the NY Post.
This is the link they will not let you post:
https://nypost.com/2020/10/14/email-reveals-how-hunter-biden-introduced-ukrainian-biz-man-to-dad/
When I tried to post it, I got this message:
“We can’t complete this request because this link has been identified by Twitter or our partners as being potentially harmful.”


I loved Escape from New York as a kid. It was the first R-rated movie I ever saw. I own it on Blu-ray and decided to re-watch it.
The opening sequence describes the situation with an uncredited narration by Jamie Lee Curtis…
In 1988 the crime rate in the United States rises 400%. The once great city of New York becomes the one maximum security prison for the entire country. A 50-foot containment wall is erected along the New Jersey shoreline across the Harlem River and down along the Brooklyn shoreline. It completely surrounds Manhattan Island. All bridges and waterways are mined. The United States police force, like an army, is encamped around the island. There are no guards inside the prison, only prisoners and the worlds they have made. The rules are simple: once you go in, you don’t come out.
It doesn’t sound so far fetched anymore: create a place for people that do not want police.
I love John Carpenter’s synth soundtrack. Opening track here.
I did not know there was an alternate opening to the movie. This opening shows Snake getting busted for robbing the Bank of the United States…the crime that sent him to New York Maximum Security Prison. You can see that they have created “USART,” a subway that covers all of the USA (looks like it is the BART station in Berkeley to me). I like the original opening better with the focus on New York as a prison.
I watched the credits and noticed something new to me: James Cameron (Terminator, Aliens, Titanic) is listed as doing special effects and matte artwork.
Highly recommended.

I loved this show. It is really well done. Season three really got to me. Highly recommended. I put it up there with Breaking Bad as one of the greatest TV series of all time.

I really liked the first season. Season 2 was not as good, but still worth watching. The characters (Christina Applegate and Linda Cartdellini) are still fun to watch.

This movie is dumb. But I have to admit I laughed out loud several times. Looking at the trailer, I thought Lauren Lapkus was trying too hard. After watching the movie, I thought she was hilarious. She makes this movie work.
My old blog covers January 2003 to January 2013. I accidently overwrote it when I started this blog.
I brought it back to life. You can now access it here:
http://oldblog.davidlenihan.com/
ls *.html,*.xml -r -files | %{(gc $_ -Raw) -replace 'davidlenihan\.com','davidlenihan.com/ORIGINAL_davidlenihan.com' | Set-Content $_}ls *.html -file -r | %{(gc $_ -Raw) -replace '(?<url>\"http://(www\.|)davidlenihan\.com/[^ ]*)\.(wmv|mov|mpg)\"', '${url}.mp4"' | Set-Content $_}Let me know if you find any issues.
Editor’s note:
This blog post was originally posted April 9, 2006. My old Moveable Type blog has been replaced with a new WordPress blog. In updating to the new blog, all my old posts ‘went away.’ I will periodically bring back some of them so they can live again. I had to update this post because many of the links no longer work and the JavaScript code did not work correctly with Chrome.
David
For Christmas 2000, I thought it would be a nice gift to give my family their own domains. I wanted my family to actually set up their own home pages, but I knew they probably would not. So I decided to give them a little incentive…I setup *very* annoying home pages for each of them based on the internet classic hamster dance.
Here are the original home pages, safely archived on my web site:
Of the original 4 web sites I setup, only my brother has kept his domain, but removed the “bro dance” home page. My Dad, Mom, and Joe let their domains expire and no longer own them.