You are not logged in.

#1 2011-03-25 21:10:45

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Reflector reborn

Info page: http://xyne.archlinux.ca/projects/reflector/

Following the deprecation of perl-xyne-arch, I have rewritten reflector in Python 3. Some of the options have changed so read through "reflector --help" and update any scripts that rely on it.

Please test it and report any bugs. Feel free to make suggestions for changes and features too.



Given that this is a complete rewrite, I have only pushed it to my repo for now. I'll move it back to [community] in a few days if all goes well.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2011-03-25 21:13:24

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Reflector reborn

That was fast !!

I was thinking it would be a while for you to get the new apps together, since you RIP threads mentioned 

Xyne wrote:

.......progressing very slowly....

But hey, I'll take it !


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-03-25 21:13:50

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Reflector reborn

I think I owe you a beer or two big_smile


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#4 2011-03-25 21:17:00

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Reflector reborn

I saw this update appear just an hour ago when updating. And there was much rejoicing smile


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2011-03-25 21:26:29

tazmanian
Member
Registered: 2009-10-25
Posts: 39

Re: Reflector reborn

Awesome!  You have no idea how happy this makes me!  Time to reinstate reflector to weekly crond status!  Thanks, xyne!  big_smile

Offline

#6 2011-03-25 21:28:57

mundane
Banned
Registered: 2011-03-23
Posts: 49

Re: Reflector reborn

Well that was a hilariously fast turn around tongue

Offline

#7 2011-03-25 21:41:26

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Reflector reborn

Inxsible wrote:

That was fast !!

I was thinking it would be a while for you to get the new apps together, since you RIP threads mentioned 

Xyne wrote:

.......progressing very slowly....

But hey, I'll take it !


That really refers to the larger project that I have in mind. There's just so much to do for it and it really will need several intensive coding sessions because it's not the kind of thing that I can just pick up and work on for a few hours now and then. Reflector, on the contrary, is simple and easy to bang out in one session.

It's one of those "you'll understand when you see it" things, but there's a chance that I will never get it done, which is why I've been reluctant to even mention it before... the curse of vaporware looms nigh.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2011-03-25 21:49:01

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Reflector reborn

Xyne wrote:
Inxsible wrote:

That was fast !!

I was thinking it would be a while for you to get the new apps together, since you RIP threads mentioned 

Xyne wrote:

.......progressing very slowly....

But hey, I'll take it !


That really refers to the larger project that I have in mind. There's just so much to do for it and it really will need several intensive coding sessions because it's not the kind of thing that I can just pick up and work on for a few hours now and then. Reflector, on the contrary, is simple and easy to bang out in one session.

It's one of those "you'll understand when you see it" things, but there's a chance that I will never get it done, which is why I've been reluctant to even mention it before... the curse of vaporware looms nigh.

And hundreds of vapor-chasing users will jump on Xyne's every post as a result smile


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#9 2011-03-26 00:25:02

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: Reflector reborn

That is awesome news big_smile. Thanks xyne smile

Last edited by ilusi0n (2011-03-26 00:29:34)

Offline

#10 2011-03-26 04:56:33

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Reflector reborn

This is very good news however I wish it didn't need to be python3.

Offline

#11 2011-03-26 06:20:51

mrman
Member
Registered: 2010-02-05
Posts: 26

Re: Reflector reborn

If you are feeling up to giving PkgD the same attention as reflector I promise not to stand in the way.

Edit: I see you have mentioned using quickserve as a replacement for PkgD from your post history.

Also I get the following error when running reflector.

Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
ImportError: No module named Reflector

Last edited by mrman (2011-03-26 07:21:34)

Offline

#12 2011-03-26 07:29:06

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Reflector reborn

mrman wrote:

If you are feeling up to giving PkgD the same attention as reflector I promise not to stand in the way.

Edit: I see you have mentioned using quickserve as a replacement for PkgD from your post history.

Also I get the following error when running reflector.

Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
ImportError: No module named Reflector
$ pacman -Ql reflector 
reflector /usr/
reflector /usr/bin/
reflector /usr/bin/reflector
$ cat =reflector
#!/usr/bin/env python3

