[Cloud] Re: zsh is slow on login.toolforge.net

2024-04-27 Thread Huji Lee
nen wrote: > > On Wed, Apr 24, 2024 at 4:27 AM Huji Lee wrote: > > > Today, when I tried to log into login.toolforge.net after about a > couple weeks of not having logged in, I got an error about the fingerprint > for the server having changed. Did we upgrade servers? > > &

[Cloud] zsh is slow on login.toolforge.net

2024-04-23 Thread Huji Lee
Hi, Today, when I tried to log into login.toolforge.net after about a couple weeks of not having logged in, I got an error about the fingerprint for the server having changed. Did we upgrade servers? Anyway, I updated my known_hosts file and was able to login but then I noticed that opening zsh

[pywikibot] Re: How to list contributions of an IP range?

2024-04-11 Thread Huji Lee
Currently, not possible. I created T362377 and I also explained what I think the solution should look like, in the first comment. On Thu, Apr 11, 2024 at 2:45 AM Bináris wrote: > > anon = '89.134.24.79/16' > user = pywikibot.User(site, anon) > for

[pywikibot] Re: Flagged revisions

2024-02-03 Thread Huji Lee
If you could check which wiki on beta cluster has Flagged Revs enabled and write some unit tests for the code, we could bring it to Pywikibot core. On Sat, Feb 3, 2024 at 2:50 PM Bináris wrote: > As part of the huwiki package, I wrote some methods dealing with flagged > revisions that work in

[Cloud] Re: Changes in schema of pagelinks tables

2024-01-20 Thread Huji Lee
Yes, a communication would be great (including, on this thread). As it stands right now, the linktargets table is incomplete on the wikis I checked. For instance, this fawiki query returns 388 results but the equivalent query

[Cloud] Re: [Cloud-announce] Call for Quarry maintainers

2023-10-03 Thread Huji Lee
That is sad, Vivian. I love Quarry. But then again, at this point, is there any feature that Quarry offers which Superset doesn't? Maybe this is a natural time for Quarry to be sunset? On Tue, Oct 3, 2023 at 4:59 PM Vivian Rook wrote: > Hello, I'm writing to notify any interested party that I

[Cloud] Re: Admin Samyar

2023-06-15 Thread Huji Lee
Thank you for this message. However, this listserv is not a place to send an article to. You may want to consider editing the Persian Wikipedia instead. (Persian translation below) به فارسی: از پیام شما ممنونیم. اما این فهرست ایمیلی، مکانی برای ارسال مقاله‌ها نیست. ممکن است بخواهید که در

[Cloud] Re: [Cloud-announce] [IMPORTANT] Announcing Toolforge Debian Stretch Grid Engine deprecation

