Ben's Blog

poultry, self sustainability ben June 09, 2013

All fixed with a few finishing touches

All it’s missing now is a window but I’ll wait until after we moved the coop to its new location in a couple of weeks.

life in the U.S., miscellaneous ben June 03, 2013

Waveless

poultry, self sustainability ben May 29, 2013

Bear

That sac of shit ripped open the coop like a can of tuna, -1 chick :

A day working in the rain later, it’s structurally sound again.

Reinforced the front panel & added extra locking throughout.

Painting will have to wait for more clement weather.

poultry, self sustainability ben May 26, 2013

New place to hang out in

The chicks still fit through the fence which is a problem since they’re getting chased by the big chickens. We can’t keep them in the coop all the time so here’s their new protection/containment.

This will be used as shelter during the warm days by the meat birds.

poultry, self sustainability ben May 19, 2013

The pecking order

We introduced the chicks to the 4 grown up chickens today. They shared the same quarters for weeks now and were able to get used to each other. Of course the big ones went immediately after the small ones to establish the pecking order.

It always breaks my heart but that’s the way it is. All I do is make sure one of them doesn’t get all the attention. Natural as it is, I’m still angry towards the big ones, especially considering they too were small before. I can’t help but grab a plastic rake and establish my pecking order if they go too hard on them. This has the double advantage of satisfying my need for justice while reinforcing my place at the very top of said order. All the chickens respect the crap out of me now and make way around me. That’s right, I’m the alpha-chicken!

Which is good because Rhode-Island reds are not shy at all which causes problems when locking them up every night among other things. It’s a healthy reminder that they are on the wrong end of the plastic rake.

No pics or video, I was too busy containing this ruckus.

all out geekery, I.T. ben May 11, 2013

Markov chains music generation

Here’s a project I’ve had on the back-burner for many years. Following the natural progression of generating stuff based on Markov chains, I decided a while ago to port the algorithm to music.

Music presents many challenges that I haven’t been able to address well so far. As a result, what the algorithm produces always had a bitter unfinished aftertaste to me, hence why I haven’t published anything about it for years.

  • Music is multidimensional, time is relevant and needs it own analysis and subsequent generation
  • The interconnectedness of different instruments from the piece is important as well.
  • Random generation even based on Markov chains fails to produce any structure. The pieces all sound like a long solo without chorus or any other repetition that would give us what we strive for: anticipation. In other words, it’s perfect for jazz.

I’m hoping that publishing this will give me the kick in the nuts necessary to keep improving it. Without further ado, here’s what I have so far.


Future improvements:

  • add to corpus
  • clean pieces analyzed of noise
  • try to infuse structure
apiculture, self sustainability ben May 08, 2013

A successful introduction

I installed 2 colonies today and everything went extremely well. Having done this once in the past really helped; I knew how to read the bees better and kept them very docile during the whole process.

The second package introduced into the top bar hive

[flv:http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1285.MOV.flv http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1285.MOV.flv.jpg 688 387]

The hives in all their glory

A close-up of the new Langstroth hive this season (up-side down because iPhone)

[flv:http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1304.MOV.flv http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1304.MOV.flv.jpg 688 387]

Busy figuring their new place out

