A tow job gone wrong

I don’t normally post random videos, but this one is GOLD! What a winner! (I do like how when the woman get’s back into the car, the tow truck driver just checks to make sure the rear wheels are secure. I can imagine him saying to himself “She’s not going to get out of this!” LOL)

Towing FAIL – watch more funny videos
Posted in general | Tagged , , | Leave a comment

Subpages widget

Alper Haytabay had created a subpages widget that was pretty much exactly what I was after (for another site I was working on). I found one flaw that prevented the widget from displaying nicely. In fact, the flaw didn’t appear to come from the widget but rather some other anomaly I could not determine the origin of.

The problem only occurs when the widget is displayed in it’s own sidebar. If there are no sub-pages to the current page the sidebar (which should be empty – and hence not displayed) appears. I could not seem to find a way to override this so I created a little addition to the existing code. If there are no subpages, display a small (user-defined) tagline instead. I made one other change to include this widget on all pages/posts so that if there are no subpages, the tagline will always be present.

I don’t use this widget on this site, but an example appears here

The widget (my version) can be found here: subpages-widget

Posted in plugin/widget | Tagged , | Leave a comment

The new look of dav3

wordpress logoThe last year has been pretty out there, and often times I seem to have too much time on my hands and at other times I’m absolutely swamped! My biggest problem is I have so many projects on at the moment I just don’t know where to start. Seriously.

One of the projects has been getting the the new look dav3.net website back up and running. A new look and feel, a new back end, and (soon to be) new and fresh content. The site has been about many things over the last few years, the latest of which has been my attempt at weight loss. It didn’t go so well, and so much of that content has been removed.

I’ve been pretty busy migrating everything across here (it’s taking a lot longer than anticipated). In doing the upgrade I have given WordPress a real workout. I’m pretty happy with it. I have tried a few CMS options over the years and (over recent times) gone to more ‘cloud(y)’ solutions. My favourite of late has been Google Sites, but it too has it’s limitations.

The cloud solution for WordPress limits some of the functionality I was after (eg, using your own domain or editing of certain style rules),  unless you opted for paid option packs. Since I have the server space and bandwidth I thought I would run my own and once you get to play with the back-end you can really do quite a lot to it.

As I said, I’m pretty happy, the only major problem is that it’s soooo customisable that I am spending far too much time experimenting with what I can actually make it do!

I need to get outside!

Posted in general | Tagged | Leave a comment

The old site

This site was originally about my weight loss, here is an excerpt from the original site:

At the start I was 105.5kg (~232lb). My goal is to get somewhere under 80kg (176lb). If things go to plan I’ll start working on building muscle down the track, but the main goal is to lose my fat. The graph represents my progress so far, not doing too bad for the first month.

The graph represents my weightloss over time. Althought google spreadsheets have gone through some updates, at the time this site was initially created there was no way to customise the Y-Axis. Ideally I would have wanted my peak weight at the top left and the weight going doen to the right, but you still get the picture…

note: I peaked at a loss of 12kg… As at the time of writing this, I have it all back! I have spared all the gory detail of photos I had taken of myself, and rather, I have only imported my more ‘good’ days, such as those that include something of general interest. But the general ‘What I did today’ stuff is missing – for good reason (ESPECIALLY the photos! LOL)

Posted in general | Tagged | Leave a comment

Flashing LED Microcontroller Project

A few years ago I got into microcontrollers and had grand plans to change the world with my micro projects. For one reason or another I stopped working on what I was doing and pretty much dropped them overnight.

Well, I’ve picked up the ball again and starting from scratch (since I’d seemed to have forgotten almost everything). So I’m starting with the basics.

Most microcontroller projects will usually have a flashing LED as the first objective. Well, I did that and this is the next step. Pulse Width Modulation. Here is a short video of a LEDs brightness being controlled through the use of PWM. This project uses an ATMega 128 AVR microcontroller (yeah, a little bit of overkill for a flashing LED, but hey!)

The next video here is taking the last video just one more step further, and that is having the LED pulsate, or as I prefer to call it, “breathing”. So much cooler than a simple flashing LED ;-)

