<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>jekyll on Polishdub&#39;s Dev and Tech Blog</title>
    <link>https://blog.tech-wolf.net/tags/jekyll/</link>
    <description>Recent content in jekyll on Polishdub&#39;s Dev and Tech Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Wed, 16 Sep 2015 21:40:00 -0700</lastBuildDate>
    
        <atom:link href="https://blog.tech-wolf.net/tags/jekyll/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>OpenBSD Audio Issues</title>
      <link>https://blog.tech-wolf.net/posts/openbsd-audio-t470/</link>
      <pubDate>Tue, 06 Sep 2022 18:34:00 +0000</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/openbsd-audio-t470/</guid>
      <description>&lt;p&gt;Apparently, I lost this post from a few years back. I wanted to get it
documented again so there was a record for SOMEBODY to possibly have assistance.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been using a Lenovo T470s for a while. On a fresh install of OpenBSD, I
noticed that I would get stuttering or choppy video trying to view anything
through a web browser.&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s two different ways that this is introduced, one is in the bios, but at
this moment, the solution escapes me.
The other way is through sndiod flags.
Setting the sndiod_flags to &lt;code&gt;-m play&lt;/code&gt; and then restarting sndiod usually fixes
the issue after quitting and reloading the web browser.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Developing with Arduino on OpenBSD</title>
      <link>https://blog.tech-wolf.net/posts/arduino-on-openbsd/</link>
      <pubDate>Mon, 08 Aug 2022 21:34:00 -0700</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/arduino-on-openbsd/</guid>
      <description>&lt;p&gt;I haven&amp;rsquo;t touched my arduino in a very very long time. I decided it was time to
try again and play.&lt;/p&gt;
&lt;p&gt;For OpenBSD, I needed to install arduino and arduino-makefile packages.
I found a few snags that had changed since I first attempted to make anything
work on arduino.&lt;/p&gt;
&lt;p&gt;First up was to install the arduino packages.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;doas pkg_add arduino arduino-makefile&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Something I either forgot, or never did, was that my code needed to be in &lt;code&gt;.ino&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Building the arduino files requires a Makefile:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BOARD_TAG    = uno
ARDUINO_LIBS =

include /usr/local/share/arduino-makefile/Arduino.mk
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;gmake&lt;/code&gt; works for the build once we have that Makefile.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;gmake upload&lt;/code&gt; will fail though because of the Makefile and more specifically,
the include cannot find the avrdude config.&lt;/p&gt;
&lt;p&gt;We need to add the following lines to the Makefile:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;AVRDUDE      = /usr/local/bin/avrdude
AVRDUDE_CONF = /usr/local/share/arduino/bootloaders/gemma/avrdude.conf
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This now allows us to upload the config properly&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Single Board Computer Frustration</title>
      <link>https://blog.tech-wolf.net/posts/soc-board-rant/</link>
      <pubDate>Thu, 21 Jan 2016 20:15:00 -0700</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/soc-board-rant/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been eyeing up several &lt;em&gt;reasonably priced&lt;/em&gt; ARM/SBC systems for a bit now. Let me clarify that my definition of &lt;em&gt;reasonably priced&lt;/em&gt;. I mean anything around $35-$65 USD. I know what you&amp;rsquo;re thinking cheap skate. Yeah, okay fine. I&amp;rsquo;m on a budget and yet you&amp;rsquo;re still reading this. I wanted something that could have multiple purposes. Something to do retro game emulation, install and play with FreeBSD or OpenBSD, maybe use as a router. None of these would be done at the same time. But just something to try out, learn on, and then maybe put it to good use.&lt;/p&gt;
