Ohcount and Count Lines of code

coding

Ohcount and Count Lines of Code (CLOC) counts size of code project. Mostly these aren’t very useful applications, but it is fun to see that I have written 300 lines of code in couple of days.

Ohcount is used Ohloh to generate source code reports. I was disappointed to found that i can’t use Ohcount to scan whole history of my repository, it only scans current status of code.

CLOC is written in Perl and Ohcount in Ruby. It maybe little annoying to compile Ohcount from source, but it is much faster than CLOC. If you want something that is easy to install, take CLOC. But if you are going to analysis more often than once, try Ohcount.

Here is example output from CLOC:


96 text files.
83 unique files.
33 files ignored.
http://cloc.sourceforge.net v 1.08 T=7.0 s (8.9 files/s, 547.4 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code scale 3rd gen. equiv
-------------------------------------------------------------------------------
PHP      49    588   172     1950 x 3.50    = 6825.00
SQL      1     58    87      277  x 2.29     = 634.33
BASH     10    54    133     261  x 3.81     = 994.41
CSS      1     46    5       192  x 1.00     = 192.00
Python   1     2     1       6    x 4.20       = 25.20
-------------------------------------------------------------------------------
SUM: 62 748 398 2686 x 3.23 = 8670.94
-------------------------------------------------------------------------------

And here is Ohcounts output from same file:

Examining 555 file(s)......

Ohloh Line Count Summary

Language Files Code Comment Comment % Blank Total
---------------- ----- --------- --------- --------- --------- ---------
php      58    2146 219     9.3%      716  3081
sql      1     277  87      23.9%     58   422
html     60    242  1       0.4%      38   281
css      1     192  5       2.5%      46   243
python   1     6    1       14.3%     2    9
---------------- ----- --------- --------- --------- --------- ---------
Total 121      2863 313     9.9%      860  4036

- Gestalts -------------------------------------------------------------------
Platforms: PHP, SQL, Scripting

Yep. There is some difference on results. I don’t know which one is more accurate.

I haven’t posted for a while because I have coded my main project. It isn’t public, but I will blog about it when it is ready. :) I try to blog more often.

No Comments

Cube ported for ipod touch

Games, iPod touch/iPhone apps

Cube/sauerbraten is nice open source first person shooter game. It has nice graphics and lots of bloom. :)

The engine has been ported for iPod touch/iPhone and it runs very nicely. Full 3d world with all features that is on normal cube. Fps is around 20, it may not sound good but for handheld device it looks nice.

Biggest problem with cube is the controls. I would love to play this game, but with these controls it isn’t fun. However it is possible to get usable controls on iPod for 3d fps games. Example Wolfenstein port for ipod has awesome and customizable controls.

I like to use accelerometer to turn and touch pad to move. (cube uses accelerometer to move and touching to move)

This is great port of cube. And I am looking forward to use the next release. Developer says that controls are easier on next version. :)

But as it is free I recommend you to try it out and see if you can move around with those controls. :) I would also like to see multiplayer gaming. (I think it works, but I would like to see couple centrelized servers and maybe some stats :P )

Yea... I wan't turn ability to Wordpress.

Yea... I wan't turn ability to Wordpress.

No Comments

Play World War and other games on computer

Applications, Games, iPod touch/iPhone apps

My last post about world war made up big flood of code spammers, but there were some people that wanted to cheat. That’s evil and should not be done. But some peoples wants to play World War on computer. I think that isn’t evil, but storm8 (creator of this game) may not like…

So this may get you banned. You have been warned.

There is a fully working application for playing this game (and others) on computer. It is easy to set up and works very well. There is also some kind of trigger systems that helps playing and automates boring stuff.

http://forums.lavarsicious.com

This site requires registration, if you are not able to register to their site, you are noob and you should not try to use this app.

And here is screenshot of the ToolSuite application:

Toolsuite

Ye. My nickname is on the screenshot, but so what? I am not addicted to this game anymore. :)

Big thanks to Flush for sending me the link to this app. :)

No Comments

Istat remote monitoring app

Applications, Linux, Mac, iPod touch/iPhone apps

Istat is a iPod touch/iPhone app developed by bjango. With istat you can remotely monitor ram/mem/disk usage of your home computers or remote servers.

Istat server is available for mac and Linux. Linux version must be compiled manually, but it isn’t very difficult task if you have compiled stuff before. One difference on Linux version is that you can’t track temperatures. There is no support for windows.

You can track:

  • Mem usage
  • CPU usage
  • Disk usage
  • Net usage
  • Uptime
  • Load
  • Temperatures

You can also view information from your iPod/iPhone. One cool feature is “free memory”. With free memory command you can clear iPods/iPhones memory and make it run faster. (?) You also find id number and mac address.

There is also good traceroute and ping tools. Only thing I would like to have is pinging range of ip:s.

This app is now on sale 1.5e and it is worth of that 1.5e

No Comments

Mantis bug tracker

Applications, coding

When you code something bigger than Hello World, it will have bugs. You can’t create any project without bugs. Bug tracker makes its easier to manage bugs. Especially when there is many developer and there is lots of bugs.

Some developers wants something like Bugzilla, but it may be little hard to install and configure. If you want something simple and quick to install, try Mantis. Its PHP/MySQL based bug tracker.

Mantis has many features and it works well with almost any kind of project you are working on. One feature I like a lot is ability to have many projects under one bug tracker. So I can do one install of  Mantis and then manage all of my bugs in one place.

So if you need simple bug tracker, PHP based bug tracker or just a good bug tracker, try Mantis.

1 Comment
« Older Posts


  • About this blog

    Welcome to my blog! Here you can find my random posts about Internet, open source, games and computers.

    TwitterCounter for @k00pa
  • Flickr Photos

    My desktop

    iPod touch home screen

    Wave Graph of my last.fm profile

    More Photos
  •  

    July 2009
    M T W T F S S
    « Jun    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Categories

  • Archives

  • Akismet