Recent Topics

[Today at 07:06:03 AM]

[January 19, 2020, 11:30:35 PM]

[January 19, 2020, 09:14:36 PM]

[January 19, 2020, 09:07:41 PM]

[January 19, 2020, 10:04:36 AM]

[January 18, 2020, 09:22:53 PM]

[January 18, 2020, 03:09:15 PM]

[January 17, 2020, 06:13:53 AM]

[January 16, 2020, 12:31:16 PM]

[January 15, 2020, 08:34:27 PM]

[January 13, 2020, 07:32:47 PM]

[January 13, 2020, 07:27:07 PM]

[January 13, 2020, 07:08:46 PM]

[January 13, 2020, 12:22:25 PM]

[January 12, 2020, 09:36:00 PM]

[January 12, 2020, 06:27:54 PM]

[January 11, 2020, 11:27:16 PM]

[January 11, 2020, 09:43:24 PM]

[January 11, 2020, 07:48:06 PM]

[January 11, 2020, 02:31:14 PM]

[January 11, 2020, 11:46:09 AM]

[January 11, 2020, 06:40:15 AM]

[January 10, 2020, 04:50:04 PM]

[January 10, 2020, 11:51:07 AM]

Talkbox

2020 Jan 19 20:32:04
Johann: Nyom Moritz

2020 Jan 19 20:29:34
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 19 15:01:46
Johann: some moved to topic here

2020 Jan 19 10:20:11
Johann: Nyom Moritz

2020 Jan 19 10:03:16
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 18 08:14:54
Moritz: _/\_ _/\_ _/\_

2020 Jan 18 05:57:52
Johann: A blessed and fruitful Sila day

2020 Jan 17 19:19:18
Moritz: Chom reap leah _/\_

2020 Jan 17 18:37:01
Cheav Villa:  _/\_

2020 Jan 17 18:14:15
Moritz: Bong Villa _/\_

2020 Jan 17 13:39:36
Sophorn: Many greetings to everyone,

2020 Jan 17 13:39:19
Sophorn:  _/\_ _/\_ _/\_

2020 Jan 17 10:29:19
Johann: "so, now I go up and clear the area a little, make some merits, and I will not share my merits, with anybody..."  ^-^

2020 Jan 17 08:49:11
Chanroth: ធ្វើអាស្រមហើយចេញពីរសេចក្ដីល្អ ធ្វើអ្វីដើម្បីខ្លួល្អជាង

2020 Jan 17 08:45:08
Chanroth: សូមលាហើយ

2020 Jan 17 08:33:16
Cheav Villa:  _/\_ _/\_ _/\_

2020 Jan 17 06:56:27
Johann: A blessed and fruitful Uposatha, those observing it today.

2020 Jan 17 06:45:45
Johann: Nyom Moritz

2020 Jan 17 06:44:49
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 16 23:01:31
Moritz: Mr. Lew _/\_

2020 Jan 15 14:16:00
Cheav Villa:  _/\_ _/\_ _/\_

2020 Jan 15 11:15:29
Moritz: _/\_ _/\_ _/\_

2020 Jan 15 11:12:01
Johann: Nyom

2020 Jan 15 10:24:02
Cheav Villa: Master Moritz _/\_

2020 Jan 15 10:21:50
Moritz: Bong Villa _/\_

2020 Jan 15 10:11:56
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 12 22:22:36
Moritz: Chom reap leah _/\_

2020 Jan 12 22:04:02
Moritz: _/\_

2020 Jan 12 21:34:30
Cheav Villa: Sadhu Sadhu Sadhu  _/\_ _/\_ _/\_

2020 Jan 12 21:31:02
Johann: Sokh chomreoun, may happiness come to fullfillment, all

2020 Jan 12 21:27:15
Cheav Villa: Master Moritz _/\_ Visitor _/\_

2020 Jan 12 21:26:54
Cheav Villa:  Kana Bhante _/\_ _/\_  _/\_

2020 Jan 12 21:26:06
Cheav Villa:  _/\_ _/\_ _/\_

2020 Jan 12 21:24:21
Moritz: Visitor _/\_

