<sriram>
thanks Regenaxer....I guess the first param must always be a form
<Regenaxer>
or null
<sriram>
?
<sriram>
oh i see it can be NIL
<Regenaxer>
if null, a GET is done
<Regenaxer>
otherwise a POST to this form
<Regenaxer>
Pil 'This' is the form then
<sriram>
i just want to set the text width and height by calling a lisp function..I guess I can just set to NIL then
<sriram>
not sure if I can get the form inside renderCanvas
<sriram>
(in canvas.js)
<Regenaxer>
yes, if you use globals to store the result
<sriram>
for the time being i am planning to use globals...proof of concept..although ideally i would like the calling function to create symbols that are passed in csGetTextMetric (in my local canvas.js)
<sriram>
so that the symbols and the values are passed to the lisp function
<Regenaxer>
yes, you can pass to the funct
<sriram>
not sure if all this will work...but fun to try :)
<sriram>
i put a TBD at the point i am attempting to retrieve it
<Regenaxer>
bbl
<sriram>
(np)
<sriram>
that pastebin does not work...please try this when you have a chance penyacom.org/p?q=SzhaRks
<Regenaxer>
ret
<Regenaxer>
You still use (set (:: TextW) W) ?
<Regenaxer>
Why not the normal way?
<sriram>
you mean := Text W ?
<Regenaxer>
yes
<Regenaxer>
:: is more for modifying, like (push (:: .. or (inc (:: ..
<sriram>
because I find it easier to remember :: than =:. In fact I have to look up the references for whether it is := or =:...so just thought to keep it simple in a way that I can easily write always
<Regenaxer>
But it is bigger and slower
<sriram>
agreed...I can switch to it
<sriram>
were you able to load the url?
<sriram>
and see the place where I wrote TBD
<Regenaxer>
I have not tried
<sriram>
ok..i find this better than pasetbin as I dont need an account
<Regenaxer>
a bit busy atm, don't want to start another debug session
<sriram>
just paste it in and it gives me a url
<sriram>
sure...no problem...we can do whenever convenient
<Regenaxer>
(I'm doing project work in parallel)
<Regenaxer>
No, I can give you tips :)
<Regenaxer>
I have never complete time ;)
<sriram>
thats what i wanted only :) I was sure once you saw the usage you would be able to give me direction :)
<Regenaxer>
yes, I thought so too
<Regenaxer>
Between (csGetTextMetric and (csFillText there is no time
<Regenaxer>
cannot work
<sriram>
oh? i thought it was blocking?
<Regenaxer>
drawTile is executed in one run, right?
<sriram>
csTextMetric-> renderCanvas in js -> lisp ->setText?
<Regenaxer>
At *some* other time the POST with the sizes may appear
<Regenaxer>
it is all asynchronous
<sriram>
oh i see
<sriram>
hmmm so that wont work
<Regenaxer>
That's why I was sceptical
<Regenaxer>
to get the text size
<sriram>
this way of getting info from client js
<Regenaxer>
yes
<Regenaxer>
You must do it beforehand, in some other event
<Regenaxer>
difficult
<sriram>
thats true...maybe i can have two events one to get the sizes
<sriram>
and one to actually draw
<Regenaxer>
yes, best do do the drawing in the moment you receiv the size
<sriram>
but even if i do that..i will need a way to access : TextW at some point
<sriram>
assuming it has been set before
<Regenaxer>
no need for (: TextW)
<Regenaxer>
you can pass the size where you draw
<sriram>
ah!!
<Regenaxer>
But as I said, this is not trivial
<Regenaxer>
You could consider serverSentEvents
<Regenaxer>
get asynchronous stream
<Regenaxer>
but that's another issue
<Regenaxer>
I wanted to write an article about that first
<sriram>
oh good timing for me then :)
<Regenaxer>
yeah :)
<sriram>
i mean to read your article
<sriram>
:)
<Regenaxer>
Not written yet ;)
<Regenaxer>
I don't find the time, it is in my todo list
<beneroth>
hi all
<Regenaxer>
Hi beneroth
<sriram>
sure...np...in any case..it seems a lot of work to just find the size in pixels of text
<sriram>
Hi!
<Regenaxer>
I knew that, that's why I never considered that
<sriram>
ok good..will abandon that part and continue..its critical to putting text in the center of a rectangle but maybe some other time
<Regenaxer>
yes, and this can be done more efficiently with CSS, without knowing the size on the server
<Regenaxer>
As I said yesterday, otherwise you need a round-trip for every piece of text
<Regenaxer>
OK, sorry, I really need to finish some work
<Regenaxer>
and I cannot concentrate when discussing here ;)
<beneroth>
some work needs more concentration than others :)
<beneroth>
good luck Regenaxer :)
<sriram>
bye :)...thanks!
<Regenaxer>
yeah, I have some trouble
<Regenaxer>
Garbage collection on distributed DBs
<beneroth>
I'm happy to help with unrelated random comments
<beneroth>
uuh
<sriram>
:)
<beneroth>
I see
<Regenaxer>
(will go into 'dbgc' I hope once it works)
<beneroth>
nice
<Regenaxer>
But now I need it for BTG
<sriram>
beneroth the :) was for "unrelated random"
<beneroth>
you lock all? or someone communicate the references to each its "master" db?
<Regenaxer>
Locking is not the problem
<beneroth>
s/someone/somehow
<Regenaxer>
An now too, 'dbgc' runs in single-process mode
<beneroth>
I'm sleep deprived and a bit fuzzy :D (more than usual)
<Regenaxer>
But I lock the other DBs which have references into the current one
<beneroth>
ok
<beneroth>
yeah, that I meant
<Regenaxer>
the issue is to adjust all the offsets
<beneroth>
references spanning multiple DBs
<Regenaxer>
'ext' function
<beneroth>
hm
<Regenaxer>
And I want it generic
<Regenaxer>
extending 'dbgc'
<Regenaxer>
I know how I want it
<Regenaxer>
but the other DBs all refer to each others
<Regenaxer>
it is really confusing
<beneroth>
so the issue is, you don't have a universal identifier for the symbol, only the symbol in this DB which might be another one (offsetted) in the other db? you plan to track all the offsets to get from one external symbol ID to the one it has in another DB?
<Regenaxer>
40 DBs or so
<Regenaxer>
yes
<Regenaxer>
Iw works already this way
<beneroth>
ha. cool. ok I see
<Regenaxer>
Just for dbgc I need it reversed
<beneroth>
you must find some simple scalable formula :/
<Regenaxer>
The calculations are add and sub
<beneroth>
register the offset twice for every direction?
<Regenaxer>
I have diagrams here, hard to explain
<beneroth>
ok
<beneroth>
only explain if you think it helps you
<beneroth>
prolly not :P
<beneroth>
I will visit you and you can explain me in detail then
<beneroth>
(just FYI: I still don't grokked it consciously)
<Regenaxer>
it is 65524 or so
<Regenaxer>
Me neither :/
<beneroth>
so you need to detect "negative or positive?" to be able to add or subtract
<beneroth>
maybe parse that info just like an interpreter?
<beneroth>
hm
<Regenaxer>
yes, find the objects which refer to *me*, ie between 0 and 16 in the file offsetj
<Regenaxer>
no need to parse
<beneroth>
maybe requires to runs
<Regenaxer>
I have all with 'id'
<Regenaxer>
ok, anyway, let me concentrate
<beneroth>
I see. *me* in the above statement being a single DB.
<Regenaxer>
time is running
<Regenaxer>
yes, the one being dbgc'd
<beneroth>
ok.
<beneroth>
maybe turn the question around: how does the single DB now which are NOT its own symbols? (maybe stupid question, I haven't looked into *Ext much yet)
<Regenaxer>
I want a generic way, not only for this BTG model
<beneroth>
the single DB know
<beneroth>
of course
<Regenaxer>
So I must design the arguments to dbgc
<Regenaxer>
lists of offsets, pathes to DB files, and Dbs sizes of the other DBs
<Regenaxer>
this is the problem
<Regenaxer>
I'm fiddling with this all afternoon ;)
<Regenaxer>
It is trivial once it is clear I think
<Regenaxer>
No worries ;)
<beneroth>
I like to let my subconscious do some fiddling, whenever I can afford to let it run at the task for a while
<beneroth>
I'm sure you will find it
<Regenaxer>
yeah :)
<beneroth>
I never forget how sad you were about the ARM fiddling. and then it turned out brilliant :)
<Regenaxer>
true, the CPU looked nasty initially
<beneroth>
I still have to grow my fiddling skill more. Yours is awesome :)
<Regenaxer>
hmm
<beneroth>
lot of exercise.
<beneroth>
I chill out a bit now and leave you alone with your interesting problem :P