<Nistur>
Regenaxer: you had fun with Samsung device recently. Now I get to have fun with them
<Nistur>
so many headaches.
<Nistur>
we knew our client was testing on an S7, so we made sure we have an S7 to test and make sure it's running smoothly
<Nistur>
you know I went to buy one the other day
<Nistur>
the S7 has two quad core CPUs and a decent GPU in it
<Nistur>
it runs near perfectly at 30fps
<Nistur>
... turns out that the client has a model of S7 that for some reason has a totally different chipset (despite still being an S7) which has two dual core CPUs and a totally different GPU
<Regenaxer>
yeah, it is a mess with all those Samsung model
<Regenaxer>
You need to go down till the chipset?
<Nistur>
not as such
<Nistur>
but the chipsets are relatively different
<Nistur>
and we get different bottlenecks depending on chipset
<Regenaxer>
understand
<Nistur>
some of them are limited by CPU-GPU bandwidth, some of them have underpowered GPUs, some of them have underperforming CPUs (although not that many as it makes the actual device look bad, so this tends to be the strongest bit)
<Nistur>
but we have the game running flawlessly on a 2 year old S7, but our client says it runs terribly on their S7... so in this case it makes a big difference
<Regenaxer>
Android drives me nuts
<Regenaxer>
I don't find the right way to terminate PilBox it seems
rob_w has joined #picolisp
fraya has left #picolisp [#picolisp]
orivej has joined #picolisp
orivej has quit [Ping timeout: 255 seconds]
<sriram_>
Hi.. I am planning to make a small word game similar to scrabble using the code app as a starting point
<sriram_>
OSM code I mean
<Regenaxer>
Hi sriram_, ok
<sriram_>
because it has the canvas..but I am having some trouble understanding the OSM code...
<Regenaxer>
Perhaps the canvas demo is easier?
<sriram_>
There is an object osmview (object 'osmView '("Prg" (with 'osmView (run "Prg"))) ....)
<sriram_>
but I am not able to understand ("Prg" ...) . I know this should generate the class of the object
<sriram_>
but cannot see how this is passed in
<sriram_>
oh I did not realize there is a canvas demo
<Regenaxer>
First of all 'osmView' is a normal function
<Regenaxer>
'("Prg" (with 'osmView (run "Prg")))
<Regenaxer>
plus some properties
<sriram_>
(seeing if there is a ref to canvas demo in OSM)
<sriram_>
yes this is indeed a better starting point for me
<Regenaxer>
a minimal use case
<sriram_>
although I would still like to understand how to read (object 'osmView '("Prg" (with 'osmView (run "Prg"))) ....) :)
<sriram_>
(object 'Obj '(+A +B +C) 'a 1 'b 2 'c 3) I can understand
<Regenaxer>
yes, '(+A +B +C)
<Regenaxer>
is the value
<sriram_>
so Obj is a function with a value and some properties then
<Regenaxer>
and here ("Prg" (with 'osmView (run "Prg"))) is the value, ie a function
<Regenaxer>
yep
<Regenaxer>
agreed, a bit unusual
<Regenaxer>
it keeps its own state
<sriram_>
so when one does (osmview Prg), the value gets called with "Prg" = Prg
<sriram_>
yes I understand now
<sriram_>
yes a closure perhaps?
<Regenaxer>
not a closure I would say
<sriram_>
except that because it is an object, the state values can be changed
<Regenaxer>
more an object without inheritance and methods
<Regenaxer>
yes, like in
<Regenaxer>
(osmView
<Regenaxer>
(=: home *Top)
<Regenaxer>
(=: lt Lat)
<Regenaxer>
(=: scl 128)
<Regenaxer>
(=: ln Lon)
<Regenaxer>
(=: nd Nd) ) )
<Regenaxer>
All the buttons modify its state
<sriram_>
yes thats the inital state...and then
<sriram_>
(gui '(+Rid +Button) "Go" '(osmView (=: lt (val> (: home lt))) (=: ln (val> (: home ln)))
<Regenaxer>
exactly
<sriram_>
(sorry the paste does not work well)
<sriram_>
ok I underrstand better now.
<sriram_>
but now in the canvas function, I will define an upper panel where I can store letters (tiles), and a grid where the letters can be placed. I am struggling
<sriram_>
with the concept of dragging a tile onto the grid and how to get the "tile" to "move" once selected and dragged
<sriram_>
I saw the mouse click and drag parameters
<sriram_>
passed to canvas
<Regenaxer>
yes
tankf33der has quit []
<sriram_>
i can experiment a bit with the canvas
<sriram_>
to find out more
tankf33der has joined #picolisp
<sriram_>
thanks for pointing me to the starting point
<Regenaxer>
ok, I must confess that I also did not look at it for a while
<sriram_>
no problem. Since this is a game we play in our home (and that I know well) I think it is a good learning point for me, and useful
<sriram_>
Later I will add the db to track scores
<Regenaxer>
good :)
<sriram_>
Will let you know if I get stuck :)....thanks again
<Regenaxer>
:)
rob_w has quit [Quit: Leaving]
mtsd has quit [Quit: Leaving]
<Regenaxer>
afp
arievw has quit []
arievw has joined #picolisp
<Regenaxer>
ret
<beneroth>
hi
<beneroth>
Guten Abend Regenaxer :)
<Regenaxer>
Hi beneroth!
<sriram_>
Hi....was using phone gui in a desktop to see how it behaves there...was debugging the case just after login
<beneroth>
I spent the day tracking some memory corruption in a 30 year old C application. Array overflow because a database table got over 320k entries -> a (kinda random) variable was overwritten -> bamm.
<beneroth>
hey sriram_. your project sounds exciting. I wish you well with it :D
<Regenaxer>
Masochistical ;)
<sriram_>
where the menu/bar (App Text Graphics) was obscuring teh top of the login page
<sriram_>
beneroth...thanks :) it is a good learning experience mainly, but I hope we will use it too.
<beneroth>
Regenaxer, well the software is meant to be replaced soon(TM). has no boundary checks in the code. hopefully the next overflow also hits a variable which causes a loud error and not a silent corruption :)
<Regenaxer>
sriram_, if you have an Android phone, I recommend to try demo.zip
<Regenaxer>
it is a slight modification of the old demo
karswell has quit [Read error: Connection reset by peer]
<Regenaxer>
beneroth, let's hope ;)
<sriram_>
and I came across (<div> @ ...) and (bar? @)..was wondering what the @ was in this instance...does not fit the "many uses of @"?
<beneroth>
probably @ means "last result" here? do you have some more context?
<Regenaxer>
right, <layout> (and perhaps <bar>) use it explicitly
<sriram_>
Regenaxer...sure. but I was thinking we would be using the game with both phone as well as laptop, so wanted to see how it behaves
<beneroth>
ah
<Regenaxer>
sriram_, ok
<beneroth>
cool
<Regenaxer>
beneroth, yes, also a kind of last result, but holds css styles
<sriram_>
(yes...i was thinking the last result of some logical check...but could not see where it would come from)
<sriram_>
oh i see...yes, css styles is more likely as it is the first arg to the <div>
<Regenaxer>
yep
<sriram_>
ok thanks...the <layout> does not seem to work as well in the desktop case, I think..since the 'bar' div obscures the 'main' div instead of stacking vertically
<Regenaxer>
Actually, I don't use <bar> at all in PilBox app
<sriram_>
the other reason for trying this is i was hoping to develop the app in the desktop, and then deploy to android...
<Regenaxer>
I do all with <layout> in PilBox too
<Regenaxer>
yes, this is good
<Regenaxer>
My current project (BTG) is such dual-use
<Regenaxer>
works perfectly on both with identical code
<Regenaxer>
especially on tablets
<Regenaxer>
(BTG uses tablets in field)
<sriram_>
Perhaps I should explore what css styles are passed to the two divs, the bar div and the main div. Maybe this is the culprit rather than the <layout>
<sriram_>
(is BTG an acronym or perhaps a company name?)
<Regenaxer>
hmm, I think Bawaria Transport Group
<Regenaxer>
btg.de
<sriram_>
ah a company
<Regenaxer>
my longest-lasting customer, since 18 years
<sriram_>
nice!
<sriram_>
good to have such a long standing relation...and support
<Regenaxer>
T
<sriram_>
back to the debugging :) thanks..
<Regenaxer>
:)
<sriram_>
(downloading demo.zip)
<Regenaxer>
good
<Regenaxer>
I'm debugging PilBox
<Regenaxer>
drives me crazy
<Regenaxer>
I have a certain problem since the beginning
<Regenaxer>
The app restarts automatically sometimes after it is stopped
<Regenaxer>
This is nasty and gives unexpected results
<sriram_>
perhaps an android os-related issue?
<Regenaxer>
It happens only if it is running as a foreground service
<sriram_>
but not so relevant because it was stopped deliberately
<Regenaxer>
but related
<sriram_>
Does this seem to be useful? To clarify, it is possible to use the library in a way that doesn't automatically restart the service -- you just have to remove the StartupBroadcastReceiver manifest entry (easier than it sounds.) While this is a fine solution for foreground-only apps, it won't help your case, because what you want is for the beacon service not to be stopped when the user closes the app from the task switcher.