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 Wed 26 Nov 2014, 21:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Pfetch secure web resource downloader. Ver: 0.9.3 released
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Thu 13 Sep 2012, 03:49    Post_subject:  Pfetch secure web resource downloader. Ver: 0.9.3 released
Sub_title: downloads files, web sites/pages, web statistics, dictionary lookup etc
 

NOTE: To a large extent this program has been superceded by newer program DoMyFile, which you can get here:
http://www.murga-linux.com/puppy/viewtopic.php?t=94909

The commandlist provided in Pfetch, may be usefully adapted for use in DoMyFile, however. The only thing you would need to change is that variable TD has been rename to variable D. Note also that Pfetch is still perfectly usable in its own right and with its own provided command list.
----- mcewanw July 2014

Program: Pfetch. Tested on Slacko-5.3.3 and Wary 5.3
license GPLv3
----

0.9.3 Changes: Fixed help text and entry box TD for internationalisation.

Please find Pfetch at foot of this post. By default its interface is in English but it is an option to also install any provided language translations dotpets for your locale.

Once installed, you can start Pfetch from:

JWM menu Start -> Internet -> Pfetch

Pfetch is a GUI front end to commandline clients such as wget and curl, though it is versatile enough to be able to used as a front end to many commandline utilities. It thus depends for functionality on the underlying commandline client being installed. Some of the provided combobox commandlines depend on Xdialog, rxvt, or sometimes the system text editor for outputs.

With the provided resource download list (which can be expanded by the user) it provides, as a starter, for:

Secure and also anonymous file download,
Single webpage download, as well as
full website mirroring (ctrl-C on opened console to cancel).
Fetching unread messages (headers only as it stands) from a user's Gmail account.
Fetching http headers for a webpage url.
Testing user's connection speed to a webpage url.
Finding age (last modified date) of a webpage.
Loading webpages into the user's default browser.
Searching WordNet online english dictionary for word meanings.

On pressing the "play" button, Pfetch operates just as if the displayed command was typed into a console window and the "Enter key pressed", but it brings the following advantages of a GUI environment:

* A dropdown list of pre-saved commands, which can be edited (modified, deleted, or appended to) in your system's default text editor by pressing the Edit button on the righthand side of the dropdown list.

* Entry boxes (variables) for remote Computer URL address (A), remote login User name (U), remote login Password (P), and local Target Directory (TD). The dropdown command can refer to these using standard bash shell syntax (i.e. $A, $U, $P, $TD).

* Entry data can be input manually, or via drag and drop, or cut and paste.

* Pfetch also provides brief tool-tip text over most elements of its GUI, which becomes visible when the mouse is hovered over each element.

More generally, Pfetch provides an editable, floating commandline (with a dropdown list of pre-stored commandlines) which can be any commandline at all as long as it is valid bash syntax. Pretty much any bash commandline including quote marks and \ can be entered.
----

Commandline Usage

In a console enter command: pfetch --help
for brief commandline usage.
----

Tips:

To keep pfetch as the top window, right-click on its window bar, and select Layer -> Top
----

mcewanw, Sep 2012
pfetch-0.9.3.pet
Description  Pfetch internet resource downloader
pet

 Download 
Filename  pfetch-0.9.3.pet 
Filesize  5.01 KB 
Downloaded  297 Time(s) 
MoManager-de_DE-pfetch-0.9.2.pet
Description  Pfetch German translation dotpet (fixed for Pfetch 0.9.2: thanks L18L).
pet

 Download 
Filename  MoManager-de_DE-pfetch-0.9.2.pet 
Filesize  2.16 KB 
Downloaded  291 Time(s) 

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
Jasper


Joined: 25 Apr 2010
Posts: 1163
Location: England

PostPosted: Thu 13 Sep 2012, 06:53    Post_subject:  

Hi mcewanw,

Thank you very much for pfetch which seems to work well in Slacko 5.3.1

The screenshot below is hopefully self-explanatory, but I do not understand the output of the speed test because SeaMonkey is my default browser and it takes about 4 seconds to load from scratch (although instantaneous if reloaded when minimised to my tray - which was not the current case) and SeaMonkey didn't load, so neither did this Forum.

Assuming my attempt at this speed test was basically valid, would you please be so kind as to explain what I should have entered and/or how I should interpret the output?

My regards
pfetch.jpg
 Description   
 Filesize   73.79 KB
 Viewed   876 Time(s)

pfetch.jpg

Back to top
View user's profile Send_private_message 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Thu 13 Sep 2012, 07:21    Post_subject:  