2020 Jan 12 21:24:09
Moritz: Bong Villa _/\_

2020 Jan 12 21:23:59
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 12 21:23:50
Johann: Good on working isn't a bad reservation. Sokh chomreoun

2020 Jan 12 21:16:12
Cheav Villa: I kana in working conditions in the ministry  _/\_ _/\_ _/\_

2020 Jan 12 17:24:45
Johann: How is Nyom Villa doing? Seems as if more reserved

2020 Jan 11 21:30:11
Cheav Villa:  _/\_ _/\_ _/\_

2020 Jan 11 21:27:10
Johann: On the other side it's just visible for Aramika, so also fine to leave it as it is.

2020 Jan 11 21:18:06
Johann: but possible good to change it, since looking of course strange

2020 Jan 11 21:17:02
Johann: The visitor account, since enail needed, has Atmas email, yes. Nothing wrong, Nyom.

2020 Jan 11 21:10:13
Cheav Villa: Mr. Visitor is using Bhante mail on Sangham ^-^ _/\_ _/\_ _/\_

2020 Jan 11 17:28:39
Khemakumara:  _/\_ _/\_ _/\_ Bhante

2020 Jan 11 17:19:29
Johann: Well then. Mudita. And to use old account is also no problem, or a new one.

2020 Jan 11 17:13:25
Visitor:  *sgift* Will return soon. will share one from lot.  :) Stay healthy. Be happy.

2020 Jan 11 17:06:13
Johann: Sure, why not? An also sure that Atma will try what ever possible that Nyom-Deva would take on existance where Dhamma can completely comprehended. My Nyom do as he feels fit and inspired.

2020 Jan 11 17:03:02
Visitor: For I am out of community and practice to be independent too -- decided when couldn't find Gem(liberated one, buddha, venerable).

2020 Jan 11 17:00:13
Visitor: If I share one of those practices, will uncle allow that? Will uncle give way to me to give as a 'Visitor'? Even when it's out of community.

2020 Jan 11 16:57:53
Johann: It's importand to see that liberation is possible, and people having gained independency are met = Savaka Sangha

2020 Jan 11 16:55:26
Johann: It's importand, aside of the deva-messangers, birth, sickness, aging death, to meet the Buddha, Arahat, Samana, so that real Saddha may arise. Books hardly can provide such "it's not just a story"

2020 Jan 11 16:50:04
Visitor: Practice leads to experience -coming slowly-2 me already. Did uncle find any Gems(Ven. Buddha) to associate with?

2020 Jan 11 16:45:42
Johann: Only by practicing and association with the Gems can Dhamma be gained. Consuming 1000 book wouldn't help

2020 Jan 11 16:43:02
Johann: What does one, seeing his decay, keep him from sharing?

2020 Jan 11 16:41:31
Johann: Giving ways to let others give is also a-maccariya

2020 Jan 11 16:39:42
Johann: And books are lasting? Sharing about oldage, sickness and death is teaching the 1 Noble truth very real, or?

2020 Jan 11 16:35:58
Visitor: What does old uncle want to offer when he is also impermanent? Dhamma-it's already in books! Experience-it will come soon to me too.