&lt;p&gt;I looked at the Raspberry Pi (RPi), but several things bugged me. First was that it was not an open sourced board and secondly, it is vastly under powered. Okay, I can go towards the Raspberry Pi 2, but then I still have to go back to the board not being open sourced and it could be a real PITA for getting &lt;em&gt;non-blessed&lt;/em&gt; operating systems installed. Which all of this is a shame for all the different projects people have done for these boards including game emulation setups.&lt;/p&gt;
&lt;p&gt;Beaglebone Black was next on the list. More powerful than the RPi, and only slightly more in price. It does have better support by other operating systems such as FreeBSD, OpenBSD, etc. Unfortunately though, it seems like fewer people are creating large projects with them. They aren&amp;rsquo;t as popular as the RPi&amp;rsquo;s, which isn&amp;rsquo;t necessarily a bad thing.&lt;/p&gt;
&lt;p&gt;ODroid was another option. This board has impressed me. Almost 4 times as powerful as the RPi, but about the same price point as the Beaglebone Black&amp;rsquo;s. We now have the issue of operating systems. I have yet to see any FreeBSD or OpenBSD run on these. I did see NetBSD mentioned, but then I must go down another rabbit hole and learn &lt;strong&gt;that&lt;/strong&gt; as well. Not as many projects have been pushed to this platform either. Except for &lt;a href=&#34;www.lakka.tv&#34;&gt;Lakka.tv&lt;/a&gt;
.&lt;/p&gt;
&lt;p&gt;So great in the end, I still want one. The only purpose I have for one of these is to install a gaming emulation on two out of the three. But that&amp;rsquo;s it. I&amp;rsquo;d like to say router, but they all have single NIC&amp;rsquo;s, if I&amp;rsquo;m lucky.  So at that point, I might as well save my money and pickup a &lt;a href=&#34;http://www.pcengines.ch/apu1d4.htm&#34;target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;PC Engine apu1d4&lt;/a&gt;
 instead. I have a purpose for it, just need to save for it if I&amp;rsquo;m going that route. Then I hear about the EdgeRouter Lite. Whoa. I just now found a price for the ERLite‑3. I know that I&amp;rsquo;m able to install OpenBSD on the PC Engine for a router. Hooray, more research!&lt;/p&gt;
&lt;p&gt;For now, I&amp;rsquo;ll just go back to looking into my options without breaking the bank.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Migrating to a Static Blog</title>
      <link>https://blog.tech-wolf.net/posts/migrate-to-static-blog/</link>
      <pubDate>Wed, 16 Sep 2015 21:40:00 -0700</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/migrate-to-static-blog/</guid>
      <description>&lt;p&gt;What an interesting turn of events. I started writing this blog post with my intentions fully moving away from &lt;a href=&#34;https://ghost.org/&#34;target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ghost&lt;/a&gt;
, which is written in NodeJS, to &lt;a href=&#34;http://blog.getpelican.com/&#34;target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Pelican&lt;/a&gt;
, written in Python. I wrote mostly a whole article about choices I was making. All of which were in the direction of Python. I mostly wrote off Ruby as a &lt;em&gt;&amp;ldquo;hipsters&amp;rdquo;&lt;/em&gt; language. So I decided to stear clear as much as possible. As is most of my life as of late, something I swore off for so long, eventually comes back and I&amp;rsquo;m willing to give it a shot. &lt;em&gt;Go figure.&lt;/em&gt; Anyway, onward to a slight article about moving to a static blog!&lt;/p&gt;
&lt;p&gt;When I started out, I set out to find out what Python frameworks were available for creating static blogs. Since my articles were already written in Markdown and I finally got the hang of it, I didn&amp;rsquo;t really want to change that. I found that Pelican, Nikola, Crotal and Hyde, Python&amp;rsquo;s &lt;em&gt;answer&lt;/em&gt; to Jekyll. As the plan was to use Python, I wanted to at least be running Python3. This isn&amp;rsquo;t some hard requirement so much as a personal one. That marked Crotal off the list. Next came Hyde. Unfortunately, their documentation for Hyde was pretty lousy, so goodbye Hyde.&lt;/p&gt;
&lt;p&gt;I thought I had narrowed it down between Nikola and Pelican. Pelican is easy to setup. Simple and quick to get running. Plenty of different themes. My biggest issue with was that the metadata info for each post, page, and any configuration options all were dependent on the theme being used. I guess that can be a possibility for all themes and static website generators. I really didn&amp;rsquo;t want to have to play with the front end much or at all and that was especially true regarding learning how to create or modify themes.&lt;/p&gt;
&lt;p&gt;Nikola was much the same as Pelican. I had to make changes to the metadata of my posts, pages, and adjust the configuration files. Again, there were plenty of themes; however they too ususally had some features pertaining to configuration parameters or metadata. Theme maintainers may not have made changes anywhere from 2 years to 2 months, most closer to a year plus. I can&amp;rsquo;t completely blame them, as once they&amp;rsquo;ve built something for their own use, they are done, and are only sharing their work for others to be able to use and build off of.&lt;/p&gt;
&lt;p&gt;I decided to try out a Ruby static site generator, Jekyll. After scrounging through their documentation for a bit and realized that I wouldn&amp;rsquo;t need to install Ruby on the server and could just deploy the generated files over to a www directory. Duh, I realized I could do this with the Python static site generators too; I&amp;rsquo;m just used to running Python code and sites on servers. Back to Jekyll. Configuration was a little more work along with the syntax. I like how I&amp;rsquo;m able to use either metadata or proper file naming for posts to be either a draft or live. If your files for posts aren&amp;rsquo;t prepended with &amp;lsquo;YYYY-MM-DD-&amp;rsquo; or &amp;lsquo;published: false&amp;rsquo; in the metadata of the file then the generator will not build the pages or links.&lt;/p&gt;
&lt;p&gt;Between the Nikola, Pelican, and Jekyll, I chose Jekyll. It gives me an excuse to try and learn Ruby (although said knowledge isn&amp;rsquo;t needed for setting up a site). All three have quite a few options for themes and customizability. There is also pretty much a commonality of pretty much the same syntax to build a new site, create posts, run a dev server for local development, and building or generating the site before deployment.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Technical Blogs</title>
      <link>https://blog.tech-wolf.net/posts/technical-blogs/</link>
      <pubDate>Fri, 20 Feb 2015 20:00:00 -0700</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/technical-blogs/</guid>
      <description>&lt;p&gt;While I may not be &lt;em&gt;seasoned&lt;/em&gt; at writing technical blogs, or blogs in general for that matter; I do not want to write a lousy technical articles.&lt;/p&gt;