Posted in micro | Tagged , , , , , | 1 Comment

Reset Error Code 6502 – Cannon MP620

Canon MP620I recently installed a continuous inking system into my Canon MP620 Multi-Purpose printer. It went relatively painlessly, except when restarting. The ink tubes got caught under the housing and jammed the print head against the right hand side of the printer, causing a 6502 Error Code.

I fixed the jam, and restarted the printer, everything seemed to be normal. The printer went through a startup routine, cleaning heads and what-not, but when it finished the error persisted.

I restarted the machine, and still, the error remained. After a bit of googling, I found the solution:

How to RESET the Error code “6502”

1 – Unplug your printer, pausing for effect.

2 – Plug the printer back in and then:
2a – Press AND HOLD the Power button
2b – Press the Stop button twice
2c – Release the Power button
2d – Press the Stop button a further four times (see notes)

notes:
- someone reported you may hear beeping, I did not
- I think the four button press of the stop AFTER releasing the Power button may not be required since once the powerbutton was released, the system immediately went into a startup routine, it didn’t appear to wait for the stop buttons. But who knows, it was there, I did it, and it worked

Posted in general | Tagged , , , , | Leave a comment

Lift

I have to admit, I like my music and I often like to pay attention to the lyrics in certain (if not most) songs. The last few months have been relatively trying on me and this song came on the radio. It’s not a new song, it’s probably a couple of years old now. There are many good lines in it, but this bridge has to be my favourite part:

Lift yourself up above all the hurt, Don’t give in
Wipe your eyes and remember you’re better than this
Let them know that they took their best shot and they missed
C’mon and lift

Posted in general | Tagged , , | Leave a comment

I always go too hard, when will I learn?

I have been in serious training for over a week now and I’m hurting. It all started last Friday, week ago. Realising I needed a serious kick up the backside, I got myself down to the Muay Thai gym I started taking classes in a few months ago.

Friday: Kick Boxing (??????) – mainly for the cardio, but a bit of self defence can’t hurt!
Weekend: short push bike rides and gardening (that’s seriously hard work! especially on the knees!)
Monday: Kick Boxing
Tuesday Kick Boxing
Wednesday Kick Boxing
Thursday: Kick Boxing (very physical day)
Friday: Kick Boxing
Saturday (today): Well, I COULD have gone kick boxing, but I have a date with a friend of mind to tackle a huge mother of a mountain on Tuesday. So I went for a 16km walk which involved tackling this beast. It’s hard! Look for the turn around point on the red route on the above map!

I must admit, I feel somewhat better lately after all the exercise, but it comes at a cost. My WHOLE body aches. I am sore from head to toe. This has to be a good thing. I haven’t really lost too much weight yet, around 4kg, but the problem is that is mostly fluids. I need to lose the fat. I need to lower my blood pressure and ideally, lower my at rest pulse rate…

Let’s see how I go :-)

PS: I’m doing the Katoomba great stairs in the coming weeks… Get in touch if you want to join in!

Posted in general, weightloss | Tagged , , , , , | Leave a comment

A wedding in Thailand

Last month I spent a month in Thailand. I’d been planning this holiday for a while (around a year), and was motivated more by the fact that for a period while I was over there, a friend of mine was having a wedding there for his daughter and her fiance.

What can I say? Thailand was fantastic… Hot, but bloody brilliant. I have never had so much fun in all my life. I certainly let my hair down (well, I would have if I had any!). We never got off the island of Phuket, but I did some kilometers!!! Saw some really amazing sights (both day and night), but one of the highlights was definitely that wedding.

Everyone had a ball. It was considerably cheaper than having an equivalent wedding in Australia and the bridal party got a holiday thrown in!

edit: I hear the bride and groom are separated, which is a real shame. On another note, this was my first trip to Thailand, it wasn’t my last!

Posted in general | Tagged , , | Leave a comment

If programming languages were religions

