Limiting the upload speed of SubSonic with apache.
SubSonic if you haven’t heard of it is an online webui // transcoder to remotely access your music library. It runs as a standalone server, with a definable port. However, this all runs what appears to be under a packed java environment. There’s options to limit the bit rate of the music you transcode and upload, however it uploads as fast as it can, thus on my DSL line, not the best of attributes. It was thus important to limit the speed the service could upload to not cripple my connection! This is achieved by using a proxy and bandwidth module for apache2. Below is my default...
read morewordtime PHP Function
The following function allows you to to input a time() variable, and it will return a string that represents something such as 6 days 21 hours ago or 6 days 21 hours to go based on the tense of the data inputted (negative / positive). You can modify the $parts to change how many sections of the string is shown. for example, a $parts=3 would show 6 days 21 hours 48 minutes ago …etc. function wordtime($data) { $parts=2; $temp = date("c", $data); $title = date("l, F d, Y ~ g:iA O", $data); $date = strtotime($temp); $diff = time() - $date; $periods_ago = array('decade' =>...
read moreFirefox AppButton Quickfix.
I’ve never liked the look of the Firefox AppButton since version 4, especially when the window is not maximised. It takes up a ridiculous amount of space. Thus, a change was in order! This is based on some findings by others, and then simply my own edits. This is a userstyle. Use something like stylish if you wish to use it. .titlebar-placeholder[type="appmenu-button"] {margin-right: -5px !important;} #main-window[sizemode="normal"] #navigator-toolbox[tabsontop="true"] #TabsToolbar { padding-left: 84px !important; padding-right: 110px !important; padding-top: 5px...
read moreMCDocs v10
VERSION 10! This is now what should be the final release of MCDocs. V7 Re organised code, as to give feedback on what may be causing the plugin to crash, Commented everything so others can understand my logic. (github). V7.1 Added motd-enabled to the config.yml V8 Added %include_file.txt Changed the way variables are processed. This allows for nested files. [I N C E P T I O N] :P V9 Fixed a major issue with %include_file.txt Re-arranged code for %include and more, future proof. Multiple %include_file.txt now work if they are on the same line. If a line is left empty after...
read moreMCDocs v6
VERSION 6! Removed the use of commands.txt Removed the use of headerformat.txt Introduced config.yml for use with header-format, commands-list, and online-players-format. Default data is created in config.yml if it is absent. New Variables: %online_group – shows those online in a specified group Example: %online_admin %world – shows the player’s current world. %ip – shows the player’s current IP address. Introduced variables for online-players-format. (%prefix, %name, %group, %suffix) – this allows for group colours when using the %online or...
read moreAndrew’s Year of Photos :D
I bought my camera back in late 2009, however its use was not frequent, and that had to change. So, although it is already April, I thought it would be awesome to try and take at least one photo every day for a year. Not only in an attempt for motivation towards one of my hobbies, but to also experiment and hopefully master various lighting, angles, and software techniques. My camera is a Canon 1000D – with the stock 55mm & 300mm lenses. So far I’ve decided to edit the photos using Adobe Lightroom, which has proven so far to be very easy, quick, and the final export is...
read more