Difference between revisions of "User talk:Lahwaacz"

From ArchWiki
Jump to: navigation, search
m (Wireless setup: rm old discussion)
m (GPIO / I2C: re)
 
(261 intermediate revisions by 38 users not shown)
Line 1: Line 1:
==Automatic logout correction==
+
== PodCastXDL ==
I'm feeling a bit redundant, thanking you for another correction here, but [https://wiki.archlinux.org/index.php?title=Security&oldid=271103 this edit] was extremely helpful. No joke: I sat there for half an hour toying with that script, trying to figure out why the code wasn't working for me. I had this self-doubt, thinking {{ic|<nowiki>2=TMOUT="$(( 60*10 ))";</nowiki>}} might be some obscure, but valid bash syntax ... never along the way did I realize it was my own typo! ''Highly'' appreciated. -- [[User:Ndt|Ndt]] ([[User talk:Ndt|talk]]) 22:35, 14 August 2013 (UTC)
+
  
:You're welcome. Problems like this are either obvious, or pretty hard to find out. No shame in that ;) -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 15:34, 15 August 2013 (UTC)
+
About [https://wiki.archlinux.org/index.php?title=List_of_applications/Internet&diff=prev&oldid=323048] (and [https://wiki.archlinux.org/index.php?title=List_of_applications/Internet&diff=next&oldid=323048]) [[User:Levi0x0x]], who should have indeed provided an edit summary, appears to be the developer of the application and the maintainer of the PKGBUILD. I would keep his edit. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 00:45, 5 July 2014 (UTC)
 +
 
 +
:I know - I've seen also [https://wiki.archlinux.org/index.php?title=MPlayer&diff=next&oldid=322278 bash-player] removed, both from wiki and Github (it seems the repo has been recreated from scratch). PodCastXDL has always been available upstream. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 08:20, 5 July 2014 (UTC)
 +
 
 +
::Didn't he add it to the list one week ago? [https://wiki.archlinux.org/index.php?title=List_of_applications/Internet&diff=prev&oldid=322258] Maybe he's found some bug and doesn't want people to use it until he fixes it? Anyway I'm not that interested, we can as well see if/how Levi0x0x reacts. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 04:32, 6 July 2014 (UTC)
 +
 
 +
== bot AUR to Official Repository edit ==
 +
 
 +
A recent bot edit ([https://github.com/lahwaacz/wiki-scripts/blob/master/update-package-templates.py update Pkg/AUR templates]) by [[User:Lahwaacz.bot]] on the [[Gitolite]] page correctly changed the AUR template to Pkg but left the [[Arch User Repository]] link
 +
 
 +
I fixed this, but would it be possible to modify the bot to take this into consideration?
 +
 
 +
I can imagine that blanket changing AUR links to Official Repository links in any given page could be dangerous - but for common phrasing or possibly word distance it would seem to be relatively safe
 +
 
 +
Or is there some sort of post-run manual inspection that I am unaware of that handles this situation?
 +
 
 +
Specifically this [https://wiki.archlinux.org/index.php?title=Gitolite&diff=next&oldid=366859 edit]
 +
 
 +
From:
 +
<pre>
 +
{{AUR|gitolite}} is available in the [[Arch User Repository]]
 +
</pre>
 +
 
 +
To:
 +
<pre>
 +
{{Pkg|gitolite}} is available in the [[Arch User Repository]]
 +
</pre>
 +
 
 +
 
 +
 
 +
[[User:Tido.com|Tido.com]] ([[User talk:Tido.com|talk]]) 01:50, 1 April 2015 (UTC)
 +
 
 +
By "word distance" above what I _meant_ was [[Wikipedia:Edit Distance|Edit Distance]] ;)
 +
 
 +
I was initially thinking of Hamming distance - but apparently that is for strings of equal length.
 +
 
 +
What looks more promising is the Levenshtein distance - specifically "Comparing a list of strings" from the Python [https://pypi.python.org/pypi/Distance/0.1.3 Distance] package.
 +
 
 +
Example shamelessly ripped from that page:
 +
 
 +
(mainly because I couldn't link directly to the relevant section)
 +
 
 +
<pre>
 +
>>> sent1 = ['the', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog']
 +
>>> sent2 = ['the', 'lazy', 'fox', 'jumps', 'over', 'the', 'crazy', 'dog']
 +
>>> distance.levenshtein(sent1, sent2)
 +
3
 +
</pre>
 +
[[User:Tido.com|Tido.com]] ([[User talk:Tido.com|talk]]) 04:07, 1 April 2015 (UTC)
 +
 
 +
:Hi,
 +
:the bot currently does not touch the surrounding text at all, it only modifies the package templates or appends [[Template:Broken package link]] when the package is not found. This is obviously not perfect, this behaviour may lead to some incorrect combinations as you noticed, but blindly fixing the package links and not the surrounding text is still considered to be an improvement. Checking the surrounding text manually would require a lot of manpower, which we don't have, so it is currently not done systematically. Feel free to ask for further details or see the most recent discussion: [[ArchWiki:Requests#Strategy_for_updating_package_templates]].
 +
:Regarding automatic updates of the surrounding text, the edit distance gives a clue about whether given edit should be performed or not, but it does not define how an edit should be performed. It can be useful in cases where there are multiple feasible substitutions in text and the strategy to select the optimal substitution is e.g. to minimize the Levenshtein distance. But we don't have any algorithm to generate feasible substitutions yet, so this technique fails. The surrounding text substitution is also very context sensitive and wiki bots must be designed in a way to minimize (ideally avoid completely) the [[wikipedia:Error_of_the_first_kind|error of the first kind]], which in this case is modifying correct text to be incorrect. This makes defining general rules for the text substitution really hard, on the other hand many rules would be necessary to cover even the basic form of standard wording, so in the end both ways may be comparably hard. Anyway, if you have some ideas, I'm all ears :)
 +
:-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 17:51, 1 April 2015 (UTC)
 +
 
 +
== bot checking links after move  ==
 +
 
 +
Hi, re [[Talk:Touchpad Synaptics#adding libinput alternative]]. [[Touchpad Synaptics]] has 100+ backlinks and the more important ones -  a bit tedious task. I was just glancing over your clever github bot scripts. It would be handy to have a script after such moves: walk over the backlinks of [[Touchpad Synaptics]] and just replace "[[Touchpad Synaptics" with "[[Synaptics" from the links. That would leave all links to subsections intact. Leaving out the translations to handle manually, there would not be much to go wrong, or? --[[User:Indigo|Indigo]] ([[User talk:Indigo|talk]]) 07:36, 26 September 2015 (UTC)
 +
 
 +
:Hi, thanks for the suggestion. It would be indeed handy in this case, but most likely not generally. Imagine that there was a [[UUID]] page, which was later generalized and renamed to [[Persistent block device naming]] and content about UUID is now only a section on the page. In this case using the naive replacement would likely change the meaning of many sentences, and using shorter redirects for convenience is actually encouraged. There would have to be a list of whitelisted "harmless" replacements, which could even help to replace <nowiki>[[pacman|Install]]</nowiki> with <nowiki>[[Install]]</nowiki> etc. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 08:01, 26 September 2015 (UTC)
 +
 
 +
::Yes, good examples, but you are thinking universal already :) I did not mean it could be that. For example, if you take the time when the bulk of the title case moves were done. With such a script one could avoid a lot of internal redirects as well. E.g. [https://wiki.archlinux.org/index.php/Special:WhatLinksHere/Beginners'_Guide]. But it's ok, just an idea. Please close this, if you think it's too singular cases with a simple enough replacement where it could be applied. --[[User:Indigo|Indigo]] ([[User talk:Indigo|talk]]) 10:02, 26 September 2015 (UTC)
 +
 
 +
== aur-mirror ==
 +
 
 +
Hi Lahwaacz,
 +
 
 +
It seems that [http://pkgbuild.com/git/aur-mirror.git aur-mirror] has been down for a while.
 +
I'm not sure if this is intentional or not, but if it is, could you have Lahwaacz.bot remove [[Template:Aur-mirror]] from pages? At least where they are in a [[Template:Broken package link]] like {{ic|<nowiki>{{Broken package link|{{aur-mirror|foobar}}}}</nowiki>}}.
 +
 
 +
If there is anything I can do to help, let me know.
 +
 
 +
Thanks! [[User:Lonaowna|Lonaowna]] ([[User talk:Lonaowna|talk]]) 14:56, 19 October 2016 (UTC)
 +
 
 +
:Maybe drifting a bit offtopic... but I'm in favor to finally remove any and all packages that are not on AUR4 from the wiki. Users have had over a year time to migrate, which is a century in Arch standards. -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 16:21, 19 October 2016 (UTC)
 +
 
 +
::I agree, especially on pages like [[List of games]] (already [https://wiki.archlinux.org/index.php?title=List_of_games&curid=4401&diff=454419&oldid=454356 took care of that]), and [[List of Applications]] (see [[Talk:List of applications#AUR3 packages]]). On other pages, where the non-existing packages are mentioned inline, it requires some more knowledge and effort to remove them. -- [[User:Lonaowna|Lonaowna]] ([[User talk:Lonaowna|talk]]) 16:34, 19 October 2016 (UTC)
 +
 
 +
:::Hmm... For the moment I just updated the template to point to Github instead. What would be the alternative "hint" without the link? It should still be different from just "package not found". -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 18:08, 19 October 2016 (UTC)
 +
 
 +
::::The GitHub repository is fine as well. I think we can keep that one while we (carefully) remove/update all broken links. Thanks! [[User:Lonaowna|Lonaowna]] ([[User talk:Lonaowna|talk]]) 06:52, 20 October 2016 (UTC)
 +
 
 +
== OpenVPN ==
 +
 
 +
Hi, the topic about setting the key password was a tip, and the only way that work to have the openvpn "ask" for the key password. The systemd-ask-pass is not working. So when the openvpn service is started it does not ask for the key password.
 +
I know it is not the best sollution, far away from that, but it was the only way that i can put it to work. I think it is a valuable tipo, although it have to came with a security note.
 +
Can be this way?
 +
 
 +
{{unsigned|10:52, 31 October 2016‎|Mawcomw}}
 +
 
 +
:Is there a reason why you have a password-protected key or was it set up implicitly by following some guide? Note that you can [http://stackoverflow.com/questions/112396/how-do-i-remove-the-passphrase-for-the-ssh-key-without-having-to-create-a-new-ke remove the passphrase without generating a new key]. If you have a good reason for using the passphrase, using plain {{ic|--askpass}} without a file would allow openvpn to ask for the passphrase on its standard input, but that probably does not work well with systemd units starting at boot. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 13:41, 31 October 2016 (UTC)
 +
 
 +
== Why do you undo whole edit instead of fixing a small typo? ==
 +
 
 +
[https://wiki.archlinux.org/index.php?title=Full_system_backup_with_rsync&diff=next&oldid=457271 Here] you undo the edit because "i.e. does not stand for exempli gratia". I was always thinking that "i.e." stands for "in example", but I'm not a native speaker after all. But why wouldn't you just correct the spelling? [[User:Hi-Angel|Hi-Angel]] ([[User talk:Hi-Angel|talk]]) 15:47, 20 November 2016 (UTC)
 +
 
 +
:Well, I was about to rewrite the whole paragraph completely, but then you'd probably keep doing this mistake forever, so I took a little detour ;) Sorry for the confusion... -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 11:38, 21 November 2016 (UTC)
 +
 
 +
== GPIO / I2C ==
 +
 
 +
Hi,
 +
I notice you have un-done my edit on the raspberry pi page. [https://wiki.archlinux.org/index.php/Raspberry_Pi#I2C]
 +
 
 +
My intention was that to access the I2C bus, you need to use the GPIO connector - hence in this context I believe that I2C should be a sub-heading in the same way as the SPI bus is currently a sub-heading. (The Wikipedia articles on GPIO you referred to, also suggests that I2C and GPIO are related)
 +
 
 +
Hence, I believe my edit should stand.
 +
 
 +
I was planning to add further buses to the GPIO section as / when I use them (including references to the pinouts, ie: [http://pinout.xyz/])
 +
 
 +
Let me know what you think.
 +
 
 +
Thanks
 +
[[User:RuneArch|RuneArch]] ([[User talk:RuneArch|talk]]) 09:16, 23 November 2016 (UTC)
 +
 
 +
:Well I guess it depends on how you look at it. Maybe [https://wiki.archlinux.org/index.php?title=Raspberry_Pi&type=revision&diff=457519&oldid=457407 this] will do? -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 09:35, 23 November 2016 (UTC)
 +
 
 +
::Ah, I think I see your point of view about GPIO and the python package... yep, I think that's much better :) [[User:RuneArch|RuneArch]] ([[User talk:RuneArch|talk]]) 09:47, 23 November 2016 (UTC)

Latest revision as of 09:49, 23 November 2016

PodCastXDL

About [1] (and [2]) User:Levi0x0x, who should have indeed provided an edit summary, appears to be the developer of the application and the maintainer of the PKGBUILD. I would keep his edit. -- Kynikos (talk) 00:45, 5 July 2014 (UTC)

I know - I've seen also bash-player removed, both from wiki and Github (it seems the repo has been recreated from scratch). PodCastXDL has always been available upstream. -- Lahwaacz (talk) 08:20, 5 July 2014 (UTC)
Didn't he add it to the list one week ago? [3] Maybe he's found some bug and doesn't want people to use it until he fixes it? Anyway I'm not that interested, we can as well see if/how Levi0x0x reacts. -- Kynikos (talk) 04:32, 6 July 2014 (UTC)

bot AUR to Official Repository edit

A recent bot edit (update Pkg/AUR templates) by User:Lahwaacz.bot on the Gitolite page correctly changed the AUR template to Pkg but left the Arch User Repository link

I fixed this, but would it be possible to modify the bot to take this into consideration?

I can imagine that blanket changing AUR links to Official Repository links in any given page could be dangerous - but for common phrasing or possibly word distance it would seem to be relatively safe

Or is there some sort of post-run manual inspection that I am unaware of that handles this situation?

Specifically this edit

From:

{{AUR|gitolite}} is available in the [[Arch User Repository]]

To:

{{Pkg|gitolite}} is available in the [[Arch User Repository]]


Tido.com (talk) 01:50, 1 April 2015 (UTC)

By "word distance" above what I _meant_ was Edit Distance ;)

I was initially thinking of Hamming distance - but apparently that is for strings of equal length.

What looks more promising is the Levenshtein distance - specifically "Comparing a list of strings" from the Python Distance package.

Example shamelessly ripped from that page:

(mainly because I couldn't link directly to the relevant section)

>>> sent1 = ['the', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog']
>>> sent2 = ['the', 'lazy', 'fox', 'jumps', 'over', 'the', 'crazy', 'dog']
>>> distance.levenshtein(sent1, sent2)
3

Tido.com (talk) 04:07, 1 April 2015 (UTC)

Hi,
the bot currently does not touch the surrounding text at all, it only modifies the package templates or appends Template:Broken package link when the package is not found. This is obviously not perfect, this behaviour may lead to some incorrect combinations as you noticed, but blindly fixing the package links and not the surrounding text is still considered to be an improvement. Checking the surrounding text manually would require a lot of manpower, which we don't have, so it is currently not done systematically. Feel free to ask for further details or see the most recent discussion: ArchWiki:Requests#Strategy_for_updating_package_templates.
Regarding automatic updates of the surrounding text, the edit distance gives a clue about whether given edit should be performed or not, but it does not define how an edit should be performed. It can be useful in cases where there are multiple feasible substitutions in text and the strategy to select the optimal substitution is e.g. to minimize the Levenshtein distance. But we don't have any algorithm to generate feasible substitutions yet, so this technique fails. The surrounding text substitution is also very context sensitive and wiki bots must be designed in a way to minimize (ideally avoid completely) the error of the first kind, which in this case is modifying correct text to be incorrect. This makes defining general rules for the text substitution really hard, on the other hand many rules would be necessary to cover even the basic form of standard wording, so in the end both ways may be comparably hard. Anyway, if you have some ideas, I'm all ears :)
-- Lahwaacz (talk) 17:51, 1 April 2015 (UTC)

bot checking links after move

Hi, re Talk:Touchpad Synaptics#adding libinput alternative. Touchpad Synaptics has 100+ backlinks and the more important ones - a bit tedious task. I was just glancing over your clever github bot scripts. It would be handy to have a script after such moves: walk over the backlinks of Touchpad Synaptics and just replace "[[Touchpad Synaptics" with "[[Synaptics" from the links. That would leave all links to subsections intact. Leaving out the translations to handle manually, there would not be much to go wrong, or? --Indigo (talk) 07:36, 26 September 2015 (UTC)

Hi, thanks for the suggestion. It would be indeed handy in this case, but most likely not generally. Imagine that there was a UUID page, which was later generalized and renamed to Persistent block device naming and content about UUID is now only a section on the page. In this case using the naive replacement would likely change the meaning of many sentences, and using shorter redirects for convenience is actually encouraged. There would have to be a list of whitelisted "harmless" replacements, which could even help to replace [[pacman|Install]] with [[Install]] etc. -- Lahwaacz (talk) 08:01, 26 September 2015 (UTC)
Yes, good examples, but you are thinking universal already :) I did not mean it could be that. For example, if you take the time when the bulk of the title case moves were done. With such a script one could avoid a lot of internal redirects as well. E.g. [4]. But it's ok, just an idea. Please close this, if you think it's too singular cases with a simple enough replacement where it could be applied. --Indigo (talk) 10:02, 26 September 2015 (UTC)

aur-mirror

Hi Lahwaacz,

It seems that aur-mirror has been down for a while. I'm not sure if this is intentional or not, but if it is, could you have Lahwaacz.bot remove Template:Aur-mirror from pages? At least where they are in a Template:Broken package link like {{Broken package link|{{aur-mirror|foobar}}}}.

If there is anything I can do to help, let me know.

Thanks! Lonaowna (talk) 14:56, 19 October 2016 (UTC)

Maybe drifting a bit offtopic... but I'm in favor to finally remove any and all packages that are not on AUR4 from the wiki. Users have had over a year time to migrate, which is a century in Arch standards. -- Alad (talk) 16:21, 19 October 2016 (UTC)
I agree, especially on pages like List of games (already took care of that), and List of Applications (see Talk:List of applications#AUR3 packages). On other pages, where the non-existing packages are mentioned inline, it requires some more knowledge and effort to remove them. -- Lonaowna (talk) 16:34, 19 October 2016 (UTC)
Hmm... For the moment I just updated the template to point to Github instead. What would be the alternative "hint" without the link? It should still be different from just "package not found". -- Lahwaacz (talk) 18:08, 19 October 2016 (UTC)
The GitHub repository is fine as well. I think we can keep that one while we (carefully) remove/update all broken links. Thanks! Lonaowna (talk) 06:52, 20 October 2016 (UTC)

OpenVPN

Hi, the topic about setting the key password was a tip, and the only way that work to have the openvpn "ask" for the key password. The systemd-ask-pass is not working. So when the openvpn service is started it does not ask for the key password. I know it is not the best sollution, far away from that, but it was the only way that i can put it to work. I think it is a valuable tipo, although it have to came with a security note. Can be this way?

—This unsigned comment is by Mawcomw (talk) 10:52, 31 October 2016‎. Please sign your posts with ~~~~!

Is there a reason why you have a password-protected key or was it set up implicitly by following some guide? Note that you can remove the passphrase without generating a new key. If you have a good reason for using the passphrase, using plain --askpass without a file would allow openvpn to ask for the passphrase on its standard input, but that probably does not work well with systemd units starting at boot. -- Lahwaacz (talk) 13:41, 31 October 2016 (UTC)

Why do you undo whole edit instead of fixing a small typo?

Here you undo the edit because "i.e. does not stand for exempli gratia". I was always thinking that "i.e." stands for "in example", but I'm not a native speaker after all. But why wouldn't you just correct the spelling? Hi-Angel (talk) 15:47, 20 November 2016 (UTC)

Well, I was about to rewrite the whole paragraph completely, but then you'd probably keep doing this mistake forever, so I took a little detour ;) Sorry for the confusion... -- Lahwaacz (talk) 11:38, 21 November 2016 (UTC)

GPIO / I2C

Hi, I notice you have un-done my edit on the raspberry pi page. [5]

My intention was that to access the I2C bus, you need to use the GPIO connector - hence in this context I believe that I2C should be a sub-heading in the same way as the SPI bus is currently a sub-heading. (The Wikipedia articles on GPIO you referred to, also suggests that I2C and GPIO are related)

Hence, I believe my edit should stand.

I was planning to add further buses to the GPIO section as / when I use them (including references to the pinouts, ie: [6])

Let me know what you think.

Thanks RuneArch (talk) 09:16, 23 November 2016 (UTC)

Well I guess it depends on how you look at it. Maybe this will do? -- Lahwaacz (talk) 09:35, 23 November 2016 (UTC)
Ah, I think I see your point of view about GPIO and the python package... yep, I think that's much better :) RuneArch (talk) 09:47, 23 November 2016 (UTC)