Skip to main content

Blog

Connecting to PSU using new iPhone 2.0 Cisco VPN

This is fairly easy once you figure out what the VPN fields should be set to:
  • Settings / General / Network / VPN / Add VPN Configuration... / IPSEC
  • For PSU  at University Park
    • Description: UP connection to ITS wireless
    • Server: mobility.up.psu.edu
    • Account: your access account
    • Password: your access account password
    • Use Certificate: grayed out - don't use
    • Group Name: pennstate
    • Secret: pennstate
  • Save
  • Turn on VPN w/slider
Update: Doesn't seem to be remembering my password...have to type it in every time.

White screen during Joomla component install

With the new version of Joomla (1.5.2) I now have trouble installing some components using "Extensions/Install-Uninstall/Upload Package File". All I get is a white screen with no messages or errors. I did find a workaround though:

Read more …White screen during Joomla component install

Problems w/accessing a PHP array by reference

I'm not sure yet if this is a bug or a feature of PHP, but be very careful when mixing arrays with the PHP reference operator (&). I just spent many hours tracking down a bug where changing an array copy was also changing the original array. It took several more hours to figure out that accessing an array by reference caused subsequent copies of that array to also be linked by reference!

Here's a simple piece of PHP that illustrates what I found (PHP Version 5.1.6):

This code copies an array and changes one of it's values...as expected the original array doesn't change:

<?php
$array1 = array(1,2);
$array2 = $array1;
$array2[1]=22; // Change one value, $array1 remains unchanged
print_r($array1);
?>

Produces:

Array
(
[0] => 1
[1] => 2
)

Read more …Problems w/accessing a PHP array by reference

Starting a blog

I've decided to start a blog as a place to document technical issues that I'm working on. Entries will be very sporadic as I will only be writing articles when I have an issue I feel others will be interested in, or something I want to reference in the future.