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 Fri 26 Aug 2016, 06:15
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Bookmarks/Contacts/Notes gtkdialog script
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
dejan555


Joined: 30 Nov 2008
Posts: 2786
Location: Montenegro

PostPosted: Mon 29 Sep 2014, 17:49    Post subject:  Bookmarks/Contacts/Notes gtkdialog script  

This is a bash/gtkdialog script I've made for myself but maybe others might find it usefull.
Like it says in the title, it's used to save links/phone numbers/notes
It uses sqlite3 so all data is stored inside one database (or you can create/load more separate ones)

Just save in executable path or somewhere you can just click on it to run.
Remove fake .gz extension and make executable

Code:
wget -O mylinks.gz "http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=80614"
mv mylinks.gz mylinks
chmod +x mylinks
./mylinks


Code suggestions are always welcome or post your own variations.
mylinks.gz
Description  Remove fake .gz, make executable
gz

 Download 
Filename  mylinks.gz 
Filesize  16.59 KB 
Downloaded  193 Time(s) 

_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
musher0


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

PostPosted: Tue 30 Sep 2014, 14:33    Post subject:  

Thanks!
_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Wed 01 Oct 2014, 09:03    Post subject:  

musher0 wrote:
Thanks!

Bonjour musher0.
Je ne comprends pas le message de dejan555. Peux-tu le traduire sur le forum fr.
Cordialement,

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
Bert


Joined: 30 Jun 2006
Posts: 1105

PostPosted: Mon 06 Oct 2014, 08:30    Post subject:  

Hi dejan555,

I really like this handy utility! Great work.

Here's an internationalized version. (gettext'ed)

What's the advantage of using the sql database?

Thanks!
Mylinks_Dutch(nl)_language_file.pet
Description 
pet

 Download 
Filename  Mylinks_Dutch(nl)_language_file.pet 
Filesize  1.77 KB 
Downloaded  135 Time(s) 
mylinks1.png
 Description   
 Filesize   33.79 KB
 Viewed   290 Time(s)

mylinks1.png

mylinks2.png
 Description   
 Filesize   26.63 KB
 Viewed   291 Time(s)

mylinks2.png

mylinks4.png
 Description   
 Filesize   23.48 KB
 Viewed   296 Time(s)

mylinks4.png

mylinks-int.gz
Description  gettext'ed version of "mylinks", fake .gz
gz

 Download 
Filename  mylinks-int.gz 
Filesize  17.95 KB 
Downloaded  136 Time(s) 

_________________


Back to top
View user's profile Send private message 
dejan555


Joined: 30 Nov 2008
Posts: 2786
Location: Montenegro

PostPosted: Mon 06 Oct 2014, 11:49    Post subject:  

Hi Bert, thanks for adding gettext.
Advantage is that all data is kept in the same file and it's easier to manage inside app then having it use flat files.
sqlite is also small and fast and doesn't need to have daemon running for fetching/storing data like other big databases and already comes with puppy.

_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
davec51

Joined: 13 Apr 2006
Posts: 522
Location: Virginia

PostPosted: Mon 06 Oct 2014, 12:45    Post subject: Mylinks
Subject description: All in one place
 

Thanks for a lovely little program. I has just what I want and none of the complications I don't.
Back to top
View user's profile Send private message 
smokey01


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

PostPosted: Mon 27 Jun 2016, 02:08    Post subject:  

I was wondering if it would be possible use gtkdialog as a front end for SQLite. It looks like you have done a pretty good job here. It would be great if it had a bit more flexibility so other databases could be created.
SQLite is pretty cool but is a little difficult to drive from the command line and not all that pretty. Maybe YAD is another possibility.
I wonder how difficult this would be?

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

Joined: 12 Oct 2012
Posts: 1094
Location: The other Mr. 305

PostPosted: Tue 28 Jun 2016, 20:03    Post subject:  

Dejan555 has not been around for a while, I think. Another loss to Puppy. Very interesting idea, though, Smokey01. Maybe a new thread on this subject would generate more interest.
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Tue 28 Jun 2016, 23:18    Post subject:  

slavvo67 wrote:
Dejan555 has not been around for a while, I think. Another loss to Puppy. Very interesting idea, though, Smokey01. Maybe a new thread on this subject would generate more interest.
Hi slavvo67.

I have a hunch that he may be part of the team behind the new Chalet OS Linux.
I do not know for sure, nothing objective; it just looks like his style and he's roughly
from that area of the world.

BFN.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
dejan555


Joined: 30 Nov 2008
Posts: 2786
Location: Montenegro

PostPosted: Sat 02 Jul 2016, 10:34    Post subject:  

Ah, I see that the ChaletOS author has the same name but that's not me.
And it's based on xubuntu! That would so not be my choice Laughing
This is the first time I've heard about this OS.

smokey01, I don't think it would be perfect, but if you wanted a specific app that's simple enough I guess it can be done.

_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Pelo


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

PostPosted: Tue 12 Jul 2016, 13:21    Post subject: password ? which one ?  

password ? which one ?
_________________
Puppy Bikers : Born to be Wild !
Back to top
View user's profile Send private message Yahoo Messenger 
learnhow2code

Joined: 12 Jun 2016
Posts: 964

PostPosted: Tue 12 Jul 2016, 13:55    Post subject: Re: Bookmarks/Contacts/Notes gtkdialog script  

dejan555 wrote:

Code:
wget -O mylinks.gz "http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=80614"
mv mylinks.gz mylinks
chmod +x mylinks
./mylinks


Code suggestions are always welcome or post your own variations.


this is a really great idea. things i would change:

* preserve the filename instead of naming as mylinks (may require a different url, or even two)
* at least preserve the attach id in the filename
* check if the .gz is really fake
* possibly check for #! in first line before making executable

this is probably overcomplicating it. but its a great idea and these are ways to improve it. if i did it myself, i would do it in fig, but when it can be done easily in bash it probably should be. (then python is not required to run it.)

_________________
users | devs
fig os 1.3 md5
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0518s ][ Queries: 12 (0.0043s) ][ GZIP on ]