acloudtree

Category OOP

Cakephp

So, in my free time I am trying to write a web app for some folks at the District. I selected Cakephp as the framework for two reasons.

  1.  I know PHP
  2. It was suggested to me
  3. Ok, here is a third. It is freakin easy.

I needed something to develop in rapidly and am making progress with cake by leaps and bounds. The only thing that has really slowed me down is rolling my own RBAC. If there was a library to do this type of security, it would make life a lot easier.

The application itself is a Position Control System. With budget cuts at a state level, monitoring FTE with greater clarity and control is becoming very important. The complexities go beyond a normal system because of the way FTE can be transferred in a School District. I haven’t worked yet on how to calc these complexities, I only have identified them. But. I figure my solution will probably be interesting to some.

Once I have some code built, I will share.

-later

NXTemplates

I find that I am starting new iPhone projects under xCode all the time. And there are certain things that I am creating over, and over, and over again. One of the common things I find myself doing, is REMOVING all references to Interface Builder*. So I created NXTemplates. A templating library that does not utilize Interface Builder and will hopefully grow.

Path to install the templates /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcod/Project Templates

Go easy on me. I may be doing something wrong so I am starting a thread over on iphonedevsdk.

*(Interface Builder is not cool, and I would suggest that if you plan on working with the iPhone SDK, you stop using it as soon as possible. The reasons behind this are beyond the scope of this post.)

[[jaredProject alloc] initWithPerservirance:denial];

Objective-C!!! What a verbose freakin language! I have been banging my head against Objective-C trying to learn if for 5 weeks now (only in my spare time). I can say that I am finally gaining ground, but when I first took a look at it I almost gave up. The good thing is that it is easy to see what is going on in the code ONCE you know the syntax.  The bad thing is that it took a WHILE to feel some what comfortable.

So my advice for anyone starting out.

1) Work hard
2) Don’t give up
3) Work hard

bbbUM (BendBroadBand Usage Monitor)

As of July 1st 2008, BendBroadBand (my ISP) now limits their customers monthly usage to 100GB. Should you go over this amount, they will charge you $1.50 per GB. In order to monitor this, BendBroadBand allows you to login to their website to track your usage. I was getting sick of logging in everyday, so I decided to tackle the problem with some OOP (object oriented programming) using PHP5, PEAR::Mail, and some regular expressions. I ended up creating bbbUM, as in “Dude, I have to monitor my internet usage and I’m totally bbbUM’ed”. This sweet little program runs once a day as a cron job and sends a text message to my cell phone that contains my current usage.

The file that needs to be executed (should it not be obvious) is the bbbMail.php. For the sake of clarity, I have written the 3 variables that you will need to change in bold.

bbbUM Version 1.0

<php
 
//you need PEAR::Mail installed for this to work
require_once('Mail.php');
 
//path to the bbbClass.inc.php file
require_once('bbbClass.inc.php');
 
//create new bbb object
$obj = new bbbUM;
 
//email where you wish the message sent
$obj->setEmail('5415551212@vtext.com');
 
//bbb username/email
$obj->setUserName('jdoe@bendbroadband.com');
 
//password
$obj->setPassword('123456');
 
//method that sends mail
$obj->bbbSend();
 
?>
 

Copyright © Jared Folkins
Programming, Computers, Writing, Economics, and Life

Powered by WordPress