2022-03-10 Thread Huji Lee
I too use bash files (see https://github.com/PersianWikipedia/fawikibot/tree/master/HujiBot/grid/jobs) and am planning to move them from grid to k8s in the next few weeks. I have found the process well-documented and am hoping for the transition to be easy, like Amir said. Since at least two

[pywikibot] Re: New Pywikibot 7 stable release

2022-02-12 Thread Huji Lee
This is great! Thank you for all the hard work. On Sat, Feb 12, 2022 at 7:34 AM wrote: > > Hi all, > > a new stable release Pywikibot 7 will be deployed at the end of this month. > There are a lot important points with this release, currently implemented > in > master branch: > > > Python

[pywikibot] Re: pywikibot vs mwclient?

2022-02-06 Thread Huji Lee
For one thing, pywikibot also comes with a collection of applications (such as replace.py for quickly replacing text across pages, etc.) as well as helpers (e.g. a series of pagegenerators that make it easy for you to get a list of pages to work on). For another, myclient is not as actively

[Cloud] Re: Mounting Toolforge on local Linux machine

2021-12-28 Thread Huji Lee
The missing parameter was -o allow_other I documented this at https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Tool_Accounts#Mount_your_tools_home_directory_onto_your_local_machine On Sun, Dec 26, 2021 at 8:49 AM Huji Lee wrote: > Something like that, except I am pretty sure I had to

[Cloud] Re: Mounting Toolforge on local Linux machine

2021-12-26 Thread Huji Lee
permutations and once I find it, I will certainly put it on the Wikitech wiki. On Sun, Dec 26, 2021 at 1:32 AM YiFei Zhu wrote: > This? > > $ sshfs login.toolforge.org:/data/project/toolname /path/to/mountpoint > > YiFei Zhu > > On Sat, Dec 25, 2021 at 6:39 PM Huji Lee wrote: >

[Cloud] Mounting Toolforge on local Linux machine

2021-12-25 Thread Huji Lee
Hi all, I had previously found a way to mount the home directory of my tool on Toolforge onto my local Linux machine using a *mount* command. It was so handy that I turned it into a bash alias and used it on the daily. Sadly, due to a hardware malfunction, I lost my machine and my .bash_aliases

[Cloud] Re: Source command not working with zsh

2021-12-02 Thread Huji Lee
2021 at 6:38 PM Huji Lee wrote: > > > > > > I went back and reactivated the line in .bash_profile which enabled > zsh ("exec zsh" as the last line of .bash_profile) > > > > > > Then I submitted the job to the grid, using a command like this: &g

[Cloud] Re: Source command not working with zsh

2021-11-16 Thread Huji Lee
PM Roy Smith wrote: > Submit a job that does: > > ls -l /usr/bin/zsh > > > and see what it says. > > > On Nov 16, 2021, at 9:37 PM, Huji Lee wrote: > > Is it really that zsh is not available on the grid, and the grid tries to > replicate my environment first and

[Cloud] Re: Source command not working with zsh

2021-11-16 Thread Huji Lee
am still curious as to the root cause. Is it really that zsh is not available on the grid, and the grid tries to replicate my environment first and reaches the "exec zsh" command and falls apart somehow? On Sun, Nov 14, 2021 at 10:54 AM Huji Lee wrote: > Again, good a

[Cloud] Re: Source command not working with zsh

2021-11-14 Thread Huji Lee
Again, good advice by both of you! Let me explore more and get back with any potential questions. On Sun, Nov 14, 2021 at 9:24 AM Roy Smith wrote: > This is really good advice. Any time you've got a process being run by > some tool on your behalf (cron, initd, remote job execution, etc),

[pywikibot] Re: Deprecation policy?

2021-11-13 Thread Huji Lee
Hi Strainu, Thanks for bringing this up. And sorry to hear that many have had negative experiences with recent removals of deprecated code (though I had nothing to do with it). The Pywikibot project is barely maintained; a small community of interested folks are pushing it forward, and most code

[Cloud] Re: Source command not working with zsh

2021-11-12 Thread Huji Lee
I had the chance to try out these options. *YiFei *was right in that the scripts, when invoked by crontab after zsh was activated, were being invoked by sh and that was why the *source* command was not working. Using . (dot) would resolve the issue on command line, but I cannot tell jsub to use

[Cloud] Re: Source command not working with zsh

2021-11-12 Thread Huji Lee
n truly bizarre cases, there might be some permission problem, which you > can solve with: > > touch /tmp/this-is-my-environment > chmod 0666 /tmp/this-is-my-environment > > > On Nov 12, 2021, at 10:21 AM, YiFei Zhu wrote: > > On Thu, Nov 11, 2021 at 3:57 PM Huji Lee wrot

[Cloud] Re: Source command not working with zsh

2021-11-11 Thread Huji Lee
on why it shouldn't work, but > > > On Nov 11, 2021, at 7:44 PM, Huji Lee wrote: > > And also about the proper way to change the shell for tools accounts. > > > ___ > Cloud mailing list -- cloud@lists.wikimedia.org

[Cloud] Re: Python upgrade on the Toolforge

2021-09-28 Thread Huji Lee
before, > it's a reasonable way to go, but it's not for everybody. > > Of course, at this point, even 3.7 is pretty old. At some point, I'll > probably break down and build 3.9. I really want the better f-strings that > came out in 3.8. > > > > On Sep 26, 2021, at 9:43 PM, Hu

[Cloud] Python upgrade on the Toolforge

2021-09-26 Thread Huji Lee
Hi all, When I run python3 --version on Toolforge I see version 3.5.3 is installed. Because python 3.5 reached the end of its life in September 2020, pip is really unhappy about that. Is there a way to use a later version of python3 on Toolforge? If not, are there plans to upgrade the OS and

[pywikibot] Re: Code reviews stuck

2021-08-15 Thread Huji Lee
Code review has been less than optimal for the pywikibot project, to say it lightly. But I will try to take a look at some of these in the next few days. On Sun, Aug 15, 2021 at 7:07 PM Damian Johnson wrote: > Hi all! I apologize for being a naggy poo-poo pants but does anyone > have time to

[Cloud] Re: Porting the output of qstat to a web page

2021-05-12 Thread Huji Lee
That explains it! Thanks! On Tue, May 11, 2021 at 10:29 PM YiFei Zhu wrote: > On Tue, May 11, 2021 at 8:45 PM Huji Lee wrote: > > > > @Bryan: this is great! In fact, https://sge-jobs.toolforge.org/tool/huji > completely serves my current needs. I added the link

[Cloud] Re: Porting the output of qstat to a web page

2021-05-11 Thread Huji Lee
an XML as expected. Any ideas as to how that could be the case? On Tue, May 11, 2021 at 6:18 PM Bryan Davis wrote: > On Tue, May 11, 2021 at 2:16 PM Huji Lee wrote: > > > > Hi, > > > > Some of the jobs I submit to the grid take a long time (say, 30-60 > minutes) and I

[Cloud] Porting the output of qstat to a web page

2021-05-11 Thread Huji Lee
Hi, Some of the jobs I submit to the grid take a long time (say, 30-60 minutes) and I would like to check on their status without having to log back into the labs. I was hoping I could run shell_exec('qstat') in PHP and display its output on a web page. While shell_exec() works with other

Re: [pywikibot] Thank you Xqt

2021-05-08 Thread Huji Lee
Congrats! PS: Don't ever leave us! On Sat, May 8, 2021 at 11:17 AM Bináris wrote: > Ooohyeee! Congratulations and big, big, big thank you! > > And also thanks to Legotkm for noticing it. > ___ > pywikibot mailing list > pywikibot@lists.wikimedia.org >

Re: [Cloud] Wiki replicas: Compilation of input and logged cross-DB queries

2021-04-27 Thread Huji Lee
Hi, Joaquin! I was looking at the page the other day. I agree with your summary above, except I would add one more prominent case which somehow did not appear in the random query analysis but I think is critical: - Querying CentralAuth and another DB An example is this query

[Cloud] IP WHOIS tool on Cloud

2021-04-20 Thread Huji Lee
Hi all, I opened https://phabricator.wikimedia.org/T280726 moments ago. It was un-assigned from the Cloud-Services tag but I think it is critical for our Clouds gurus to see it and opine on it. This is just an FYI email. I recommend that we keep the discussion on the Phab ticket as much as

Re: [Cloud] [Cloud-announce] Wikireplicas: old cluster migrations start in 2 weeks. Please test your code with the new cluster

2021-04-06 Thread Huji Lee
Using the _p at .labsdb created a simple >> uniform way to connect without having to keep track of what database moved >> to which slice (when that was added mid size wikis were being moved >> regularrly >> >> On Tue, Apr 6, 2021 at 3:11 PM Brooke Storm wrote: >>

Re: [Cloud] [Cloud-announce] Wikireplicas: old cluster migrations start in 2 weeks. Please test your code with the new cluster

2021-04-06 Thread Huji Lee
Pardon my potentially dumb question, but how do the shorter DB names get resolved? I have python code that looks like this: *conn = mysqldb.connect(host="enwiki.labsdb", db="enwiki_p", read_default_file="~/replica.my.cnf")* How does *enwiki.labsdb* get resolved to, I am assuming,

Re: [Cloud] [Cloud-announce] New Wikireplicas available, timeline update, and Quarry migration

2021-03-31 Thread Huji Lee
o support us with the > little resources they have. Your frustrations are perfectly valid though. > This is a very frustrating situation. > > On Wed, Mar 31, 2021 at 7:01 AM Huji Lee wrote: > >> I said it before, and I say it again: *some* databases should be >> available for

Re: [Cloud] [Cloud-announce] New Wikireplicas available, timeline update, and Quarry migration

2021-03-31 Thread Huji Lee
I said it before, and I say it again: *some* databases should be available for cross-wiki JOIN everywhere. This would at least include commons_p and centralauth_p but perhaps also enwiki_p and meta_p I know that we discussed it before and better long-term solutions can be imagined (such as a data

Re: [Cloud] [Cloud-announce] Wiki Replicas 2020 Redesign

2020-11-16 Thread Huji Lee
them would look like. If you have looked > at this and done changes to your queries and code it would be super helpful > if you can point me to the repo/code to show real examples in the > documentation. > > If you can share real use cases of your use cases like Huji Lee and > MusikAnimal, it

Re: [Cloud] [Cloud-announce] Wiki Replicas 2020 Redesign

2020-11-14 Thread Huji Lee
I like the idea of dumps as an alternative too. But I think this should be a service that is offered via the WM Clouds. Some might remember me asking related questions on this very mailing list several months ago. Having a DB called "latest_dump" which actually has the latest dump of all wikis

Re: [Cloud] [Cloud-announce] Wiki Replicas 2020 Redesign

2020-11-11 Thread Huji Lee
One some level, the real issue here is that different wikis are living on different slices (s1, s2, s3). One possible solution is to replicate "shared" wikis (Wikidata and Commons) and possibly a few other "mother" wikis (at least En WP) into *every* slice. The uses cases that need to join

Re: [Cloud-announce] [Cloud] Fwd: Phasing out the .wmflabs tld on September 8th

2020-09-07 Thread Huji Lee
This is also a good time remind everyone to update their ProxyJump configuration [1] to include the new TLDs. At least I would have forgotten it if I had not seen this remidner. [1] https://wikitech.wikimedia.org/wiki/Help:Accessing_Cloud_VPS_instances#ProxyJump_(recommended) On Mon, Sep 7,

Re: [Cloud] [Cloud-announce] Fwd: Phasing out the .wmflabs tld on September 8th

2020-09-07 Thread Huji Lee
This is also a good time remind everyone to update their ProxyJump configuration [1] to include the new TLDs. At least I would have forgotten it if I had not seen this remidner. [1] https://wikitech.wikimedia.org/wiki/Help:Accessing_Cloud_VPS_instances#ProxyJump_(recommended) On Mon, Sep 7,

Re: [pywikibot] Fwd: [Wikitech-l] Moving from Gerrit to GitLab

2020-07-29 Thread Huji Lee
nning (and wrote a > manual for it). Thanks to Merlijn who gave me the crucial hint there. > > For the new place I fear the main problems would be the CI setup and I > think we would need support for it. > > Best > xqt > > Am 09.07.2020 um 23:14 schrieb Huji Lee : > >  &g

Re: [pywikibot] Fwd: [Wikitech-l] Moving from Gerrit to GitLab

2020-07-09 Thread Huji Lee
I think that is a great idea. If Xqt could do that, it would be awesome. On Thu, Jul 9, 2020 at 4:20 PM Kunal Mehta wrote: > On 2020-07-04 04:27, Maarten Dammers wrote: > > Of interest to us too. Someone in some WMF backroom has decided that > > we're switching from Gerrit to Gitlab. I'm no big

Re: [Cloud] User tables

2020-05-10 Thread Huji Lee
May 8, 2020 at 5:07 PM Martin Urbanec wrote: > Hmm, does create temporary table work? If not, can it? > > Martin > > On Fri, May 8, 2020, 11:04 PM Huji Lee wrote: > >> I was thinking of running a query, temporarily store its output on >> ToolsDB. Join it with some o

Re: [Cloud] User tables

2020-05-09 Thread Huji Lee
Super informative! Thank you Bryan and Jaime. I will take a look at that task and see if I can be of any help. On Sat, May 9, 2020 at 1:38 AM Jaime Crespo wrote: > One clarification, > > While everything Bryan says is right, I have to say that the main factor > in not allowing writes on

Re: [Cloud] User tables

2020-05-08 Thread Huji Lee
was trying to understand my options. On Fri, May 8, 2020 at 5:07 PM Martin Urbanec wrote: > Hmm, does create temporary table work? If not, can it? > > Martin > > On Fri, May 8, 2020, 11:04 PM Huji Lee wrote: > >> I was thinking of running a query, temporarily store its ou

Re: [Cloud] User tables

2020-05-08 Thread Huji Lee
> SRE > Wikimedia Cloud servicesbst...@wikimedia.org > IRC: bstorm_ > > On 5/8/20 12:31 PM, Huji Lee wrote: > > Hi all, > Is it possible to store data into user tables through queries on > Wikireplica DBs? Or is it only possible by mysqldump'ing from the replica > DB a

[Cloud] User tables

2020-05-08 Thread Huji Lee
Hi all, Is it possible to store data into user tables through queries on Wikireplica DBs? Or is it only possible by mysqldump'ing from the replica DB and loading into the user table in a separate step? I am thinking of aggregate data. Thanks! ___

Re: [Cloud] Loading wikipedia dump onto Clouds

2020-05-04 Thread Huji Lee
Huji Lee wrote: > I completely appreciate the points you are making, Bryan and Jaime. And I > would very much enjoy "dealing with you" if we end up going to "Cloud VPS > project" route! If anything, I keep learning new things from you all. > > Let's start wher

Re: [Cloud] Toolforge: new domain toolforge.org

2020-04-16 Thread Huji Lee
referenced through JS. On Thu, Apr 16, 2020 at 4:55 PM Huji Lee wrote: > Quick question: what does it take for a JS script to be allowed to > interact with a toolforge tool? > > When I run something like this, I get a Cross-Origin Request Blocked error > in the console: > > &

Re: [Cloud] Toolforge: new domain toolforge.org

2020-04-16 Thread Huji Lee
Quick question: what does it take for a JS script to be allowed to interact with a toolforge tool? When I run something like this, I get a Cross-Origin Request Blocked error in the console: On Tue, Apr 14, 2020 at 6:40 AM billinghurst wrote: > Checking our interwiki map, we have the

Re: [Cloud] Loading wikipedia dump onto Clouds

2020-04-14 Thread Huji Lee
b tickets on which I will seek advice about how to optimize those super-slow queries (if at all possible). Thank you for your attention! On Tue, Apr 14, 2020 at 8:49 AM Huji Lee wrote: > Yes. If you go to the source of all those pages, there is a hidden HTML > element ( kind) that has the SQL code

Re: [Cloud] Loading wikipedia dump onto Clouds

2020-04-14 Thread Huji Lee
> > ~ MA > > [0] > https://wikitech.wikimedia.org/wiki/News/Actor_storage_changes_on_the_Wiki_Replicas#Advanced_use_cases_of_specialized_views > > On Mon, Apr 13, 2020 at 5:03 PM Huji Lee wrote: > >> I understand. However, I think that the use case we are looking at is &g

Re: [Cloud] Loading wikipedia dump onto Clouds

2020-04-13 Thread Huji Lee
now) would be a reasonable starting point, no? On Mon, Apr 13, 2020 at 4:42 PM Bryan Davis wrote: > On Sun, Apr 12, 2020 at 7:48 AM Huji Lee wrote: > > > > One possible solution is to create a script which is scheduled to run > once a month; the script would download the latest du

Re: [Cloud] Toolforge: new domain toolforge.org

2020-04-13 Thread Huji Lee
13, 2020 at 11:52 AM Huji Lee wrote: > Thanks for sharing the news! > When I log into login.toolforge.org the login message that is shown still > references the old domain name. Can we update that too? > > On Mon, Apr 13, 2020 at 7:25 AM Arturo Borrero Gonzalez < > aborr...

Re: [Cloud] Toolforge: new domain toolforge.org

2020-04-13 Thread Huji Lee
Thanks for sharing the news! When I log into login.toolforge.org the login message that is shown still references the old domain name. Can we update that too? On Mon, Apr 13, 2020 at 7:25 AM Arturo Borrero Gonzalez < aborr...@wikimedia.org> wrote: > Hi! > > We are happy to announce the new

[Cloud] Loading wikipedia dump onto Clouds

2020-04-12 Thread Huji Lee
Hi all, We have a set of database reports (on users, articles, etc.) that we used to generate on a weekly basis.[1] Ever since the introduction of the *actor* table,[2] many of the reports that have to do with users have become so slow that the SQL query cannot finish within a reasonable time and

[Cloud] Can this query be optimized further?

2020-04-12 Thread Huji Lee
I have a query that tries to find pages in article namespace that contain a link to some page in the user/user talk namespace. Many of these result from users signing in the articles (which is obviously not appropriate). The query also tries to exclude pages that have a legitimate link to user

Re: [Wikitech-ambassadors] Helping readers find relevant articles about COVID-19 - share and ask

2020-03-18 Thread Huji Lee
Yes, I meant the second one. This graph shows it better: https://commons.wikimedia.org/wiki/File:Page_views_when_articles_go_on_fawiki_home_page.png Huji On Wed, Mar 18, 2020 at 3:11 AM Kaartic Sivaraam < kaarticsivaraam91...@gmail.com> wrote: > Hi Huji, > > On Wed, 18 Mar 2020

Re: [Wikitech-ambassadors] Helping readers find relevant articles about COVID-19 - share and ask

2020-03-17 Thread Huji Lee
In reading my quickly typed up email, I see I made several typos! If anything is unclear I am happy to explain. Sorry; I guess relying on spell checkers is not enough for me :) On Tue, Mar 17, 2020 at 8:05 PM Huji Lee wrote: > At fawiki, this was brought up multiple times. I th

Re: [Wikitech-ambassadors] Helping readers find relevant articles about COVID-19 - share and ask

2020-03-17 Thread Huji Lee
At fawiki, this was brought up multiple times. I think there is interest in incorporating it into the "In The News" section (although we have not all the articles that enwiki has in that section. The idea of a site notice that would appear on all pages was mentioned but some (including myself) are

Re: [Wikitech-ambassadors] Lua script that needs to look up a big table (phonetic guide automation)

2020-03-15 Thread Huji Lee
The additional information you provided was helpful. I still think the best approach is to have an extension that returns the Jyutping value for the article title. Let's say that extension introduces a new magic word called {{TITLEINJYUPTING}}. That way you can add

Re: [Wikitech-ambassadors] Lua script that needs to look up a big table (phonetic guide automation)

2020-03-15 Thread Huji Lee
Deryck, I am not sure what you mean by "re-sort" articles, but if what you means is that categories should be sorted differently, then I don't think Lua is the answer, and it would need to be handled on the back end. In general, also, I think that for a problem like yours, Lua is not the right

Re: [MediaWiki-l] Javascript Issues in MW 1.31.1

2020-03-12 Thread Huji Lee
Hi Lori, is this wiki accessible to the public? Can we see the said Common.js page? On Thu, Mar 12, 2020 at 9:43 AM Rowe (US), Dolores A < dolores.a.r...@boeing.com> wrote: > Dear Wiki Colleagues, > > We recently converted from MediaWiki 1.26.2 to MediaWiki 1.31.1, and we > are having troubles

[pywikibot] Deprecating sysopnames

2019-09-07 Thread Huji Lee
Dear pywikibot users, Please be advised that "sysopnames" is now deprecated. For all actions that rely on a sysop account (such as deletion or protection), the code now checks the rights of the bot user (as defined by the "usernames" array) and if that user has the necessary right to perform the

Re: [Cloud] SQL Question

2019-08-14 Thread Huji Lee
Amazing! It did not occur to me that I should try it outside of Quarry (I just love and trust Quarry so much ... ;) Thank you all for your help. I am going to move this to Phabricator as a task for Quarry. On Wed, Aug 14, 2019 at 9:30 AM Brad Jorsch (Anomie) wrote: > On Wed, Aug 14, 2019 at

Re: [Cloud] SQL Question

2019-08-13 Thread Huji Lee
u down > > On Tue, Aug 13, 2019 at 7:46 PM Huji Lee wrote: > >> Certainly doable! But I didn't ask this here because of not having a way >> to achieve my goal; I asked it because I am perplexed as to why the query >> never finishes, despite its relatively simple structure a

Re: [Cloud] SQL Question

2019-08-13 Thread Huji Lee
Certainly doable! But I didn't ask this here because of not having a way to achieve my goal; I asked it because I am perplexed as to why the query never finishes, despite its relatively simple structure and row number of rows returned. On Tue, Aug 13, 2019 at 7:43 PM Platonides wrote: > Why not

[Cloud] SQL Question

2019-08-07 Thread Huji Lee
I have a question for the MySQL/MariaDB experts. *Short and sweet* How is that Query 1 runs in seconds and so does Query 2 , but Query 3 -- which is essentially the same

Re: [Cloud] Issue with pip

2019-07-31 Thread Huji Lee
pip install git+https://github.com/Huji/cidr-trie.git See < > https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support > for > details. > Chico Venancio > > > Em qua, 31 de jul de 2019 às 11:03, Bryan Davis > escreveu: > >> On Tue, Jul 30, 2019

Re: [Cloud] Issue with pip

2019-07-30 Thread Huji Lee
Indeed, I modified the module on my venv and now it works fine. But if there is a better way, I am still eager to know. Thanks! Huji On Tue, Jul 30, 2019 at 9:30 PM Huji Lee wrote: > Good catch! It seems like we have 3.5.3 on Toolforge. Being a light user > of pip, I have no clue how to

Re: [Cloud] Issue with pip

2019-07-30 Thread Huji Lee
res python 3.6 or greater. You > can check what python is available in Toolforge and use a suitable version > for your environment or change the module to be compatible with earlier > versions. > > Cheers, > > Chico Venancio > > Em ter, 30 de jul de 2019 21:55, Huji Lee esc

[Cloud] Issue with pip

2019-07-30 Thread Huji Lee
Hi all, I am trying to run a pywikibot script on the Cloud servers. Please find the script at [1]. The script depends on a few pip packages include cidr_trie. I created a virtual environment under my tools account and installed these dependencies using "pip3 install ..." commands. When I ran the

Re: [pywikibot] Caching strategy

2019-07-12 Thread Huji Lee
nettree <https://github.com/zeek/pysubnettree>> *>*- pytricia <https://github.com/jsommers/pytricia <https://github.com/jsommers/pytricia>> *>>* Cheers, *>* Lucas *>* On 12.07.19 04:43, Huji Lee wrote: *> ___ pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot

[Cloud] Question about NOT EXISTS

2019-06-25 Thread Huji Lee
Hi all, The execution plan for this query [1] indicates that it will be entirely based on existing indexes. Yet in practice, the query takes a long time to run. Why is that? Also, interestingly, the execution plan for this modified version [2] is identical, but it runs almost instantaneously.

Re: [Cloud] Another SQL optimization request

2019-06-05 Thread Huji Lee
but one that >> obtains equal or similar results. >> >> On Wed, Jun 5, 2019 at 2:21 AM Bryan Davis wrote: >> > >> > On Tue, Jun 4, 2019 at 4:54 PM Huji Lee wrote: >> > > >> > > Hi all, >> > > >> > > I have a

Re: [Cloud] Another SQL optimization request

2019-06-04 Thread Huji Lee
All great answers; thank you! Let's wait and see what comes out of T224850. On Tue, Jun 4, 2019 at 8:21 PM Bryan Davis wrote: > On Tue, Jun 4, 2019 at 4:54 PM Huji Lee wrote: > > > > Hi all, > > > > I have a query that used to do a GROUP BY on rev_user and now I

[Cloud] Another SQL optimization request

2019-06-04 Thread Huji Lee
Hi all, I have a query that used to do a GROUP BY on rev_user and now I have migrated it to do so using rev_actor instead. The latest version looks like this and its performance is not good

Re: [Cloud] Toolforge SQL performance issue with new comment table

2019-06-03 Thread Huji Lee
It may help to put things in context and remind everyone that among the most visited websites in the world (of which, Wikipedia is #5 per Alexa [0]) the vast majority do not even use a relational database, making real-time large-scale analytic queries something that is not easily available to the

Re: [Cloud] Toolforge SQL performance issue with new comment table

2019-06-03 Thread Huji Lee
Out of curiosity, Jesse, can you share the query after that change, so it is all stored in this thread for future reference? On Sun, Jun 2, 2019 at 11:09 PM Jesse Plamondon-Willard < pathosch...@gmail.com> wrote: > Thanks! Performance is much better with that change. > > > On Sun, 2 Jun 2019 at

Re: [Cloud] Upgrade to MariaDB 10.2

2019-06-02 Thread Huji Lee
I wanted to follow-up on this question from 10 months ago and ask if there are any plans to upgrade to MariaDB 10.2 or higher Besides CTEs, another important feature added in 10.2 is the windowed functions LEAD() and LAG() On Tue, Jul 17, 2018 at 6:29 PM Huji Lee wrote: > C

[Wikitech-l] Fetching edit notices via API

2019-04-28 Thread Huji Lee
Hi all, Is there an API call that would allow you to retrieve the edit notice for a page? Huji PS: I would ask it on Discourse, except https://phabricator.wikimedia.org/T222045 ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org

Re: [Wikitech-l] OOUI: problem with button groups

2019-04-15 Thread Huji Lee
@Volker, that is a great point; I was not aware of the discourse environment, and will use that going forward. @Bartosz: thanks for the answer. In retrospect, it was an obvious error on my part. On Mon, Apr 15, 2019 at 2:58 PM Volker E. wrote: > Hi Huji, > I hope you've found your questions

Re: [Wikitech-l] Thank you Tuesday

2019-04-15 Thread Huji Lee
I want to echo Timo (Krinkle) and thank Daimona for their fantastic work on AbuseFilter. Daimona has a great attitude, is constantly thriving to learn, and has become both more detail oriented as well as big-picture focused over the last two years. These are fantastic qualities in a programmer,

[Wikitech-l] OOUI: problem with button groups

2019-04-15 Thread Huji Lee
Hello, While I am waiting for my other OOUI-related question to be answered, I want to ask a brand new one! Please see the code here: https://meta.wikimedia.org/wiki/User:Huji/OOUI2.js Once you enable this script, you will be shown a dialog with two sets of buttons. The first set has "Show

Re: [Wikitech-l] Dynamically setting the content of a LayoutPanel in OOUI

2019-04-01 Thread Huji Lee
I watched your talk, [1] which happened 3 days after this exchange, and I found it very informative! Posting here so more people can see it along with the same thread. [1] https://www.youtube.com/watch?v=T_CUN2o4faw On Sun, Mar 24, 2019 at 10:11 PM Huji Lee wrote: > Thanks a lot! The g

[Wikitech-l] OOUI: putting an IndexLayout inside a StackLayout

2019-04-01 Thread Huji Lee
Hi, I am trying to make a continuous StackLayout with three parts (top, middle and bottom), where the top panel contains an IndexLayout. My code is at https://meta.wikimedia.org/wiki/User:Huji/OOUI.js and as you can see, in the output of it the bottom and middle panels are shown "on top of" the

Re: [Wikitech-l] Dynamically setting the content of a LayoutPanel in OOUI

2019-03-24 Thread Huji Lee
I hope there aren't any bugs ;) > > Moriel > > On Sun, Mar 24, 2019 at 7:19 AM Alex Monk wrote: > > > I haven't dealt with OOUI for a couple of years but maybe you could pass > a > > jQuery object to the $content parameter, store it yourself, then modify > > th

[Wikitech-l] Dynamically setting the content of a LayoutPanel in OOUI

2019-03-24 Thread Huji Lee
In the script I am working on,[1] I have a PanelLayout that is defined like this: this.previewResult = new OO.ui.PanelLayout({ expanded: true, padded: true, framed: true, $content: '' }); Later on, I would like to modify the content of

Re: [Wikitech-l] OOUI question

2019-03-21 Thread Huji Lee
how to nest a StackLayout inside another StackLayout On Thu, Mar 21, 2019 at 10:20 PM Huji Lee wrote: > Actually, can I ask for one more thing? > > I updated the code such that when you click on that link (which now reads > as "تذکر"), it would open a dialog with a StackLayou

Re: [Wikitech-l] OOUI question

2019-03-21 Thread Huji Lee
anks again, Huji On Thu, Mar 21, 2019 at 7:41 AM Huji Lee wrote: > You are absolutely right; I really appreciate the time you took to review > the code! > Thanks, > Huji > > On Wed, Mar 20, 2019 at 11:25 PM Moriel Schottlender < > mschottlen...@wikimedia.org> wro

Re: [Wikitech-l] OOUI question

2019-03-21 Thread Huji Lee
reated the dialog, it should open it :) > > See documentation here: > https://www.mediawiki.org/wiki/OOUI/Windows/Dialogs > > I hope this helps! > > Moriel > > On Wed, Mar 20, 2019 at 7:22 PM Huji Lee wrote: > > > Hi everyone! > > > > I am pre

[Wikitech-l] OOUI question

2019-03-20 Thread Huji Lee
Hi everyone! I am pretty sure I am missing something obvious here, but I cannot spot it and I would appreciate a fresh set of eyes looking at it. The script at https://fa.wikipedia.org/wiki/User:Huji/UserMessages.js is the backbone of a OOUI-based tool. I have made quite a few of a these tools

Re: [MediaWiki-l] Help needed with CentralAuth

2018-11-15 Thread Huji Lee
018 at 4:05 PM Huji Lee wrote: > > > > Wait, are you saying that WMF uses MediaWiki-Vagrant to run the > Wikipedias > > etc? I thought they was not correct. > > No, MediaWiki-Vagrant is not used for Wikimedia's production hosting > environment. It is however the only

Re: [MediaWiki-l] Help needed with CentralAuth

2018-11-15 Thread Huji Lee
what config I had done wrong. So I think sticking to the non-Vagrant option would be also better for that reason. On Thu, Nov 15, 2018 at 5:45 PM Bryan Davis wrote: > On Thu, Nov 15, 2018 at 11:51 AM Huji Lee wrote: > > > > Ok, I will look into it. I gave it a quick try right now,

Re: [MediaWiki-l] Help needed with CentralAuth

2018-11-15 Thread Huji Lee
vagrant because it adds another level to the learning curve for me. On Thu, Nov 15, 2018 at 1:09 PM Bryan Davis wrote: > On Thu, Nov 15, 2018 at 9:38 AM Huji Lee wrote: > > > > On Thu, Nov 15, 2018 at 11:29 AM Bryan Davis > wrote: > > > > > On Thu, Nov 15

Re: [MediaWiki-l] Help needed with CentralAuth

2018-11-15 Thread Huji Lee
On Thu, Nov 15, 2018 at 11:29 AM Bryan Davis wrote: > On Thu, Nov 15, 2018 at 8:32 AM Huji Lee wrote: > > > > On Thu, Nov 15, 2018 at 10:30 AM Bryan Davis > wrote: > > > > > If you are already using VirtualBox for this project, I would > > > personally re

Re: [MediaWiki-l] Help needed with CentralAuth

2018-11-15 Thread Huji Lee
Bryan Davis wrote: > On Thu, Nov 15, 2018 at 7:03 AM Huji Lee wrote: > > > > @ Brian: what value does WMF use for $wgLoadBalancer? And what do you > > recommend I should use, given that I have only one server (a linux VM > > hosted locally on Virtual Box)? > > If

Re: [MediaWiki-l] Help needed with CentralAuth

2018-11-15 Thread Huji Lee
entralauth depends > on $wgLoadBalancer to be used for db config, and $wgConf being used at > least for $wgServer and $wgScriptPath. > > -- > brian > > On Wednesday, November 14, 2018, Huji Lee wrote: > > Admittedly, I never learned how to properly set up and configure > > Ce

[MediaWiki-l] Help needed with CentralAuth

2018-11-14 Thread Huji Lee
Admittedly, I never learned how to properly set up and configure CentralAuth. I have installed two fresh wikis, called en.localhost and meta.localhost and you can see the LocalSettings.php file that I am using at https://phabricator.wikimedia.org/P7808 What I am trying to achieve is this: when

[Bug 1798216] Re: Upgrade from 16.04 to 18.04 fails with message "Aborting"

2018-10-17 Thread Huji Lee
After reviewing main.log and some googling, I stumbled upon https://bugs.launchpad.net/ubuntu/+source/ubuntu-release- upgrader/+bug/1769184 in which it was suggested that "unity" might be the issue. So I removed unity and retried, and at this point the upgrade seems to be running. I think my main

[Bug 1798216] Re: Upgrade from 16.04 to 18.04 fails with message "Aborting"

2018-10-17 Thread Huji Lee
Here is apt.log ** Attachment added: "apt.log" https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1798216/+attachment/5202377/+files/apt.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

  1   2   3   >