Tuesday, August 7, 2012

Lens Correction Data for Hugin Canon EFS 18-55

Not sure where I got this from, but it has been usesful time and time again for correcting lens issues in Hugin



begin lens
group: canonEfsSLR
multiplier: 1.6
menu_lens: Canon EF-S 18-55mm f/3.5-5.6 IS
cal_abc: 18 0.019790 -0.062160 0.026920
cal_abc: 20 0.014900 -0.049280 0.022310
cal_abc: 23 0.004790 -0.015730 -0.001540
cal_abc: 24 0.004580 -0.015960 0.003120
cal_abc: 27 0.009520 -0.033940 0.028040
cal_abc: 29 -0.000860 0.003140 -0.007490
cal_abc: 32 0.001500 0.002710 -0.000900
cal_abc: 34 -0.005300 0.021650 -0.027590
cal_abc: 37 -0.003750 0.014320 -0.015210
cal_abc: 42 -0.000680 0.003890 -0.002440
cal_abc: 44 0.003570 -0.011600 0.016250
cal_abc: 47 -0.003060 0.012940 -0.011730
cal_abc: 49 -0.003380 0.013120 -0.011020
cal_abc: 55 -0.003110 0.012090 -0.009080
end

OSX VPN Add route on connection

On OSX, you can automatically add a route when the VPN is connected:

In the terminal:


sudo nano /etc/ppp/ip-up
Add the lines:



#!/bin/sh
/sbin/route add 10.0.1.0/24 -interface $1



WHERE, 
10.0.1.0/24
 is the subnet you want to route to. The $1 will automatically be populated with the correct interface name.

Add as many routes as required.

Save and exit


sudo chmod a+x /etc/ppp/ip-up



Connect to your VPN, and you route should be created.

Friday, May 11, 2012

JASPERREPORTS - Sum a variable once per group

Say you have a jasper report, the you have grouped twice,

You raw SQL data looks like

Description, Line_Group, Line_Total, Grand_Group_Total

And you want to get the total sum of Grand_Group_Total.

Create a variable with the following:

Calculation: Sum
Increment Type: Group
Increment Group: Line_Group

If this is nest again into another group, you can in the variable set

Reset Type: Group
Reset Group: Name of top level group.


Feel free to comment to get some more specific help

Wednesday, March 7, 2012

SimpleSAMLphp & Active Directory

For various reasons, the LDAP driver in simpleSAMLphp doesn't have referrals enabled, which causes an LDAP search to fail if your search base isn't the exact tree your users are in, i.e. searching 'dc=example,dc=com'

In the file:

/simplesamlphp/lib/SimpleSAML/Auth/LDAP.php


Add


@ldap_set_option($this->ldap, LDAP_OPT_REFERRALS,0); 


After the ldap_connect() line






If this has been helpful to anyone, let me know and I'll post some more SimpleSAMLphp tutorials

Tuesday, March 6, 2012

Vufind + Koha 3.4

Trying to integrate Koha 3.4 and Vufind?

I had an issue that the Koha driver bundled with vufind wouldn't pick up the ILS holding information.

Requires 1 fix,

In import/marc_local.properties

Add the line

id = 999c, first

That will correct the metadata lookup in the MARC field to correspond with the correct field from Koha MARC export.

Tuesday, July 12, 2011

Bluefin on Golf GTI MK V DSG

A quick review of the superchips bluefin for Golf GTI MKV

UPDATE: I tested to pit pm the 1/4 mile. Results are in this post.

The golf MK5 is a good car, quick enough, comfortable and well behaved. Easily driven as a daily driver with a fun streak when you want it. The only real issue I have had is it's "doughiness" driving in suburbia, where there is a lag between the accelerator and car response and the need to shift down gears at low speed. I investigated the installed of a "software upgrade" to increase the torque curve and hopefully bring it closer the the 1500rpm mark where the 60km/h speed limit lines up with 6th gear.
Summary: The bluefin upgrade makes a good car, great.

Installation