import Reflector

Reflector.main()

Xyne broke my reflector PKGBUILD!! =]

EDIT: Ohhh, I forgot to say "thanks Xyne for the work!", but Xyne got so much 'thanks' that I don't think that matter... I come too late... Xyne, can you drop something more, please? tongue

Last edited by kazuo (2011-03-26 07:33:42)

Offline

#13 2011-03-26 07:43:29

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Reflector reborn

I wish I could download faster. You are the key and thanks for your great works
Specially this time, very prompt smile


do it good first, it will be faster than do it twice the saint wink

Offline

#14 2011-03-26 11:33:45

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Reflector reborn

mrman wrote:
Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
ImportError: No module named Reflector

fixed



anonymous_user wrote:

This is very good news however I wish it didn't need to be python3.

I've added a patch to the source archive that can convert it to Python 2. I won't be actively maintaining a Python 2 package, but I have included a section in the PKGBUILD that you can easily uncomment to create a package. How you deal with updates etc will be up to you.

Follow the pkgbuild link on the project page to get the latest PKGBUILD.

Last edited by Xyne (2011-03-26 11:34:39)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#15 2011-03-28 11:11:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Reflector reborn

Is

reflector -l 5 -f 5 --save foo

same as

reflector -l 5 --sort rate --save foo

?

Last edited by karol (2011-03-28 11:13:08)

Offline

#16 2011-03-29 18:07:33

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Reflector reborn

@karol
For now they are, but the filter order may change in the future.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#17 2011-04-04 03:46:59

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Reflector reborn

Reflector is now back in [community]. big_smile


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#18 2011-04-04 04:12:19

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Reflector reborn

Thank you for your work.

Last edited by the sad clown (2011-04-04 04:12:38)


I laugh, yet the joke is on me

Offline

#19 2011-09-07 08:34:36

655321
Member
From: Costa Rica
Registered: 2009-12-08
Posts: 412
Website

Re: Reflector reborn

awesome, just checked this and tried it and I love it, more speed is always welcome big_smile

its really nice how things can get a lot faster just by using the correct mirrors, and its easy with your tool big_smile


Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff

Offline

#20 2011-09-27 10:34:03

sausageandeggs
Member
Registered: 2009-12-05
Posts: 66

Re: Reflector reborn

Hi all, does anyone know of a way to run reflector through a proxy, I've tried setting the *tp_proxy env variables but that doesn't work.

Offline

#21 2011-09-27 11:11:11

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: Reflector reborn

sausageandeggs wrote:

Hi all, does anyone know of a way to run reflector through a proxy, I've tried setting the *tp_proxy env variables but that doesn't work.

Use tsock or aur/proxychains


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#22 2011-09-27 12:42:21

sausageandeggs
Member
Registered: 2009-12-05
Posts: 66

Re: Reflector reborn

Aha! Easy when you know how!! Thanks man.

Offline

#23 2011-10-29 19:32:55

npouillard
Member
Registered: 2011-10-29
Posts: 2

Re: Reflector reborn

Nice script, thanks Xyne.

What about putting the command used to generate the file in the generated file?

Offline

#24 2011-11-06 07:58:46

ddffnn
Member
Registered: 2009-10-22
Posts: 5

Re: Reflector reborn

Hey Xyne, great work. In my quest to saturate my cable modem during updates, I noticed the mirror score column at https://www.archlinux.org/mirrors/status/. I thought it would be nice to be able to sort reflector results by that instead of date. After adding 4 lines to the Reflector.py, I got it working (--sort score). I'm not familiar with how to make patches or anything, but because it's such a simple change I didn't think you would really need one anyway. Any chance you could do something similar?

Offline

#25 2011-11-13 02:01:12

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Reflector reborn

Stupid question: how are people using reflector?  In a cron entry like:

reflector -c "United States" -a 1 -f 6 --sort rate --save /etc/pacman.d/mirrorlist

Then followed-up with a

pacman -Syyu

?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB