Why this isn't the default I have absolutely no idea, but the first thing you should do when learning Fusion 360 is to turn on this option:
How to Turn on Automatic Save in Fusion 360
Tuesday, May 14, 2019
Fusion 360 Autosave
Posted by
Chris Bensen
at
7:00 AM
0
comments
Saturday, May 4, 2019
Tuesday, April 30, 2019
New Chapter
It has been nearly a year since I last posted to this blog. It isn't that I haven't wanted to or that I've been sitting around watching TV. I've been busy. Real busy. I now work for the Oracle Developer Marketing team as a Groundbreaker building experiences for developers. It's an amazing opportunity that I had to jump into 1000%. Here's one experience that I built last year and blogged about but not on this blog. Go check it out https://blogs.oracle.com/developers/building-the-oracle-code-one-2018-escape-rooms. Not only do I get to draw on my 20+ years of Software Engineering/Architecture experience, I get to use everything I've ever learned about being an inventor, tinkerer professional photographer, maker, prop builder, and videographer. I use 3D printers, CNC, camera's, Arduino, Raspberry Pis and a whole lot more on a daily basis. So follow me on Twitter https://twitter.com/chrisbensen and YouTube https://www.youtube.com/channel/UCLf9yhC2uo7TxNIwiJqIDcw as a lot more content should be coming! Like the world's largest Raspberry Pi cluster.
Posted by
Chris Bensen
at
7:00 AM
1 comments
Thursday, July 5, 2018
Buying Stuff on Amazon
Posted by
Chris Bensen
at
7:00 AM
1 comments
Tuesday, June 26, 2018
Call an AWS Lambda Function from another Lambda Function
AWS Lambda is I think one of the best additions to AWS, however it does have some issues becuase the architecture has changed over the years and one such problem the default VPC that it runs in. Default configuration runs great, but if you want better security, then not so much. But I digress. One of the most compelling features of Lambda is that you don't have to manager the VM or Docker Container. However because of that you might want to break up the responsibility between multiple Lambda functions, and in this case one Lambda will most certainly want to call another Lambda. So here's how you do that:
const aws = require('aws-sdk');
const lambda = new aws.Lambda({region: 'us-west-1'});
lambda.invoke({
FunctionName: 'LambdaFunctionName',
Payload: JSON.stringify(event, null, 2)
},
function(error, data) {
if (error) {
context.done('error', error);
}
if (data.Payload){
context.succeed(data.Payload)
}
});
Note: I really appreciate Lambda. But to be honest they are difficult to use. There is a time and a place to use them and it should be in every AWS developer's bag of tricks. The real trick I alluded to above is the VPC, but that's for a proper DevOps person to discuss the nuances of that. Also know that while in small uses Lambda is cost effective there is a cross over point where Lambda becomes more expensive than EC2 or Elastic Container Services (Docker).
Posted by
Chris Bensen
at
7:00 AM
1 comments
Thursday, June 14, 2018
Docker ENV vs ARG
There are two types of variables in a Dockerfile, ENVs and ARGs. YOu define them in the Dockerfile like this:
ARG some_argument
This requires that you run:
$docker build --build-arg some_argument=something
Then there's ones with a default value.
ARG some_argument="default value"
You don't have to specify it during the docker build, but you can if you want.
ENV some_value=something
ENV some_other_value=${some_argument}
You can override these when you do docker run:
$docker run -e "some_value=others_stuff" ...
Posted by
Chris Bensen
at
7:00 AM
0
comments
Thursday, March 22, 2018
Sync a Shared Google Calendar with Calendar in iOS or macOS
https://www.google.com/calendar/syncselect
You must go directly to this link as there doesn't appear to be any way of getting there otherwise, and you must check or uncheck the calendars to share and then save the settings. Good luck!
Posted by
Chris Bensen
at
7:00 AM
2
comments
Monday, January 8, 2018
vlog 03 - Building a Death Star Ornament
Here is a Death Star Christmas ornament build with STl files provided on thingiverse here. A little bit of 3D printing, remixing an existing item on thingiverse and some electronics. Enjoy!
vlog 02
Posted by
Chris Bensen
at
7:00 AM
1 comments
Thursday, September 7, 2017
macOS How to create an ISO from a CD or DVD
Put in your CD or DVD, Open Terminal, type:
>ls /Volumes
Find the volume in the list, then type where /path/to/volume is the CD or DVD you want:
>hdiutil makehybrid -iso -joliet -o Image.iso /path/to/volume
Posted by
Chris Bensen
at
7:00 AM
1 comments
Thursday, August 24, 2017
Java Packager and Custom Resources
The Java Packager allows for resources within the app bundle to be replaced by your own custom resources. For example, on macOS the default Info.plist may not work for you. Here is a JDK 9 example that demonstrates replacing the default Info.plist. It's worth noting there is difference between JDK 8 and JDK 9. JDK 8 uses the classpath to search for the resources and JDK 9 requires a new argument. The argument documented here. The documentation about this feature is here:
https://docs.oracle.com/javase/9/deploy/self-contained-application-packaging.htm#JSDPG593
However, note that resource handling is different in the modular world (as I mentioned above about the differences between JDK 8 and JDK 9), and the docs weren't updated (at the time of writing this post, and we didn't catch the bug until recently, sorry). It is no longer possible to load resources via the classpath with the Java Packager. The correct way to do this is with the following ant task so specify the custom resource directory:
<fx:bundleArgument arg="dropinResourcesRoot" value=directory/>
Or if you are using the CLI use the following argument:
-BdropinResourcesRoot=directory
If you add this bundler argument the example in the docs will function the same; The current directory will be where custom resources such as the Info.plist searched for.
Here is the example:
HelloWorld.java
build.xml:
<project name="Test" default="package" xmlns:fx="javacom.sun.javafx.tools.ant">
<taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
uri="javacom.sun.javafx.tools.ant"
classpath="${java.home}/lib/ant-javafx.jar"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/hello.world"/>
<property name="bundles.dir" value="output"/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${bundles.dir}"/>
</target>
<target name="compile">
<mkdir dir="${build.dir}"/>
<mkdir dir="${classes.dir}"/>
<javac includeantruntime="false"
srcdir="${src.dir}"
destdir="${classes.dir}"/>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<mkdir dir="${build.dir}/jars"/>
<jar destfile="${build.dir}/jars/hello.world.jar" basedir="${build.dir}/hello.world">
<manifest>
<attribute name="Main-Class" value="HelloWorld"/>
</manifest>
</jar>
</target>
<mkdir dir="${bundles.dir}"/>
<target name="package" depends="jar">
<fx:deploy outdir="${bundles.dir}"
outfile="Test"
nativeBundles="image"
verbose="true"
versionCheck="false">
<fx:application id="Test"
name="Test"
version="1.0"
mainClass="HelloWorld">
</fx:application>
<fx:runtime strip-native-commands="false"/>
<resources>
<fileset dir="${build.dir}/jars" includes="**/*"/>
</resources>
<fx:info title="Test"
description="Java Packager Demo"
category="Test"
copyright="(c) 2017"
license="3 Clause BSD">
</fx:info>
<fx:bundleArgument arg="mainJar" value="hello.world.jar"/>
<fx:bundleArgument arg="classpath" value="hello.world.jar"/>
<fx:bundleArgument arg="win.exe.systemWide" value="true"/>
<fx:bundleArgument arg="win.menuGroup" value="Games"/>
<fx:bundleArgument arg="mac.dmg.simple" value="true"/>
<fx:bundleArgument arg="signBundle" value="false"/>
<fx:bundleArgument arg="mac.CFBundleName" value="Test"/>
<fx:bundleArgument arg="dropinResourcesRoot" value="."/>
</fx:deploy>
</target>
</project>
Now, I'll be honest, I don't like this method of copying custom files into an app bundle, and we have some ideas to simplify the Java Packager and make custom resource handling a lot easier in the future and not so error prone.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Labels: Java, javapackager, packager
Wednesday, August 23, 2017
JavaOne Promotion
If you want to go to JavaOne you can go for a grand ($999 to be exact). Use the code DJFS2017 at registration. But wait there's more. It expires August 28th.
Posted by
Chris Bensen
at
2:00 PM
0
comments
Cura on macOS Problems
I've run into this issue a few times so I figured others have too.
Once in a while Cura's main window doesn't show up. Here's what I think fixes the problem. I say I think because I don't entirely know because I've tried so many things.
1. Reboot the computer
2. Rename the file:
/Users/cbensen/Library/Application Support/Cura
Posted by
Chris Bensen
at
7:00 AM
0
comments
Labels: 3D Printing