[flv:http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1292.MOV.flv http://ben.akrin.com/wp-content/uploads/2013/05/IMG_1292.MOV.flv.jpg 688 387]

The weather kept me on my toes but fortunately left us alone for a good while. The rain poured heavily a couple of hours afterwards, I hope all the bees found their way inside before.

life in the U.S. ben May 05, 2013

Spring paintings

poultry, self sustainability ben May 05, 2013

Wings

poultry, self sustainability ben April 24, 2013

And this is what happens once they figured it out

[flv:http://ben.akrin.com/wp-content/uploads/2013/04/sleepybirds.flv 640 426]

poultry, self sustainability ben April 24, 2013

This is what happens as chicks learn to lay down

[flv:http://ben.akrin.com/wp-content/uploads/2013/04/birds.flv 640 426]

They spend the first few days of their lives standing; little by little they figure out they don’t have to and look like a bunch of sleepy drunks in the process.

apiculture, self sustainability ben April 24, 2013

It takes a surprinsingly long time to paint

I still need to add a few decorations to make it cool. Unfortunately, the supplier has delayed delivery of the colonies by a week to allow the queens more time for their mating flight since the weather didn’t cooperate so far.

poultry, self sustainability ben April 24, 2013

Growing up super fast!

life in the U.S. ben April 14, 2013

In America this is a recipe

Recipe for Cheesy Marinara dipping sauce,

  1. acquire some prepared marinara sauce
  2. add cheese
  3. high-five yourself
poultry, self sustainability ben April 13, 2013

8 Buff Orpingtons

[flv:http://ben.akrin.com/wp-content/uploads/2013/04/chicks01.flv 640 426]

[flv:http://ben.akrin.com/wp-content/uploads/2013/04/chicks02.flv 640 426]

nature encounters ben April 07, 2013

I don't mean to be birdwatching before I'm retired but…

What kind of bird does this? I’m told a “wood chipper” but googling this name doesn’t yield anything relevant. Could it be a Vermont name for a wood pecker? Certainly that tree wasn’t just pecked at.

If I had to guess I’d say a pterodactyl with a chainsaw for a beak.

self sustainability ben April 01, 2013

Stabbing wasps

Living closer to nature means having a higher chance of competing in the great game of “survival of the fittest”. Having had my share of problems with yellow jackets and paper wasps, I want to annihilate them with great prejudice.

Before it gets too warm the nests need to go.

Oh so you can sting? Well I can stab you with a pole mounted knife.

Welcome to freaking wasp central

Bare feet offer optimal traction on a metal roof.

The knife’s angle is perfect for getting in there and cutting the single point attachment of these nests (horrible design btw but I expect no less of wasps).

They will be squashed and buried in snow for good measure.

apiculture, self sustainability ben March 30, 2013

Getting ready for a new season

New hive, with all the bells & whistles

With plastic pierco frames, the smell of beeswax (of which the frames are coated) and pine is great

I.T., unix / linux ben March 01, 2013

FreeBSD manual multipath script

I recently ran into an issue installing FreeBSD on a system that already had some disks & zpools. Because the disks were partitioned previously, automatic multipath was not an option as the last sector of all hard drives isn’t available to store an ID. The remaining option is to do manual multipath, and it needs to be done every time the system boots.

Here’s an rc script that will run early in the sequence and create a multipath “link” between drives based on their serial number.

/etc/rc.d/manual_multipath

[bash]#!/bin/sh

# PROVIDES: manual_multipath
# REQUIRE: sysctl
# BEFORE: hostid

. /etc/rc.subr

name="manual_multipath"
start_cmd="${name}_start"
stop_cmd=":"

manual_multipath_start()
{
echo "> manual_multipath script started"
echo "> linking drives with the same serial number with gmultipath"
counter=0
serials=""
devices=`/usr/bin/find /dev -maxdepth 1 -regex ‘.*da[0-9]*’ | /usr/bin/cut -d ‘/’ -f 3`
for device in $devices
do
echo $device
serial=`camcontrol inquiry $device -S`
substring=`echo "$serials" | /usr/bin/sed -n "s/|$serial|.*//p" | /usr/bin/wc -c`
if [ $substring -eq 0 ]
then
found_multi=0
arg1="$device"
arg2="$device"
for newdevice in $devices
do
newserial=`camcontrol inquiry $newdevice -S`
if [ "$device" != "$newdevice" -a "$serial" == "$newserial" ]
then
echo " same as $newdevice!"
counter=`expr $counter + 1`
found_multi=1
arg1=$arg1"$newdevice"
arg2=$arg2" $newdevice"
fi
done
if [ $found_multi -eq 1 ]
then
gmultipath create $arg1 $arg2
fi
fi
serials=$serials"|$serial|"
done
echo "> manual_multipath script finished, found $counter matches"
}

load_rc_config $name
run_rc_command "$1"[/bash]

Don’t forget to “chmod 555 /etc/rc.d/manual_multipath”.

Lastly, when importing a zpool from the drives you just multipathed, make sure to specify where to look for devices or you might end up importing a mix of multipath and regular devices. Make sure to “zpool import -d /dev/multipath”.

I’m delving pretty deep into FreeBSD, time to grow an epic beard.

all out geekery, I.T. ben February 24, 2013

More Dr. Meter fun

Finger

Arm

Hair

Salt

Nutella (gross)

Peanut

Serrated knife blade

Ballpoint pen

Printed beer logo

Cloth

Melting snow

[flv:http://ben.akrin.com/wp-content/uploads/2013/02/temp.flv http://ben.akrin.com/wp-content/uploads/2013/02/Screen-Shot-2013-02-24-at-11.53.58-PM.png 640 426]

life in the U.S., miscellaneous ben January 13, 2013

You know it's cold when…

nature encounters ben January 13, 2013

Owl

A presence that fascinates the humans & unnerves the poultry.

I.T. ben January 06, 2013

Google drive API file upload script

If you want to upload file to Google Drive, you will naturally gravitate towards the Google Drive API. While reading about the APIs that Google publishes for almost anything, you will learn about their SDK. The SDK provides you with easy functions for interfacing with the API for various programming languages.

The problem is that the more I used the SDK the more confused I was. The documentation is often unclear, not all bindings are implemented across all languages. But above all, the thing that made me dislike the SDK is the fact that uploading a file to Google Drive took 5 times the amount of memory than the file itself. Meaning that the datastructure they use and how they pass it around is SUPER LAME. Not a huge deal if you’re uploading a few doc files but definitely crappy for GB range files. It’s just not right and completes the pattern of “meh” surrounding the SDK.

What is clear & consistently documented is every single API call you can make. It was time to go straight to the API. Sure there is still quite a bit of poking involved in getting something working exactly right but my experience with the API has been a lot better. It has also helped me understand the mindset & design so figuring out new things is much faster.

How?

HTTP, every API call uses it. You can use any technology that you are familiar with to do your HTTP call but I have a penchant for PHP + cURL.

The script

It will read a file in chunks and upload them consecutively. Do to so it uses the API’s resumable uploads. As such it will never consume more RAM that the configurable chunk size.

download

It still needs a few improvements at the moment but it’s functional.

What it solves

  • authentication: getting a new access token from a refresh token as needed
  • curl custom HTTP requests with custom headers
  • file chunking
  • Google Drive API resumable upload
  • passing JSON encoded requests in body
  • exponential backoff

Doesn’t sound like much but it took a while to piece it all together.

Posts pagination

← Previous 1 … 44 45 46 … 52 Next →

This blog is solar powered

Interactive

Handwriting Capture
Mandalagaba
IPv6 link-local to MAC converter
IPv6 MAC to link-local converter
Markov Text Generation
Markov Word Generation
Markov Music Generation
Duplogrifier
Flood Fill Algorithms
Homestead Metrics
RGB Playground
Web Games

Categories

  • aesthetics111
    • plots54
    • specular holography6
  • Books4
  • I.T.203
    • 3D modeling / printing21
    • AI6
    • all out geekery36
    • electronics27
    • homestead automation6
    • maniacal paranoia26
    • plotters49
    • unix / linux29
    • video games4
    • web development29
    • web games3
  • Lego / Duplo67
  • life in the U.S.42
  • miscellaneous204
  • nature encounters115
  • old vinyls3
  • organs2
  • self sustainability563
    • agriculture107
    • apiculture38
    • apple20
    • building132
    • canning3
    • crochet6
    • foraging6
    • hunting10
    • maple syrup47
    • poultry39
    • preserving2
    • solar power28
    • water23
    • wood84
  • trip to a new life6
Theme by Bloompixel. Proudly Powered by WordPress