Archive for the ‘Technology’ Category

Register & Yii projects

Thursday, September 24th, 2009 |

So, I think ti’s time for some updates on the website.

I has been a bit wild the last 3 weeks. School has started yet again and I had a project to finish not to mention that i’m starting to see through the Yii framework structure. I’ve been writing diagrams for different project that I have in my head too and that takes a lot of time. Besides figuring out how I want the database to be and my database system had schifted, alto mysql is the favorite, a friend encouraged that i take a look to postgresql. Yii has given me a hard time to basically because it’s been a bit of a struggle to change coding methodes in function of Yii and then I don’t start talking about the RBAC system it has build-in. It took every neuron to understand everything form begin to end. Models was also something, Yii has two model types and the active records model is something to understand, I was a bit lost at how I would have to write my own AR functions but thanks to the forums I got that figured out too. All in all everything is good at the moment.

I’ll be uploading some pictures of the system I wrote recently so you can get some sneaky peaks at it but unfortunately it won’t be open source system.

The view of tomorrow

Saturday, September 12th, 2009 |

This is a video of apparently almost 20 years ago but look at it, it’s really has happend.

Google Video Tablet Newspaper

Yii framework very first findings

Monday, September 7th, 2009 |

Yii framework (yiiframework.com) is a very fast php5 framework. At first it seems like a jungle in the code, everything is put into motion to make the framework very fast. It’s been really a steep lurning curve, even if you seen oop programming, alas seen it in a totally different way that corresponds to nothing in yii. So you have to adapt to it’s style of coding, writing and thinking.

It’s not a regular MVC framework, yii had a module concept integrated, if you want to use it that it. Tinny mini applications, pull them out and they don’t work but in the larger application they work just fine.

The logic as said is a bit different, in the configuration of the app you got one large file that has everything in it, but it’s messy, so i sacrificed a bit of my speed to put it into separate files, separated db config and routes as this gave a more clear picture of the code and you find your environment variables really fast, if you need to switch dbs

The documentation of yii could be better, some things are left up to your sense, chuncks of code are left out instead of leaving the whole things standing which would be far more handy. Luckily for he who wants to contunie with it there is a good forum with dedicated people answering even the most idiotic questions.

Codeigniter Redirect

Tuesday, June 30th, 2009 |

redirect()

Does a “header redirect” to the local URI specified. Just like other functions in this helper, this one is designed to redirect to a local URL within your site. You will not specify the full site URL, but rather simply the URI segments to the controller you want to direct to. The function will build the URL based on your config file values.

The optional second parameter allows you to choose between the “location” method (default) or the “refresh” method. Location is faster, but on Windows servers it can sometimes be a problem. The optional third parameter allows you to send a specific HTTP Response Code – this could be used for example to create 301 redirects for search engine purposes. The default Response Code is 302. The third parameter is only available with ‘location’ redirects, and not ‘refresh’. Examples:

if ($logged_in == FALSE)
{
redirect('/login/form/', 'refresh');
}

// with 301 redirect
redirect('/article/13', 'location', 301);

This was the excerpt from the codeigniter userguide but what they don’t really tell is the essential:

redirect(‘controller/function/param’, ‘refresh’);

Mail to who?

Thursday, January 29th, 2009 |

What’s annoyin on the net is that if someone wants to mail you mail, he must know your address but  whit whspr it’s history. Check it out better then disposable mail accounts and everything.

What is whspr!?

Need to receive a message by email, but can’t (or don’t want to) give out your email address? whspr! gives you a URL to share instead.

So what?

Here’s an example: Say you want to advertise a job opening on Twitter, and you don’t want to share your company email address. Some applicants may not want to post a public @reply, and they can’t send you a direct message if you don’t already follow them. Include a whspr! URL, and they can reach you discreetly.

history of the internet

Thursday, January 29th, 2009 |

A short version of how the internet was created, the basic fundamentals. It’s funny to see.

Restful_authentication

Wednesday, August 20th, 2008 |

This is probably one of the easiest authantication plugins for rails. I’m learning it at the moment and it isn’t easy, the biggest obstacle is the tutorials that often are but available for rails 1.x.x.

Railscasts – restful_authentication.

About Me

Here I'll share my knowledge, discovery and experience related to my hobby and work. Most articles on this site are related to blog design, short reviews, tips and make money online. More

Find entries :