Re: beagle webinterface
I'm trying to do it without using blank screen, it will make user go slow at downloading the file... take a look at that please: http://rafb.net/p/VKDLAz64.html I made these changes and now, when I try to do a search, the search page stays there, thinking, doing nothing... what is wrong? thanks you much! Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Wed, Jul 16, 2008 at 8:24 PM, Blackhold [EMAIL PROTECTED] wrote: ok, maybe I'm gonna use a php file for open the new window, that is the language I usually use. thanks, tomorrow I'll give you the last solution :) Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Wed, Jul 16, 2008 at 6:34 PM, D Bera [EMAIL PROTECTED] wrote: function openhit(url) { var direccio; direccio = url.substring(15); direccio = http://; + location.host + direccio; return direccio; } I don't know if it is right... could you help me please? I don't remember it off the top of my head. Check the internet for examples on how to change the link URL. Usually it involves using a javascript function for href or using the onclick handler for a. I think for your case you need a onclick handler i.e. change in the xsl file to a target=_blank href=# onclick=openhit(\[EMAIL PROTECTED]); return false; and add a method like function openhit (url) { //... open a new window using javascript } I am sorry ... you have to google to fill in the javascript functions :) - dBera -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE fan Mandriva / Inspiron-1100 user ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: beagle webinterface
I remember that I've got webdeveloper, I see the debugging page and appears me that: Error: no ben format Fitxer font: http://192.168.2.8:4000/hitresult.xsl Línia: 57, columna: 51 Codi font: a target=_blank href=javascript:openhit(\[EMAIL PROTECTED]) and this other one Error: uncaught exception: [Exception... Component returned failure code: 0x8061 [nsIXSLTProcessor.importStylesheet] nsresult: 0x8061 (unknown) location: JS frame :: http://192.168.2.8:4000/default.js :: TOP_LEVEL :: line 811 data: no] Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Thu, Jul 17, 2008 at 11:38 AM, Blackhold [EMAIL PROTECTED] wrote: I'm trying to do it without using blank screen, it will make user go slow at downloading the file... take a look at that please: http://rafb.net/p/VKDLAz64.html I made these changes and now, when I try to do a search, the search page stays there, thinking, doing nothing... what is wrong? thanks you much! Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Wed, Jul 16, 2008 at 8:24 PM, Blackhold [EMAIL PROTECTED] wrote: ok, maybe I'm gonna use a php file for open the new window, that is the language I usually use. thanks, tomorrow I'll give you the last solution :) Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Wed, Jul 16, 2008 at 6:34 PM, D Bera [EMAIL PROTECTED] wrote: function openhit(url) { var direccio; direccio = url.substring(15); direccio = http://; + location.host + direccio; return direccio; } I don't know if it is right... could you help me please? I don't remember it off the top of my head. Check the internet for examples on how to change the link URL. Usually it involves using a javascript function for href or using the onclick handler for a. I think for your case you need a onclick handler i.e. change in the xsl file to a target=_blank href=# onclick=openhit(\[EMAIL PROTECTED]); return false; and add a method like function openhit (url) { //... open a new window using javascript } I am sorry ... you have to google to fill in the javascript functions :) - dBera -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE fan Mandriva / Inspiron-1100 user ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: beagle webinterface
I'm testing different things... now: a target=_blank href=javascript:\[EMAIL PROTECTED].replace(file:///var/www,http://+location.host) but also \[EMAIL PROTECTED] don't likes to browser :( Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Thu, Jul 17, 2008 at 11:40 AM, Blackhold [EMAIL PROTECTED] wrote: I remember that I've got webdeveloper, I see the debugging page and appears me that: Error: no ben format Fitxer font: http://192.168.2.8:4000/hitresult.xsl Línia: 57, columna: 51 Codi font: a target=_blank href=javascript:openhit(\[EMAIL PROTECTED]) and this other one Error: uncaught exception: [Exception... Component returned failure code: 0x8061 [nsIXSLTProcessor.importStylesheet] nsresult: 0x8061 (unknown) location: JS frame :: http://192.168.2.8:4000/default.js :: TOP_LEVEL :: line 811 data: no] Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Thu, Jul 17, 2008 at 11:38 AM, Blackhold [EMAIL PROTECTED] wrote: I'm trying to do it without using blank screen, it will make user go slow at downloading the file... take a look at that please: http://rafb.net/p/VKDLAz64.html I made these changes and now, when I try to do a search, the search page stays there, thinking, doing nothing... what is wrong? thanks you much! Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Wed, Jul 16, 2008 at 8:24 PM, Blackhold [EMAIL PROTECTED] wrote: ok, maybe I'm gonna use a php file for open the new window, that is the language I usually use. thanks, tomorrow I'll give you the last solution :) Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Wed, Jul 16, 2008 at 6:34 PM, D Bera [EMAIL PROTECTED] wrote: function openhit(url) { var direccio; direccio = url.substring(15); direccio = http://; + location.host + direccio; return direccio; } I don't know if it is right... could you help me please? I don't remember it off the top of my head. Check the internet for examples on how to change the link URL. Usually it involves using a javascript function for href or using the onclick handler for a. I think for your case you need a onclick handler i.e. change in the xsl file to a target=_blank href=# onclick=openhit(\[EMAIL PROTECTED]); return false; and add a method like function openhit (url) { //... open a new window using javascript } I am sorry ... you have to google to fill in the javascript functions :) - dBera -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE fan Mandriva / Inspiron-1100 user ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: beagle webinterface
Use the suggestion below ... a target=_blank href=# onClick=openhit(\[EMAIL PROTECTED]); return false; Make sure you have the return false. and add a method like function openhit (url) { //... open a new window using javascript // verify the javascript - I am writing from memory var newurl = url.replace (file:///, http://host/var/www/;); window.open(newurl); } -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE / Mandriva / Inspiron-1100 ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: beagle webinterface
when I put dashes on [EMAIL PROTECTED] always gives me the same error :( Error: no ben format Fitxer font: http://192.168.2.8:4000/hitresult.xsl Line: 60, column: 29 Codi font: a target=_blank href=# onClick=openhit(\[EMAIL PROTECTED]); return false; Error: uncaught exception: [Exception... Component returned failure code: 0x8061 [nsIXSLTProcessor.importStylesheet] nsresult: 0x8061 (unknown) location: JS frame :: http://192.168.2.8:4000/default.js :: TOP_LEVEL :: line 810 data: no] that is what I have on default.js function function openhit(url) //line 777 { alert (url); } Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Thu, Jul 17, 2008 at 1:06 PM, Debajyoti Bera [EMAIL PROTECTED] wrote: Use the suggestion below ... a target=_blank href=# onClick=openhit(\[EMAIL PROTECTED]); return false; Make sure you have the return false. and add a method like function openhit (url) { //... open a new window using javascript // verify the javascript - I am writing from memory var newurl = url.replace (file:///, http://host/var/www/;); window.open(newurl); } -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE / Mandriva / Inspiron-1100 ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: beagle webinterface
See if using single quotes help i.e. a target=_blank href=# onClick=openhit('[EMAIL PROTECTED]'); return false; when I put dashes on [EMAIL PROTECTED] always gives me the same error :( Error: no ben format Fitxer font: http://192.168.2.8:4000/hitresult.xsl Line: 60, column: 29 Codi font: a target=_blank href=# onClick=openhit(\[EMAIL PROTECTED]); return false; Error: uncaught exception: [Exception... Component returned failure code: 0x8061 [nsIXSLTProcessor.importStylesheet] nsresult: 0x8061 (unknown) location: JS frame :: http://192.168.2.8:4000/default.js :: TOP_LEVEL :: line 810 data: no] that is what I have on default.js function function openhit(url) //line 777 { alert (url); } Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Thu, Jul 17, 2008 at 1:06 PM, Debajyoti Bera [EMAIL PROTECTED] wrote: Use the suggestion below ... a target=_blank href=# onClick=openhit(\[EMAIL PROTECTED]); return false; Make sure you have the return false. and add a method like function openhit (url) { //... open a new window using javascript // verify the javascript - I am writing from memory var newurl = url.replace (file:///, http://host/var/www/;); window.open(newurl); } -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE / Mandriva / Inspiron-1100 -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE / Mandriva / Inspiron-1100 ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: huge space usage
On Thu, Jul 17, 2008 at 6:44 PM, D Bera [EMAIL PROTECTED] wrote: I got a bugreport about beagle using 243GB for ~/.beagle which seems a bit high ;) https://bugzilla.redhat.com/show_bug.cgi?id=455739 Any ideas? (besides what I already asked there) drats! Thats with 0.3.7. I am pretty sure the user does not have the log files and it is probably one error being logged every second or something. For repeated errors we print only one line (Repeated) but even that could accumulate quickly. OK. I have to think about the error reporting and log file usage. BTW, does Fedora use the debug-no-spew patch everyone else uses (the one which reduces the default log level = debug) ? Yes http://cvs.fedoraproject.org/viewcvs/rpms/beagle/F-9/beagle-0.3.2-spew.patch?rev=1.1view=markup At this point there is nothing that can be done. If the user had the log files, then tail -n 100 ~/.beagle/current-* and head -n100 ~/.beagle/current-* would have given some information. OK thanks, will ask him this if he still has the files. ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: beagle webinterface
hello, I could get the correct url with http:// thanks you much :D but now I found an other problem... I tested with a lot of variables, and looked the code for a similar var but for the mime type, I found that with my script all files are procesed as text files :o now I've got that: [hitresult.xsl] a target=_blank href=# onClick=openhit('[EMAIL PROTECTED]'); return false; [default.js] function openhit(url) { var direccio; var host; host = http://; + location.host + /; direccio = url.replace (file:///var/www/, host); document.location.href = direccio; } now I know that I have to do that: [hitresult.xsl] a target=_blank href=# onClick=openhit('[EMAIL PROTECTED]',var_saying_mimetype); return false; [default.js] function openhit(url,mime) { var direccio; var host; host = http://; + location.host + /; direccio = url.replace (file:///var/www/, host); window.open(direccio).document,open(mime); } I see also, searching, that there's a file that I think that it could be used for translations. In some projects for translate websites is used php gettext, but I think that gettext is not forced to be linked at php... I don't know... thanks you much. Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Thu, Jul 17, 2008 at 5:04 PM, Blackhold [EMAIL PROTECTED] wrote: ok, great! missed the in href=# :$ I were looking and relooking into the other funcion of a label :$ gonna try if the other thing works... Blackhold + Material SCG08 http://associacio-aoe.org/scg/charlas + Respect free software communities and use free and/or standard formats while sending attached files. Files such .doc, .xls, are formats that don't follow the standard rules and may cause problems on viewing or in the format of the text when these are opened with programs where thousands users communities develops free software. So that I ask for the files that are sent to me, to be odf, ods, odp, svg, png or in default pdf. Thanks you a lot... On Thu, Jul 17, 2008 at 4:52 PM, D Bera [EMAIL PROTECTED] wrote: it don't :( I quickly changed on my computer and got an alert box with the URL. a href=# onClick=openhit('[EMAIL PROTECTED]'); return false;... function openhit (url) { alert(url); } ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
beagle error logging
Hey folks, Need some suggestion here. Once in a while for some user, beagle creates these giant log files. I am wondering how to stop that. This is really trying to avoid worst case behaviour. The logging scenario is much better now than a year ago so the average users dont see this problem. The disributions turn off debug log for beagle. Only error messages are printed. So if someone has a 1GB of log file with debugging turned off, it clearly means there are hundreds of error messages. Due the plugin nature of beagled, its hard to determine where the error is coming from. If we can determine which component the error is coming from, then we turn off that component after certain number of errors. In addition to it, we try not to print repeated multiline errors. But still it is theoretically possible for some component to go kaput and print endless stream of error messages. I am thinking of adding a catch-worst-case safeguard. If the number of errors is more than 100 in the last 100 minutes, then beagled shuts down! Period, no question asked. It kind of ruthless, but it is much better than allowing it to continue and maybe, just maybe, create a 100GB log file. I have a slight worry that this proactive decision might be too harsh ... but I don't see any other way to stop the problem otherwise. I will make sure there are enough hints to the user that beagle is having trouble on his computer. What do you think ? Regards, - dBera -- - Debajyoti Bera @ http://dtecht.blogspot.com beagle / KDE fan Mandriva / Inspiron-1100 user ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: beagle error logging
On Fri, Jul 18, 2008 at 1:23 AM, D Bera [EMAIL PROTECTED] wrote: Hey folks, Need some suggestion here. Once in a while for some user, beagle creates these giant log files. I am wondering how to stop that. This is really trying to avoid worst case behaviour. The logging scenario is much better now than a year ago so the average users dont see this problem. The disributions turn off debug log for beagle. Only error messages are printed. So if someone has a 1GB of log file with debugging turned off, it clearly means there are hundreds of error messages. Due the plugin nature of beagled, its hard to determine where the error is coming from. If we can determine which component the error is coming from, then we turn off that component after certain number of errors. In addition to it, we try not to print repeated multiline errors. But still it is theoretically possible for some component to go kaput and print endless stream of error messages. I am thinking of adding a catch-worst-case safeguard. If the number of errors is more than 100 in the last 100 minutes, then beagled shuts down! Period, no question asked. It kind of ruthless, but it is much better than allowing it to continue and maybe, just maybe, create a 100GB log file. I have a slight worry that this proactive decision might be too harsh ... but I don't see any other way to stop the problem otherwise. I will make sure there are enough hints to the user that beagle is having trouble on his computer. What do you think ? what about add a message to the log and stop logging? so that search etc. will continue to work but no logs are written until the daemon is restarted. ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers