You can subscribe to this list here.
2001 |
Jan
(13) |
Feb
(24) |
Mar
(23) |
Apr
(11) |
May
(18) |
Jun
(90) |
Jul
(29) |
Aug
(26) |
Sep
(37) |
Oct
(10) |
Nov
(31) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(45) |
Feb
(18) |
Mar
(12) |
Apr
(7) |
May
(10) |
Jun
(62) |
Jul
(8) |
Aug
(40) |
Sep
(41) |
Oct
(43) |
Nov
(29) |
Dec
(36) |
2003 |
Jan
(25) |
Feb
(9) |
Mar
(11) |
Apr
(13) |
May
(19) |
Jun
(19) |
Jul
(11) |
Aug
(4) |
Sep
(109) |
Oct
(73) |
Nov
(69) |
Dec
(21) |
2004 |
Jan
(21) |
Feb
(33) |
Mar
(31) |
Apr
(25) |
May
(33) |
Jun
(42) |
Jul
(47) |
Aug
(12) |
Sep
(41) |
Oct
(47) |
Nov
(30) |
Dec
(19) |
2005 |
Jan
(6) |
Feb
(23) |
Mar
(21) |
Apr
(26) |
May
(21) |
Jun
(16) |
Jul
(17) |
Aug
(7) |
Sep
(8) |
Oct
(13) |
Nov
(7) |
Dec
(10) |
2006 |
Jan
(10) |
Feb
(3) |
Mar
|
Apr
(2) |
May
|
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(4) |
2007 |
Jan
(2) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(1) |
Jun
(6) |
Jul
(6) |
Aug
(8) |
Sep
(3) |
Oct
(21) |
Nov
(4) |
Dec
(6) |
2008 |
Jan
(11) |
Feb
(28) |
Mar
(26) |
Apr
(9) |
May
(2) |
Jun
(10) |
Jul
(1) |
Aug
(20) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(4) |
Feb
(10) |
Mar
(1) |
Apr
(24) |
May
(22) |
Jun
(18) |
Jul
(15) |
Aug
(21) |
Sep
(4) |
Oct
(7) |
Nov
(6) |
Dec
|
2010 |
Jan
|
Feb
(2) |
Mar
(13) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(4) |
Sep
(6) |
Oct
(1) |
Nov
(1) |
Dec
|
2011 |
Jan
(18) |
Feb
(2) |
Mar
(23) |
Apr
(4) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
|
Nov
(5) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(31) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(6) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
(7) |
2014 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
(4) |
May
(7) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(4) |
Dec
|
2016 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Jamie C. <jca...@we...> - 2013-10-11 17:05:06
|
On 11/Oct/2013 07:27 Chris Cooper <cc...@co...> wrote .. > Hi, > > We're currently looking into writing a webmin module for configuring a > proprietary application on our appliance platform (currently targeting > Turnkey Linux which includes webmin by default). > > I have found the development wiki which has all kinds of useful > information, but I can find nothing on testing. > > I am interested in how we can unit test (if that is even possible) our > module. What are the testing best practices? Is there a test harness we can > make use of? Hi Chris, There isn't any testing framework built into Webmin. However, for some large modules (Virtualmin and Cloudmin) I have implemented tests by writing a script that calls the command-line API for the module, and verifies the output. However, this requires that your module actually have a shell API, which can be a lot of work to develop (but is useful for other purposes). - Jamie |
From: PEOPLES, M. P <mp...@at...> - 2013-10-11 15:23:50
|
I'm no expert, but given that this written in Perl, I'd look to that tooling for testing procedures. Michael Peoples (mp4783) iGEMS COE, Deployment, Engineering, Application Support and Security Global Service Assurance, M5 AT&T Business Solutions Office: +1 614-886-0923 Mobile: +1 614-886-0923 Senior Systems Manager mpe...@at...<mailto:mpe...@at...> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." From: Chris Cooper [mailto:cc...@co...] Sent: Friday, October 11, 2013 10:28 To: web...@li... Subject: [webmin-devel] module development and testing Hi, We're currently looking into writing a webmin module for configuring a proprietary application on our appliance platform (currently targeting Turnkey Linux which includes webmin by default). I have found the development wiki which has all kinds of useful information, but I can find nothing on testing. I am interested in how we can unit test (if that is even possible) our module. What are the testing best practices? Is there a test harness we can make use of? Thanks |
From: Chris C. <cc...@co...> - 2013-10-11 14:51:44
|
Hi, We're currently looking into writing a webmin module for configuring a proprietary application on our appliance platform (currently targeting Turnkey Linux which includes webmin by default). I have found the development wiki which has all kinds of useful information, but I can find nothing on testing. I am interested in how we can unit test (if that is even possible) our module. What are the testing best practices? Is there a test harness we can make use of? Thanks |
From: Krause F. <Fel...@de...> - 2013-07-24 07:07:28
|
> I think you need to replace the + in those print statements with a . , which is > what perl uses to combine strings. Oh yes of course. I'm not very familiar with Perl... it works now, thanks! Regards, Felix |
From: Jamie C. <jca...@we...> - 2013-07-24 07:01:29
|
I think you need to replace the + in those print statements with a . , which is what perl uses to combine strings. Krause Felix <Fel...@de...> wrote: >> Something like that should work - but you should remove the line that prints >> "HTTP/1.1 200 OK". This isn't necessary in any Webmin CGI script, as the >> webserver adds that line. The "500 Bad Header" error happens if your script's >> output doesn't start with valid HTTP headers. > >I changed it to: > >my $CRFL = "\x0d\x0a"; >my $client = HTTP::Client->new(); >my $content = $client->get("http://127.0.0.1:8888/io"); > >print "Date: " + time2str(localtime) + $CRLF; >print "Content-Type: text/json; Charset=iso-8859-1$CRLF"; >print "Content-Length: " + length($content); >print "$CRLF$CRLF$content"; > >I get the same 500 error. Afaik these are the only required headers for a http response. Do I need to add others to make it work? Is there a log where Webmin tells me what it doesn't like about my headers? (The action log is empty.) > >I would look what a normal index.cgi outputs, but I cannot execute it directly from the command line (it says that WEBMIN_CONFIG is not set). > >Regards, >Felix > >------------------------------------------------------------------------------ >See everything from the browser to the database with AppDynamics >Get end-to-end visibility with application monitoring from AppDynamics >Isolate bottlenecks and diagnose root cause in seconds. >Start your free trial of AppDynamics Pro today! >http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >- >Forwarded by the Webmin development list at web...@we... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Krause F. <Fel...@de...> - 2013-07-24 06:09:24
|
> Something like that should work - but you should remove the line that prints > "HTTP/1.1 200 OK". This isn't necessary in any Webmin CGI script, as the > webserver adds that line. The "500 Bad Header" error happens if your script's > output doesn't start with valid HTTP headers. I changed it to: my $CRFL = "\x0d\x0a"; my $client = HTTP::Client->new(); my $content = $client->get("http://127.0.0.1:8888/io"); print "Date: " + time2str(localtime) + $CRLF; print "Content-Type: text/json; Charset=iso-8859-1$CRLF"; print "Content-Length: " + length($content); print "$CRLF$CRLF$content"; I get the same 500 error. Afaik these are the only required headers for a http response. Do I need to add others to make it work? Is there a log where Webmin tells me what it doesn't like about my headers? (The action log is empty.) I would look what a normal index.cgi outputs, but I cannot execute it directly from the command line (it says that WEBMIN_CONFIG is not set). Regards, Felix |
From: PEOPLES, M. P <mp...@at...> - 2013-07-23 13:33:06
|
I'm no expert here, but I would get a protocol analyzer (Wireshark) and/or tcpdump and look at the packet stream that is being sent by an application (browser) that does work with your embedded application. At least you'll know what a "well-formed" HTTP message looks like so that you can adjust your code accordingly. You can also look at what is actually being sent by Webmin. Maybe something is being altered before it is sent. Finally, you could try transmitting the message with curl or wget ( I can't really tell details, but I know they can do that) to see if it appropriately formatted. Michael Peoples (mp4783) iGEMS COE, Deployment, Engineering, Application Support and Security Global Service Assurance, M5 AT&T Business Solutions Office: +1 614-886-0923 Mobile: +1 614-886-0923 Senior Systems Manager mpe...@at... This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." -----Original Message----- From: Krause Felix [mailto:Fel...@de...] Sent: Tuesday, July 23, 2013 2:58 AM To: web...@li... Subject: [webmin-devel] ajax with webmin Hi everyone, I am implementing a webmin module for monitoring an embedded system. The webmin installation is primarily used to administrate the OS, but should also be able to show the current status of the main application running on it. I need to use AJAX to automatically update the visualization of some I/O channels. Now the application has a RESTful, JSON-based interface for accessing its status. The problem is that it does not do any authentication, so it is reachable only from localhost for security reasons. My Webmin module retrieves information from there and renders it. For the AJAX requests, the Webmin module should act like a proxy and just pipe through the content retrieved from the application. I tried the following in a script io.cgi as part of my Webmin module: my $client = HTTP::Client->new(); my $content = $client->get("http://127.0.0.1:8888/io"); print "HTTP/1.1 200 OK$CRLF"; print "Content-Type: text/json$CRLF"; print "Content-Length: " + length($content); print "$CRLF$CRLF$content"; This does not work; when I try to retrieve /myModule/io.cgi, I get: HTTP/1.0 500 Bad Header Server: MiniServ/1.620 Date: Tue, 23 Jul 2013 06:07:06 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close Is it possible to do this with Webmin? Regards, Felix ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk - Forwarded by the Webmin development list at web...@we... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Jamie C. <jca...@we...> - 2013-07-23 08:07:17
|
On 22/Jul/2013 23:57 Krause Felix <Fel...@de...> wrote .. > Hi everyone, > > I am implementing a webmin module for monitoring an embedded system. The webmin > installation is primarily used to administrate the OS, but should also be able > to show the current status of the main application running on it. I need to use > AJAX to automatically update the visualization of some I/O channels. > > Now the application has a RESTful, JSON-based interface for accessing its status. > The problem is that it does not do any authentication, so it is reachable only > from localhost for security reasons. My Webmin module retrieves information from > there and renders it. For the AJAX requests, the Webmin module should act like > a proxy and just pipe through the content retrieved from the application. I tried > the following in a script io.cgi as part of my Webmin module: > > my $client = HTTP::Client->new(); > my $content = $client->get("http://127.0.0.1:8888/io"); > > print "HTTP/1.1 200 OK$CRLF"; > print "Content-Type: text/json$CRLF"; > print "Content-Length: " + length($content); > print "$CRLF$CRLF$content"; > > This does not work; when I try to retrieve /myModule/io.cgi, I get: > > HTTP/1.0 500 Bad Header > Server: MiniServ/1.620 > Date: Tue, 23 Jul 2013 06:07:06 GMT > Content-type: text/html; Charset=iso-8859-1 > Connection: close > > Is it possible to do this with Webmin? Hi Felix, Something like that should work - but you should remove the line that prints "HTTP/1.1 200 OK". This isn't necessary in any Webmin CGI script, as the webserver adds that line. The "500 Bad Header" error happens if your script's output doesn't start with valid HTTP headers. - Jamie |
From: Krause F. <Fel...@de...> - 2013-07-23 07:10:52
|
Hi everyone, I am implementing a webmin module for monitoring an embedded system. The webmin installation is primarily used to administrate the OS, but should also be able to show the current status of the main application running on it. I need to use AJAX to automatically update the visualization of some I/O channels. Now the application has a RESTful, JSON-based interface for accessing its status. The problem is that it does not do any authentication, so it is reachable only from localhost for security reasons. My Webmin module retrieves information from there and renders it. For the AJAX requests, the Webmin module should act like a proxy and just pipe through the content retrieved from the application. I tried the following in a script io.cgi as part of my Webmin module: my $client = HTTP::Client->new(); my $content = $client->get("http://127.0.0.1:8888/io"); print "HTTP/1.1 200 OK$CRLF"; print "Content-Type: text/json$CRLF"; print "Content-Length: " + length($content); print "$CRLF$CRLF$content"; This does not work; when I try to retrieve /myModule/io.cgi, I get: HTTP/1.0 500 Bad Header Server: MiniServ/1.620 Date: Tue, 23 Jul 2013 06:07:06 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close Is it possible to do this with Webmin? Regards, Felix |
From: Mads M. T. <ma...@ma...> - 2013-06-18 12:16:22
|
Hi Webmin developers I'm having a issue with very slow download speeds from the Upload and download module. I've committed a fix to github and created a pull request https://github.com/webmin/webmin/pull/56. But should I do anything more to get it into the official version? Best regards, Mads |
From: Danny S. <da...@da...> - 2013-04-12 21:36:11
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 If you do an <input type=number>, most newer browsers will restrict values to numeric, mobile browsers will pop up a numeric keypad, and old browsers will just do a normal text field because they don't recognize that type (and the default is plain text). You can't rely on that (always verify on the server side), and the ui_lib doesn't create these for you, but giving some feedback on the client side this way is almost free, so it's basically win-win. :) Jamie Cameron <jca...@we...> wrote: > > Usually I would do this on the server side, with code like : > if ($in{'fieldname'} !~ /[0-9]/) { > error("You must enter a digit"); > } > > On 12/Apr/2013 06:02 Emma wasanzy <emm...@gm...> wrote .. > > Hello, > Please how can I force a user to input a digit in a textbox? Or how to > validate the input to make sure is a digit? > Cheers! > > >------------------------------------------------------------------------ > >------------------------------------------------------------------------------ >Precog is a next-generation analytics platform capable of advanced >analytics on semi-structured data. The platform includes APIs for >building >apps and a phenomenal toolset for data science. Developers can use >our toolset for easy data analysis & visualization. Get a free account! >http://www2.precog.com/precogplatform/slashdotnewsletter > >------------------------------------------------------------------------ > >- >Forwarded by the Webmin development list at web...@we... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-devel - -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -----BEGIN PGP SIGNATURE----- Version: APG v1.0.8 iGoEAREIACoFAlFoedkjHERhbm55IFNhdWVyIDxkYW5ueUBkYW5ueXNhdWVyLmNv bT4ACgkQvtwZjjd2PN+qNQCeOhLlAopjjQNs55wrjLsl5JjaBEwAn36YW2iDFnEC aep9QjSMFdgx0EZN =439C -----END PGP SIGNATURE----- |
From: Emma w. <emm...@gm...> - 2013-04-12 13:03:26
|
Hello, Please how can I force a user to input a digit in a textbox? Or how to validate the input to make sure is a digit? Cheers! |
From: Emma w. <emm...@gm...> - 2013-03-26 20:11:34
|
Hello, As part of the module I am writing for tomcat management, I wrote a module for accessing tomcat logs. The problem I have is, when I open the page, the default selected fields should cause the logs to display in the textarea box but this is not so. I have to click on the "Display" button before the logs get displayed. The second problem is that, when I select new fields and click on displays, the logs displays alright but the fields changed back to the default fields which in normal sense shouldn't be so. Here is the code below: #!/usr/bin/perl require 'tomcat-lib.pl'; #&ReadParse(); &ui_print_header(undef, $text{'logaccess_title'}, "", "tomcatlog"); #Get all instances @insts = File::Slurp::read_file( $config{'tomcat_instance'} ) or die "Failed to read $config{'tomcat_instance'} - $!"; #Log type: access or catalina.out @log_types = ( "catalina.out", "access_log" ); $in{'inst'} =~ s/\s+//; $in{'inst'} ||= $insts[0]; &indexof($in{'inst'}, @insts) >= 0 || &error( $text{'no_log'} ); $in{'log_type'} ||= $log_types[0]; &indexof($in{'log_type'}, @log_types) >= 0 || &error( $text{'clog'} ); print &ui_form_start("tomcatlogs.cgi"); print "<b>$text{'inst_select'}</b>\n"; print &ui_select("inst", $in{'inst'}, [ map { [ $_ ] } @insts ]),"\n"; print "<b>$text{'log_type'}</b>\n"; print &ui_select("log_type", $in{'log_type'}, [ map { [ $_ ] } @log_types ]),"\n"; $d =`date '+\%d'`; $m = `date '+\%m'`; $y = `date '+\%Y'`; print "Day:" . &ui_textbox("ld", $d, "2") . "Month:" . &ui_textbox("lm", $m, "2") . "Year:". &ui_textbox("ly", $y,"4") . &date_chooser_button("ld", "lm", "ly" ), "\n"; print &ui_submit($text{'log_display'}); print &ui_form_end(); $q = CGI->new; $instance = $q->param('inst'); $log_type = $q->param('log_type'); $lday = sprintf("%02d", $q->param('ld')); #Force 2 digit number $lmonth = sprintf("%02d", $q->param('lm')); $lyear = sprintf("%04d", $q->param('ly')); #Force 4 digit number $current = `date '+\%Y\%m\%d' `; $cdate = $lyear . $lmonth . $lday; $aldate = $lyear . "-" . $lmonth . "-". $lday; $instance =~ s/\s+//; if ( $instance eq "tomcat5" ){ if ( $log_type eq "catalina.out") { if ( $cdate == $current ) { $tomcat_log = "/var/log/tomcat5/catalina.out"; } else { $tomcat_log = "/var/log/tomcat5/catalina.out-$cdate.gz"; } } elsif ( $log_type eq "access_log" ) { if ( $cdate == $current ) { $tomcat_log = "/var/log/tomcat5/access-logs/tomcat_access.log-$aldate"; } else { $tomcat_log = "/var/log/tomcat5/access-logs/tomcat_access.log-$aldate.gz"; } } } else { if ( $log_type eq "catalina.out" ) { if ( $cdate == $current ) { $tomcat_log = "/var/lib/$instance/logs/catalina.out"; } else { $tomcat_log = "/var/lib/$instance/logs/catalina.out-$cdate.gz"; } } elsif ($log_type eq "access_log" ) { if ( $cdate == $current) { $tomcat_log = "/var/lib/$instance/access-logs/tomcat_access.log-$aldate"; } else { $tomcat_log = "/var/lib/$instance/access-logs/tomcat_access.log $aldate.gz"; } } } print "<br>"; print "Log: $tomcat_log \n"; print "<br>"; #print &ui_form_start( "index.cgi", "form-data"); #print &ui_hidden("log", $tomcat_log),"<br>"; if ( -e $tomcat_log ) { if ( $cdate == $current ) { $data = &read_file_contents("$tomcat_log"); } else { $data = `zcat $tomcat_log`; } } #else { # print "$tomcat_log does not exist on the server, kindly check your chosen date <br>"; #} print &ui_form_start( "index.cgi", "form-data"); print &ui_hidden("log", $tomcat_log),"<br>"; print &ui_textarea("data", $data, 20, 80),"\n"; print "<br>"; print &ui_submit($text{'exit'}); print &ui_form_end(); &ui_print_footer("/", $text{'index'}); |
From: Emma w. <emm...@gm...> - 2013-03-22 19:22:53
|
Ok Jamie, thank you so much for the good works! On Mar 22, 2013 6:23 PM, "Jamie Cameron" <jca...@we...> wrote: > Actually, "use strict" should work just fine - a while back I updated the > core Webmin API to use strict and warnings modes, and all new modules have > been written to turn those on. > > For example, see the module in the "webmin" subdirectory for how this is > done. > > On 22/Mar/2013 09:08 Emma wasanzy <emm...@gm...> wrote .. > > Oh yes Jamie has done a great work and is really helping me a lot. I was > only asking to know if there was a special reason why strict hasn't been > used. It might help my knowledge tooo. > On Mar 22, 2013 3:06 PM, "PEOPLES, MICHAEL P" <mp...@at...<http://reply_mail.cgi?new=1&to=mp4783%40att%2Ecom>> > wrote: > >> I cannot speak for Jamie, at whose feet I gladly grovel, but my theory >> is that it made Webmin and the attendant code more “inclusive” of what >> might be added to it. Again, my Perl knowledge is pathetic, but that’s my >> theory.**** >> >> ** ** >> >> What Jamie built, for those of you who have taken the time to really >> consider it, is a monumental achievement and contribution to system >> administrators all over the world. I’m not “polishing apples” here. I owe >> countless hours “recovered” through the use of Webmin to the guy.**** >> >> ** ** >> >> Michael Peoples (mp4783)**** >> >> iGEMS COE, Deployment, Engineering, Application Support and Security**** >> >> Global Service Assurance, M5**** >> >> AT&T Business Solutions**** >> >> Office: +1 614-886-0923**** >> >> Mobile: +1 614-886-0923**** >> >> ** ** >> >> Senior Systems Manager**** >> >> mpe...@at... <http://reply_mail.cgi?new=1&to=mpeoples%40att%2Ecom>*** >> * >> >> ** ** >> >> *This e-mail and any files transmitted with it are AT&T property, are >> confidential, and are intended solely for the use of the individual or >> entity to whom this email is addressed. If you are not one of the named >> recipient(s) or otherwise have reason to believe that you have received >> this message in error, please notify the sender and delete this message >> immediately from your computer. Any other use, retention, dissemination, >> forwarding, printing, or copying of this e-mail is strictly prohibited."* >> **** >> >> ** ** >> >> *From:* Chris Nighswonger [mailto:cni...@fo...<http://reply_mail.cgi?new=1&to=cnighswonger%40foundations%2Eedu>] >> >> *Sent:* Friday, March 22, 2013 10:55 AM >> *To:* Webmin development list >> *Subject:* Re: [webmin-devel] Strict**** >> >> ** ** >> >> On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <emm...@gm...<http://reply_mail.cgi?new=1&to=emma%2Ewasanzy%40gmail%2Ecom>> >> wrote:**** >> >> Hello, **** >> >> I have noticed that, the webmin API doesnt support the use of strict and >> warning. Because any time I tried using them, I get so many "Global ...." >> errors which are related to the API. Why isn't the API using strict?**** >> >> ** ** >> >> >> I'm sure only the webmin developer knows why he did not use strict, >> however, you can still use it. Just initialize vars you intend on importing >> thus: >> >> #!/usr/bin/perl >> >> our( %in, %text, %config ); >> >> use strict; >> use warnings; >> >> etc..... >> >> Older Perl did not support the 'our' pragma, but 'vars.' [1] So keep that >> in mind if you are using an older Perl. >> >> Kind Regards, >> Chris >> >> [1] http://perldoc.perl.org/vars.html**** >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> - >> Forwarded by the Webmin development list at web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> >> > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: Emma w. <emm...@gm...> - 2013-03-22 16:08:55
|
Oh yes Jamie has done a great work and is really helping me a lot. I was only asking to know if there was a special reason why strict hasn't been used. It might help my knowledge tooo. On Mar 22, 2013 3:06 PM, "PEOPLES, MICHAEL P" <mp...@at...> wrote: > I cannot speak for Jamie, at whose feet I gladly grovel, but my theory > is that it made Webmin and the attendant code more “inclusive” of what > might be added to it. Again, my Perl knowledge is pathetic, but that’s my > theory.**** > > ** ** > > What Jamie built, for those of you who have taken the time to really > consider it, is a monumental achievement and contribution to system > administrators all over the world. I’m not “polishing apples” here. I owe > countless hours “recovered” through the use of Webmin to the guy.**** > > ** ** > > Michael Peoples (mp4783)**** > > iGEMS COE, Deployment, Engineering, Application Support and Security**** > > Global Service Assurance, M5**** > > AT&T Business Solutions**** > > Office: +1 614-886-0923**** > > Mobile: +1 614-886-0923**** > > ** ** > > Senior Systems Manager**** > > mpe...@at...**** > > ** ** > > *This e-mail and any files transmitted with it are AT&T property, are > confidential, and are intended solely for the use of the individual or > entity to whom this email is addressed. If you are not one of the named > recipient(s) or otherwise have reason to believe that you have received > this message in error, please notify the sender and delete this message > immediately from your computer. Any other use, retention, dissemination, > forwarding, printing, or copying of this e-mail is strictly prohibited."** > *** > > ** ** > > *From:* Chris Nighswonger [mailto:cni...@fo...] > *Sent:* Friday, March 22, 2013 10:55 AM > *To:* Webmin development list > *Subject:* Re: [webmin-devel] Strict**** > > ** ** > > On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <emm...@gm...> > wrote:**** > > Hello, **** > > I have noticed that, the webmin API doesnt support the use of strict and > warning. Because any time I tried using them, I get so many "Global ...." > errors which are related to the API. Why isn't the API using strict?**** > > ** ** > > > I'm sure only the webmin developer knows why he did not use strict, > however, you can still use it. Just initialize vars you intend on importing > thus: > > #!/usr/bin/perl > > our( %in, %text, %config ); > > use strict; > use warnings; > > etc..... > > Older Perl did not support the 'our' pragma, but 'vars.' [1] So keep that > in mind if you are using an older Perl. > > Kind Regards, > Chris > > [1] http://perldoc.perl.org/vars.html**** > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: Emma w. <emm...@gm...> - 2013-03-22 16:05:22
|
That is cool. I am using latest perl version though. Thank you. On Mar 22, 2013 2:56 PM, "Chris Nighswonger" <cni...@fo...> wrote: > On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <emm...@gm...>wrote: > >> Hello, >> >> I have noticed that, the webmin API doesnt support the use of strict and >> warning. Because any time I tried using them, I get so many "Global ...." >> errors which are related to the API. Why isn't the API using strict? >> >> > I'm sure only the webmin developer knows why he did not use strict, > however, you can still use it. Just initialize vars you intend on importing > thus: > > #!/usr/bin/perl > > our( %in, %text, %config ); > > use strict; > use warnings; > > etc..... > > Older Perl did not support the 'our' pragma, but 'vars.' [1] So keep that > in mind if you are using an older Perl. > > Kind Regards, > Chris > > [1] http://perldoc.perl.org/vars.html > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: PEOPLES, M. P <mp...@at...> - 2013-03-22 15:05:01
|
I cannot speak for Jamie, at whose feet I gladly grovel, but my theory is that it made Webmin and the attendant code more “inclusive” of what might be added to it. Again, my Perl knowledge is pathetic, but that’s my theory. What Jamie built, for those of you who have taken the time to really consider it, is a monumental achievement and contribution to system administrators all over the world. I’m not “polishing apples” here. I owe countless hours “recovered” through the use of Webmin to the guy. Michael Peoples (mp4783) iGEMS COE, Deployment, Engineering, Application Support and Security Global Service Assurance, M5 AT&T Business Solutions Office: +1 614-886-0923 Mobile: +1 614-886-0923 Senior Systems Manager mpe...@at...<mailto:mpe...@at...> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." From: Chris Nighswonger [mailto:cni...@fo...] Sent: Friday, March 22, 2013 10:55 AM To: Webmin development list Subject: Re: [webmin-devel] Strict On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <emm...@gm...<mailto:emm...@gm...>> wrote: Hello, I have noticed that, the webmin API doesnt support the use of strict and warning. Because any time I tried using them, I get so many "Global ...." errors which are related to the API. Why isn't the API using strict? I'm sure only the webmin developer knows why he did not use strict, however, you can still use it. Just initialize vars you intend on importing thus: #!/usr/bin/perl our( %in, %text, %config ); use strict; use warnings; etc..... Older Perl did not support the 'our' pragma, but 'vars.' [1] So keep that in mind if you are using an older Perl. Kind Regards, Chris [1] http://perldoc.perl.org/vars.html |
From: Chris N. <cni...@fo...> - 2013-03-22 14:55:10
|
On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <emm...@gm...>wrote: > Hello, > > I have noticed that, the webmin API doesnt support the use of strict and > warning. Because any time I tried using them, I get so many "Global ...." > errors which are related to the API. Why isn't the API using strict? > > I'm sure only the webmin developer knows why he did not use strict, however, you can still use it. Just initialize vars you intend on importing thus: #!/usr/bin/perl our( %in, %text, %config ); use strict; use warnings; etc..... Older Perl did not support the 'our' pragma, but 'vars.' [1] So keep that in mind if you are using an older Perl. Kind Regards, Chris [1] http://perldoc.perl.org/vars.html |
From: Emma w. <emm...@gm...> - 2013-03-22 14:43:28
|
Yea the same thing I did by removing the strict. When you look at webmin codes itself, strict is not use anywhere do I guess that is it. On Mar 22, 2013 1:40 PM, "PEOPLES, MICHAEL P" <mp...@at...> wrote: > It’s not the API that is doing that, it’s Perl’s interpretation of the > code (perhaps that’s self-evident). I have limited Perl knowledge and will > defer to others on this. However, I experienced the same thing when > developing my own custom module. I simply removed the “strict” command and > moved on.**** > > ** ** > > Jamie will doubtless be able to explain this better.**** > > ** ** > > Michael Peoples (mp4783)**** > > iGEMS COE, Deployment, Engineering, Application Support and Security**** > > Global Service Assurance, M5**** > > AT&T Business Solutions**** > > Office: +1 614-886-0923**** > > Mobile: +1 614-886-0923**** > > ** ** > > Senior Systems Manager**** > > mpe...@at...**** > > ** ** > > *This e-mail and any files transmitted with it are AT&T property, are > confidential, and are intended solely for the use of the individual or > entity to whom this email is addressed. If you are not one of the named > recipient(s) or otherwise have reason to believe that you have received > this message in error, please notify the sender and delete this message > immediately from your computer. Any other use, retention, dissemination, > forwarding, printing, or copying of this e-mail is strictly prohibited."** > *** > > ** ** > > *From:* Emma wasanzy [mailto:emm...@gm...] > *Sent:* Friday, March 22, 2013 7:48 AM > *To:* Webmin development list; Webmin users list > *Subject:* [webmin-devel] Strict**** > > ** ** > > Hello, **** > > I have noticed that, the webmin API doesnt support the use of strict and > warning. Because any time I tried using them, I get so many "Global ...." > errors which are related to the API. Why isn't the API using strict?**** > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: PEOPLES, M. P <mp...@at...> - 2013-03-22 13:39:19
|
It's not the API that is doing that, it's Perl's interpretation of the code (perhaps that's self-evident). I have limited Perl knowledge and will defer to others on this. However, I experienced the same thing when developing my own custom module. I simply removed the "strict" command and moved on. Jamie will doubtless be able to explain this better. Michael Peoples (mp4783) iGEMS COE, Deployment, Engineering, Application Support and Security Global Service Assurance, M5 AT&T Business Solutions Office: +1 614-886-0923 Mobile: +1 614-886-0923 Senior Systems Manager mpe...@at...<mailto:mpe...@at...> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." From: Emma wasanzy [mailto:emm...@gm...] Sent: Friday, March 22, 2013 7:48 AM To: Webmin development list; Webmin users list Subject: [webmin-devel] Strict Hello, I have noticed that, the webmin API doesnt support the use of strict and warning. Because any time I tried using them, I get so many "Global ...." errors which are related to the API. Why isn't the API using strict? |
From: Emma w. <emm...@gm...> - 2013-03-22 11:48:12
|
Hello, I have noticed that, the webmin API doesnt support the use of strict and warning. Because any time I tried using them, I get so many "Global ...." errors which are related to the API. Why isn't the API using strict? |
From: Emma w. <emm...@gm...> - 2013-03-21 04:15:02
|
Ok thank you, I will give it a try. On Mar 21, 2013 1:51 AM, "Chris Nighswonger" <cni...@fo...> wrote: > On Wed, Mar 20, 2013 at 3:14 PM, Emma wasanzy <emm...@gm...>wrote: > >> ui_select > > > This may help: > > > http://doxfer.webmin.com/Webmin/ApiWebminCore#ui_select_name_value_values_opti > > Look at the javascript parameter. You should be able to pass in an > arrayref of additional options such as 'onselect,' etc. > > Kind Regards, > Chris > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: Chris N. <cni...@fo...> - 2013-03-21 01:50:25
|
On Wed, Mar 20, 2013 at 3:14 PM, Emma wasanzy <emm...@gm...>wrote: > ui_select This may help: http://doxfer.webmin.com/Webmin/ApiWebminCore#ui_select_name_value_values_opti Look at the javascript parameter. You should be able to pass in an arrayref of additional options such as 'onselect,' etc. Kind Regards, Chris |
From: PEOPLES, M. P <mp...@at...> - 2013-03-20 21:49:59
|
I've been where you're at and gave up on some things. Your best bet may be to go out and find a JavaScript framework (Dojo, JQuery, etc.) and try to incorporate that functionality into your code. I'm not entirely sure how the Webmin web server will react to this however. This won't be easy, but once you've figured out how to make it work within the Webmin environment, you can use other functionality it provides to enhance your modules. There are lots of neat widgets and components to work with. Then, you can share what you did with the rest of us and be a hero! Michael Peoples (mp4783) iGEMS COE, Deployment, Engineering, Application Support and Security Global Service Assurance, M5 AT&T Business Solutions Office: +1 614-886-0923 Mobile: +1 614-886-0923 Senior Systems Manager mpe...@at...<mailto:mpe...@at...> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." From: Emma wasanzy [mailto:emm...@gm...] Sent: Wednesday, March 20, 2013 4:12 PM To: Webmin development list Cc: Webmin users list Subject: Re: [webmin-devel] Select button Yea, I did but didn't find anything closer to it. I based on the download and upload module to write the jsp uploading module but only that part I am struggling with. On Wed, Mar 20, 2013 at 7:23 PM, PEOPLES, MICHAEL P <mp...@at...<mailto:mp...@at...>> wrote: What I always do is look through all of the other modules to see if I can find a function like the one I want, or at least one that is similar. Then, examine the code in that module and modify it to your requirements. If you're curious as to which modules might contain such functions, search for JavaScript references in the files. You can do this finding all the files containing source code, creating a list of them, then looping through the list, searching each file for the "jsp" or other relevant tags. This may not always work for you, but it's how I created my custom modules. Michael Peoples (mp4783) iGEMS COE, Deployment, Engineering, Application Support and Security Global Service Assurance, M5 AT&T Business Solutions Office: +1 614-886-0923<tel:%2B1%20614-886-0923> Mobile: +1 614-886-0923<tel:%2B1%20614-886-0923> Senior Systems Manager mpe...@at...<mailto:mpe...@at...> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." From: Emma wasanzy [mailto:emm...@gm...<mailto:emm...@gm...>] Sent: Wednesday, March 20, 2013 3:15 PM To: Webmin development list; Webmin users list Subject: [webmin-devel] Select button Hello, In the module am writing for tomcat, I want to provide two select menu(dropdown menu). There a so many tomcat instance and each of them has applications under them. Now, if someone want to upload a new jsp to a particular tomcat say /var/lib/tomcat5/webapps/myapp is where the jsp will be uploaded to. I want the first select menu to provide the list of all the tomcat instances on the server(This I have done successfully). The second select menu should contain all the applications under the selected tomcat instance from the first menu select. so if I select tomcat5, the second select menu should load automatically all the applications under tomcat5. I know there is a javascript function that can do something like that (onchange or so). But how can I do this? Any help will be appreciated much. I have my two menu select with the code below: print &ui_table_row($text{'inst_select'}, &ui_select("inst", $in{'inst'}, [ map { [ $_ ] } @insts ] ) ); This is not working yet. print &ui_table_row( $text{'select_app'}, &ui_select("ap", $in{'inst'}, [ map { [ $_ ] } @apps ] ) ); I will be using the two select menu to construct the directory to which the jsp is to be saved. Cheers! ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar - Forwarded by the Webmin development list at web...@we...<mailto:web...@we...> To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Emma w. <emm...@gm...> - 2013-03-20 20:12:13
|
Yea, I did but didn't find anything closer to it. I based on the download and upload module to write the jsp uploading module but only that part I am struggling with. On Wed, Mar 20, 2013 at 7:23 PM, PEOPLES, MICHAEL P <mp...@at...> wrote: > What I always do is look through all of the other modules to see if I > can find a function like the one I want, or at least one that is similar.* > *** > > ** ** > > Then, examine the code in that module and modify it to your requirements. > **** > > ** ** > > If you’re curious as to which modules might contain such functions, search > for JavaScript references in the files. You can do this finding all the > files containing source code, creating a list of them, then looping through > the list, searching each file for the “jsp” or other relevant tags.**** > > ** ** > > This may not always work for you, but it’s how I created my custom modules. > **** > > ** ** > > Michael Peoples (mp4783)**** > > iGEMS COE, Deployment, Engineering, Application Support and Security**** > > Global Service Assurance, M5**** > > AT&T Business Solutions**** > > Office: +1 614-886-0923**** > > Mobile: +1 614-886-0923**** > > ** ** > > Senior Systems Manager**** > > mpe...@at...**** > > ** ** > > *This e-mail and any files transmitted with it are AT&T property, are > confidential, and are intended solely for the use of the individual or > entity to whom this email is addressed. If you are not one of the named > recipient(s) or otherwise have reason to believe that you have received > this message in error, please notify the sender and delete this message > immediately from your computer. Any other use, retention, dissemination, > forwarding, printing, or copying of this e-mail is strictly prohibited."** > *** > > ** ** > > *From:* Emma wasanzy [mailto:emm...@gm...] > *Sent:* Wednesday, March 20, 2013 3:15 PM > *To:* Webmin development list; Webmin users list > *Subject:* [webmin-devel] Select button**** > > ** ** > > Hello,**** > > ** ** > > In the module am writing for tomcat, I want to provide two select > menu(dropdown menu). There a so many tomcat instance and each of them has > applications under them. Now, if someone want to upload a new jsp to a > particular tomcat say /var/lib/tomcat5/webapps/myapp is where the jsp will > be uploaded to. I want the first select menu to provide the list of all the > tomcat instances on the server(This I have done successfully).**** > > The second select menu should contain all the applications under the > selected tomcat instance from the first menu select. so if I select > tomcat5, the second select menu should load automatically all the > applications under tomcat5.**** > > ** ** > > I know there is a javascript function that can do something like that > (onchange or so). But how can I do this? Any help will be appreciated much. > **** > > ** ** > > I have my two menu select with the code below:**** > > ** ** > > print &ui_table_row($text{'inst_select'},**** > > &ui_select("inst", $in{'inst'},**** > > [ map { [ $_ ] } @insts ] ) );**** > > ** ** > > This is not working yet.**** > > print &ui_table_row( $text{'select_app'},**** > > &ui_select("ap", $in{'inst'},**** > > [ map { [ $_ ] } @apps ] ) );**** > > ** ** > > ** ** > > ** ** > > ** ** > > I will be using the two select menu to construct the directory to which > the jsp is to be saved.**** > > ** ** > > ** ** > > Cheers!**** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |