r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[I'm new] Ask any question, and a helpful person will try to answer.

Graham
2-Jul-2010
[3846x2]
Why is there a one byte difference in the cotent-lengths?
And why is the soap body formatted that way?  Anytime I've had to 
send soap messages I had to strip out all unnecessary newlines etc 
from the soap body.
jack-ort
2-Jul-2010
[3848]
Hi Graham - sorry to be dense - how did you determine there was a 
1 byte difference in length?


Re. the soap body format, I just copied/pasted from the SoapUI screen....I 
will have to test and see if the newlines are the problem - Thanks 
for the suggestion!
Graham
2-Jul-2010
[3849x4]
sorry ... I misread it.
But ... the saleforce.com api also allows http login for testing 
thru proxies.  I suggest you test against that and use wireshark 
to trace the transaction.
Maybe the soapui screen is just reformatting for readibility and 
it's not actually what is sent.
See also the soap response you posted ... has no newlines, tabs etc
Izkata
2-Jul-2010
[3853]
I also see a 1 byte difference in length - all I did was open Rebol 
and use length? - and it returned 526.
Graham
2-Jul-2010
[3854x3]
Oh yeah .. that's what I did :)
Just forgot ...
LOL
jack-ort
2-Aug-2010
[3857]
Thought I'd see this question asked before, but couldn't find it. 
 Using makdedoc2 to create a simple table, I cannot figure out how 
to present an empty cell.  Following the table example from http://www.rebol.net/docs/makedoc/fastmd.html:

===Table

\table

Column 1

Column 2

Column 3

=row

Row 1, col 1

Row 1, col 2

Row 1, col 3

=row

Row 2, col 1

Row 2, col 2

Row 2, col 3

/table


But an extra blank row will not give you a blank cell - consequently, 
my cell values are shifting to the left to fill in the empty cells.


Is there a solution to this?  Many thanks in advance for your help!
Henrik
2-Aug-2010
[3858]
Can't test, but what happens when you use ""?
jack-ort
2-Aug-2010
[3859]
Hi Henrik!


the "" hold the place, so that my cells no longer shift over, but 
that value gets displayed in my output as a pair of double quotes, 
when I'd prefer to see a blank.  This output is headed to an Excel 
spreadsheet, for what that's worth.
Henrik
2-Aug-2010
[3860x2]
are the values really separated by commas in the syntax?
(I don't remember)
jack-ort
2-Aug-2010
[3862]
commas not part of the syntax.  In this example, they are part of 
the cell value itself.  So the first cell displays "Row 1, col1"


blank lines are what separates one cell value from the next, as far 
as I can tell.
Gregg
2-Aug-2010
[3863x2]
IIRC, I used a dash for empty cells. For export purposes, if you 
really need it blank, you may need to use a special value and then 
post-process it out. I don't know how to do a blank value right off 
either. All the normal tricks of NONE or () won't work in this context.
I'm pretty sure consecutive blank lines get folded, but can't remember.
jack-ort
2-Aug-2010
[3865x3]
everything I try seems to get taken as a literal value, so a dash 
will be a dash.

Extra blank lines do not work, if that's what you mean by folded.
would make-doc-pro handle tables better?

problem with it is, I did not see clear documentation on it.
I think the post-processing idea will work - I will try that.

Thanks to you both, Henrik and Gregg!
Gregg
2-Aug-2010
[3868]
Yes, I used a dash as a dash, knowing that meant the cell was empty. 
I think post-processing is the way to go.
Maxim
2-Aug-2010
[3869]
especially since all it needs is a replace/all  :-)
Gregg
2-Aug-2010
[3870]
Between a WRITE and a READ. :-)
Maxim
2-Aug-2010
[3871]
details  ;-)
Anton
2-Aug-2010
[3872x4]
I haven't used make-doc for a long while, but maybe you can insert 
HTML's  
Then there's ascii char 160, which you can generate in rebol with 
to-char 160. I think they call it a 'hard space' or something.
Once you get it into your editor, you can just copy and paste it 
to all those blank cells. That should probably work.
Ah but wait, it probably depends what Excel will do with it.
Gregg
2-Aug-2010
[3876]
160 = nbsp. I don't know what Excel would do with it either.
Chris
3-Aug-2010
[3877]
You could try:

\group

/group
Yuri
14-Aug-2010
[3878x2]
Privet, ljuboj russkij programmistov zdes'?
Moj anglijskij ne ochen' horosho.
Gregg
15-Aug-2010
[3880]
I don't know if anyone speaks Russian here Yuri.
Oldes
15-Aug-2010
[3881]
Zdrastvuj Yuri:)
Pekr
15-Aug-2010
[3882]
Yuri - ja ucilsja ruskij jazyk, no ja negovorju po ruski aktivno 
:-)
Gregg
15-Aug-2010
[3883]
I stand corrected. :-)
Yuri
15-Aug-2010
[3884]
Good afternoon Oldes and Pekr. My English not good. I use translation 
on Internet. I apologetic if software not judicious
Yuri
17-Aug-2010
[3885]
I apologetic if software not judicious
 -- Hilarious
Good luck all, over and out.
RobertS
20-Aug-2010
[3886]
My Russian is pretty basic ... but sometimes OK for chat as I read 
more than speak .. gets me by listening to Serb and Czech films (no 
ethno -lingual flames, SVP :-)   Polish should come next once I settle 
in here  ( also relatively easy for IT chat )
BrianH
20-Aug-2010
[3887]
Don't worry, it was a fake account.
florin
28-Aug-2010
[3888x2]
What is the issue! datatype? A release? A specification? A problem?
I found this #do reading some code. What is it mean, the Word Browser 
does not anything in it.
BrianH
29-Aug-2010
[3890x2]
The issue! type is a string type that is used for special purposes. 
One of those pruposes is a preprocessor script called prebol, which 
is used by the SDK. If you saw #do in a script it is likely a prebol 
directive.
The docs for prebol are here: http://www.rebol.com/docs/sdk/prebol.html
florin
29-Aug-2010
[3892]
Thanks. That was helpful.
srwill
1-Nov-2010
[3893]
Hi. So is this the correct group to ask a codingn question?
Pekr
1-Nov-2010
[3894]
sure :-)
srwill
1-Nov-2010
[3895]
I''m trying to understand this language, sometimes getting it, sometimes 
not. Anyway here's my question.

In VID, I have a layout.  I want to put random images in 3 columns 
with 5 rows.  The images are stored together in a single binary file. 
(this is a mod of the card game on Nick's tutorial site).


So I read in the images into a series,  after I set the layout. But 
how do add those to the layout?

Here's my current code:
do %cards.r

the-tableau: layout [
	size 320x480 backdrop 0.170.0
	across
	at 30x20 tc1: box 80x100 teal 
	tc2: box 80x100 teal 
	tc3: box 80x100 teal return
	at 30x130 tc4: box 80x100 teal
	tc100: box 80x100 coal
	tc5: box 80x100 teal return
	at 30x240 tc6: box 80x100 teal
	tc200: box 80x100 coal
	tc7: box 80x100 teal return
	at 30x350 tc8: box 80x100 teal
	tc9: box 80x100 teal
	tc10: box 80x100 teal
]

foreach [card label num color pos] cards [
	
	dimg: load to-binary decompress (card)
	append deck-cards dimg ;feel movestyle
	throw-away-label: label
	append deck-cards-num num
	append deck-cards-color color
	throw-away-pos: pos
]

view/new the-tableau

do-events