Problem)
PHP errors with "PHP Fatal error: Call to undefined function curl_init()"
Fix)
apt-get install php5-curl; /etc/init.d/apache2 restart
Thursday, 10 February 2011
MacOS X Widgets - Video File Size Calculator
A while back wrote a simple widget for MacOS X which calculates the file size of Video files based on their length and Bitrate.
It also shows the workings on the reverse!
Just in case anyone might want it, and so I know where it is when I do...
You can download it here: Download Link
Saturday, 5 February 2011
To toggle the "Tick" in a UITableViewCell
To check or uncheck a "tick" box in a UITableViewCell cell and also unhighlight it afterwards.
First make sure it's accessoryType is set:
And then in the
First make sure it's accessoryType is set:
cell.accessoryType = UITableViewCellAccessoryCheckmark;And then in the
didSelectRowAtIndexPath method:
// Toggle the "Tick" on and off
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
if (cell.accessoryType == UITableViewCellAccessoryCheckmark) {
cell.accessoryType = UITableViewCellAccessoryNone;
}else if (cell.accessoryType == UITableViewCellAccessoryNone) {
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
// This removes the highlighting of the Cell
[tableView deselectRowAtIndexPath:indexPath animated:YES];
Friday, 4 February 2011
A call to all Xcode / iPhone tutorial writers
I'm trying to learn some iPhone development using xcode - It's real difficult. Xcode is really painful to learn. It's often made even more confusing by Interface Builder the tool for graphically designing apps.
Why does a company so steeped in design and graphical loveliness make it impossible to graphically layout the majority of your app?
I've been trying for a day and a half to learn how to select an option in a list and navigate to a different view when it is selected - I'm still not there, why is this so difficult?! I'm on probably my 13th tutorial but I'm suffering badly with these as well. And there's two common problems with them:
- Not providing downloadable code. I've worked my way through at least 5 which plain out just didn't work. If I can download the code I can check it works, does what I need, and only then read the tutorial.
- Not explaining the Interface Builder actions well enough.
Here's an example of the second from an otherwise excellent tutorial:
"Once you have dragged this on connect the IBOutlet in the Driller App Delegate object to the Navigation Controller by dragging from the app delegate whilst holding the control key".
WTF.
I'm sure it's easy when you know, but if I knew I wouldn't be here looking at a tutorial. As soon as you don't get this bit the rest of the article is then off limits.
Having said that however I'd like to thank everyone that has bothered to write tutorials. But please provide the source code....
Monday, 31 January 2011
Configuring vSphere 4 to deploy Windows type OS with Customizations
This link gives the versions of sysprep you need and where to stick them on the vSphere server to allow customized deployments of these OS's.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1005593
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1005593
Thursday, 6 January 2011
Change the Password Complexity of Windows Server 2008
For a default install of windows server 2008 the password has to be overly complex. This is a right pain in the ass. To switch this off (this won't work if it's part of a domain) use the following:
Start -> All Programs -> Administrative Tools -> Local Security Policy
Open Account Policy and change the field "Password must meet complexity requirements" to disabled.
Start -> All Programs -> Administrative Tools -> Local Security Policy
Open Account Policy and change the field "Password must meet complexity requirements" to disabled.
Tuesday, 6 April 2010
Upgrading Sun Ray DTU's to the GUI firmware
To upgrade all of the DTU's to the GUI firmware use the following command:
# /opt/SUNWut/sbin/utfwadm -AaV -f /opt/SUNWut/lib/firmware_gui
# /opt/SUNWut/sbin/utfwadm -AaV -f /opt/SUNWut/lib/firmware_gui
Subscribe to:
Posts (Atom)

