Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 14:44
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Project Management in gtkdialog/yad/CLI/HTML
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [35 Posts]   Goto page: 1, 2, 3 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 12 Nov 2011, 02:18    Post subject:  Project Management in gtkdialog/yad/CLI/HTML
Subject description: something to manage small to medium sized projects
 

I looked for a decent project management software that didn't have over 50mb worth of dependencies, and couldn't really find anything light weight. I have a pretty basic understanding of the underlying logic, so I started thinking what it would take at a minimum.

At first I thought I would need a database like sqlite, but instead I came up with a way to store the data in a flat file that is extremely quick to parse in a shell. For graphics, we can generate an SVG directly from the shell. Here is the basic idea:

each object (task) gets its own line containing all possible properties as space separated variables:

TASK="start project" DURATION="0" PREDECESSORS="" SUCCESSORS="" ...

Using variables instead of separators will produce large files, but they will compress extremely well (duplicate data normally goes down to 1 byte per occurrence) and can be processed quite easily and much more quickly than parsing separated data and it is easier to maintain, since you don't have to look up positions and can't miscount.

Code:
while read LINE || [ "$LINE" ]; do
eval $LINE
[ "$TASK" == "$1" ] && update_entry $@ || echo $LINE
done < $DATAFILE


The most important calculation would be the critical path. The only way I can think to do this without making it too complicated is to compute all the durations for all paths from start to finish and if the current calculation is higher than the previously computed highest, replace it. (Thus small to medium sized projects)

Once the critical path is calculated, we can then generate our gantt chart and/or successor/predecessor views using SVG data. I've experimented with this before, and drawing, text, rectangles and lines is pretty straight-forward.

here is the basic structure for SVG
Code:
<svg>
  <rect width="200" height="20" x="4"   y="4" style="fill:#0000ff;" id="rect1" />
  <text x="11" y="17" id="text1" xml:space="preserve">START Project</text>
  <line x1="204" y1="12" x2="254" y2="12" style="stroke: black;"/>
</svg>


The beauty of such a simple design is that it could easily adapt a new interface (I could even use cgi scripts with some simple forms to make it a web app that could run on busybox httpd).

NOTE: If I start working on this, I won't have a lot of time to work on other puppy stuff ... so I ask, is this something worth pursuing? If so which interface is preffered? What features are desired?

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
UncleBaldie


Joined: 03 Feb 2008
Posts: 35
Location: Staffordshire, UK

PostPosted: Sat 12 Nov 2011, 05:01    Post subject:  

Have you tried GanttProject ?

Website:
http://www.ganttproject.biz/

Demo:
http://ganttproject.sourceforge.net/demo/demo.html


Phil

_________________
Crackin' cheese, Gromit lad...

Toshiba Satellite U200-P115 - Lucid Pup528/PCLinuxOS/MacPup528/Fluppy13
Lenovo 3000-C100 - Win 7/LucidPup528

Woof-woof......oh yes !!
Back to top
View user's profile Send private message MSN Messenger 
disciple

Joined: 20 May 2006
Posts: 6447
Location: Auckland, New Zealand

PostPosted: Sat 12 Nov 2011, 06:25    Post subject:  

Quote:
NOTE: If I start working on this, I won't have a lot of time to work on other puppy stuff ... so I ask, is this something worth pursuing?

I don't really think it would.
Most people wanting project management software would be looking for something compatible with Microsoft Project.
It will be very rare for 50MB of dependencies to be a huge problem these days.
It would be filling a very small niche, so I think you probably wouldn't have enough users to either justify the effort, or to iron out all the bugs.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 12 Nov 2011, 06:46    Post subject:  

Project management has been tried several times.
The only system that actually seems to have been used
is bones. maybe you could develop that a bit?
http://bkhome.org/blog/?viewCat=Bones

The problem is not the software, it is getting developers to use it.
It is a cat herding problem:
http://www.murga-linux.com/puppy/viewtopic.php?t=34704&search_id=1694256696

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 12 Nov 2011, 07:03    Post subject:  

I did compile Planner (a fork of MrProject) which is reasonably light, but requires some deprecated libraries like libglade and it _says_ it requires libgnomeui, but I symlinked its pkgconfig file to gtk and it built fine without it. I also hacked out all of the gconf stuff just so it would compile and the package is <500kb

It uses half the resources of Rox and 1/4 of geany so overall, if someone were to update the UI to use gtkbuilder instead of libglade, it seems like it would be fairly usable for small/medium projects. I may add a wikipedia entry for it, to prevent someone else going through this whole thought process.
planner.png
 Description   
 Filesize   37.69 KB
 Viewed   1370 Time(s)

planner.png

planner-0.14.5-hacked.pet
Description 
pet

 Download 
Filename  planner-0.14.5-hacked.pet 
Filesize  423.84 KB 
Downloaded  375 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 12 Nov 2011, 08:19    Post subject:  