Jasper wrote:

Assuming my attempt at this speed test was basically valid, would you please be so kind as to explain what I should have entered and/or how I should interpret the output?


Yes, you just need to enter the url as you did.

If you look at the commandline for the speed test, you will see that one of the curl utility options it uses is "speed_download".

To find out what that means you are best to look at the curl manpage at http://curl.haxx.se/docs/manpage.html where if you search for the term "speed_download" using your browser's find function you will find the definition:

"speed_download The average download speed that curl measured for the complete download. Bytes per second. "

Similarly, you can search for the other curl options used: time_namelookup, time_connect, time_total, size_download.

I found the command at http://www.commandlinefu.com/ but can't remember exactly where there... I have no idea how accurate or otherwise the command is likely to be, but curl is a well-known utility so I imagine it is fairly accurate.

Best wishes, mcewanw

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Thu 13 Sep 2012, 16:30    Post_subject:  

Jasper wrote:
Hi mcewanw,

Thank you very much for pfetch which seems to work well in Slacko 5.3.1

The screenshot below is hopefully self-explanatory, but I do not understand the output of the speed test because SeaMonkey is my default browser and it takes about 4 seconds to load from scratch (although instantaneous if reloaded when minimised to my tray - which was not the current case) and SeaMonkey didn't load,


Sorry, didn't answer that part of your question (I was on the way to bed at the time I sent my last post). The speed test has nothing to do with how fast your browser loads. It is an internet connection speed test: the time it takes to look up a web url address and make the connection and download a resource. It doesn't start up Seamonkey for the test, the underlying testing application "curl" does all the work involved in the test. The speed test basically measures how fast your internet connection is, not how fast applications load on your local machine. Hope that helps clarify matters.

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Thu 13 Sep 2012, 16:54    Post_subject:  

Hello mcewanw

This is a nice offering. Working fine for me in the latest slacko development version.

I just have one question, which really doesn't matter. Is there any reason you made the configuration template a hidden directory in /etc? I'm just curious.

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Thu 13 Sep 2012, 17:11    Post_subject:  

01micko wrote:
Hello mcewanw

This is a nice offering. Working fine for me in the latest slacko development version.

I just have one question, which really doesn't matter. Is there any reason you made the configuration template a hidden directory in /etc? I'm just curious.

Cheers


I just followed a relatively common practice of making config directories hidden with a dot in front. I guess that is just to keep no option 'ls' listings of /etc not so cluttered with visible program conifigs, making system configs more easily found visually. It easy enough to use ls -a when required (or Rox : show hidden files). Lots of programs adopt the same practice: firefox/seamonkey with .mozilla for example and wine with .wine, though their config files are so large they tend not to be stored in /etc. Also, since there is an edit button in pfetch to allow quick editing of the combobox, it being otherwise "invisible" shouldn't matter. Not many, if any other user-created programs storing configs in /etc, but for those that do I personally prefer the hidden folder/less clutter aspect, especially since more programs may be added, which also store their config files in /etc. Still, maybe hidden is more normal outside of /etc. I'll leave it as it is though unless there is a good reason to change it.

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Thu 13 Sep 2012, 17:31    Post_subject:  

On second thoughts, I maybe should make the /etc config directory visible (but leave the $HOME config hidden). What do you think? Not a big job to change for the next update.
_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Thu 13 Sep 2012, 17:56    Post_subject:  

The only other hidden file I have in /etc is .XLOADED, a marker file for xorg/xwin.

I think there is no need to hide it, but like I said it doesn't matter.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
L18L

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

PostPosted: Fri 14 Sep 2012, 06:00    Post_subject: Pfetch secure web resource downloader
Sub_title: translation
 

Hi mcevanw,

pfetch is working very nice in precise 5.2.93 too.

Attached is german translation
Translation was made using momanager so there is no need to include pfetch.pot as this is created automatically by momanager.

1 small issue:
messages in other languages are always longer than the english ones.
So increasing width of the GUI should be in next update
pfetch_translated.png
 Description   
 Filesize   54.21 KB
 Viewed   817 Time(s)

pfetch_translated.png

MoManager-de_DE-pfetch-0.9.1.tar.gz
Description  german translation
packed by momanager
gz

 Download 
Filename  MoManager-de_DE-pfetch-0.9.1.tar.gz 
Filesize  2.06 KB 
Downloaded  288 Time(s) 
Back to top
View user's profile Send_private_message 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Fri 14 Sep 2012, 18:39    Post_subject: Re: Pfetch secure web resource downloader
Sub_title: translation
 