2020 Jan 11 16:30:29
Johann: If needing something, just let it be known (any language

2020 Jan 11 16:29:50
Johann: Nyom unknown

2020 Jan 11 16:28:47
Visitor:  *thumb* :-\ :( ;-) *gift*

2020 Jan 11 08:13:55
Cheav Villa:  _/\_

2020 Jan 11 08:11:25
Moritz: Oh, I just wanted to write something to you, Bong Villa. But now have to go, driving taxi. ^-^ Later. _/\_ Chom reap leah

2020 Jan 11 08:05:56
Cheav Villa: Master Moritz _/\_ _/\_ _/\_

2020 Jan 11 07:46:49
Moritz: Bong Villa _/\_

2020 Jan 10 19:57:45
Johann: Bhante

2020 Jan 10 19:37:57
Khemakumara:  _/\_ _/\_ _/\_ Bhante

2020 Jan 10 16:11:19
Cheav Villa:  _/\_ _/\_ _/\_

2020 Jan 10 12:07:13
Johann: Sokh chomreoun Nyom

2020 Jan 10 11:34:53
Moritz: Chom reap leah _/\_

2020 Jan 10 11:08:47
Johann: Nyom Moritz

2020 Jan 10 11:00:22
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 10 06:05:50
Khemakumara:  _/\_ _/\_ _/\_

2020 Jan 10 05:02:29
Johann: May those keeping the full moon Uposatha today, spend an auspicious time engaged in merits

2020 Jan 09 20:17:28
Cheav Villa:  _/\_ _/\_ _/\_

2020 Jan 09 20:07:28
Moritz: _/\_ _/\_ _/\_

2020 Jan 09 18:57:51
Khemakumara:  _/\_ _/\_ _/\_ Those who have confidence in the Awakened One have confidence in what is supreme; and for those with confidence in the supreme, supreme is the result.

2020 Jan 09 17:33:14
Cheav Villa:  :) _/\_ _/\_ _/\_

2020 Jan 09 16:13:20
Johann: No problem at all.

2020 Jan 09 16:12:52
Johann: Atma wrote: Oh, master Moritz celebrates his Birthday today. And if remembering right, just one day before Mastress Sophorn.

2020 Jan 09 16:11:21
Johann:  :)

2020 Jan 09 16:10:58
Johann: oh that is bad: Nyom needs to cite Thor Twai bpngum 5 times

2020 Jan 09 16:09:02
Cheav Villa: I kana sorry for deleted <.I.> _/\_ _/\_

2020 Jan 09 16:05:44
Cheav Villa: All the best wishes to you Master Moritz  _/\_ :D

2020 Jan 09 08:29:01
Cheav Villa: Sadhu Sadhu Sadhu _/\_ _/\_ _/\_

2020 Jan 09 07:08:24
Khemakumara:  _/\_ _/\_ _/\_ Sadhu

2020 Jan 09 06:16:07
Johann: A blessed Uposatha those who maintain it today

2020 Jan 09 04:50:31
Khemakumara: Nyom

2020 Jan 08 22:06:08
Cheav Villa: Master Moritz _/\_

2020 Jan 08 21:45:09
Moritz: Bong Villa _/\_

2020 Jan 08 20:55:46
Khemakumara: Nyom

2020 Jan 08 20:47:42
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 08 18:48:15
Johann: Bhante

2020 Jan 08 18:17:17
Khemakumara:  _/\_ _/\_ _/\_

2020 Jan 08 15:14:05
Johann: Nyom

2020 Jan 08 14:02:20
Cheav Villa: Vandami Bhante _/\_ _/\_ _/\_

2020 Jan 08 08:04:30
Cheav Villa:  _/\_ _/\_ _/\_

2020 Jan 07 21:10:49
Johann: Sadhu, Sadhu

2020 Jan 07 21:05:36
saddhamma: I hope, Bhante Johann has regained some strength and that Bhante's health is improving.

Tipitaka Khmer

 Please feel welcome to join the transcription project of the Tipitaka translation in khmer, and share one of your favorite Sutta or more. Simply click here or visit the Forum: 

Search ATI on ZzE

Zugang zur Einsicht - Schriften aus der Theravada Tradition



Access to Insight / Zugang zur Einsicht: Dhamma-Suche auf mehr als 4000 Webseiten (deutsch / english) - ohne zu googeln, andere Ressourcen zu nehmen, weltliche Verpflichtungen einzugehen. Sie sind für den Zugang zur Einsicht herzlich eingeladen diese Möglichkeit zu nutzen. (Info)

Random Sutta
Random Article
Random Jataka

Zufälliges Sutta
Zufälliger Artikel
Zufälliges Jataka


Arbeits/Work Forum ZzE

"Dhammatalks.org":
[logo dhammatalks.org]
Random Talk
[pic 30]

Dear Visitor!

Herzlich Willkommen auf sangham.net! Welcome to sangham.net!
Ehrenwerter Gast, fühlen sie sich willkommen!

