Archive for the ‘Nerd Stuff’ Category

the application cannot be opened because the provisioning profile has expired

Wednesday, September 1st, 2010
Had this problem today on our iPad at work. Had no idea what it was suppose to mean, thought it may have been a missing device or mis-configuration in Xcode. Found the solution, it basically means that "a" provisioning file on your device has expired. Go to Settings -> General -> Profiles on your iPad. Any expired profiles should highlight in red, simply click and remove it. Then you're app should launch!…
  • Share/Bookmark

Need to compress mp4 files down?

Thursday, August 5th, 2010
I was passed on this awesome little program called Xvid5PSP. I had problems with trying to down sample a 90mb mp4 file, using this program you can open up the mp4, playback if you wish... but the important part. Encoding - there's stack of options. Worked a treat for me. Two thumbs up! http://www.videohelp.com/tools/XviD4PSP
  • Share/Bookmark

CWheels

Thursday, August 5th, 2010
Okay, I LOVE cfwheels. http://cfwheels.org/ If you're developing in Coldfusion I highly recommend checking out this framework. It has a great community base, the core development team are always releasing new updates - further advancing the framework. There's stacks of tutorials and podcasts - but form time to time, I'm going to start posting examples as well - simply because I want to expand the knowledge of CFWheels, and of course… Continue reading
  • Share/Bookmark

HTML5 - Videos

Sunday, July 18th, 2010
Today I tried out some of HTML5s new features. The <video> tag here's some sample code to try out yourself. I tested this in Google Chrome Beta <!DOCTYPE> <html> <head> <title>HTML5 - Video Test</title> </head> <body> <h1>A random video</h1> <video src="http://tinyvid.tv/file/393d20f8lrej1.ogg" width=320 height=240 controls autobuffer <p>Your browser cannot view this content: <a href="video.flv">Download video</a> </video> </body> </html> Quick explaination, the <video> tag takes in the farmilar src,width & height attributes. Then we add controls & autobuffer. I haven't been able to properly test… Continue reading
  • Share/Bookmark

Get filename from path

Monday, June 14th, 2010
Ever want to extract the filename from a path? C:\Inetpub\wwwroot\website\app\config\template\abc.jpg ... And not want to code something stupidly insane. Try using #GetFileFromPath("C:\Inetpub\wwwroot\website\app\config\template\abc.jpg")# So... <cfset source=" C:\Inetpub\wwwroot\website\app\config\template\abc.jpg" /> <cfset fileName = GetFileFromPath(source) /> If your variable is a URL, you can't use GetFileFromPath (because it needs relative paths on your computer/network) - try using #ListAtLast("http://www.example.com/example.jpg","/")# Once again... <cfset source=" http://www.example.com/example.jpg" /> <cfset fileName = ListAtLast(source,"/") />…
  • Share/Bookmark

Downloading an image from database

Friday, June 11th, 2010
A project I'm working on involves storing asset references in a database and then later downloading the images. Why? because it takes bloody ages! So assuming you have a table called Assets, and all the right fields. There's two options, using cfhttp or cfimage (cf8+).
<cfset pathToActualImage = "http://www.google.com/images/hello.jpg" />
<cfset tempFileName = "test.jpg" />
<cfset tempPath = "C:\temp\" />
<cfhttp url="#pathToActualImage#" file="#tempFileName#" path="#tempPath#">
Or
<cfimage action="write" destination="#tempFileName##tempPath#" source="#pathToActualImage#" />
I'd recommend to maybe use cfimage because
  • Share/Bookmark

Better Server Setup for CI

Monday, May 24th, 2010
I've been using Code Igniter (CI) for a lil bit, but one of the things I noticed... with most frameworks - you need to keep re-creating the entire framework folder for each app. The best thing to do is keep it in one spot, and map to it relatively. I've done this all the time in CF - which is heaps easy to do with the CF Admin - Mappings. Here's how… Continue reading
  • Share/Bookmark

Coldfusion Server - jrun running at 100%

Thursday, May 6th, 2010
This has been a big problem with one of our servers recently. In a nutshell I'll describe what I've done to try help the situation, without really fixing the problem. Incase you're like me and don't have a huge development team or the tech resources to dedicate hours on fixing servers... Firstly, the reason why jrun is 100%. Think of JRun as the Checkout girl at your supermarket, and dealing with… Continue reading
  • Share/Bookmark

Google Apps

Saturday, May 1st, 2010
Recently we've just made the move to Google Apps from Exchange. We also ditched using Outlook and moved to Gmail web based. This of course caused a heap of problems, considering the differences between the two. The biggest bonus was the cost factor which is what our company wants... Saving heaps of money, no need to manage servers and applications to keep mail running. One word of advice, plan everything! Make… Continue reading
  • Share/Bookmark

Windows shortcuts

Monday, April 19th, 2010

Here's a few useful keyboard shortcuts for Windows users

Shortcut Keys Description Alt + F File menu options in current program. Alt + E Edit options in current program F1 Universal Help in almost every Windows program. Ctrl + A Select all text. Ctrl + X Cut selected item. Shift + Del Cut selected item. Ctrl + C Copy selected item. Ctrl + Ins Copy selected item Ctrl + V Paste Shift + Ins Paste Home Goes to beginning of current line. Ctrl + Home Goes to beginning of document. End Goes to end of current… Continue reading
  • Share/Bookmark