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 Sat 25 Nov 2017, 05:44
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Puppy Database
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 18 of 18 [267 Posts]   Goto page: Previous 1, 2, 3, ..., 16, 17, 18
Author Message
musher0


Joined: 04 Jan 2009
Posts: 11181
Location: Gatineau (Qc), Canada

PostPosted: Sat 02 Sep 2017, 13:02    Post subject:  

Hi CatDude and smokey01.

"was inspired by Ian Forsyth?" "but heavily modified"?
Please rub it in. How the man must feel.
I am this close from calling you "ingrates"...

Anyway I disagree with this kind of initiative -- passing a CLI program
for a GUI one through cosmetic changes.

If you want to run Fields.awk in a separate window, you can do it with a
wrapper like this:
Code:
#!/bin/sh
# fields_awk.sh
# Launcher for Ian R. Forsyth's fields.awk script
# Can be called from a *.desktop file in /usr/share/applications.
# (c) musher0, Nov. 28, 2015; rév. : 19 juillet 2017.
####
FNT="fn xft:LiberationMono:pixelsize=14:antialias=true:autohint=true"
UrXvT="rxvt -sr -$FNT -b 15 -bd grey50 -tint SaddleBrown -sh 90"
[ -e /usr/bin/fields_ext.awk ] && $UrXvT -e fields_ext.awk
# This way, the script can be run from anywhere, provided
# the launcher and the script are in the same folder.

The advantage is that Ian's code is not changed. It's his work, he changes it
as he sees fit. He is not dead yet, AFAIK.

If you are that allergic to CLI programs. please go see a doctor? It is a
curable condition, I think.

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Sat 02 Sep 2017, 17:23    Post subject: Re: Installing
Subject description: explination please
 

Minnesota wrote:
For the novice of the world and group.
I am using fatdog64-710, put both the pet and the Txz on a stick.

Inserted stick into the computer with Fatdog clicked on, asked to extract txz file. OK, created files on the stick. Guess wrong location.
Next extracted to running fatdog location sda. What next?

Ran pet, same situation- no obvious actions. Some of us do not know how to run things without a menu entry or at least instructions.

Why would you use a pet file in Fatdog64-710? Fatdog uses .txz packages. All you have to do is right click on the package and install it.

There is a menu entry under Utilities.
Minnesota wrote:

Please a few instructions.

Thanks.

Is the comment regarding dependencies relevant to Fatdog64-100 or are they included in the base or pet?


Most, if not all pups have those dependencies so they shouldn't cause an issue. Once the application is running you will see some help under the menu bar help or tool-tips.

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Sat 02 Sep 2017, 17:27    Post subject:  

musher0 wrote:
Have you broken the news to Ian?
I hope he does not have a heart condition.
Did you get his permission first?

BFN.

I'm not sure, have I?

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Sat 02 Sep 2017, 17:44    Post subject:  

musher0 wrote:
Hi CatDude and smokey01.

"was inspired by Ian Forsyth?" "but heavily modified"?
Please rub it in. How the man must feel.
I am this close from calling you "ingrates"...

He should feel honoured as I give him credit where it's due.
musher0 wrote:

Anyway I disagree with this kind of initiative -- passing a CLI program
for a GUI one through cosmetic changes.

Are you serious. Out of 460 lines of code less than 20 lines resemble fields.awk. I think that's just a little more than cosmetic changes.
musher0 wrote:

If you want to run Fields.awk in a separate window, you can do it with a
wrapper like this:
Code:
#!/bin/sh
# fields_awk.sh
# Launcher for Ian R. Forsyth's fields.awk script
# Can be called from a *.desktop file in /usr/share/applications.
# (c) musher0, Nov. 28, 2015; rév. : 19 juillet 2017.
####
FNT="fn xft:LiberationMono:pixelsize=14:antialias=true:autohint=true"
UrXvT="rxvt -sr -$FNT -b 15 -bd grey50 -tint SaddleBrown -sh 90"
[ -e /usr/bin/fields_ext.awk ] && $UrXvT -e fields_ext.awk
# This way, the script can be run from anywhere, provided
# the launcher and the script are in the same folder.

The advantage is that Ian's code is not changed. It's his work, he changes it
as he sees fit. He is not dead yet, AFAIK.


musher0 wrote:

If you are that allergic to CLI programs. please go see a doctor? It is a
curable condition, I think.

Now come on musher0 you know that's not true as we've had this discussion in the past. Many people prefer a GUI to a terminal, this just provides choice.