C would be Judaism – it’s old and restrictive, but most of the world is familiar with its laws and respects them. The catch is, you can’t convert into it – you’re either into it from the start, or you will think that it’s insanity. Also, when things go wrong, many people are willing to blame the problems of the world on it.

Java would be Fundamentalist Christianity – it’s theoretically based on C, but it voids so many of the old laws that it doesn’t feel like the original at all. Instead, it adds its own set of rigid rules, which its followers believe to be far superior to the original. Not only are they certain that it’s the best language in the world, but they’re willing to burn those who disagree at the stake.

PHP would be Cafeteria Christianity – Fights with Java for the web market. It draws a few concepts from C and Java, but only those that it really likes. Maybe it’s not as coherent as other languages, but at least it leaves you with much more freedom and ostensibly keeps the core idea of the whole thing. Also, the whole concept of “goto hell” was abandoned.

C++ would be Islam – It takes C and not only keeps all its laws, but adds a very complex new set of laws on top of it. It’s so versatile that it can be used to be the foundation of anything, from great atrocities to beautiful works of art. Its followers are convinced that it is the ultimate universal language, and may be angered by those who disagree. Also, if you insult it or its founder, you’ll probably be threatened with death by more radical followers.

C# would be Mormonism – At first glance, it’s the same as Java, but at a closer look you realize that it’s controlled by a single corporation (which many Java followers believe to be evil), and that many theological concepts are quite different. You suspect that it’d probably be nice, if only all the followers of Java wouldn’t discriminate so much against you for following it.

Lisp would be Zen Buddhism – There is no syntax, there is no centralization of dogma, there are no deities to worship. The entire universe is there at your reach – if only you are enlightened enough to grasp it. Some say that it’s not a language at all; others say that it’s the only language that makes sense.

Haskell would be Taoism – It is so different from other languages that many people don’t understand how can anyone use it to produce anything useful. Its followers believe that it’s the true path to wisdom, but that wisdom is beyond the grasp of most mortals.

Erlang would be Hinduism – It’s another strange language that doesn’t look like it could be used for anything, but unlike most other modern languages, it’s built around the concept of multiple simultaneous deities.

Perl would be Voodoo – An incomprehensible series of arcane incantations that involve the blood of goats and permanently corrupt your soul. Often used when your boss requires you to do an urgent task at 21:00 on friday night.

Lua would be Wicca – A pantheistic language that can easily be adapted for different cultures and locations. Its code is very liberal, and allows for the use of techniques that might be described as magical by those used to more traditional languages. It has a strong connection to the moon.

Ruby would be Neo-Paganism – A mixture of different languages and ideas that was beaten together into something that might be identified as a language. Its adherents are growing fast, and although most people look at them suspiciously, they are mostly well-meaning people with no intention of harming anyone.

Python would be Humanism – It’s simple, unrestrictive, and all you need to follow it is common sense. Many of the followers claim to feel relieved from all the burden imposed by other languages, and that they have rediscovered the joy of programming. There are some who say that it is a form of pseudo-code.

COBOL would be Ancient Paganism – There was once a time when it ruled over a vast region and was important, but nowadays it’s almost dead, for the good of us all. Although many were scarred by the rituals demanded by its deities, there are some who insist on keeping it alive even today.

APL would be Scientology – There are many people who claim to follow it, but you’ve always suspected that it’s a huge and elaborate prank that got out of control.

LOLCODE would be Pastafarianism – An esoteric, Internet-born belief that nobody really takes seriously, despite all the efforts to develop and spread it.

Visual Basic would be Satanism – Except that you don’t REALLY need to sell your soul to be a Satanist…

Athism isn’t a religion, so the closest analogy is Assembler. It offers no quick or easy answers, but if you are prepared to think it through you can accomplish anything.

Located on:

http://greensboring.com/viewtopic.php?f=18&t=9619

Original source:

http://www.aegisub.net/2008/12/if-programming-languages-were-religions.html

Follow-up article:

http://www.aegisub.net/2008/12/if-programming-languages-were-religions_20.html

Posted in general | Tagged , , , , | Leave a comment