You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by sebb <se...@gmail.com> on 2021/07/12 23:31:48 UTC
Re: [whimsy] branch master updated: LDAP-namecheck print header each
30 rows
On Tue, 13 Jul 2021 at 00:29, <cl...@apache.org> wrote:
>
> This is an automated email from the ASF dual-hosted git repository.
>
> clr pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/whimsy.git
>
>
> The following commit(s) were added to refs/heads/master by this push:
> new aa3163a LDAP-namecheck print header each 30 rows
> aa3163a is described below
>
> commit aa3163a5e8607a7bb5b82e76ff7d8d689febe72d
> Author: Craig L Russell <ap...@gmail.com>
> AuthorDate: Mon Jul 12 16:28:26 2021 -0700
>
> LDAP-namecheck print header each 30 rows
> ---
> www/members/ldap-namecheck.cgi | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
> index 34fc818..d6247ad 100755
> --- a/www/members/ldap-namecheck.cgi
> +++ b/www/members/ldap-namecheck.cgi
> @@ -97,7 +97,7 @@ _html do
> next
> end
>
> - if mismatches % 30 == 0 # repeat header every 30 lines
> + if ++mismatches % 30 == 0 # repeat header every 30 lines
Ruby does not have a ++ function.
[Try it in irb]
You need to use 'n += 1'
> _tr do
> _td 'uid'
> _td "iclas.txt public name"
> @@ -108,6 +108,7 @@ _html do
> _td 'Modify to?'
> _td 'Unused names'
> end
> + end
>
> _tr do
> _td do
Re: [whimsy] branch master updated: LDAP-namecheck print header each
30 rows
Posted by Craig Russell <ap...@gmail.com>.
> On Jul 12, 2021, at 4:31 PM, sebb <se...@gmail.com> wrote:
>
> On Tue, 13 Jul 2021 at 00:29, <cl...@apache.org> wrote:
>>
>> This is an automated email from the ASF dual-hosted git repository.
>>
>> clr pushed a commit to branch master
>> in repository https://gitbox.apache.org/repos/asf/whimsy.git
>>
>>
>> The following commit(s) were added to refs/heads/master by this push:
>> new aa3163a LDAP-namecheck print header each 30 rows
>> aa3163a is described below
>>
>> commit aa3163a5e8607a7bb5b82e76ff7d8d689febe72d
>> Author: Craig L Russell <ap...@gmail.com>
>> AuthorDate: Mon Jul 12 16:28:26 2021 -0700
>>
>> LDAP-namecheck print header each 30 rows
>> ---
>> www/members/ldap-namecheck.cgi | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
>> index 34fc818..d6247ad 100755
>> --- a/www/members/ldap-namecheck.cgi
>> +++ b/www/members/ldap-namecheck.cgi
>> @@ -97,7 +97,7 @@ _html do
>> next
>> end
>>
>> - if mismatches % 30 == 0 # repeat header every 30 lines
>> + if ++mismatches % 30 == 0 # repeat header every 30 lines
>
> Ruby does not have a ++ function.
> [Try it in irb]
>
> You need to use 'n += 1'
I searched for "cgi modulo operator" and it gave me the Python modulo operator. So I thought cgi was using Python not Ruby. Of course, I missed the first line of the script
#!/usr/bin/env ruby
But seriously, what language doesn't use ++ operator these days? ;-)
Craig
>
>> _tr do
>> _td 'uid'
>> _td "iclas.txt public name"
>> @@ -108,6 +108,7 @@ _html do
>> _td 'Modify to?'
>> _td 'Unused names'
>> end
>> + end
>>
>> _tr do
>> _td do
Craig L Russell
clr@apache.org