Fix basestation on windows 10

On windows 10 basestation the plane tracking software needs a copy of ftd2xx.dll (32bit) in the same directory as basestation.exe and try running it as administrator ideally right clicking on basestation.exe and changing the properties to force it to run as administrator on each run

Computercraft automatic enchantment sorter

local chest = peripheral.wrap("front")
print("Radcom's Enchantment sorter V1.2")
while true do
    sleep(1)
    for i = 1, chest.getInventorySize() do
        local item = chest.getStackInSlot(i)
        if item and item.ench then
            print("Found a ", item.name, " with an enchantment")
            print("Moving")
            chest.pushItem("south",i,1)
        else
            if item then
                print("moving: ",item.qty, " ",item.name)
                chest.pushItem("east",i,item.qty)
            end
        end
     end
end

 

Batch extract zip files

At work I needed to extract the contents from 600+ zip files to one place and select all, right click extract all did not work.
7-zip to the rescue, I used the command line version of 7-zip in a simple batch comand to loop through the files and extract each one
this code is written to be run from the same dir as the files to be extracted,
“C:\Program Files (x86)\7-Zip\7z” needs to be the location of the commandline version of 7-zip
“%CD%Backup files %x.zip” this the format of the files to be extracted in this case it was a series of sequentially numbered files all called “Backup files 1,2,3,etc”

It is run straight from the command prompt not as a batch script

“C:\extracted” is the destination of the extracted files

 DOS | 
 
 copy code |
?

1
for /l %x in (1, 1, 100) do "C:\Program Files (x86)\7-Zip\7z" x "%CD%Backup files %x.zip" -o C:\extracted

all in all about 20 mins work to write and test

My improved youtube2mp3 converter script

A while ago I found this article http://jeffreyv.hubpages.com/hub/Youtube-to-MP3-on-Ubuntu-Linux it did exactly what it wanted at the time but me been lazy like I am decided it was time to upgrade it a bit mainly so I just need to supply it with the location URL and it names the file itself. cue investigation into youtube-dl (which is awesome) after finding that it can return the video’s title I fairly quickly got the rest sorted so here it is: Continue reading “My improved youtube2mp3 converter script”

Compiling WSPR on a Raspberry Pi

Update 10/1/13: A number of the instructions listed here are now out of date and there are now much better guides and articles available than were available at the time I originally wrote this article. Two of the more useful guides are available here and here I will be leaving this here for reference (as some of it still holds true) but not updating it any further for the foreseeable future as I don’t have the time available

Continue reading “Compiling WSPR on a Raspberry Pi”

Add a button to toggle auto-hide with XFCE on Ubuntu 12.04

I took the plunge today and installed Xfce on my Ubuntu Laptop after my last fight with unity on gnome after discovering the magic of panels and the fact you can have them auto hide I am glad I switched but one thing is missing a button the toggle the auto-hide so I cant turn it off easily with out going through many layers of menus, so I decided to add one. Continue reading “Add a button to toggle auto-hide with XFCE on Ubuntu 12.04”

K8055 PHP interface source now available

I have now made the source for my k8055 php interface available standard terms of use use at own risk, I can’t be held responsible for your computer blowing up, first born dying, end of the world, etc. If you want to use for commercial stuff let me know. anyway here it is get it while its hot(my git server died & I haven’t recovered the data yet)