&lt;p&gt;I don&amp;rsquo;t. Just today alone, I&amp;rsquo;ve come across at least fifteen technical articles that will say &lt;em&gt;how&lt;/em&gt; to do something, but not expalin &lt;strong&gt;why&lt;/strong&gt;.  I feel as though that takes away some credibility of the author.&lt;/p&gt;
&lt;p&gt;Maybe they found a quick way to get something done and didn&amp;rsquo;t look back.  I don&amp;rsquo;t get it. This is something that I will be working on in the near future:  write knowledgable, concise, technical blogs.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Development and Test Environments - Make Sure They Match</title>
      <link>https://blog.tech-wolf.net/posts/development-and-test-environments/</link>
      <pubDate>Thu, 22 Jan 2015 20:00:00 -0700</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/development-and-test-environments/</guid>
      <description>&lt;p&gt;So I made a mistake.  I decided that instead of using a virtual image to develop our latest project on, I&amp;rsquo;d just run what I need locally on my machine.  Outside of a VM or clone of our environment.&lt;/p&gt;
&lt;p&gt;For the most part, that may not be a bad thing if your desktop Linux of choice is of the same distribution path (ie:  Ubuntu based deploying to a Debian server).&lt;/p&gt;
&lt;p&gt;Well my problem was particular with RabbitMQ.  I used the documentation based from their website.  My biggest mistake was that I used the command line help options from my local box to write a few scripts to run and configure properly.&lt;/p&gt;
&lt;p&gt;Come to find out, the version installed on Debian 7 was 2.9.  A big difference from Mint&amp;rsquo;s repo version of 3.2.4.  So much so that some commands that I needed to run like join_cluster were renamed and therefore not recognized.&lt;/p&gt;
&lt;p&gt;Lesson learned. Make sure that what I&amp;rsquo;m testing against and the documentation that I&amp;rsquo;m using coincide with each other.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Android vs iOS</title>
      <link>https://blog.tech-wolf.net/posts/android-vs-ios/</link>
      <pubDate>Mon, 12 Jan 2015 20:00:00 -0700</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/android-vs-ios/</guid>
      <description>&lt;p&gt;While I&amp;rsquo;ve been a Linux user for a long time, I&amp;rsquo;ve been moving myself more towards the BSD systems.&lt;/p&gt;
