Category Archives: Uncategorized

Flashforge Adventurer 5M

I reached that point with my Ender 3 v2. I literally picked it up walked out to the trash and forced it into the can. I didn’t want to look at that damn thing again. Such a frustrating 3d printing experience, constantly having to re-level that thing despite having the BlTouch auto leveler.

Death to 3d printing! I shouted between the tears.

About an hour later I realized I was a oversized nerd with no 3d printer. So onto the web I hoped to find another 3d printer that would make me think this is a fun hobby and not just a gaggle of masochists enjoying the trials and tribulations towards misery.

As usual there is all sorts of conflicting information to be found; this one is excellent, and it sucks and it’s the slowest and fastest printer, should be your next! and never buy this. Etc. Etc.

I landed on the Flashforge Adventurer 5M, mostly because the price was $280 on Amazon and for the most part people seem to be impressed, I figured it couldn’t be worse than my previous printer that shall not be named.

About 4 days later it showed up on the door. Box was in great shape, no shipper abuse to be found:

Open up the box and its fully assembled! This is glorious. I spent about 34 years building the “other” one from a pile of stuff. Removing some packing foam and about 15 minutes later the Adventurer 5M was fully setup and I was already printing the benchy it came with:

This thing was impressive to watch, it printed that benchy in about 15 minutes and it was smooth and just beautful!

Thus begins my new adventure, Huzzah for 3d printing!

 

Work Core Needs

These points are what I use to gauge how I feel about my job.

  1. I see motion towards making terrible things less terrible.
  2. I feel recognized, valued, and that my work has meaning.
  3. My direct report is not an overbearing micromanaging jerk.
  4. The work environment is not that of a sweatshop.
  5. My pay is accurate, timely, fair, and my benefits are beneficial to my family.

I have noticed that when the truthy points dip below 60%, I start wondering what I am doing and how I can make changes to get back to 80%.

running jellyfin via podman

Here are the quick and dirty step I do to update images, containers and run Jellyfin via Podman:

  • sudo podman ps # get container id
  • sudo podman stop #
  • sudo podman rm #
  • sudo podman images # get the image id
  • sudo podman rmi -f #
  • sudo podman run -d --cgroup-manager=systemd --volume /opt/jellyfin/config:/config --volume /opt/jellyfin/cache:/cache --volume /storage/videos/:/media --volume /storage/books:/books --volume /opt/zap2xml:/zap2xml --net=host --restart=unless-stopped --device /dev/dri/renderD128:/dev/dri/renderD128 --device /dev/dri/card0:/dev/dri/card0 jellyfin/jellyfin:unstable
  • sudo podman run -d --name zap2xml -v /opt/zap2xml:/data -e USERNAME=youremail@email.com -e PASSWORD=**password** -e OPT_ARGS="-I -D" -e XMLTV_FILENAME=xmltv.xml shuaiscott/zap2xml

 

10 lb Turkey, 5 lb Pot

One day a man was watching his wife prepare a turkey for the Thanksgiving feast. She got out her 5lb pot, reached for her 10lb turkey and immediately trimmed off half of the meat from the turkey. She then proceeded to forcibly stuff the turkey into the pot – meeting with resistance and having to lean into it to get that turkey to fit into that pot.

Curious the man asked “Why do you prepare the turkey this way?” to which his wife responded “Well it’s the way my mother does it and it’s the way I have always done it for 10 years now”.

The next year with a new grandchild the couple decide to spend Thanksgiving with her parents. The time comes and the man watches the grandmother get out the 5lb turkey and a 5lb pot proceed efficiently to put the turkey into the pot and put it into the oven. He asked why she taught her daughter differently which she responded “Oh the market was all out of 5lb turkeys that year so I got a 10lb one”.

Seek to understand why we are doing what we are doing, don’t assume the standard course is the best direction.

Running ASP.NET MVC via DNX on Ubuntu 15.10

My steps I did to get my ASP.NET MVC application I created on my Windows 10 box running on a Ubuntu 15.10 server.

Setup ASP.NET 5 on Ubuntu following this:
http://docs.asp.net/en/latest/publishing/linuxproduction.html
http://docs.asp.net/en/latest/getting-started/installing-on-linux.html

Update dnvm on windows:

dnvm updateself
dnvm upgrade -r coreclr

Fix the libicu for Ubuntu 15.10:

wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-8ubuntu0.2_amd64.deb
dpkg -i libicu52_52.1-8ubuntu0.2_amd64.deb

Say the web project is “WebApplication1” then console into that folder:

dnu publish
dnx web

Hit localhost and make sure the page load.

Copy the entire “WebApplication1” folder to linux box.
Restore the packages from the “WebApplication1” folder copied to the linux box:

dnu restore
dnx web

Enjoy!

Error With Pip and flask-bcrypt

I am playing around with Flask and I wanted to use the Bcrypt tool to encrypt my users passwords. So like all the other packages I attempted:

pip install flask-bcrypt

That however resulted in this rather unpleasant error:

  error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).

  ----------------------------------------
  Failed building wheel for python-bcrypt

That of course sent me on a dizzying hunt for resolution. I got it working by editing the “msvc9_support.py” file to not use the registry and use just the path where I found vcvarsall.bat on my computer:

   productdir = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC" # Reg.get_value(key, "installdir")

Elegant? Eh probably not, Utility? perhaps. But it does work and after that I was able to install flask-bcrypt.

Blog Setup

Hopefully this will be a start of something new and exciting – or another thing for me to procrastinate about. I have tried several times before to blog consistently I just get, well, sidetracked.

My intention is to blog stuff that I don’t want to forget or stuff that I want to share. Most things I would expect to be of a technical nature but I suspect that sometimes I will want to post something for the ages to remember my wit and wisdom (read; me ranting about something inconsequential).

Enjoy!

Wheezy.web + Sublime Text

Part of being a developer is pushing yourself to learn and use something new. So I decided I would take a language I am familiar with and do MVC in it (as I do ASP.NET MVC in C# daily at work). I looked at several MVC frameworks for Python but decided upon Wheezy.web

After playing around with Sublime Text 3 for about two hours I decided to get a license; and frankly its rare I actually pay for something that there are many FOSS alternatives. Sublime Text 3 is just that good. Yes really, that good. Highly recommend you setup “Package Control” for Sublime Text it makes installing packages a breeze. I used this blog post and installed Anaconda for syntax completion.

Sublime Text 3
See I do support projects I use.

This is using the built-in “Sunburst” theme along with the “Dark” Sublime Text layout. It’s a thing of beauty. Here is my “User” config setup :

[js]
{
"color_scheme": "Packages/Color Scheme – Default/Sunburst.tmTheme",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"__pycache__"
],
"font_face": "Consolas",
"font_size": 12,
"ignored_packages":
[
"Vintage"
],
"indent_to_bracket": true,
"rulers":
[
79
],
"shift_tab_unindent": true,
"theme": "Soda Dark 3.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"wrap_width": 80
}
[/js]

Wheezy.web has some really impressive features for such a lean framework. This coupled with Mako templates makes for a great foundation for highly concurrent, high performance web projects.