Category Archives: Life

Stop Mobs from spawning on trees in Minecraft SMP

I transfered my single player Minecraft world to my home server so that I could play survival multiplayer with my roommate. One major issue that I encountered was that hostile mobs started spawning on the top of trees. Normally this would not have been an issue except I happen to have a massive artificial forest in my main home, let’s call it a wildlife preserve. I happen to like my wildlife preserve but abhor the idea of creepers falling from trees killing me and damaging my precious forest. Luckily I found a Bukkit plug-in that stops mobs from spwaning on trees. Disaster averted.

WordPress XML-RPC documentation links

Unfortunately the documentation for WordPress’ XML-RPC API only covers the WordPress specific extensions. As such if you want to do anything useful you’ll have to seek help else where. Perhaps the most important thing to note is that WordPress supports Metaweblog a proper open standard.

During my google’ing I came accross several helpful links:

Attaching an image to a post:

One thing that was absolutely un-documented was a method to attach an image to a post. After some digging I found attach_uploads() which is a function that wordpress calls every time a post is created or edited over xml-rpc. What it does is search through the list of un-attached media objects and see if the new/edited post contains a link to them. Since I was trying to attach images so that the theme’s gallery would use them I didn’t necessarily want to link to the images within the post, nor did I want to edit wordpress. So what I ended up doing was including the image url within an html comment.

 

Play&Pause a XBMC remote app

I have a XBMC HTPC in my dorm room acting as my sound system. One annoyance I had in the past was a lack of proper remote control. At first I used a cheap Android Tablet bought from china but the incredibly short battery life on it made it impractical.

After dealing with those half-solutions I decided to create my own. Programmed in C++ Qt it can run on just about any platform but I targeted it for my meamo n900 and the meego emulator. It primraly works with the music player and features skip, play/pause, and volume control. The download: PlayAndPauseXBMC_2011-03-28.zip The zip contains the source, and binary builds for x86 and Maemo. Both my laptop and phone have the remote running 24/7 and I’m quite enjoying the convenience.