Browsing the archives for the Web developing category.

Napalm Engine Framework Concept

Coding, Projects, Web developing

I have recently started new php project. It is my own php engine/framework.

I have tried couple frameworks and all of them have been pretty nice. I especially like cakephp.

But the problem with these sometimes is that they force too much where what code should be placed. Example the Model View Controller stuff. The idea is great idea and I have nothing againgst it, on some small project cakephp/any most of the frameworks are way too massive. (in my opinion of course)

But if I code from scratch and place all if my code where it feels good to place it… Usually something is somehow in wrong place. This is when I get the idea for my own framework.

Napalm engine framework (or NeF in short) is a php framework that doesn’t make creating code any faster. It just helps to keep code where it should be. It should help managing code base on small/medium project.

This framework also won’t force user to place some code on some place. It only offers way to manage code in standart way. If user doesn’t want to use all of the elements, rest of the system won’t break.

NeF will also be simple to learn, because there isn’t any kind of complex API.

The idea of application workflow is following:

Actions are things that gets users input, does querys to database, handle data, etc.

Render segment is in 2 parts:

  • View is a HTML document with php links to blocks
  • Blocks is a piece on a view. Example a content area/navigation.

Then there is 4 different helpers. Helpers are small code snippets that should be executed, but really aren’t part of actions/views

  • Pre-action helpers – stuff that is executed before actions
  • Pre-render helpers – before render
  • Post-render helpers – and after render
  • Normal helpers – can be used anywhere in code, called by specific function.

And if I will ever get this done, I will publish this under open source license.

No Comments

Ego app

Applications, Web developing, iPod touch/iPhone apps

Ego is simple app for iPhone/iPod touch that displays many stats in one simple view. Ego supports couple of web stats systems. Google analytics is maybe the most popular stats tracking tool, so it is included. But Ego also supports Squarespace, Mint, Google pagerank, Feedburner and Twitter.

Configuring application is fast and simple. Application is mostly just beautiful list of all the stats. If you have multitiple websites, Ego is perfect way to check all the sites once.

I would like to have some more stats, like graphs and pie charts, but still this application is worth of the 1.5€

If you are addicted to stats I recommend to try this app.

To see this app in action, go to Ego app’s homepage. There is nice video of the app.

No Comments

New layout for main site

News, Web developing

I just published new layout for main site: www.pelikoira.net

I build it with awesome css framework called 960 grid system. If you code websites I recommend to try 960 gs, because it makes developing lots of easier and faster.

This site also contains my first JQuery effect that I have used. It is simple “tab” system on project page that allows to change project without reloading page. It also makes it easier to me to control the site, because now it has only 3 files. If every project is on it’s own file, I would have something like 10 .php files. Yes, I don’t have any cms system, because I don’t need them. If I need to change something I take ssh connection and modify files remotely with vim.

I build this site on Debian system with Konsole -> Bash -> Vim system.

And of course all the code (xhtml/css/rss/js) is valid. ;)

No Comments

Firefox 3.5 performance

Applications, Mac, Web developing

Performance of firefox with older releases haven’t been awesome. Couple of addons can easily take over 100megs of ram and browser become easily very unstable and slow. I did update on my macbook (PowerPC G4, 1.6 GHz single core CPU, 1.5G DDR2 ram MaxOS 10.4.11)

New firefox has also new logo

New firefox has also new logo

Before update with 3.0 I had 7 addons installed. With 2-3 tabs open firefox used 250megs of ram and cpu was 30-40. When my firefox was on heavy usage, it taked over 1500megs of ram and 100% of cpu… After update to 3.5 memory usage dropped to 90-100megs. Cpu dropped to 10-15%.

Then I installed 26 addons and opened 47 tabs (2 youtube videos and one <video>-tag, lots of heavy js/css sites.) Memory usage was just 226megs and cpu usage was at 50%. Firefox was little slow, but usable! It didn’t even try to freeze. After the test I closed all tabs expect one and memory usage dropped to 148megs and cpu usage is back at 10-15%!

Quick list:

  • Using many (over 15) addons won’t kill firefox instantly
  • Opening many tabs(over 20) won’t freeze kill firefox anymore
  • Memory usage have dropped 300%-500%
  • CPU usage is almost always under 50% on normal usage its under 20%
  • Acid3 test gives 92/100 points (ie8 gets about 20)
  • Firefox is my primary browser again

Biggest problem for me with firefox was the CPU/MEM usage while using lots of addons and now its fixed. I can install every cool addon I want and still use firefox without killing it! Now I just want that they fix the nvidia/linux canvas tag bug…

3 Comments

Ruby on Rails pastebin

Applications, Coding, Projects, Web developing

I have tried Ruby on Rails many times, but this time I managed to create something useful that works. I created a simple pastebin. Actually I didn’t write any code. I just executed couple of scripts and then removed unnecessary parts from ruby code and edited the views.

To host the pastebin I used Heroku. Heroku is very simple platform to host Ruby on Rails apps. It is also very easy to deploy a app to it. Heroku offers free hosting, but it also offers very big plans. Biggest hosting packages can be over 2000$. I recommend to try heroku.

My pastebin runs at pastebin.heroku.com

No Comments
« Older Posts