Archive for the ‘General’ Category
Friday, April 2nd, 2010 |
Yesterday was disappointing and frustrating.
Visual studio freaked out which resulted in my project becoming inaccessible from my thumb drive and not long after that the partition table was destroyed, resulting in my thumb drive being of the RAW format.
I searched and found some recovery software but nothing that wanted to recover my partition table so I had to result to formatting and recovering data afterwords. Unfortunately I got to save every file that was on the drive except for my project which visual studio had obviously eaten up.
Thanks again Microsoft, nice tool, if only it wasn’t this hungry! Come to think of it almost everyone had problems with visual studio, maybe it wanted revenge for the bad code that we write.
Posted in General | No Comments »
Thursday, February 25th, 2010 |
This was actually fun, a first, i have to admit. Normally when i do convert a template to a theme, i is time consuming, in Yii after some rudamentry settings (2 actually), you’re on your way.
Posted in General | No Comments »
Monday, February 22nd, 2010 |
I’ve been coding away all week, that is between my other jobs at home
In all my ‘wisdom’ and persistence i made a small app with Yii which stores data in an array and serializes it into a db, and a basic CRUD, a proof of concept to see if the framework was capable of doing this and in the fastest way possible.
No problem so far, getting it is simple, but apparently you Yii doesn’t permit everything. So you need a $temp variable to store the model data in, suffice to say that it isn’t really the shortest route to take nor in my opinion the fastest bus alas I have to do with it. This little app of not more then a 60 lines of code took me four days, four damn days to figure out the error, honestly if we have methods to ‘save space’ in your coding why not permit them?
I’m not going to bother everybody with my nagging so, I’ll stop here.
For those who want to see the topic on the yii forums.
Posted in General, Projects, tutorials | No Comments »
Friday, August 21st, 2009 |
I stumbled upon this when searching for something about code, enjoy!
site: freevbcode
Posted in General | No Comments »
Saturday, March 21st, 2009 |
Linux is a facinating OS but not always transparant to everybody, certainly the kernel has that problem. This linux map will help you figure out the linux kernel and has documentation and everything to it.
Kernel Map
Posted in General | 1 Comment »
Saturday, March 14th, 2009 |
I must admit that I not a huge fan of Frameworks and Patterns because:
A) They make things complicated
B) Subject you to some nasty code stuff and rules
C) Because templating and Frameworks can be water and fire.
Codeigniter on the opposite has some advantage on it side for the templating stuff. This is really a short explanation for a common problem in other framework.
What to do if you want a nice folder structure or have different template styles, remember this is just a basic thing which happen to work in CI 1.7.
function index(){
$this->load->view('Themename/news/index);
}
Just add some slashes an it works so normally it should work if you would make an adaptation for themes too with a variable in it.
The next thing was kind of hard to find on the web so let me share it. It’s for when you develop with CI and your not working in the root directory of your server.
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
Posted in General, tutorials | No Comments »
Monday, March 9th, 2009 |
I’ve grew bored of having to deal with some irritating PHP issues so I’ve turned my back to those and began testing codeIgniter. It seems strait forward but templating already has me intrigued with problems and mod_rewrite needs a look too I think :p .
Posted in General | 1 Comment »