#foswiki 2012-08-24,Fri

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

WhoWhatWhen
gac410I wish foswiki_irc5 gave us his name. IE7 and beyond now blocks links referencing local files including unc names ... just like firefox does. [01:58]
......................... (idle for 2h1mn)
***gac410 has left [03:59]
.................. (idle for 1h25mn)
JulianLevensgac410: I have file links working on FW
E.g. [[file:\\tw4-ntsrv18\Client Services Magazines Systems Support\InSync v5-500][InSync v5.500]]
[[file:\\tw4-ntsrv18\Client Services Magazines Systems Support\InSync v5-500\Copy of IN-zOSUser.pdf][InSync v5.500 zOS User]]
Note that spaces were not escaped and I used back-slashes throughout. As you can see it was no trouble at all. This is FW 1.0.8 mind you, but has the linking code really changed enough to break this?
The first example is a directory window which opens up just fine
[05:24]
............ (idle for 59mn)
PeterSvendsenHi, I have problems to install Time::ParseDate on a server that dont have internet access... I have downloaded the module but still I have issues to install it. Have any knowledge how to install the module? I use Windows 8 server and have installed ActivePerl [06:27]
.... (idle for 15mn)
***ChanServ sets mode: +o MichaelDaum [06:42]
PeterSvendsenHi, I have problems to install Time::ParseDate on a server that dont have internet access... I have downloaded the module but still I have issues to install it. Have any knowledge how to install the module? I use Windows 8 server and have installed ActivePerl [06:56]
JulianLevensPeterSvendsen: Any particular reason for ActivePerl and not Strawberry perl? I use strawberry perl on our Windows server. It provides more standard options: e.g. CPAN [06:59]
kip3fmember:PeterSvendsen: I think I have some notes about installing that module on Active State. I wont be able to check until tomorrow, though [07:08]
............ (idle for 56mn)
PeterSvendsenJulianLevens: No not at all... it was the IT department that installed it.... is it better with Strawberry? [08:04]
Babarit's a church quarrel :)
Sven prefers Strawberry, CDot likes ActiveState
[08:05]
.... (idle for 18mn)
JulianLevensI prefer strawberry. Main reason is that it appears to me to be working more like standard perl. As mentioned I can CPAN, otherwise I'm dependent on someone packaging up the module (relevant version) ActiveState style
This includes any compilation of installed stuff as strawberry comes complete with enough tools (compiler etc) to work out of the box.
Ironically, considering CDot's preference for ActiveState I was able to install his NativeSearchContrib from source using the tools supplied by strawberry
[08:24]
CDotCDot hasn't used ActiveState for a couple of years now
CDot uses Strawberry
[08:27]
JulianLevensTo be fair, a little more AciveState knowledge may well be all that's needed. My OOBE with strawberry has been very good, ActiveState less so [08:28]
CDotI changed from ActiveState because I found that it was always behind the curve. They work hard to keep their packages up to date, but you have to ask, why bother when you can simply use CPAN? So I switched to Strawberry, and haven't had to think about it since then (though having said that I don't use Windows as a server other than on one very elderly laptop) [08:33]
PeterSvendsenokay thanks it seems that I should uninstall activeperl and install strawberry
when I do the uninstallation og activeperl and installation of strawberry do I then need to do anything additional on the foswiki to let it use the new perl installation?
[08:38]
CDotPeterSvendsen: not in Foswiki, no. It ought to just do it. [08:50]
JulianLevensAs CDot says, no. I did note that one or two extensions do like to be told where perl is, but Foswiki itself just calls perl and let's the underlying OS know where perl is [08:52]
flexibeastThe person asking about Foswiki features has elaborated on what they're after: http://foswiki.org/Support/Question1159 [08:57]
PeterSvendsenJulianLevens: Some extentions like to be told where the Perl is..... how do I do that then? a script?
I have now unilstalled activeperl and installed straberry... I need the Time:Parsedate how can I do that, the server is not on the internet so I need to do it manually
[09:00]
JulianLevensNo, just configure options, and don't worry about it. As and when you install any extensions the installation of that extension should let you know of any oddities like that
Bring up a command prompt on your server and type CPAN, then follow normal CPAN perl module installation
[09:03]
PeterSvendsenIt tries to fetch but not possible since its not connected to the internet :( [09:08]
flexibeasti don't know how it works on Win / Strawberry, but in such a case on Linux, i'd download the module from CPAN from a 'net connected machine, then transfer it to the non-'net connected machine via e.g. thumbdrive, then unpack / compile / install the module. [09:10]
JulianLevensAlas, that's not something I've done before. I'm pretty sure you can place your download somewhere in the CPAN directory and try again, but you'll probably need to check out the CPAN docs [09:11]
PeterSvendsenI have downloaded it and transfered it..... but from there I'm lost.. I have placed the .pm files in the correct folder (Time) but from there I'm lost.... [09:12]
flexibeastWell, again, on Linux, you don't copy / move the files manually, you run something like $ perl Makefile.PL
There should be a README file or something that came in the download.
[09:22]
CDotperl -MCPAN -e shell and "install module" should install it, if you have the download in the appropriate local CPAN dir.
CDot runs and hides before someone asks him where the CPAN dir is on Windows
[09:23]
flexibeastWow, the Strawberry Perl wiki is suffering from major lack of despamination .... [09:30]
JulianLevensThe local CPAN is part of strawberry c:\strawberry\cpan [09:31]
PeterSvendsenIm as you know not used to work with perl... which files should I copy to the CPAN directory? only the .pm files? [09:35]
flexibeastPeterSvendsen: You could the file you downloaded - not the individual .pm files, but the .zip / .tar.gz package - into c:\strawberry\cpan, then run the command mentioned by CDot. [09:36]
BenjaminWilkhello
if i browse to http://xxx.xxxxxx.xx/foswiki/bin/viewundef/System/WebHome, i get "Not Found The requested URL /foswiki/bin/viewundef/System/WebHome was not found on this server."
viewundef?
why not only view
[09:43]
PeterSvendsenflexibeat: If I copy the xx.tar.gz file to the cpan dir and then enter "perl -MCPAN -e shell" and then "install Time-modules-2011.0517.tar.gz" then it try to fetch and connect to a web site... :( [09:46]
j_wrightuntar it and enter the directory and go cpan . [09:49]
BenjaminWilk?? [09:56]
PeterSvendsenj_wright: Not I have unpacked it and the directory is now Time-modules-2011.0517 and it should contain it all.. I enter the directory (Time-modules-2011.0517) and write cpan
then I write install ParseDate.... and it start to fetch agian..... :(
I tried to do the following.... write "cpan Time::ParseDate" and then I get this result "C:\strawberry\cpan\Time-modules-2011.0517\lib>cpan Time::ParseDate CPAN: CPAN::SQLite loaded ok (v0.202) CPAN: LWP::UserAgent loaded ok (v6.04) CPAN: Time::HiRes loaded ok (v1.9725) Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz"
[09:57]
flexibeastPeterSvendsen: In the CPAN shell, you would need to install via the name of the module itself, not the name of the file.
e.g. install Time::ParseDate
[10:07]
JulianLevensIf you just need Time::ParseDate which is only pure perl (afaics) then copy the ParseDate.pm to Foswiki/lib/CPAN/lib/Time
As suggested elsewhere, you may need to do more. I've searched for some answers and I'm not sure anymore that it's easy to pre-load CPAN tar.gz modules and then install
[10:08]
flexibeastJulianLevens: Still, even if one can manually install this particular module via the copying method, it's still probably best to learn how to install modules via the CPAN shell, because other modules might well be required at some point, and they might not be so amenable to the copying method (e.g. because multiple modules are involved in a bundle, as well as due to some modules being XS-based). [10:13]
JulianLevensSorry, I shoul have said "you may need to do more for non-pure-perl modules (compiled C etc)". In addition CPAN will chase down dependencies for you, which could be a pain to do manually [10:13]
flexibeasti wonder whether it would just be easiest to install cpanm, which can definitely install from local files:
http://search.cpan.org/~miyagawa/App-cpanminus-1.5017/bin/cpanm
[10:14]
JulianLevensfelxibeast: y, I agree. I was just hoping that Peter can at least make some immediate progress [10:15]
flexibeastJulianLevens: *nod* Fair enough!
i gave up on wrestling with both the CPAN shell and CPANPLUS a while ago, and moved to cpanm unless forced to use the other two.
[10:15]
JulianLevensThen you're the expert Peter needs to talk to [10:16]
flexibeast(In particular, the CPAN module insisted on trying to fetch stuff via FTP, which was a pain behind certain firewalls - i had to manually go through and force it to download via HTTP.)
JulianLevens: Well, i don't have experience with Perl on Windows!
[10:17]
JulianLevensI might have a go myself, I just cannot commit to it right now! [10:24]
....... (idle for 32mn)
BenjaminWilkif i browse to http://xxx.xxxxxx.xx/foswiki/bin/viewundef/System/WebHome, i get "Not Found The requested URL /foswiki/bin/viewundef/System/WebHome was not found on this server."
why?
foswiki change view in viewundef
[10:56]
flexibeastBenjaminWilk: The 'view' is getting changed to 'viewundef'? [11:02]
BenjaminWilkno
:-/
[11:02]
flexibeastAre you typing in that URL manually? [11:04]
BenjaminWilkhm no .. i copied the content from a other server to the new server ... and now, all links exists with http://xxx.xxxxxx.xx/foswiki/bin/viewundef/System/WebHome instead of http://xxx.xxxxxx.xx/foswiki/bin/view/System/WebHome
i dont know why
[11:05]
PeterSvendsenJulianLevens: I have now copied the time modules to Foswiki/lib/CPAN/lib/Time then I should navigate in the cmd line to Foswiki/lib/CPAN/lib/Time and write install Time::ParseDate? [11:06]
flexibeastOff the top of my head, it sounds like the variable defining the root of Foswiki webs has not been configured. [11:06]
BenjaminWilkhm where can i do this [11:07]
flexibeastBenjaminWilk: Check in the configure area.
(i.e. /foswiki/bin/configure)
And check through the Paths section.
PeterSvendsen: You've copied ParseDate.pm into the Time/ folder?
[11:07]
PeterSvendsenyes in the Foswiki/lib/CPAN/lib/Time folder.. (didnt exist so I created it) [11:09]
flexibeastOkay.
Well, assuming ParseDate doesn't rely on any further non-default modules, that should be all you need to do.
[11:09]
PeterSvendsenno installation? [11:10]
flexibeastWell, nothing beyong making sure that the Time folder is visible to Perl. [11:11]
PeterSvendsenits not easy...... any idea how I secure that?
Just tried to access the wiki after I have uninstalled activeperl and installed strawberry and now I can not access it..... so I guess I need to tell foswiki that I have changed perl
[11:12]
flexibeastWell, in terms of telling Foswiki about the new module, you'd need to add that path in the file /foswiki/bin/LocalLib.cfg
Specifically, you'd need to modify the contents of @localPerlLibPath
But unfortunately i don't know how to make Strawberry Perl the default perl executable.
(Because i don't use Windows, sorry!)
Hm, looking at my own LocalLib.cfg, it looks like Foswiki automatically searches in $foswikiLibPath/CPAN/lib
So if in that folder you have Time\ParseDate.pm, that should work.
(Assuming you've set $foswikiLibPath correctly.)
[11:14]
CDotI think Windows has a Path variable set up in the Control panel somewhere. I would guess the right perl has to be first on that path. [11:19]
Babarit's in the environments
iirc, right click on your computer, then properties, and then you have an environment tab
you _might_ have to restart the computer, or most likely at least restart IIS / Apache.
[11:20]
PeterSvendsenI have updated the path... and restarted apache
Still the same error "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request."
it is not easy to setup unless you are an expert I think :)
[11:23]
CDotPeterSvendsen: I'm no expert, and I managed it! [11:24]
PeterSvendsenDo you run in windows? [11:25]
CDotno, but I have set up an apache server + strawberry perl on windows before now.
CDot is just looking at it to try and see where the environment settings are
[11:26]
Babarno wait!
did you run rewriteshebang.pl ?
[11:29]
PeterSvendsenBabar just did it... and now it works :) [11:31]
BabarBabar rocks.
;)
modesty is one of my many qualities.
[11:32]
***Teridon has left [11:35]
PeterSvendsenThanks a lot for all the help from all of you :) [11:38]
BenjaminWilkflexibeast: i solved it
:)
[11:40]
flexibeastBenjaminWilk: Ah good! - Was it a problem with ScriptUrlPath not being defined? [11:41]
BenjaminWilki change $Foswiki::cfg{ScriptUrlPaths}{view} = '$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}'; into $Foswiki::cfg{ScriptUrlPaths}{view} = '/foswiki/bin/view'; [11:42]
flexibeast*nod* [11:42]
BenjaminWilk:D [11:42]
........... (idle for 52mn)
FloPriMichaelDaum: When i index my foswiki with solr i often get "ERROR: invalid XML data: character data contains illegal character" nearly all of them contain > or <; Is there a way to fix this? [12:34]
MichaelDaumFloPri, which solrPlugin do you use? which solr distribution? and what's your {Site}{Charset} ? [12:36]
FloPriMichaelDaum: I use solr from trunk and jetty
{Site}{Charset} is utf-8 i convertet it with charsetconvertor
[12:39]
MichaelDaumFloPri, okay.
now go to working/work_areas/StringifyContrib/
and delete the cached objects there
then use tools/stringify <path to some pdf> on the command line to stringifiy the document creates these errors
check the output's encoding
wait the stringified objects are cached by SolrPlugin in working/work_areas/SolrPlugin/web/topic/... not by StringifyContrib
[12:42]
FloPriMichaelDaum: I checked the output there
and it contains < and >
[12:45]
MichaelDaumso delete the cache there just to make sure things are generated afresh in case you changed your site's charset in the time between when it got cached there
ah I got some local changes in the plainify method of the indexer ...
[12:46]
FloPriMichaelDaum: I tried once again and the ouput is the same. Is there a new version on trunk? [12:51]
MichaelDaumI can see where that fails [12:52]
FloPriMichaelDaum: Where can I fix the problem? [13:04]
MichaelDaumthats in Indexer.pm, indexTopic()
I did something like
+ # applying a full plainify might alter the content too much in some cases. so
+ # we try to remove only those characters that break the json parser
+ #$value = $this->plainify($value, $web, $topic);
+ $value =~ s/<!--.*?-->//gs; # remove all HTML comments
+ $value =~ s/<[^>]*>/ /g; # remove all HTML tags
for _s fields
but there are some more places where plainify() was used formerly
ah the heck, I'll check in my changes
[13:04]
FloPriMIchaelDaum: thx a lot [13:07]
MichaelDaumthats quite a checkin bringing in more changes preparing the new ajaxed solr search [13:08]
FloPriMichaelDaum: what does that mean? just replacing my solr with your new version isn't the way? [13:09]
MichaelDaumcopy it over your version that you have now after having things backed up [13:10]
FloPriok, i will try thx [13:10]
..... (idle for 21mn)
foswiki_irc9Hi! Has anyone experiences the ChecklistTablePlugin or CheckListPlugin? [13:31]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/lXIHlg
[foswiki/master] Item10657: - MichaelDaum
[13:32]
***GithubBot has left [13:32]
FoswikiBothttp://foswiki.org/Tasks/Item10657 [ Item10657: provide a solr multicore setup by default ] [13:32]
GithubBot[foswiki] FoswikiBot pushed 2 new commits to master: http://git.io/G10IJg
[foswiki/master] Item10657: new solr ajax search - MichaelDaum
[foswiki/master] Item4912: - MichaelDaum
[13:45]
***GithubBot has left [13:45]
FoswikiBothttp://foswiki.org/Tasks/Item4912 [ Item4912: ClassificationPlugin: initial version ] [13:45]
............................ (idle for 2h17mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/X_Lh7A
[foswiki/master] Item12048: removed deprecated call to $.browser.safari - MichaelDaum
[16:02]
***GithubBot has left [16:02]
FoswikiBothttp://foswiki.org/Tasks/Item12048 [ Item12048: upgrade to jquery-1.8.0 and jquery-ui 1.8.23 ] [16:02]
............................ (idle for 2h16mn)
foswiki_irc7What is the recommended method to indent a paragraph, below a non-indented paragraph above, when the paragraph below is not bulleted, or numbered?
In short, how do you simply indent a paragraph without any other bullets or numbers?
I tried ... <ul> This is now indented </ul>, and that works, but I am wondering if there is a generally recommended sytax for indenting.
Any comments, anyone?
[18:18]
................. (idle for 1h23mn)
ttruHow can I reset foswiki admin password?
I'm using LDAPContrib if that matters.
[19:43]

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