You buy the module, plug it into the connector under your dash. The on screen prompts you to turn on and off the ignition a few times, after which it'll start downloading your car's ECU software. This takes around 15-20 minutes.
Once that is done, you connect it to your PC with the software installed, and it'll communicate to the module and download the software to your PC and send it to superchips server in the UK, this is another 10 minutes.
It says that it'll take 8 hours to receive the new software, but mine came through immediately. Once you have the software, you reconnect the module to your pc and load the software, which will download the new software to the module.
Now your module has both your "Original" and "Upgrade" softwares.
You plug the module back into the car and after following the instructions a few times, the software will be uploaded to your car, another 15-20 minutes. Then some more instructions at which point it'll ask you to disconnect the device.
Upgrade complete!

First Impression

Definite increase in torque, my standard, "hurried" take off caused the traction control to interfere.
Drivability is the most significant improvement for me. Gone is the "lag" between the accelerator and the cars response. The best way to describe this is the "doughiness" is gone. It's very impressive, feels like a brand new car. Shifting feels a whole lot better and smoother, although at hard acceleration the 2->3rd shift can be a bit harsh.
General acceleration is more responsive, and it feels like you are being pushed back into the seat. The acceleration is strong right to the red line, it will now break traction going up the gear if you have enough throttle, even in "D" mode.
6th gear is far more drivable at lower speed, the "D" mode's insistence on getting to 6th gear as fast as possible is no longer a pain, as you have enough torque in that gear to speed up and down. On the highway it's defiantly better and resists shifting down gears for speeding up.
Noise wise, there is an increase in turbo whistle, it's not annoying and you can't hear it with the window up, but just cruising around suburban street, accelerating you will hear the turbo working.

Immediate Thoughts

According to the dealer, the software will take a few days to fully kick in, as the ECU needs to relearn the settings based on the modified parameters. But for now, the results are extremely satisfying. No longer does this car feel like it could be that little bit better. Responsiveness is well up, and as an added bonus it's a bit quicker and stronger at accelerating.
To be honest, the tuning (based on claims) is far less aggressive than some of the competitors, especially APR but to be honest, it is almost a third of the cost, and the benefits are substantial especially for a daily driver on Australian roads. Don't get me wrong though, there is definite performance increases that I am sure you would be happy with.
The added benefit with the bluefin module, is that you can upload your Original (as in the original software you downloaded in the first step), back to your car and no one is the wiser. APR software as far as I know, isn't user removable, something I'm not willing to accept.
For $700AU, this upgrade is a no-brainer. Couple that with the fact you can get a free/low cost upgrade from Superchips to Stage 2 if you ever fit a CAI and Exhaust system on it.
In the end, once you drive it after the upgrade, it's like you've just jumped into a turbocharged car again for the first time.
I will update this entry as time goes by. I am hoping in the future to upgrade to a Milltek turbo back exhaust and have the DSG reflashed, so I will report on those finding when they come.

Pros

More responsive, throughout the rev range, and gears
Faster shifting, smoother
Lag between downshift is gone, less need for downshifting in suburban traffic.
Stronger acceleration
Cheap ($700AU)
It's fun.

Cons

Tuning isn't as agressive as competitors claims ("claims")
Really, nothing to note.

Conclusion: Stop thinking about it and go get one, and enjoy your new car.

Monday, July 11, 2011

Golf GTI MK5 DSG BlueFin Quarter Mile

Superchips bluefin review.

Ran the GTI with the stage 1 superchips bluefin, dsg with a full tank of gas and probably about 50kg of extra weight in the back (couldn't be bothered to remove it)

Running 5 month old Michelin pilot sport 3's with about 10000km on them.

1. First run was 14.5 seconds in manual with launch control at 2000rpm
2. Second clocked 16.2 seconds in S mode auto with launch control at 2000rpm
3. Third clocked 14.03 seconds in manual with launch control at 2500 rpm
4. Fourth clocked 14.5 again with manual launch control at 3000rpm.

Had a stock VE SS commodore and a stock 6L HSV Maloo, both clocked 13.95 seconds.

Seems like the sweet spot is 2500rpm in launch control, otherwise at 3000 rpm the DSG seems to limit the torque and cause the front wheels to spin.

I'll try it again once I have the DSG reflashed with a new program and the exhaust and intake replaced and a updated bluefin flash for comparison.