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 01 Sep 2014, 22:10
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
LazY FReD 2.0.0 - Free Repository Downloader
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [36 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 05 Sep 2012, 17:48    Post subject:  

Hi.

If you want to use LazY FReD in MacPup, here is the runtt21 MacPup Repository at http://macpup.org/runtt21/. Just copy the attached list to /usr/local/LazY-FReD/server_lists.

MacPup Repo of runtt21 - .pet in the right frame


RSH
runtt21.lst.gz
Description  .lst file - remove.gz
gz

 Download 
Filename  runtt21.lst.gz 
Filesize  319 Bytes 
Downloaded  379 Time(s) 

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Thu 06 Sep 2012, 11:11    Post subject:  

Uuuppsss...

AFI 1.0.2 has had a wrong link in /root/.config/rox.sourceforge.net/OpenWith/.application_x-cd-image/ - so, the frugal install on right-click doesn't work

Is now fixed and new AFI 1.0.2 PET and SFS are already uploaded (using the same version number).

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1063

PostPosted: Thu 06 Sep 2012, 14:49    Post subject:  

Hey RSH

RSH wrote:
Must have / still needed:

- access to the files of the murga forum ! ! !
(Is this possible? Any Suggestion/Idea?)


Are you still interested in that option?

The most convinient solution would be if there is (somewhere?) an index file of all forum attachments.
I was hoping someone knows something about this mysterious index and will post some info, but apparently noone knows. Laughing

In this case the only option I see is to create one.
This exemplary script should do that task, but it'll take a really long time since the first attachment ever seems to have id=100 and, for instance, your LazY-FReD.pet has id=58993.
(If anyone knows faster way than utilized by me - let us know).
Second thing - attachments aren't only .pet, .sfs, etc. there are also pictures and (this will be difficult to filter) fake extensions (mostly .gz).
The script, as it stands, doesn't filter them in any way.
Third thing - there's a lot of missing attachments.
Try to set COUNT=5500 to see several of them in a row.
Currently the script handles that manually, but it'd be more reasonable to set a given upper limit and skip the missing ones automatically.

Here's the script:

Code:
#!/bin/bash

# This script creates the index file of murga-linux forum attachments.
# BTW, to download an attachment, use (for example):
# curl -J -O "http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=100"

INDEXFILE="murga-linux_attachments_index.txt"
BASE="http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id="

clear
case "$1" in
  new)
    echo "Creating new index..."
    [ -e "$INDEXFILE" ] && rm -f $INDEXFILE
    COUNT=100
  ;;
  resume)
    echo "Resuming old index..."
    [ -e "$INDEXFILE" ] && COUNT=$((`tail -1 $INDEXFILE | cut -d " " -f1`+1))
    [ ! $COUNT ] && echo "Something's wrong with the index file, perhaps doesn't exist - check it." && exit 1
  ;;
  *)
    echo "This program creates index of murga-linux forum attachments"
    echo "and saves the file to the current directory"
    echo -e "Usage:\n$0 new - to create new index\n$0 resume - to resume old index"
    exit
  ;;
esac

echo -e "Press x to exit\n"

while true; do
  LINK="$BASE$COUNT"
  TEST=`curl -s -I $LINK | grep 'filename=' | cut -d '=' -f2 | tr -d "\r"`
  if [ ! $TEST ]; then
    echo "Attachemnt $COUNT doesn't exist or reached the last one! Skip it or break (s/b)?"
    read -sn1 KEY
    [ $KEY = "b" ] && break || echo "Skipped..."
  else
    echo $COUNT" "$TEST | tee -a $INDEXFILE
  fi
  read -s -t0.1 -n1  KEY
  [ "$KEY" = "x" ] && break
  ((COUNT++))
done
exit

Of course, you should modify it to your needs, it's just an example. Wink

Very nice tool, by the way. Congrats! Smile

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Thu 06 Sep 2012, 18:47    Post subject:  

SFR wrote:
Are you still interested in that option?

YESSSSS! Absolutely! Razz

Uuhhh.... seems to be a long term project. Surprised

I could imagine there would be a huge number of files available. Laughing

Currently running your script and looks like it needs hours to get the whole list. Shocked

