#foswiki 2011-09-02,Fri

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
***MartinCleaver_ has joined #foswiki
MartinCleaver_ has quit IRC (Changing host)
MartinCleaver_ has joined #foswiki
MartinCleaver has quit IRC (Read error: Operation timed out)
MartinCleaver_ is now known as MartinCleaver
[00:01]
........... (idle for 53mn)
gac410 has joined #foswiki [00:55]
...... (idle for 29mn)
gac410SvenDowideit: I'm going to refactor the download page - and split the alternative versions into "OtherFoswikiInstallers"
We can then %INCLUDE that onto the FoswikiDownload page separately from the FoswikiRelease01xXX topic.
[01:24]
webiohei gac
can you help me one more time
like few days ago
[01:28]
gac410What's the question? [01:31]
webioi stack in the same point like few days ago
i don't know for what files i have to change permissions
[01:33]
gac410in your foswiki/bin directory, rename LocalLib.cfg.txt to LocalLib.cfg And then edit it and remove the # - comment from the line
#$ENV{FOSWIKI_ASSERTS} = 1;
If perl is getting control and failing, it *might* get more information to your browser instead of hiding it in the Apache log. Maybe, maybe not.
[01:39]
webiodone [01:41]
gac410so bin/view is executable - chmod 755, and owned by the web server / CGI user?
Enabling ASSERTs didn't get any more information.
If you run bin/configure are there any errors reported?
[01:43]
***MartinCleaver has quit IRC (Quit: MartinCleaver) [01:44]
webioerror 500 [01:45]
gac410So configure doesn't work now either? Didn't that work initially?
and the shebang is correct in the bin files #!/usr/bin/perl or whatever agrees with your perl location on the system (Issue "which perl")
500 is one of those errors that is very difficult to debug without the log. You may have to ask your web server support staff for help.
[01:45]
webionope, i did it last time with your support
but i don't remember how
i did the same steps
i am in the same step
and you told me to give access to a file 644 and it workd
works
or 755 from 644
something like this
[01:49]
gac410well until bin/configure runs, there is no chance that bin/view will work. Yes, files in bin need to be executable. 755.
Could you pastebin your .htaccess file that you tailored in your bin directory?
[01:50]
webiook [01:52]
gac410Line 100 {ScriptUrlPath} Should be /bin [01:55]
webiook
what's next?
[02:04]
gac410Does configure work now? [02:05]
webionope [02:05]
.... (idle for 18mn)
***MartinCleaver has joined #foswiki
MartinCleaver has quit IRC (Changing host)
MartinCleaver has joined #foswiki
[02:23]
.... (idle for 16mn)
webio{PubUrlPath} should be /bin? [02:39]
gac410No - Generally that is /pub [02:40]
***MartinCleaver has quit IRC (Quit: MartinCleaver) [02:40]
gac410Did it really guess /bin for pub? That's strange. ... maybe a bug fixed in next release. [02:41]
webio{ScriptUrlPaths}{view}
$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}
is ok?
[02:43]
gac410Yes. [02:43]
webiook
it seems to be ok in few minutes for me
[02:44]
gac410Only time you change {ScriptUrlPaths}{view} is if you are going to use the very shortest URL's with the "view" eliminated from the url. Like on Foswiki.org. But that's an advanced feature - stay away from that for now.
It needs complex Apache rewrite rules.
Not sure it can be used fully with .htaccess files.
[02:45]
webioit's ok for start to do it like this :) [02:46]
gac410After you save the initial configue, be sure to configure the Mail Server tab - if Foswiki cannot send email, you can't register users.
gac410 wonders ... Hmmm
Could we ship a default bin/.htaccess that *only* enables configure. And then add a button / wizard to configure that tailors and writes out proper files to the directories based upon the configuration.
[02:46]
webiohow i can set rights for all files from data to 755 with a linux command
?
not from data... from /pub
[02:56]
gac410Files should be 644, directories 755. You don't want any files executable in pub.
See Foswiki:Support.SettingFileAccessRightsLinuxUnix (Though there are some issues with the scripts posted to that topic)
[02:58]
FoswikiBothttp://foswiki.org/Support.SettingFileAccessRightsLinuxUnix [ SettingFileAccessRightsLinuxUnix ] [02:59]
***Lynnwood has quit IRC (Quit: Lynnwood) [03:03]
gac410webio: here is a script that I've used. http://pastebin.com/9K1PrkJv
run from the root of the foswiki install.
[03:05]
webioi have to save it as something.bash?
or bsh
:d
[03:13]
it seems to work
:)
horrrrrrrrrrrrrrrey
:)
[03:19]
thanks a lot [03:30]
gac410yw [03:30]
webionow i have to think how to reduce the urlLink from site.com/bin/view/Main/Topic to site.com/Topic
:d
[03:30]
gac410Look for the ShorterUrlCookbook.
But the apache configuration can be pretty complex. I have no idea if it will work with .htaccess files.
[03:31]
webiook
how i can make FW instance to be visible only for registered users?
i mean all articles and everything
[03:34]
gac410That's generally not a recommended deployment - if you can't see the site until registered you can't register. [03:35]
webioi mean i need to create an intranet
for my organization
how i can make all articles/topics visible for registered users
and the first page to be visible for everybody
:)
[03:36]
gac410So System generally needs to be available to everyone. It's the documentatoin on how to use the site - is read-only - and has critical topics like UserRegistration.
Main can be protected. Users register there. TBH you are best to work with foswiki a bit and try to learn how it works before tackling this. It can all be done with Foswiki web and topic permissions,
[03:37]
webiook
let me see
for now i am happy with this
thanks a lot
:D
can i write a recommendation for you?
[03:40]
gac410yw. You can close individual Webs by setting DENYWEBVIEW = WikiGuest in the WebPreferences topic.
But Main is tricky to close that way because of registration requrements.
Nah - thanks but I don't need any recommendations.
You would need to set a bunch of topics to allow everybody, so the default Main/WebHome would be visible to guests before setting the web to deny WikiGuest
It gets tricky.
[03:41]
......... (idle for 44mn)
***gac410 has left [04:26]
..... (idle for 23mn)
webio has quit IRC (Quit: webio) [04:49]
.......... (idle for 45mn)
terceiro has quit IRC (Ping timeout: 264 seconds) [05:34]
.............. (idle for 1h9mn)
ModAcOst has joined #foswiki [06:43]
.... (idle for 15mn)
foswiki_irc7 has joined #foswiki [06:58]
foswiki_irc7test [06:58]
***foswiki_irc7 is now known as ttttttttttttt
CDot has joined #foswiki
[06:58]
denisr has joined #foswiki
ModAcOst has quit IRC (Remote host closed the connection)
ModAcOst has joined #foswiki
[07:03]
harlanDo I remember correctly that there is a way to make upgrades easier by using the VirtualHosting beast? [07:17]
ModAcOstIf you are hosting mulitiple wikis you can use VirtualHosting and will have to update only. If you have only one wiki it won't help you. [07:31]
.......... (idle for 45mn)
***leik has quit IRC (Ping timeout: 250 seconds) [08:16]
ArthurClemens has joined #foswiki [08:27]
ArthurClemensfoswiki has a strange way to create <p> tags. In fact, it puts the text outside of empty <p> tags.
It looks like this: <p></p> text <p></p> text
happens on trunk and in release branch
so currently the p tags function as paragraph separators, not as paragraph containers
[08:30]
***ttttttttttttt has quit IRC (Quit: Page closed) [08:40]
.... (idle for 15mn)
CDotArthurClemens: correct. Traditionally, (tm)wiki topics are processed linearly (from the top to the bottom) rather than being parsed into their component parts
the <p /> effect is a direct result of that linear thinking
while I did a lot of work to make topics more "structured" *e.g. takeOutBlocks) I never got as far as fixing the <p> tags. Never really saw the need for it.
[08:55]
ArthurClemensI am trying to put all elements on a typographic grid, but that is very difficult due to collapsing margins. A possibility would be to give all elements paddings instead of margins, but the empty <p></p> give additional spacing. [08:59]
***Babar sets mode: +oo ArthurClemens CDot [09:02]
.... (idle for 15mn)
CDotwell, the only way to construct matching p's would be to build an internal model (due to the way tables and lists work) and that would involve a lot of re-engineering of the rendering code [09:17]
.... (idle for 19mn)
ArthurClemensit will take a while before we can create valid html5. quite some things are written by core, like anchors with attribute 'name'
I think we need to create a rendering setting for this
[09:36]
.... (idle for 15mn)
http://foswiki.org/Tasks/Item11102 [09:52]
...... (idle for 26mn)
***MartinCleaver has joined #foswiki [10:18]
........ (idle for 38mn)
Colas has quit IRC (Remote host closed the connection)
ColasHome has quit IRC (Remote host closed the connection)
ColasHome has joined #foswiki
[10:56]
.... (idle for 19mn)
ArthurClemensinstead of littering the code with if ( $Foswiki::cfg{RenderedHtmlVersion} = 5 ), shouldn't we use a HmlRenderer class with subclasses for html4 and html5? [11:18]
.... (idle for 15mn)
***Colas has joined #foswiki [11:33]
..... (idle for 22mn)
jurov has quit IRC (Ping timeout: 264 seconds) [11:55]
Lynnwood has joined #foswiki
Lynnwood has quit IRC (Changing host)
Lynnwood has joined #foswiki
[12:04]
..... (idle for 22mn)
wdenk has quit IRC (Quit: Leaving.) [12:26]
....... (idle for 32mn)
gac410 has joined #foswiki [12:58]
tsnfooSo, I have a stupid long query that's starting to throw "Timeout waiting for output from CGI script". I'm trying to optimize the query, but in the meantime I'd like to just bump up that timeout limit. How would I do that for a standard Apache 2, non-persistent perl install of Foswiki? [13:10]
ModAcOstDon't know but I think you have to modify TimeOut in your httpd.conf [13:14]
Babaryeah, it should take it from here too
even though the core doesn't mention it :)
maybe in mod_cgi?
[13:20]
tsnfooHmm. Thanks. I'll continue to google/RTFM [13:21]
....... (idle for 34mn)
***ModAcOst has quit IRC (Remote host closed the connection) [13:55]
TJCRI has joined #foswiki [14:04]
wdenk has joined #foswiki [14:10]
...... (idle for 26mn)
tsnfooIs anybody familiar with the X/Y query syntax?
I'm trying to refactor some nested SERACHes, and for the life og me I can't seem to get to fomfields in the topic's parents the way I want
For example, "form.name='ChildForm'" returns all of the topics it should.
But, "form.name='ChildForm' AND parent.name/(form.name='ParentForm')" returns no topics, even though the parents of all the ChildForm topics have parents, and those parents have ParentForm attached.
I've tried every permutation of the query syntax I can come up with, and the search results are always empty
[14:36]
Shouldn't "parent.name/(form.name='ParentForm')" return all topics whose parents have PArentForm attached? [14:52]
Jeez. DBQUERY won't even parse parent/Y or parent.name/Y or any damned combination I've tried.
Does this even work, or am I just dense? I could've sworn I'd used this syntax before, with either SEARCH or DBQUERY
[14:59]
CDottsnfoo: DBQUERY predates the query syntax by a loooong way. It uses a related, though rather different, syntax.
the syntax you are trying is more like SEARCH syntax
give the *exact* syntax you are using, and I'll try to tell you if it's correct.
[15:02]
tsnfooAh, for some reason I thought that DBQUERY supoported the X/Y syntax
So, I'm trying to optimize some queries in an app that lets students signup for tutors. Here's an example:
%DBQUERY{"parent.name/(form.name='TutorForm') AND Status='Active'" format=" * $topic"}%
I was hoping that would return all the children of TutorForm topics
So, a search for a biology tutor would look more like this: %DBQUERY{"parent.name/(form.name='TutorForm') AND Status='Active' AND Subject='Biology'" format=" * $topic"}%
Right now I'm using a couple of SEARCH macros, with some nesting, and they are killing the box and timing out. I was hoping to consolidate them into fewer macros, using DBQUERY to speed it up.
[15:04]
***denisr has quit IRC (Quit: Parti) [15:16]
tsnfooI guess, if DBQUERY can't do the X/Y syntax, I can just string them together some other way [15:29]
***ArthurClemens has quit IRC (Quit: Leaving...)
GithubBot has joined #foswiki
[15:29]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/ZdzeCA
[foswiki/master] Item10247: attachments table (sorting), documentation - ArthurClemens
[15:33]
***GithubBot has left [15:33]
FoswikiBothttp://foswiki.org/Tasks/Item10247 [ Item10247: Implementing Base Skin ] [15:33]
***ArthurClemens has joined #foswiki [15:33]
ArthurClemens has quit IRC (Quit: Leaving...) [15:39]
.... (idle for 17mn)
CDottsnfoo: IIRC it *does* support the / (ref) operator, but TBH it's been so long since I used it I've forgotten the exact syntax. Be warned that DBCachPlugin (and any other plugin that relies on DBCacheContrib) runs out of steam quickly on large webs.
if you are serious about searching large data - and you are using trunk - then MongoDBPlugin is your best bet.
[15:56]
tsnfooCDot: yeah, i'm eagerly awaiting MongoDB happy time. That's not really stable yet, is it? [16:05]
CDotcan't comment. ask pharvey/SvenDowideit [16:06]
tsnfooOut of curiosity, what would you define as a "large web"; 10,000 topics? 50,000? [16:07]
CDot50K+
or 10K+ on a small server ;-)
the problem is that the DBCacheContrib loads all topic data into memory; lots of topics => large data => large memory
[16:11]
tsnfooWell, I'm currently using about 330 of the 512MB allocated, which isn't bad.
The real bottleneck seems to be CPU
Any topic read seems to hit 30-50%
And the bad pages hit 80-90%
A handful of students hit the Tutor page at once, and some of them start getting CGI timeouts
And I can't seem to get PageCaching to work on this server - the cache never updates (not a problem on the test server). No idea what's causing that.
[16:21]
.... (idle for 18mn)
SvenDowideittsnfoo: one thing you can do, is benchmark it :)
and y, i've never been happy with pagecaching
its (imo) backwards, in that it relies on a very heavyweight and complicated dependency list
so maintaining the cache is alot of processing
yesterday i re-noticed that the locking in the store suffers from the same issue
[16:41]
gac410SvenDowideit: I refactored a bit - Foswiki:Download/OtherFoswikiInstallers ... and included it from Foswiki:Download/FoswikiRelease01x01x03 [16:43]
FoswikiBothttp://foswiki.org/Download/OtherFoswikiInstallers [ OtherFoswikiInstallers ] http://foswiki.org/Download/FoswikiRelease01x01x03 [ FoswikiRelease01x01x03 ] [16:43]
gac410Since it reflects a lot of your work - figured I should give you a heads-up [16:43]
SvenDowideitgac410: cool (i'll open and read inawhile, i'm just passing while looking after girls and then going to cook)
i really should get out of the installer business :)
[16:43]
gac410I added a plea for volunteers to contribute. Was wondering if the table should include a 'Contributed by .... ' note for each package. [16:44]
SvenDowideitSvenDowideit thinks it'd be nice :)
but ask someone that wouldn't be in that list :)
as it is advertising in a sense
though in that sense, everthing that anyone does is
[16:45]
gac410Well -- it's also painting a target for requests for updates ;-) [16:45]
SvenDowideitzactly, and that used to be the most effective way to remind me
SvenDowideit dissappears in a puff of blue smoke
[16:46]
***j_wright has joined #foswiki [16:53]
MartinCleaver_ has joined #foswiki
MartinCleaver has quit IRC (Ping timeout: 245 seconds)
MartinCleaver_ is now known as MartinCleaver
[17:07]
........ (idle for 35mn)
ArthurClemens has joined #foswiki [17:43]
tsnfooMinor optimization question: when reusing formfield values multiple times in a topic, is there like to be any benefit in assigning them to variables?
For example, I have a topic template that looks up related fields from other related topiucs, and this occurs several times in the template.
Would make any sense to assign them to local variables, or do they lookups only occur once in the rendering process anyways?
[17:55]
I'm just looking at an old template that's scattered with FORMFIELD macros. [18:01]
***terceiro has joined #foswiki [18:08]
.... (idle for 15mn)
CDot has quit IRC (Quit: Leaving.) [18:23]
......... (idle for 42mn)
mark_doe has joined #foswiki [19:05]
.............. (idle for 1h9mn)
ArthurClemensthe attachment help does not help much: "Local file: If you select a different file in Local file:, it is this that will be updated or added."
luckily I am redoing this all for base skin
so I can remove the cruft
[20:14]
***terceiro has quit IRC (Ping timeout: 246 seconds) [20:20]
...... (idle for 25mn)
terceiro has joined #foswiki [20:45]
terceiro has quit IRC (Remote host closed the connection)
terceiro has joined #foswiki
[20:50]
..... (idle for 21mn)
TJCRI has quit IRC (Remote host closed the connection) [21:13]
................. (idle for 1h24mn)
MartinCleaver has quit IRC (Quit: MartinCleaver) [22:37]
....... (idle for 33mn)
MartinCleaver has joined #foswiki [23:10]
......... (idle for 43mn)
MartinCleaver has quit IRC (Quit: MartinCleaver) [23:53]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)