Planner seems to be running OK in Slacko Cool
http://live.gnome.org/Planner/About

You right click to add tasks
Now what project would you like to develop using it?
Maybe a project management system? Cool

Most of our projects have one or two main developers
with testers and code suggestions posted to the forum.

How is this to be an improvement?
It is not that it has no use.
It is how to make use of?

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 12 Nov 2011, 10:27    Post subject:  

I wanted to use one for optimizing init.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 12 Nov 2011, 18:00    Post subject:  

technosaurus,
Congrats on compiling Planner! This has always been a gap in the Puppy suite of applications, and I have often wondered if we would ever find anything -- reasonably small, that is.

I have just downloaded it, will play with it soon.

Yes, I like your thoughts in the first post. In retrospect, I would probably have preferred to have implemented Woof as you suggest. My '|' delimiters are ok, but your suggestion is convenient in conjunction with 'eval'.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6447
Location: Auckland, New Zealand

PostPosted: Sat 12 Nov 2011, 20:35    Post subject:  

Lobster wrote:
Project management has been tried several times.
The only system that actually seems to have been used
is bones. maybe you could develop that a bit?


Lobster wrote:
Planner seems to be running OK in Slacko Cool
http://live.gnome.org/Planner/About

You right click to add tasks
Now what project would you like to develop using it?
Maybe a project management system? Cool

Most of our projects have one or two main developers
with testers and code suggestions posted to the forum.

How is this to be an improvement?
It is not that it has no use.
It is how to make use of?

We're talking about a project management tool for Puppy users, rather than a tool for development of Puppy or for development of software for Puppy.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
jim3630


Joined: 13 Feb 2011
Posts: 792
Location: Northern Nevada

PostPosted: Sat 12 Nov 2011, 21:31    Post subject:  

tried in Dpup Exprimo SMP 5.X.10.
console:

# planner
planner: error while loading shared libraries: libxcb-xlib.so.0: cannot open shared object file: No such file or directory
#

libxcb-xlib.so.0: looks like a symlink library just to show how little I know. if it is then don't know what to do with it.

missing library or is planner not suited for Dpup?
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 12 Nov 2011, 21:49    Post subject:  

jim3630 wrote:
tried in Dpup Exprimo SMP 5.X.10.
console:

# planner
planner: error while loading shared libraries: libxcb-xlib.so.0: cannot open shared object file: No such file or directory
#

libxcb-xlib.so.0: looks like a symlink library just to show how little I know. if it is then don't know what to do with it.

missing library or is planner not suited for Dpup?


Try this:

Code:
# ln -s libX11.so.6 /usr/lib/libxcb-xlib.so.0

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
jim3630


Joined: 13 Feb 2011
Posts: 792
Location: Northern Nevada

PostPosted: Sat 12 Nov 2011, 22:59    Post subject:  

BarryK wrote:
jim3630 wrote:
tried in Dpup Exprimo SMP 5.X.10.
console:

# planner
planner: error while loading shared libraries: libxcb-xlib.so.0: cannot open shared object file: No such file or directory
#

libxcb-xlib.so.0: looks like a symlink library just to show how little I know. if it is then don't know what to do with it.

missing library or is planner not suited for Dpup?


Try this:

Code:
# ln -s libX11.so.6 /usr/lib/libxcb-xlib.so.0


Hey Barry it worked!

will study your code to figure out how it worked.

ln a command to link. -s symlink. can't quite get how you came up with "6"?
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 12 Nov 2011, 23:43    Post subject:  

Quote:
We're talking about a project management tool for Puppy users, rather than a tool for development of Puppy or for development of software for Puppy.


Then it makes perfect sense to include planner in Wary and Racy
http://bkhome.org/blog/?viewDetailed=02592
and move towards Plan4Pup or whatever emerges.
I would rather use a Puppy Planner, then any compromise and would be happy like others to offer feedback

Puppy
Geany
Devx
and technosaurus planner
quite a development tool . . . Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sun 13 Nov 2011, 00:22    Post subject:  

Sorry about the non-portable pet of Planner. I didn't apply my usual compile tricks because it took so much hacking just to get it to compile, that I was almost sure it wouldn't work and I didn't want to wait for the long series of trial & error compiles. I guess I am getting better at guessing what to hack on ... or maybe just luckier. I can build an optimized, portable build and/or post a diff of my hacks if anyone wants them.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
meditate

Joined: 15 Mar 2010
Posts: 5

PostPosted: Sun 13 Nov 2011, 04:51    Post subject: project planner  

Very Happy
Thanks and Congrats tecnosaurus
Download works fine with Lucid 5.2

Have been trying to demonstrate the power of puppy to my IT head who is suitably impressed with puppy.

This project planner would go a long way to achieve business needs.
Will look forward to improvements.

Keep up the great work.
Very Happy

meditate
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [35 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0940s ][ Queries: 12 (0.0058s) ][ GZIP on ]