Sie können sich gerne auch unangemeldet an jeder Diskussion beteiligen und eine Antwort posten. Auch ist es Ihnen möglich, ein Post oder ein Thema an die Moderatoren zu melden, sei es nun, um ein Lob auszusprechen oder um zu tadeln. Beides ist willkommen, wenn es gut gemeint und umsichtig ist. Lesen Sie mehr dazu im Beitrag: Melden/Kommentieren von Postings für Gäste
Sie können sich aber auch jederzeit anmelden oder sich via Email einladen und anmelden lassen oder als "Visitor" einloggen, und damit stehen Ihnen noch viel mehr Möglichkeiten frei. Nutzen Sie auch die Möglichkeit einen Segen auszusprechen oder ein Räucherstäbchen anzuzünden und wir freuen uns, wenn Sie sich auch als Besucher kurz vorstellen oder Hallo sagen .
Wir wünschen viel Freude beim Nutzen und Entdecken des Forums mit all seinen nützlichen Möglichkeiten .
 
Wählen Sie Ihre bevorzugte Sprache rechts oben neben dem Suchfenster.

Wähle Sprache / Choose Language / เลือก ภาษา / ជ្រើសយកភាសា: ^ ^
 Venerated Visitor, feel heartily welcome!
You are able to participate in discussions and post even without registration. You are also able to report a post or topic to the moderators, may it be praise or a rebuke. Both is welcome if it is meant with good will and care. Read more about it within the post: Report/comment posts for guests
But you can also register any time or get invited and registered in the way to request via Email , or log in as "Visitor". If you are logged in you will have more additional possibilities. Please feel free to use the possibility to  give a blessing or light an incent stick and we are honored if you introduce yourself or say "Hello" even if you are on a short visit.
We wish you much joy in using and exploring the forum with all its useful possibilities  
Choose your preferred language on the right top corner next to the search window!

Zugang zur Einsicht - Übersetzung, Kritik und Anmerkungen

Herzlich Willkommen im Arbeitsforum von zugangzureinsicht.org im Onlinekloster sangham.net!


Danke werte(r) Besucher(in), dass Sie von dieser Möglichkeit Gebrauch machen und sich direkt einbringen wollen.

Unten (wenn Sie etwas scrollen) finden Sie eine Eingabemaske, in der Sie Ihre Eingabe einbringen können. Es stehen Ihnen auch verschiedene Gestaltungsmöglichkeiten zur Verfügung. Wenn Sie einen Text im formatierten Format abspeichern wollen, klicken Sie bitte das kleine Kästchen mit dem Pfeil.

Die Textfelder "Name" und "email" müssen ausgefüllt werden, Sie können hier aber auch eine Anonyme Angabe machen und eine Pseudo-email angeben (geben Sie, wenn Sie Rückantwort haben wollen, jedoch einen Kontakt an), wenn Ihnen das unangenehm ist. Der Name scheint im Forum als Text auf und die Email ist von niemanden außer dem Administrator einsehbar.

Wenn Sie den Text fertig geschrieben haben, müssen Sie noch den Spamschutz überwinden, das Bild zusammen setzen, und dann auf "Vorschau" oder "Senden" drücken, wenn für Sie alles passt.

Wenn Sie eine Spende einer Übersetzung machen wollen, wäre es schön, wenn Sie etwas vom Entstehen bzw. deren Herkunft erzählen und Ihrer Gabe vielleicht noch eine Widmung anhängen.

Gerne, so es möglich ist, werden wir Ihre Übersetzung dann auch den Seiten von Zugang zur Einsicht veröffentlichen. Für generelle Fragen zu dem Umfang der Dhamma-Geschenke auf ZzE sehen Sie bitte in den FAQ von ZzE ein.

Gerne empfangen wir Kritik und selbstverständlich auch Korrekturen oder Anregungen hier. Es steht Ihnen natürlich offen und Sie sind dazu herzlich eingeladen auch direkt mit einem eigenen Zugang hier an den Arbeiten vielleicht direkt teilzunehmen.

Sadhu!

metta & mudita
Ihr Zugang zur Einsicht Team

