Dave Heavy Industries Dave Heavy Industries – blog

12Aug/130

NGINX snmp monitoring

So far as I could tell, nginx doesn't provide any stats out to snmp. This is something we like to watch closely so I put together the following based on a script I found here - http://www.kutukupret.com/2011/05/31/how-to-graph-nginx-statistics/

5Nov/1229

SCCP and Asterisk

So, we bought a bunch of new cisco phones to replace some failing SNOM devices around the place. Realizing a chance to implement some great functionality, I decided to use chan-sccp-b to run them on the SCCP protocol instead of sip. I've put together some steps to help you through the process, and the module I wrote for freepbx (and how to expose that through to the elastix gui)

31Oct/120

Powershell WSUS approval between targets

Well, if you're anything like us, you'll have all sorts of tiered update computer targets, and you'll be staging your updates between them.

Usually it'll be something along the lines of  DEV  -> UAT -> PRE_PRODUCTION -> PRODUCTION

So, how do you get updates that have been developed against in DEV to UAT, or from UAT to PREPROD, or PREPROD into production?

25Oct/110

ASP Classic – Escape string for JS

for those that know me... ASP Classic is a pain I have to deal with every day... the simplest things that you've come to accept from every other language is just painful in ASP Classic. Every time I have to do something that I shouldn't have to do, I try to help as many people as possible not have to work it out for themselves. Here is a function to escape a string for use in JS. Enjoy.

24Oct/110

MRTG Config for Eaton ConnectUPS Web/SNMP Card

895

We've had this one for a while, decided to put some power monitoring on it to graph the usage...

24Oct/110

MRTG config for APC Switched Rack PDU

E9442D8EADAB7D1D85257856006F173A_EWAR_8F2RSE_fam_h_448x150

We just got a pair of AP8959EU3 Managed power rails, and decided to point MRTG at it to graph our power usage...

15Sep/112

#junipered.

Blue_CiscoTwitter_picture_reasonably_small

#junipered - to be promised a service or a product that was not delivered
#ciscoed - When you deliver the products and solutions that the customer wants, when the customer wants it.
... apparently.

13Sep/1111

HTC Desire S Flashing problems… M4G2DE

After a huge amount of effort, lots of "status 1" lots of "can't open /cache/recovery/log " ... I stumbled across this site - http://forum.xda-developers.com/showthread.php?t=1150917

3Sep/110

iinet cisco 877 config

This is the config I'm recommending for people running cisco 877's on iinet. feel free to post back with any amendments.
config working on IOS 12.4(24)T3

30Aug/110

TPG Username

last one - TPG Usernames for use on dialing up from your router..
should be in the format username@tpg.com.au

Filed under: Uncategorized No Comments
30Aug/110

TPG MTU & MSS for ADSL2+

Again, keep getting asked this one, TPG uses PPPoE which works a little differently in terms of MTU and MSS.

I found the best settings for me were
MTU 1492
MSS 1452

on a cisco router this is achieved by

interface Vlan1
ip tcp adjust-mss 1452
!
interface Dialer1
ip mtu 1492
!

Filed under: Uncategorized No Comments
30Aug/110

TPG DNS Servers

Keep getting asked this one, for some reason.
here they are, the TPG DNS (Domain Name Servers)
203.12.160.35
203.12.160.36
203.12.160.37

Tagged as: , No Comments
29Aug/110

Ableton Live 8.2.5 now officially supported on OS X 10.7 Lion

Been asked about this a bit over the last few weeks. It's official.. go forth and update to 10.7

29Aug/110

GoDaddy hosted wordpress facebook featured images

I had the strangest issue last week, featured images from wordpress would not appear on a facebook post... sometimes.

29Aug/110

Comodo SSL intermediate trust

We use a wildcard certificate issued by CompleteSSL to do alot of our web mail and services hosting.  I renewed it a week ago and installed today, to find that the certificate was missing a trust, even though I had installed an intermediate certificate.

29Apr/110

Unable to post link to facebook

Strange one this morning. Our e-comm guys reported they were unable to post any links to their page, their own wall, other peoples walls... anywhere on facebook really. only "The message could not be posted to this Wall." was presented to them as an error.. useful??!?? I think not. After a bit of investigation, I found that it was some pages but not others. The home page for example worked, but a product would not. A content page would, but a category page would not. Ugh.

They all use the same template so I thought surely the html would be very similar... and it was. I ran the pages through the w3c validator, and made a bunch of unecessary changes to do with short-tags and pulled my hair out some more.

A few more coffees and some tweeting and googling brought to my attention that the error "The message could not be posted to this Wall." could be due to facebook blocking that url due to abuse... maybe one of our competitors complained to upset our social strategy? no - then all of the urls would be broken (only lost an hour here :| )

I went back to the HTML, removed anything fancy and it still didn't work. I decided not to let this get the better of me, and I went through the html line by line looking for anything out of the ordinary... and there it was.

Canonical link was missing a slash. <link rel="canonical" href="https:/somedomain.com" />. Now this was set by our e-commerce system, not by the template or development, and none of that has changed for a really long time, meaning that something at facebooks end has tightened up the validation. Anyway, not pointing fingers, commented it out and Posts are now sharing as expected. ugh.

 

 

29Apr/110

MS SQL Server – index fragmentation – amended

From http://wp.daveheavyindustries.com/2011/02/07/ms-sql-server-index-fragmentation/

