Page 7 of 14

Posted: Wed 06 Feb 2013, 10:50
by NeroVance
In terms of how I'd do a DB, I'd use Tcl, Sqlite originated as a Tcl extension 8) (it's even got the feather in it's logo)

Hell, Tcl 8.6 has included a package for database access, hence it could fairly easily built using plain ol' Tcl now (ish). Good thing I've compiled Tcl and Tk 8.6 for my fellow puppians.

But in terms of DB, I would be interested in seeing what people have developed for databases in puppy.

Is there anybody here (2010)

Posted: Tue 05 Mar 2013, 18:18
by Pelo
No more interest in databases ? I would like to know how to include images in sqliteman. And to show it on a file

Anybody can explain ?

nothing new about database . Sqliteman

Posted: Tue 09 Apr 2013, 08:24
by Pelo
Dear users of SQLITEMAN , how do you do to insert a picture in SQLITEMAN. ?

Posted: Tue 09 Apr 2013, 17:33
by tallboy
I used FileMaker in my olds Macs, and miss it very much. No matter what you say, I have never used - or seen - another tool making it so easy to create a database in seconds. But I think all the Puppys I have used, have some basic tools that cover much of what a very simple database is used for:

Notecase is a very nice and compact tool, with hierachical layout and internal links. Examples: I use it a lot for making overviews and lists of source links for people in families 'in work', that are later entered into my genealogy database program Gramps. I also use it to manage my work todo-list and my spare parts, for my old Dodge, and one main use is to list all puppy-related links and notes, my memory is not what it used to be! It can be exported as a .txt, .html or even as a standalone. Bugfree.

It also has a 'poor sibling' in the form of hnb (hierachical note book) for use in a terminal window. Tiny, quick and simple to use, also bugfree.

Osmo Apart from being a calendar program that can manage your tasks and todo-lists, it is also quick and easy for managing contacts, and can easily be used for taking notes.

Homebank is a tool I don't use myself, but from what I have seen, it covers most situations where a database can be used to serve your privat economy.

There are many specialized programs in the puppy repositories for managing your collection of movies, recipes, music or pictures, I cannot mention them all, but as an example, a program like Pmusic is installed in recent puppys. They are probably more efficient than a self-made database would be.
And I hate to say it, but Gnumeric has also taken over some of the tasks that I left to FileMaker earlier. I still have some heavy duty tasks that I leave to my over-large Debian, among them a database, but the frequency of Debian use is fast moving towards zero.

So the big question is: how many puppy users really need a universal database?

Do you think the picture has changed since this thread was started in 2007, and if so: How and why?

tallboy

Posted: Tue 09 Apr 2013, 20:05
by smokey01

Posted: Tue 16 Apr 2013, 08:32
by jpeps
I don't know what was happening back in 2007, but sqlite3 works very well. It's also multi-platform, and you can ship the db around like a text file. I wonder how many people use it....it's a real gem.

Command line documentation:

http://www.sqlite.org/sqlite.html

Posted: Tue 16 Apr 2013, 22:11
by tallboy
Sqlite3 is included default in my Lupu_5.2.8, but I forgot to list it, sorry!

tallboy

Posted: Wed 17 Apr 2013, 22:32
by technosaurus
I wrote a video rental webapp that uses sqlite3 shell for the backend (currently set up for in-browser javascript) ... if anyone wants to see a simple example of how you can use sqlite ... I am only capable of simple :)

It could be adapted for general use with the browser or I could patch the sqlite shell for use with gtkdialog (though I think the -list option should be sufficient for gtkdialog treeviews)

As a test I can write an awk script to convert the puppy package databases into sqlite3 tables as a practice project if anyone is interested in pursuing it.

Edit: alternatively we can uses the puppy standard flat file database ...
here is a way to convert them directly to javascript arrays:

Code: Select all

#!/usr/bin/awk '
BEGIN{FS="|";OFS="\",\"";ORS="\"],\n";printf "[\n"}
{print "\t[\""$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14}
END{printf "]\n"}
... may want to wrap it in a callback via BEGIN and END for cross site capability like

Code: Select all

#!/usr/bin/awk '
BEGIN{FS="|";OFS="\",\"";ORS="\"],\n";printf "petCallback([\n"}
{print "\t[\""$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14}
END{printf "])\n"}

Posted: Fri 19 Apr 2013, 01:33
by jpeps
technosaurus wrote:I wrote a video rental webapp that uses sqlite3 shell for the backend (currently set up for in-browser javascript) ... if anyone wants to see a simple example of how you can use sqlite ... I am only capable of simple :)]
It's more a language, so will be simple for developers to figure out. It's worth learning, since you'll be using it for all your android devices. I've got the MyLibrary" app (listed in Java programming) running on my Nexus with it. You can export the db anywhere exactly like a doc. The db itself is foolproof.

Posted: Mon 29 Apr 2013, 07:27
by jpeps
It's easy to transfer an sqlite database from puppy to all your devices using dropbox. ( apps like SQLed connect to it directly).

attn tallboy : a lot of databases