&lt;p&gt;Given being a Linux user, I waited with bated breath for OpenMoko to be released.  Then came Android. OpenMoko never made it I was anxious and thrilled when Android finally came out.  A Linux phone finally in production.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve used Apple computers since the early G4 Tower&amp;rsquo;s (late 90&amp;rsquo;s), I was pleased with OS X but not so with iOS.  I wasn&amp;rsquo;t that impressed with the iPod Touch or the iPhone. I felt as though it is very dumbed down.  Specifically when it came to context menu&amp;rsquo;s (or the lack there of), the layout, control, and feel of everything.&lt;/p&gt;
&lt;p&gt;Now I wonder if maybe it is okay to use iOS.  Maybe it&amp;rsquo;s not as dumbed down as I once thought.  It&amp;rsquo;s hard to &lt;b&gt;not&lt;/b&gt; think that though as I run CyanogenMod on my current Android device.  Where I have so many options and have so much control.&lt;/p&gt;
&lt;p&gt;But since I&amp;rsquo;m moving the rest of my systems to OS&amp;rsquo; of the BSD persuasion, maybe my phone should too.  Which is why I am taking a second glance at iOS.  I&amp;rsquo;ve refused so much to let my family get or use iPhones.  Directing them completely away.  I believe that it is ignorance on my part.&lt;/p&gt;
&lt;p&gt;I have not moved over yet.  And I don&amp;rsquo;t know if I will switch my phone hardware.  But I have started opening my mind to the possibilities.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>A Web Backend Developers Migration to FreeBSD</title>
      <link>https://blog.tech-wolf.net/posts/web-backend-developers-migration-to-freebsd/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://blog.tech-wolf.net/posts/web-backend-developers-migration-to-freebsd/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been using different Linux distributions since around 1997. Originally, it was more personal than anything. Although I did learn to setup samba, web servers, databases, etc.. I had made several attempts moving to FreeBSD throughout the years.&lt;/p&gt;
&lt;p&gt;Fast forward to today and here I am a Python developer I&amp;rsquo;ve moved away from Perl scripting at my previous job. I&amp;rsquo;ve been more and more frustrated with every Linux distributions having so many different ways with so many different locations of where configs and packages are placed. Yes, I&amp;rsquo;ve jumped, moved, migrated, run from, and run to many different Linux distributions. Timing of my switching is not due to the systemd controversy.&lt;/p&gt;
&lt;p&gt;My primary focus is web and backend based applications. So naturally, by default, we have a web server and a database.&lt;/p&gt;
&lt;p&gt;Where the web server comes in, I haven&amp;rsquo;t really tested any of them by setting it up locally on my dev machine. Although I doubt there is much of an issue.&lt;/p&gt;
&lt;h3 id=&#34;databases&#34;&gt;Databases&lt;/h3&gt;
&lt;p&gt;For relational databases, I&amp;rsquo;ve used MySQL on Linux, but never professionally. I&amp;rsquo;ve been using PostgreSQL professionally and much prefer it. You can get a pretty recent version of PostgreSQL through pkgng. Getting the PostgreSQL configuration location is a little different than the majority of Linux locations; however, once you understand the Unix way, it&amp;rsquo;s less of an issue. One big difference is that the postgresql user created on FreeBSD is actually &amp;lsquo;pgsql&amp;rsquo;. Where as Linux is usually &amp;lsquo;postgresql&amp;rsquo;. Performance wise, I haven&amp;rsquo;t gotten to fully vet it yet.&lt;/p&gt;
&lt;p&gt;Recently I decided to take a free MongoDB class for Python developers. Yes, I know; MongoDB, not a real database, eww, etc. I&amp;rsquo;ve been curious about it for a while, so I decided why not. The class was using MongoDB 3+. As of this writing, I can only get 2.6.7 installed through either pkgng or ports. It is stable; however, if you&amp;rsquo;re looking for the current version with the latest features, it ain&amp;rsquo;t happening unless you want to compile from source, which I may or not know exactly what I&amp;rsquo;m doing with scons and building. Something I&amp;rsquo;ll have to do more research into to get running.&lt;/p&gt;
&lt;h3 id=&#34;virtualization&#34;&gt;Virtualization&lt;/h3&gt;
&lt;p&gt;At my current place of employment, we currently deploy strictly on Debian Stable machines. So while I can do most development locally with the databases and code base, at times I still need a production like system.&lt;/p&gt;
&lt;p&gt;I prefer using a VM, specifically qemu, to have a development vm running; however, the removal of the kernel-kqemu has made it difficult. Performance w/o the kernel virtualization makes it painfully slow to run anything. It feels like trying to start something up on a 486!&lt;/p&gt;
&lt;p&gt;VirtualBox is a pretty sad excuse, but does work. When I used it on Linux, qemu had much more performance. Hence why I initially went with qemu. Yes, VirtualBox does work; but it doesn&amp;rsquo;t feel like it&amp;rsquo;s running at its full potential.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m in the process of testing bhyve on another machine. One thing I&amp;rsquo;ve noticed is that performing a graphical install is impossible at the moment with bhyve. Your Linux distro must have a text installer. Maybe this is something in the works.&lt;/p&gt;
&lt;h3 id=&#34;desktop&#34;&gt;Desktop&lt;/h3&gt;
&lt;p&gt;On to the primary work space. I&amp;rsquo;ve found what I need for most of my work, I use a combination of Emacs, ssh&amp;rsquo;ing into my dev box through a terminal, and I have both Firefox and Chromium. Both Firefox and Chromium packages are pretty up to date, so that isn&amp;rsquo;t an issue.&lt;/p&gt;
&lt;p&gt;Unfortunately, my company does use Exchange for email. I&amp;rsquo;ve been used to using Exquilla, a plugin for Thunderbird, on Linux. Sadly, I am unable to get a copy of that for FreeBSD. I may have to see if I can install a Thunderbird Linux port. Evolution is available; but their GPG integration is hit and miss and won&amp;rsquo;t always recognize your current working key.&lt;/p&gt;
&lt;p&gt;I can be running a pretty solid version of Python(3 or 2) without any problems. Very stable for my uses. I can get a python2 virtualenv working without problems. Pip for Python2 also works as advertised. The tricky part comes to Python3. Most users experiences with Linux and Python3 are exposed to there being individual system packages to Python3&amp;rsquo;s pip and virtual environments.
&lt;code&gt;python3.4 -m venv&lt;/code&gt; or even &lt;code&gt;pyvenv-3.4&lt;/code&gt; both work for virtual environments. And once inside a virtualenv, &lt;code&gt;python -m pip &amp;lt;standard command&amp;gt;&lt;/code&gt; works the same. I haven&amp;rsquo;t yet found or truly looked into getting a python3 global package installed with pip.  I&amp;rsquo;m sure there&amp;rsquo;s a way.&lt;/p&gt;
&lt;p&gt;Overall, I&amp;rsquo;m very pleased with the switch over all.  The community is top notch when it comes to assistance. There is some work that needs to be done on my end:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I&amp;rsquo;ll be trying to get bhyve to do what I need&lt;/li&gt;
&lt;li&gt;Get get a better understanding of build tools on FreeBSD&lt;/li&gt;
&lt;li&gt;Learn to create bug reports for genuine problems I run into.&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item>
      <title>About Me</title>
      <link>https://blog.tech-wolf.net/about/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://blog.tech-wolf.net/about/</guid>
      <description>&lt;p&gt;After being a Linux zealot for almost 15 years, I&amp;rsquo;ve been getting more and more interested in the BSD systems.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve moved my personal laptop to FreeBSD after trying PC-BSD for a few months and finding performance issues (mostly due to my own hardware and being a cheap ass and not getting memory for the laptop).  I&amp;rsquo;ve moved my fileserver to iXsystem&amp;rsquo;s FreeNAS and am very pleased with it.&lt;/p&gt;