I just watched his video again at:
https://www.youtube.com/embed/HC8Az9W8FV4?rel=0&autoplay=0 where he says if anyone wants to convert it into a GUI he said "that's Ok."

Cheers

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Minnesota

Joined: 11 Sep 2008
Posts: 325

PostPosted: Sat 02 Sep 2017, 21:40    Post subject: more help
Subject description: menu
 

Why would you use a pet file in Fatdog64-710? Fatdog uses .txz packages. All you have to do is right click on the package and install it

There is a menu entry under Utilities.


See attached photo and locations MENU is fatdog utility. No entry
Pfind locations.

As to WHY... I do not know any better!
Utility Menu and locations.jpg
Description 
jpg

 Download 
Filename  Utility Menu and locations.jpg 
Filesize  88.14 KB 
Downloaded  36 Time(s) 
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Sat 02 Sep 2017, 22:09    Post subject:  

@Minnesota I take it you're new to Fatdog.

First go back and read my post where you downloaded the files.
http://www.murga-linux.com/puppy/viewtopic.php?p=966277#966277 You only need this one: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=110935 You do not need the PET one. All older and most newer Puppy distributions use pet files. To install them, simply left mouse click on them and follow the prompts. Not so in Fatdog.

After you download the file you need to remove the .gz extansion on the package. You can do this with Rox by right clicking on spd-1.0-noarch-1.txz.gz and select Rename, then just delete the .gz on the end and click rename. The forum doesn't allow uploads with txz extensions.

With Fatdog you right mouse click on the spd-1.0-noarch-1.txz file then select install package.

You can't see an icon because you had not installed the application, instead you extracted it.

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Minnesota

Joined: 11 Sep 2008
Posts: 325

PostPosted: Sun 03 Sep 2017, 04:32    Post subject: installing  

"With Fatdog you right mouse click on the spd-1.0-noarch-1.txz file then select install package."

Sorry this was not obvious to Me. I left clicked and received the extract dialog.

Just was informed a program I wrote in 2001 is still being used. Linux is a foreign language to me.

Thank your for your assistance. Menu item now shows. I will play with the program.
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Sat 09 Sep 2017, 21:49    Post subject:  

Updated spd to 1.1

Made a few changes:
Now it will work with much larger files. Tested it with a 100,000 record database. It should work with a much larger database file.
I think the output looks a little better.
Added an advanced search so up to three terms can be entered for each record. Look under File menu Item.
Added some more help at /usr/share/doc/spd/spd.md
http://www.murga-linux.com/puppy/viewtopic.php?p=966277#966277

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Mon 11 Sep 2017, 12:54    Post subject: Sorting 100.000 records.. It's huge.  

database and database management are not the same..
CSV files are data. Dmcsv or CSVfix are usefull and very tiny. But sorting 100.000 records.. It's huge. How long will that take with your system ?

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Mon 11 Sep 2017, 23:58    Post subject: Re: Sorting 100.000 records.. It's huge.  

Pelo wrote:
database and database management are not the same..
CSV files are data. Dmcsv or CSVfix are usefull and very tiny. But sorting 100.000 records.. It's huge. How long will that take with your system ?

@Pelo, The datafile is 12451926bytes (12M) in size. There are 100,003 records consisting of five fields each.

If I enter an advanced search of a record that I know is unique and at the end of the datafile, it takes less than a second to display it. If I click on search without any filtering, in other words, load the entire datafile, it takes about three seconds to start displaying records. I takes about 25 seconds to load the entire datafile.

I'm happy with the performance.

The advanced search uses grep and the default single search uses awk. Grep is a little quicker than awk.

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 4721
Location: Republic of Novo Zelande

PostPosted: Mon 02 Oct 2017, 14:51    Post subject:  

Hi Smokey, on a slacko 5.6 derivative I get "failed to install" when attempting to install the puppy database. Is a Slacko 5.6 version possible do you think? cheers!
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Mon 02 Oct 2017, 16:24    Post subject:  

greengeek wrote:
Hi Smokey, on a slacko 5.6 derivative I get "failed to install" when attempting to install the puppy database. Is a Slacko 5.6 version possible do you think? cheers!

The PET package is compressed with xz. If you can convert it to gz it should work or install xz to slacko-5.6 might also work.

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 18 of 18 [267 Posts]   Goto page: Previous 1, 2, 3, ..., 16, 17, 18
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0765s ][ Queries: 14 (0.0278s) ][ GZIP on ]