L18L wrote:

1 small issue:
messages in other languages are always longer than the english ones.
So increasing width of the GUI should be in next update


Hi L18L. Thanks for the german translation file for Pfetch. I'll collect these together in the first post of this thread.

Okay about the width. I originally designed it, as per Precord, such that it would fit on smaller computer screens of 640 width, but times have moved on so it seems reasonable to up that a bit. Still want to use as little screen real estate as possible though.

What width would people like? I don't want to go much wider than about 736 px. I'll test how that works with your german translation.

EDIT: I've uploaded the german language translation file you provided to the first post of this thread (made it into a dotpet). However, there is a mistake in it: Whilst it is fine to change the english text, you cannot change the entry box variable assignment names. So A has to be left as A, U as U, P as P and TD as TD since these are internal program variable names. You changed the TD to ZO, which will not work in the combobox commandlines. Could you kindly please upload another de translation but this time leaving TD for the entry box name?

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Fri 14 Sep 2012, 20:24    Post_subject: Pfetch 0.9.2 released
Sub_title: Principal change is wider interface
 

Pfetch 0.9.2 released

Principal change is wider interface per L18L's request.

A few under-the-hood alterations per 01micko's comment.

Functionality otherwise unchanged.

Note that if you ever accidentally delete or corrupt the config files for pfetch under $HOME, simply re-run the program and it will automatically rebuild the default config file entries in $HOME/.pfetch

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
L18L

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

PostPosted: Sat 15 Sep 2012, 13:31    Post_subject: Re: Pfetch secure web resource downloader
Sub_title: translation
 

mcewanw wrote:

EDIT: I've uploaded the german language translation file you provided to the first post of this thread (made it into a dotpet). However, there is a mistake in it: Whilst it is fine to change the english text, you cannot change the entry box variable assignment names. So A has to be left as A, U as U, P as P and TD as TD since these are internal program variable names. You changed the TD to ZO, which will not work in the combobox commandlines. Could you kindly please upload another de translation but this time leaving TD for the entry box name?

I understand: I must not translate TD
In order to generally disable translations of TD I suggest you change line 218 from
<text><label>$(gettext 'TD')</label></text>
to
<text><label>TD</label></text> Wink

Updated translation attached

Not sure how this shall work
#: pfetch.sh:280
msgid "In created .po translate helptxt msgstr to target lang"
msgstr ""
MoManager-de_DE-pfetch-0.9.2.tar.gz
Description  updated translation
gz

 Download 
Filename  MoManager-de_DE-pfetch-0.9.2.tar.gz 
Filesize  2.04 KB 
Downloaded  280 Time(s) 
Back to top
View user's profile Send_private_message 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Sun 16 Sep 2012, 01:50    Post_subject: Re: Pfetch secure web resource downloader
Sub_title: translation
 

L18L wrote:

In order to generally disable translations of TD I suggest you change line 218 from
<text><label>$(gettext 'TD')</label></text>
to
<text><label>TD</label></text> :wink:


Very true, I missed that. :-)
I should never have used gettext there. I'll fix it in next version. Meanwhile I'll upload your new translation for the existing version.

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Wed 19 Sep 2012, 06:36    Post_subject: Uploaded the fixed german translation file for Pfetch.
Sub_title: Thanks L18L.
 

Uploaded the fixed german translation file for Pfetch. Thanks L18L.

Sorry for the delay. I was busy making a major upgrade to Precord and getting it working in Slacko, Lupu, and Wary again. I have still to internationise Precord, so that is yet another long-planned project...

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Thu 27 Sep 2012, 02:52    Post_subject: Pfetch 0.9.3 released
Sub_title: Fixed help text and entry box TD for internationalisation.
 

0.9.3 Changes: Fixed help text and entry box TD for internationalisation. Download from first post of this thread.

Note that if you ever accidentally delete or corrupt the config files for pfetch under $HOME, simply re-run the program and it will automatically rebuild the default config file entries in $HOME/.pfetch

With the provided resource download list (which can be expanded by the user) it provides, as a starter, for:

Secure and also anonymous file download,
Single webpage download, as well as
full website mirroring (ctrl-C on opened console to cancel).
Fetching unread messages (headers only as it stands) from a user's Gmail account.
Fetching http headers for a webpage url.
Testing user's connection speed to a webpage url.
Finding age (last modified date) of a webpage.
Loading webpages into the user's default browser.
Searching WordNet online english dictionary for word meanings.

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1070s ][ Queries: 13 (0.0098s) ][ GZIP on ]