Um sich im Abeitsforum etwas unzusehen, klicken Sie hier. . Sie finden hier viele Informationen und vielleicht sogar neues rund um Zugang zur Einsicht.

Author Topic: [ATI.eu] Replacement, regex issues (Content styling)  (Read 27046 times)

0 Members and 1 Guest are viewing this topic.

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
[ATI.eu] Replacement, regex issues (Content styling)
« on: June 16, 2018, 07:53:02 PM »
Atma has just seen the nice Wrap plugin been installed which might make it much easier to bring html content of ZzE pages into the cms/wiki.

The backward is that it's then no more as "light" as with simple wiki-syntax.

How ever, this topic is dedicated for styling of content, ideas, standards... what ever.

A list of replacements can be found here: http://accesstoinsight.eu/doku.php?id=de:import_zze (development in progress)
« Last Edit: July 02, 2018, 10:03:37 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [dokuwiki] ATI/ZzE Content-style
« Reply #1 on: June 16, 2018, 08:06:26 PM »
Existing stylings on ZzE for content part:

Chapter
Code: [Select]
<div class="chapter">
replace with
Code: [Select]
<div chapter>

Editor note

Citation excerpt
Code: [Select]
<div class='excerpt'>
replace with
Code: [Select]
<div excerpt>

Cite (text source)
Code: [Select]
<p class='cite'>Text</p>
replace with
Code: [Select]
<span cite>Text</span>

Free verse
Code: [Select]
<div class="freeverse">

Verse
Code: [Select]
<div class="verse">

Tagline
Code: [Select]
<p class="tagline">
« Last Edit: June 17, 2018, 04:51:42 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #2 on: June 17, 2018, 06:34:28 PM »
Atma had started here with replacements in file-coding.

http://www.accesstoinsight.eu/doku.php?id=de:lib:authors:thanissaro:beyond1

Might be "no" problem if having such as notepad++, multiple files access and regex with replacement function avaliable. By "hand", with given tools and skill, proximate 4000h for all pages.

Atma will now try to get the zze-styling in the ati.eu css.
« Last Edit: June 25, 2018, 10:25:38 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #3 on: June 25, 2018, 10:24:34 PM »
A list of replacements can be found here: http://accesstoinsight.eu/doku.php?id=de:import_zze (development in progress)
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #4 on: June 26, 2018, 10:12:36 AM »
First action with replace plugin:

Code: [Select]
find	^	replace with	^	matches ^
/<!DOCTYPE(.*?)<body>/s | <body> | 6508 |

Quote
Display: Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

Seems that no action was taken and the building of the searchpage result (maybe 10-50Mb large) needed time.

Try to reduce to smaller amount by sellecting name spaces.

Code: "ns de:lib:" [Select]
find	^	replace with	^	matches ^
/<!DOCTYPE(.*?)<body>/s | <body> | 663 |


seems like having executed! Atma will do forther step by step in this way, accourding to the replace list

Replace plugin (see ini-isdue above) can execute "only" 1000 replace requests at once, as it seems, for now, but it works and is a useful way.
« Last Edit: June 26, 2018, 11:15:54 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #5 on: June 26, 2018, 12:28:43 PM »
header-deletion
find: /<!DOCTYPE(.*?)<body>/s replace with <body>


de: lib: 663, de:tipitaka:sut:an: 483, de:tipitaka:sut:sn: 471, de:tipitaka:sut:kn: j: 614, de: (rest) 797, en:lib: 654, en:zipitaka:sut:an: 364, en:tipitaka:sut:sn: 470, en:tipitaka:sut:kn:j: 611, en:tipitaka:vin: 616, en:tipitaka:sut:kn: (rest) 400, (rest over all) 365, search for *<body> still gives matches


6458 matches (if quick head-callucating was right) of 6508.

forgot the redirect pages (aside of 22, to find with "<!DOCTYPE html PUBLIC"), other redircts seems to be lost, so far.

Bug? After search request of more complex search, the result page's imput fields are destroyed. See attached. " seems to be the issue.
« Last Edit: June 26, 2018, 01:28:00 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #6 on: June 28, 2018, 01:02:15 PM »
Replace-plugin workes fine so far, of cource there is much to spend to get into regex most efficent.