But i think, it should be ok, to create the whole list once (maybe a bit sorted out), split this list into parts (let's say lists of 1000 files in each list) and then only from time to time getting the last 100 files. If any older one changes or will get lost and download fails - doesn't matter.

Maybe list of 100 files will be better - don't know, how many objects can be used in gtkdialog.

Anyway...

...thank you for the script. It will be very useful to get that feature into the LazY FReD and to make it well rounded. Very Happy

SFR wrote:
Very nice tool, by the way. Congrats!

Thanks. I think, it's the best application i ever wrote for puppy os and wherein st90's two lines back-end code could find its place ("bestens aufgehoben" - as we say in German). Laughing

Greetings

RSH

P.S.

Getting around 1000 files in about 12 minutes, so it might take somewhat around 12 hours (if i would skip every missed attachement immediately by key "s". Rolling Eyes

Oh my god...

...what did i ask for? Laughing

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Thu 06 Sep 2012, 20:18    Post subject:  

Ok, i see!

This one is the address of the database of murga-linux.com - or better say of a database entry
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=

Each entry of Database must have more information - not only attach&id
Information is shown here

Must be something like (don't know it though):
- attach&id&description
- attach&id&filename
- attach&id&filesize
- attach&id&downloaded

Must be a structure similar to a record in PASCAL and must also use id to make sure to show the correct data.

So, it would be good to know how to get this information (how the access point is really called (named) inside the record).

Also would be good to know if there is more information available f.e. like the forum, where it has been attached.
Might be something like
- attach&id&forum

If so, then it could be sorted in categories like multimedia, graphics etc.pp. That would be very nice. Very Happy

So, anyone any suggestion/idea/knowledge on that issue? Please post it!

I will post this also in the Programming forum

---

Currently 6407 files detected at http://murga-linux.com - and counting (did make comments out of the skip/break functions)

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Fri 07 Sep 2012, 11:12    Post subject:  

Ok.

Got it.
Cool

No, not the application/function ---> the index list. Laughing

Some statistical data?

Here it is
(i do use German form instead of US form (we use "." to mark 1000s)):

- Index of first file: 100
- Index of last file: 59.159

- Number of all files: 59.059

- Number of lines in index file: 43.059

- Difference: 16.000


So as a first result, we have to accept, that murga-forum has lost 16.000 attached files!

Or in other words: 27,091 % of all files are lost (US form: 27.091%)
.
I will write now a script to sort this list into different lists, each for every file type (sfs, pet, archives (excluding .gz because of the fake .gz files), images etc.pp).

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Fri 07 Sep 2012, 17:51    Post subject:  

Ok,

index list sorted out (a bit).

Here some new statistical data (can include doubles though, because f.e. files like Whippet.png are currently listed in the png-list and also in the pet-list):

pet list: 10.354 files
sfs list: 260 files
gz list: 2400 files (this list contains also the sfs.gz files and surely the fake .gz)
tar.gz list: 4868 files
tgz list: 16 files (all doubles/wrong ---> not really one .tgz file available)
zip list: 1605 files

jpg list 10.893 files
png list: 10.894 files
tif list: 70 files (one file really ---> the rest are doubles)
xpm list: 61 files

Need to refine the script and get the whole list again ---> takes hours!

---

LazY FReD Language Support - translations needed

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2510
Location: New Zealand

PostPosted: Tue 02 Oct 2012, 04:31    Post subject:  

RSH wrote:
Some statistical data?
Here it is
(i do use German form instead of US form (we use "." to mark 1000s))
Hi RSH, could you ask the Germans to change to using the "comma" to indicate the thousands please? It is too confusing to use the "point". I hope the change will be easy. Thanks Smile
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 02 Oct 2012, 15:31    Post subject:  

greengeek wrote:
Hi RSH, could you ask the Germans to change to using the "comma" to indicate the thousands please? It is too confusing to use the "point". I hope the change will be easy. Thanks

Do you mean to change it generally in our (the Germans) posts or somewhere inside LazY FReD? I'm not sure, what you mean.

Thanks.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2510
Location: New Zealand

PostPosted: Tue 02 Oct 2012, 16:44    Post subject:  

Sorry - I meant the whole of Germany. It seems like you use the comma where we use the point and vice versa - Also you drive on the wrong side of the road... (I'm just joking of course...no offense intended...) Smile
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 2417
Location: France

PostPosted: Sun 25 Nov 2012, 11:19    Post subject:  

To permit French users to better understand Lazy-Fred, I opened a discussion on the forum fr.
cf. http://www.murga-linux.com/puppy/viewtopic.php?p=666971#666971
Back to top
View user's profile Send private message Visit poster's website 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 26 Dec 2012, 11:10    Post subject:  

Version 1.0.2-2 uploaded. Link and Info at first post.
_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 2417
Location: France

PostPosted: Thu 27 Dec 2012, 13:43    Post subject:  

RSH wrote:
Version 1.0.2-2 uploaded. Link and Info at first post.

Merci RSH.
Back to top
View user's profile Send private message Visit poster's website 
ASRI éducation


Joined: 09 May 2009
Posts: 2417
Location: France

PostPosted: Mon 31 Dec 2012, 12:54    Post subject:  

Sorry for my weak English, I'm French and I use an online translator.

I appreciate the application Lazyred and I believe that this utility could soon be present in the majority of puplets.
In the meantime, I would modestly suggest some changes / developments ...

1 - With small screens (800x600), it is difficult to use because LazyFred GUI is too broad. Ideally, we should reorganize the interface to reduce the space needed when viewing the screen. This makes me think that Ziggy had done with the PPM Puppy.

2 - Users often struggle to understand how to use the application, in particular the update servers (and display of available packages). Is it possible to improve this? Not easy, because it involves automating the update of the display when changing server, I do not know but I'm a novice GTK.

In all cases, LazyFred is a great idea!

Thank you HSN.
Back to top
View user's profile Send private message Visit poster's website 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Thu 03 Jan 2013, 13:58    Post subject:  

ASRI éducation wrote:
Sorry for my weak English, I'm French and I use an online translator.

I appreciate the application Lazyred and I believe that this utility could soon be present in the majority of puplets.
In the meantime, I would modestly suggest some changes / developments ...

1 - With small screens (800x600), it is difficult to use because LazyFred GUI is too broad. Ideally, we should reorganize the interface to reduce the space needed when viewing the screen. This makes me think that Ziggy had done with the PPM Puppy.

2 - Users often struggle to understand how to use the application, in particular the update servers (and display of available packages). Is it possible to improve this? Not easy, because it involves automating the update of the display when changing server, I do not know but I'm a novice GTK.

In all cases, LazyFred is a great idea!

Thank you HSN.

Hello, ASRI éducation.

I'm sorry, bu I've now worked for about 16 Months almost every day several hours and sometimes up to 40 hours in a row on LazY Puppy and all "my" applications on the forum. I think, I need a break. I have to take a break.

A long term break from coding, working on the forum and also working on LazY Puppy. This might take a few months where I have to do different stuff from puppy - except: I want to use LazY Puppy, finally, within these break from coding etc.

So, we will see, when I'm back.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [36 Posts]   Goto page: Previous 1, 2, 3 Next
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.1014s ][ Queries: 13 (0.0057s) ][ GZIP on ]