Posted: Sat 18 May 2013, 09:48
by Pelo
attn tallboy : a lot of databases
None integrates a picture. I am looking for a database which manages item by item, Like GCstar, datacrow, ppdb, Tellico but for a larger range of material, not only leasures, but machines, meals, softwares, furniture, ... anything !
But with the image. Not so easy to find, unhappily.
You seem to know the subject, i you find anything fitting our request, pls tell us.

and have a nice week'end.

Re: attn tallboy : a lot of databases

Posted: Sat 18 May 2013, 11:07
by smokey01
Pelo wrote:attn tallboy : a lot of databases
None integrates a picture. I am looking for a database which manages item by item, Like GCstar, datacrow, ppdb, Tellico but for a larger range of material, not only leasures, but machines, meals, softwares, furniture, ... anything !
But with the image. Not so easy to find, unhappily.
You seem to know the subject, i you find anything fitting our request, pls tell us.

and have a nice week'end.
Have you had a look at stuffkeeper? It's quite configurable.
https://github.com/DaveDavenport/stuffkeeper

Re: attn tallboy : a lot of databases

Posted: Sat 18 May 2013, 18:40
by jpeps
Pelo wrote: None integrates a picture. I am looking for a database which manages item by ...
You can store images into sqlite3 with hexdump, but a more flexible method might be to just use the db to store the names along with a folder of pix.


slideshow:

Code: Select all

echo "select * from images;" | sqlite3 images.db > /tmp/list
while read line; do  viewnior  $line;  sleep 3; done < /tmp/list

2013 Lib QT-3.3.8

Posted: Sun 01 Dec 2013, 03:02
by Pelo
Pet still available
here
I don't want to build my database, i need something already built. I am not a Geek ! Something pretty, if possible, not SQLite !
I Shall look at stuffkeeper.
and notecase. Stuffkeeper looks like what i wish.

2015 : Tellico 2.37 available again

Posted: Tue 27 Jan 2015, 11:01
by Pelo
Tellico runs with tarhpup 5.8.3
SFS loaded on the fly
kde-4.10-slacko_5.4.0.3.sfs: 177 M
tellico-2.3.7-slacko_5.4.0.3.sfs: 15 M

libpoppler-qt4-4_0.24.5 from ubuntu

Posted: Wed 28 Jan 2015, 06:54
by technosaurus
Here is some FYI on using your filesystem as a database:

Here is one example, but there are many ways to implement it

Code: Select all

-{ Databases
 | -{ Pet_Packages (each directory is a "database")
 |  | -{ Abiword (each subdirectory is a "record")
 |  |  | -pkg_name (contents of file is abiword-2.8.6.pet)
 |  |  | -version (contents of file is 2.8.6)
 |  |  | -dependencies (contents of file is gtk2,...)
....             
... you could always name the records as numbers like other databases do, but the flexibility is there

Here are some advantages:
- Ext4, btrfs and most other modern filesystems allow each small entry to be stored within the inode (Ext4 has the smallest limit of 60 bytes) so you get similar access to a database, but with the advantage that larger entities are still possible without modification
- You can use standard tools to query the "database" for example:
grep gtk2 $HOME/Databases/Pet_Packages/*/dependencies
- It is as scalable as the backing filesystem
- It is easy to share entries within and between databases with links
- The filesystem keeps track of mod and access time to make it easy to sync only changed entries (using rsync for example)

Posted: Wed 28 Jan 2015, 07:45
by dejan555
Regarding flat file databases, here's a little script, kinda like proof of concept for a simple data manager I did in bash/gtkdialog, there are ten columns which you can define names and visibility in preferences and then you can add/delete/edit/search entries or even load multiple databases (just type new name for database in the bottom input and hit add)
It uses numbers to manipulate entries (something like primary key autoincrement in databases) with sed, grep, etc...

I've made this originally for contacts so I named columns something like: Name, Surname, Phone, Cell_phone, Mail, Web, etc...

gunzip the script and make executable.

Also, sqlite3 is really light and included in every puppy I think it can be powerfull tool for creating desktop apps in combination with bash/gtkdialog, a simple one also I did is here, but I might share a different one made I've been making these days for tracking of bought/spent materials and cost if there's interest.

KDE 3.5.7 sfs (sfs4) needed for Tellico

Posted: Wed 28 Jan 2015, 10:55
by Pelo
dejan i am only a poor user, not a developer
here is now a great misunderstood nowadays in Puppy, there are still some users who do not develop, and don't want to... just use,
Nevertheless i keep somewhere structure of Tellico files. I will join them soon.
KDE 3.5.7 sfs (sfs4) needed for Tellico stored in my Google Drive
Old ? yes, old, but it works , and link is alive..
Tellico sucessful in Tahrpup 5.8.3 (merci Jejy69 and LXPUP team)

PS : i run depup sqeeze 5x 3.6.21.1 on an old laptop Acer. Good distro. No problem.
Merci Dejan too, for having considered our users needs.

Posted: Wed 28 Jan 2015, 10:57
by dejan555
Nothing wrong with that

Tellico again (with some help from developers)

Posted: Wed 28 Jan 2015, 16:49
by Pelo
Tellico ok under tahrpup ( Sfs KDE loaded on the fly).