&lt;p&gt;I am a Python developer where I am blessed with the ability to use as much open source software as possible to get the job done at my place of work.&lt;/p&gt;
&lt;p&gt;I also want to get into more personal coding projects, it is just slow at the moment while being pulled in many different directions with family and children.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>My History with *BSD</title>
      <link>https://blog.tech-wolf.net/history_with_bsd/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://blog.tech-wolf.net/history_with_bsd/</guid>
      <description>&lt;p&gt;I had at one point decided to move my Linux samba server to FreeBSD momentarily . Back with FreeBSD 4.1. I had not completely understood the conventions of a traditional unix system and being early in high school, I didn&amp;rsquo;t have the patience, so I switched the server back to Linux.  A little later I had decided to try FreeBSD again, this time with 7.1  I kept that around for a while; however package management still befuddled me and trying to move up to 7.2 and eventually 8 became a challenge. I had also noticed a performance hit with FreeBSD at the time with Sam a and I was receiving both nic hard drive messages. Mostly errors with the nic. These things I did not get with Linux. So I switched back yet again to Linux.&lt;/p&gt;
&lt;p&gt;At one point I even installed NetBSD on an AMD 333 MHz just to take barely used hard drives and remove the partitions.  Yes, I know that using used hard drives isn&amp;rsquo;t a very good idea.  But I did.  And they worked.  I didn&amp;rsquo;t have the money to go out and buy new, so when I was able to repurpose hard drives that were useful, I did.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>