Having had to use this on a very large database, I've made some small changes to the index fragmentation statistics script. this time to include table names (object_name) as well as database_name.

28Apr/110

Decoding Windows Script Encoder encoded scripts

Decoding Windows Script Encoder encoded scripts

isn't that a mouthful? Microsoft released this in 2001 - http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e7877f67-c447-4873-b1b0-21f0626a6329 which is a way of obscurifying vbscript (like ASP) scripts so that people can't change or copy your code. Great, right? well, as with most script encoding  (zend encoder aside, others I'm sure), it doesn't do a very good job of it, and more makes it annoying to debug asp pages when the developers encode their includes.

11Mar/111

Youtube – Embed video on HTTPS site

Ever wanted to embed a youtube video on a https (SSL) site without a security warning?

9Mar/110

Operation Parrot Drone – Introduction

Well.. I picked up one of these amazing devices last year direct from china.. Loads of fun. A friend in my building did the same and plenty of dog fights later, we had some engine failures (after discovering the flying just above another drone makes their drown drop to the ground... conflicting altitude sensor??). While they are being fixed... I decided to have a think about what I'd like to get out of the drones...

25Feb/110

Cisco 1200 Accesspoint config

Well, my cisco 1232 just arrived and was promptly set up - thought I'd share some config with everyone to save someone the bother of writing their own. This replaced my existing Apple aiport extreme. Every home needs a cisco access point.

25Feb/110

Distance between two points with curvature

The earth isn't flat. Sometimes you feel like over engineering a simple problem just because you can.

Late last year I put together a mobile web interface and used google maps for a store locator. I also had to use ASP Classic.
In the mids of this it struck me that a customer might find they were a few meters off from the actual distance from their current position, to what I'm reporting. Clearly this just won't do -so I re-worked it to compensate....in ASP CLASSIC, where most of the math is non existent.

enjoy!

25Feb/112

3TB Drive Woes

Well, I just started upgrading the first drive in a 4 drive array in a HP AIO storage server. The problem is that the 3TB drive I put in only registered as 768GB, somewhat short of 3TB.

10Feb/110

XBOX Live port forwards for Cisco 800 (877 used here)

How to get xbox live working on your xbox behind a Cisco

Xbox Live needs TCP/3074, UDP/3074, UPD/88 forwarded to the xbox from the outside interface of the router

Xbox Connect needs TCP/8602 forwarded

8Feb/111

WordPress permalink via SQL

Today someone asked how to get the wordpress permalink from another language via SQL. Well, after a little bit of head scratching I have come up with a relatively easy way of doing this... enjoy!

8Feb/110

Cisco Rommon priv password

Cisco rommon has a "secret"(not very well kept) section where you can execute some privileged commands.

7Feb/119

Cisco 877 TPG Config

Well, TPG uses PPPoE rather than PPPoA like most ISP, and there were a few issues with the MSS before my TPG was working correctly. Now it runs like a dream, no complaints at all.

I'll post the relevant sections below

Tagged as: , , , , Continue reading
7Feb/11Off

Joomla / WordPress hosting

I've got plenty of hosting resources spare at the moment, get in contact with me if you'd like any wordpress/joomla sites hosted. Will offer very competitive rates or beer currency for community projects.

Get in contact with me !

[facebook_ilike]

7Feb/111

Tunage Feb 2011

Have a look here for the (in progress) Feb's artist podcast & site list, to help you through the day.

Adam Cox (Heavyweight)http://heavyweightdj.podomatic.com/

Momentum Management - http://www.momentum.id.au/

James "Brooka" Brooks
Artist Page
Youtube Channel
Pobsky Vs Hybrid - Final Cloud Disappears (Brooka Mashup)
Ben Nicky Vs Parker & Hanson - Alquima Rattle (Brooka Mashup)

Benn Koppe
Thank you for 2010 Mix

[facebook_ilike]

7Feb/117

Magento eWay Beagle patch

Fontis wrote an eWay payment gateway module for magento which works really well, but it doesn't support beagle (anti-fraud) stuffs. I've written a quick patch to change the gateway url and append the necessary fields. Minimal testing has been peformed. Highly recommend sandbox/heavy testing before production use.

7Feb/111

My solution to APRA

Artists need to pay the rent. Venues need music. iPods need cheap music. Piracy is too easy.

Back in the day, as a DJ, you used to spend an entire day in a record store - bottle of coke in hand, delicately handling around 50 new circles of wax every weekend, wondering which ones you'd like to spent your hard earned cash on. Normally you'd walk out with a handful, and before you even go them out of the store, you'd know the inside and out, every peak, every breakdown, you loved it.

Now days, Beatport, juno and djdownload have made it entirely too easy to download from pre-compiled lists and suggestive downloads. This is a great time saver but its terrible for the industry as...

7Feb/110

MS SQL Server – index fragmentation

Sometimes it doesn't make sense to rebuild all of your indexes as part of a maintenance plan. You may have mirroring running with large db tables, and your indexes may be several GB. As part of your maintenance schedule, I recommend manually finding fragmented indexes and rebuilding them yourself (or scripting this)

To do this you, you need to locate the indexes -- anything over 50% can be considered a problem.

6Feb/110

Aldous

Aldous the pug.

Born 15/11/2010, currently 12 weeks old has a vendetta against a panda and a husky. Likes trips to Sundae@Watt, Sitting on my desk watching me work and watching telly.