Testing code

Message boards : The Lounge : Testing code
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 14212 - Posted: 5 Dec 2007, 1:22:49 UTC

Testing tags in a fixed forum width environment.

Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220


ID: 14212 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 14213 - Posted: 5 Dec 2007, 1:23:06 UTC

Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220
ID: 14213 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 14214 - Posted: 5 Dec 2007, 1:23:20 UTC

Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220
ID: 14214 · Report as offensive
Pepo
Avatar

Send message
Joined: 3 Apr 06
Posts: 547
Slovakia
Message 14215 - Posted: 5 Dec 2007, 14:06:29 UTC - in response to Message 14212.  

Testing tags in a fixed forum width environment. A 1-line version.

Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220


Testing tags in a fixed forum width environment. A 2-line version.

Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220
Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220


Testing tags in a fixed forum width environment. A 3-line version.

Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220
Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220
Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220
ID: 14215 · Report as offensive
Josef W. Segur

Send message
Joined: 29 Oct 05
Posts: 5
United States
Message 14216 - Posted: 5 Dec 2007, 14:17:58 UTC
Last modified: 5 Dec 2007, 14:25:48 UTC

Multiline pre:

  double ar=wuheaders[i].group_info->data_desc.true_angle_range;
  double dur=(double)(wuheaders[i].group_info->data_desc.nsamples)/wuheaders[i].subband_desc.sample_rate;
  double min_slew=wuheaders[i].group_info->analysis_cfg->pot_min_slew;
  double max_slew=wuheaders[i].group_info->analysis_cfg->pot_max_slew;


Edit: unwanted extra line breaks are STILL being added. Preformatted text must be just what the name implies, a block of text with no added markup.
ID: 14216 · Report as offensive
Pepo
Avatar

Send message
Joined: 3 Apr 06
Posts: 547
Slovakia
Message 14217 - Posted: 5 Dec 2007, 14:21:19 UTC - in response to Message 14213.  

Catchable fatal error: Object of class stdClass could not be converted to string in /export/share0/www/boinc/milkyway/html/inc/db_forum.inc on line 220
ID: 14217 · Report as offensive
Josef W. Segur

Send message
Joined: 29 Oct 05
Posts: 5
United States
Message 14218 - Posted: 5 Dec 2007, 14:35:41 UTC

Multiline code:

  double ar=wuheaders[i].group_info->data_desc.true_angle_range;
  double dur=(double)(wuheaders[i].group_info->data_desc.nsamples)/wuheaders[i].subband_desc.sample_rate;
  double min_slew=wuheaders[i].group_info->analysis_cfg->pot_min_slew;
  double max_slew=wuheaders[i].group_info->analysis_cfg->pot_max_slew;
ID: 14218 · Report as offensive
Pepo
Avatar

Send message
Joined: 3 Apr 06
Posts: 547
Slovakia
Message 14219 - Posted: 5 Dec 2007, 14:39:28 UTC - in response to Message 14216.  

Edit: unwanted extra line breaks are STILL being added. Preformatted text must be just what the name implies, a block of text with no added markup.


And in addition to it, (code) applied on simple text replaces multi-spaces with one blank character and discards leading blanks:


(code)
function(   )
{
  x--;
  if   (x)
    x++;
}



(pre)
function(   )
{
  x--;
  if   (x)
    x++;
}


Neither combination of them are is completely usable just as they should behave:

(code)(pre)
<pre style="white-space:pre-wrap; ">
function(   )
{
  x--;
  if   (x)
    x++;
}
</pre>



(pre)(code)
[code]
function(   )
{
  x--;
  if   (x)
    x++;
}
[/code]
ID: 14219 · Report as offensive

Message boards : The Lounge : Testing code

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.