This video describes how to connect to the VMWare web interface over X tunnel via SSH for access on unsupported platforms (specifically Mac).
CodeIgniter is a SUPER powerful framework and I have picked up some tricks along the road. If you are looking for a simple way to jail access to parts of your application, the following is tried and tested – I use a similar approach in almost every application I write.
When you want to lock users out of just one function or an entire controller just create a new model (call it auth.php or something useful) and autoload it in the autoload.php file under config/
For a simple explanation consider the following :
Really all we are doing is determining which script they are trying to access and if they are allowed to be there or not based on their user permission level (set in a session at login authentication (usually from the database)).
To lock down a controller simply add $this->auth->jail(); to the constructor or whatever method / function you want to lock. This may not be the most elegant solution but it works and is tough to screw up – if you do not need group permissions and only a boolean result, take a look at this one :
As you can see, much simpler however only allows a check to see if the user is logged in or not. Once again, this can be loaded per function or per controller (in the constructor).
Hope this helps, I really do need to get to bed - probably have twenty revisions for this code after a wink of sleep. Always welcome feedback (criticism is expected with insomniatic posts).
PS. I am aware “insomniatic” is not a real word.
I had recently put up a wanted ad for an apartment in the city. Had a few legit responses this morning and then I get this email from a fella who goes by the name “Asif”.. heh.
So we send a few emails back and forth – then he pops up on XMPP, I accepted not knowing who it was. I decided to blog it in hopes to make others aware (I have been fooled before). Now I would usually leave out personal information but this was clearly a SCAM!
Here is the conversation :
This gets better.
If you read within the convo he states that it is him sitting in his bedroom – I decided to investigate further…
Not only do the pictures of the place make it impossibly priced (just happened to be the exact amount I was looking to pay) – the guy was adamant about sending his ID and proving who he was – the damn pictures didn’t even match! The guy in the bedroom looks like Gates!!
Be careful – pay close attention to detail and never trust a man trying to rent his place from overseas.
Do you think this is a scam? Let me know.
Well it is Friday afternoon, it is super hot and I got a full fridge of beer.
Today I decided I would clean the house – didn’t work so well.
I had this great idea to mind map what I wanted to accomplish and failed miserably.
Here is the output :
This is by far the coolest implementation of a web based DJ control solution for ShoutCast streams. I have spent probably 30 hours so far writing this app and think it is by far some of my best work (Backend wise) – the front end is kinda sketchy still.
A video is worth a few million bytes so here it is – pardon the drunkenness.