Two things, Nyom Moritz , since the amount of 1000 matches is very less for large clean ups. Could Atma change that? Is it accessable via ftp? And is it of no problem to increase it to maybe 20.000 or even much higher?

Quote
Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

Replace seems to have no variables like \L to replace a string in lower cases, or is it just a synatax language-lack of my person. (to get a word, say "halLo_Was_iSt" replaced by "hallo_was_ist".
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +268/-0
  • Gender: Male
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #7 on: June 28, 2018, 07:31:34 PM »
since the amount of 1000 matches is very less for large clean ups. Could Atma change that? Is it accessable via ftp? And is it of no problem to increase it to maybe 20.000 or even much higher?
This file is not accessible for us, I think.
But I changed the code to work around that.
It should work now for larger numbers, but it could be very slow. There might come a message from the browser "script is not responding" or something, and being asked if wanting to continue the script, simply answer "yes" and wait.

Replace seems to have no variables like \L to replace a string in lower cases, or is it just a synatax language-lack of my person. (to get a word, say "halLo_Was_iSt" replaced by "hallo_was_ist".

I don't know. Maybe there is another syntax for it. I found this: https://stackoverflow.com/questions/34592160/regex-string-substitution-upper-and-lower-case
But don't know at the moment if that would provide a solution.

_/\_

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #8 on: June 28, 2018, 09:22:06 PM »
Sadhu!
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #9 on: June 29, 2018, 12:26:59 PM »
The replacment works good for great amount. The only thing that takes time is the builing of the resultpage which is of course huge. Sadhu
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #10 on: June 30, 2018, 08:38:23 PM »
Firefox verkraften das Laden der Ergebnisseiten ganz gut.

Atma hat heute alle zze txt-file neu hochgeladen, neu-indexiert und von nochmal von Vorne begonnen.

Einen Tag herumgeregext funktioniert alles recht fein. Manchmal, bei größeren Anfragen erscheint nach Abbruch (zwischen drinnen im Überschreiben)

Quote
Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/clients/clientxxx/webxxx/web/inc/io.php on line 235

mag aber mit Verbindung zusammen hängen, da kein besonderes Muster erkannt. -> kommt bei mehr als 4000 betroffenen Seiten (unabhängig der einzelnen Anzahl der Treffer) scheinbar auf.

Stück für Stück, in alle Richtungen, die Codes und Layout... Links ändern, Daten-Table... , wird wohl noch gut eine Woche, zwei, voll in Anspruch nehmen, bis erste annehmliche Erscheinung.

« Last Edit: June 30, 2018, 09:49:31 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +268/-0
  • Gender: Male
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #11 on: July 01, 2018, 09:14:48 AM »
Sadhu!

Manchmal, bei größeren Anfragen erscheint nach Abbruch (zwischen drinnen im Überschreiben)

Quote
Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/clients/clientxxx/webxxx/web/inc/io.php on line 235

mag aber mit Verbindung zusammen hängen, da kein besonderes Muster erkannt. -> kommt bei mehr als 4000 betroffenen Seiten (unabhängig der einzelnen Anzahl der Treffer) scheinbar auf.

Das hat nichts mit der Verbindung zu tun, sondern damit, dass der Server ein Zeitlimit hat, um ein einzelnes Skript auszuführen. Das Ersetzen in 4000 Seiten dauert scheinbar zu lange und wird dann abgebrochen.

Man kann offenbar aber mitten im Skript immer wieder neu das Zeitlimit sich selbst bestimmen und hoch setzen. Habe nun entsprechend eingebaut, dass es für jeder Datei sich wieder 120 Sekunden reserviert. Das sollte locker reichen und wohl keine solchen Abbrüche mehr stattfinden.

(Habe auch die neuesten Änderungen des Original-Autors nun mit eingebaut, der mein hingehacktes "alles markieren" mit einer sauber zu DokuWiki passenden grafischen Oberfläche versehen hat.)

_/\_

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +268/-0
  • Gender: Male
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #12 on: July 01, 2018, 09:32:13 AM »
Replace seems to have no variables like \L to replace a string in lower cases, or is it just a synatax language-lack of my person. (to get a word, say "halLo_Was_iSt" replaced by "hallo_was_ist".

I don't know. Maybe there is another syntax for it. I found this: https://stackoverflow.com/questions/34592160/regex-string-substitution-upper-and-lower-case
But don't know at the moment if that would provide a solution.

_/\_

It seems such things like \L and \U for uppercase and lowercase replacement are not "standard" regex features, but only part of extra stuff in some programs.
It would surely be possible to build something like this into the BatchEdit plugin as well. I am not really knowleadgable about regular expressions, but have just found a really good manual with clear explanations. So maybe I would try to add things like that when I understand more and find time for it.

And I also still don't know how the indexing works and how fast or slow it is. Have there ever been problems with the BatchEdit plugin showing old results that had not been updated, even when a newer version should exist?
When looking at the code it seems to me that the BatchEdit plugin will always load the latest version and show matches accordingly. So a slow index might perhaps only be a problem sometimes for new pages that have not even been included in the index for the first time so that no results for it would be found...

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #13 on: July 01, 2018, 02:47:24 PM »
So far, Nyom Moritz , all works fine to progress step by step. No real problems seen in regard of index as it is used only for the selection of avaliable files while the search is done direct in the files (so no need of refreshing / new indexing, except new files are added).

Page lookup

BatchEdit uses DokuWiki page index to get the list of existing pages instead of going through the data directories. If the index is incomplete the plugin will not see some pages. This also applies to the “special” pages, for example, namespace templates.

So it's only about the list of files that batchEdit uses the index.

Index it self: Not sure for now, but it seems so, that refresh index matches also new files. It works not too slow.

In regard of regex, yes, the returns seems to be special. Hier $ seems to work more, as for place a string \1 = $1, maybe it works also for \L = $L (did not try for now).

Since Atma does not intent to learn/invest much in this skills, when ever a need arises, he would look and maybe addopt, investigate samples given here around.

It's good then, steo by Step, to make explainary pages on ATI.eu in all regards, for further future easier work and transfer.

http://accesstoinsight.eu/doku.php?id=de:tech:regex_use z.b.
« Last Edit: July 01, 2018, 02:52:33 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +371/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #14 on: July 01, 2018, 04:39:08 PM »
Spoken of problems... Nyom Moritz (attached)

Note that after copy the new file into cs-rm (Cattasanghayana - Roman), Atma did only a refresh index, so maybe this had caused an appearances never had before, also first time to regex in cs-rm .

oh... maybe it (this error) has to do with the uploaded image/media-files (maybe wrong Uppercase-cases), have to look at it and rename them...

Done, so far, but not reidexed for now. It seems that regex also addresses mediafiles, not clear in how far (or just when collecting posdible files avaliable. If also executing them likewise, this could be a mess probably.

now the task of replacement there gave:

Code: [Select]
Fatal error: Uncaught Error: Call to undefined function setTimeLimit() in /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php:412 Stack trace: #0 /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php(385): admin_plugin_batchedit->applyMatches() #1 /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php(102): admin_plugin_batchedit->apply() #2 /var/www/clients/client2157/web5417/web/inc/Action/Admin.php(47): admin_plugin_batchedit->handle() #3 /var/www/clients/client2157/web5417/web/inc/ActionRouter.php(83): dokuwiki\Action\Admin->preProcess() #4 /var/www/clients/client2157/web5417/web/inc/ActionRouter.php(48): dokuwiki\ActionRouter->setupAction('admin') #5 /var/www/clients/client2157/web5417/web/inc/ActionRouter.php(60): dokuwiki\ActionRouter->__construct() #6 /var/www/clients/client2157/web5417/web/inc/actions.php(16): dokuwiki\ActionRouter::getInstance(true) #7 /var/www/clients/client2157/web5417/web/doku.php(120): act_dispatch() #8 {main} thrown in /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php on line 412

Atma will do an reindex, since files have different names now and index still holds the old. Maybe that solves that.
« Last Edit: July 01, 2018, 05:04:01 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Tags: