Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Adriweb

Pages: 1 ... 18 19 [20] 21 22 ... 115
286
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 16, 2013, 01:42:21 pm »
@adriwed:
On the other hand, you can use MyLib, but I think storing in the clipboard buffer is indeed faster than storing it in a shared string.
Uh, that sounds very interesting! Where can I find some information about this?

There are some (lost/old) topic in this forum, but you can find an example here :
https://github.com/adriweb/EEPro-for-Nspire/blob/master/EEPro.big.lua#L1517

In there, it's a actually calling a function so that the actual retrieved content can change based on other stuff, but you can recall directly a string, if needed.

287
Other Calc-Related Projects and Ideas / Re: Open Sprite Library
« on: November 13, 2013, 09:26:39 am »
try without these other datatypes, just to see ? (lua*)

288
Other Calc-Related Projects and Ideas / Re: Open Sprite Library
« on: November 12, 2013, 06:45:47 pm »
What about "NOW()" instead of CURDATE ?

289
Humour and Jokes / Re: Eminem is the best rapper ever!!!
« on: November 10, 2013, 06:41:42 am »
I see what you did there.... :P

290
Miscellaneous / Re: Quick Survey About You and Omnimaga.
« on: November 06, 2013, 06:04:10 pm »
1) How did you first learn about Omnimaga and what aspect influenced you to stay?
Uh.... It's been linked on other community websites in the past, so... that's how, I guess, but it's been a while ^^

2) Do you feel as if we have similarities outside of programming naturally. If so, what are they? (i.e. MLP fans)
Computer geeks in general, and probably a bit smarter than the average at school, but lazier too ? (which can be useful for programming.... finding ways to do more with less :P There's a quote by Bill Gates about that)

3) For what reason(s) do you frequent Omnimaga over other sites like Cemetech or TIPlanet? (Or vise-versa)
I visit Omnimaga and TI-Planet everyday, and Omni is coming second about my visit rates (dozens of times per day), since you'll have to take for an answer that TI-Planet is the website I co-founded and I am co-admin of :P (so, probably a hundred times a day - it's pretty much like a default tab on my browser, so...) The reason is that... well I'm interested in calc programming and related stuff ? :D
Cemetech, cncalc, ticalc.org are other community websites that I sometimes visit (actually, probably once every day, in fact) ... just to see what's there on that day.

4) Do you consider the community of Omnimaga to have a main goal(s)? (if so, what are they?)
Well.... IDK, making extraordinary calc programs ? Always pushing backs the limits ?

5) How do you feel your relationship is with other members?
Very good ?

6) Do you find that Omnimaga (and calc programming) has helped you in the outside world?
Outside of calc programming, I don't think so ... (although some maths topics got me interested several times...)

7) What is your favorite inside joke/lingo?  (i.e. Holy Necropost Batman!  or Welcome peanuts etc.)
Well, I know those two, at least..., and the lobster.... but "favorite", I don't know :P

8 ) What country are you from?
France

291
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 06, 2013, 04:31:56 pm »
Oh yes, but I mean that if such APIs are released, some ifs here and there to detect if it's running on 3.6 would be enough to improve the rendering of the lava, for example, with the new functions. And if running < 3.6, then, just do as it is right now :)

292
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 06, 2013, 12:22:13 pm »
@adriweb: Thank you very much for that link!! That's exactly what I needed! :D I'll read it carefully and then try to do some optimizations myself (so better wait to look through the code until the next update!)
No problem :) Feel free to ask any questions :)

And about 3.6: I've already read that it will include new API features, is there already some information about the lua part somewhere?
Well, there is going to be a 3.6 Lua changelog... so, when the actual public 3.6 OS comes out, we shall see in detail :)

293
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 06, 2013, 11:46:19 am »
oh, don't get me wrong, it's really a wonderful project you've done so far ;) Not a lot of people could have done that :D

General and specific advices /tricks for optimizing [Nspire] Lua scripts are available here : http://adriweb.free.fr/t3/ (either the powerpoint or the PDF - both are in English)
(Edit : well, this is also a reference ^^ : http://www.lua.org/gems/sample.pdf)

About the lava, oops, I forgot about the fact that it was an image....
I guess it'll have to stay like that if no more images are created (not sure if it is a good idea, just to get inclinations....), but in 3.6, there may be advanced images APIs, so maybe there will be something useful about that...

294
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 06, 2013, 10:27:17 am »
Oh yeah and I forgot to say, but there are quite a lot of optimization that you can make to the code.
It's quite huge already, so, it's going to be hard, but I believe everything would have been simpler with a [better?] screen +/ layer manager.

When/If I have some time, I'll try to take a look at the whole code in general and propose some optimization ideas :P


For now, I have seen things like :

Code: [Select]
objFallingBlock=class()
function objFallingBlock:create(x,y,i,ID)
    ...
end

Code: [Select]
objList[index]=objFallingBlock()
objList[index]:create(bx,by,index,updateBlockID)


Why not simply use a syntax like :

Code: [Select]
objFallingBlock=class()
function objFallingBlock:init(bx, by, index, ub_ID)
...
end

objList[index] = objFallingBlock(bx, by, index, updateBlockID)
since :init(...) is the constructor, made for that :)

295
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 06, 2013, 10:16:31 am »
Well, that's freaking nice :D

296
News / Re: First patch of the HP-Prime firmware
« on: November 03, 2013, 07:44:32 pm »
Exciting indeed :)

So much protection on the Nspire and almost none on the Prime... it's quite a gap between the two :P

297
News / Re: Put both Ndless and OS 3.6 in your TI-Nspire
« on: November 03, 2013, 07:43:12 pm »
(Lionel was talking about the colorized version of the Periodic Table program.)

298
Computer Programming / Re: Opitmizer ?
« on: November 01, 2013, 08:38:49 pm »
Is the truly horrible indentation an actual wanted thing (like, in order to 'obfuscate' a little) ? :D

A bit better for the reader :

Code: [Select]
int main(void)
{
int i, k, j, s, nb, rmin, rmax;
float L, t, pi, angler, x, y;
bool finRadius;
nb = 10;
rmin = 5;
rmax = 14;
pi = 4.0*atan(1.0);
angler = 2.0*pi / nb;
i = j = 0;
for (k = 0; k < rmax * 4 * rmax - 1; k++)
{
x = j - rmax;
y = i - rmax;
L = sqrt(x*x + y*y);
t = acos(x / L);
if (s = 0 >= y) t = 2 * pi - t;
finRadius = 0;
while ((s < nb + 1) and (finRadius == 0))
{
if (rmin <= L and L <= rmax and (fabs(t - (float)s*angler) < angler / L or fabs(rmin - L) < 1)) {
cout << (finRadius = 1) - 1 << "0";
} else {
s++;
}
}
if (s == nb + 1) cout << "..";
if (i++ == rmax * 2) { i = 0; j++; cout << endl; }
}
return 0;
}

And as said on TI-Planet, please use && and || instrad of "and" and "or"

299
Well, EEPro and MEPro for the TI-89 are pretty much the same thing, with different set of formulas/content.
EEPro has been recreated for the Nspire, see here : http://tiplanet.org/forum/viewtopic.php?f=50&t=11136&lang=en
(official annouce : http://ourl.ca/16446  github repo : https://github.com/adriweb/EEPro-for-Nspire )

You can even create your own FormulaPro with your set of equations : http://education.bwns.be/FormulaPro/

There has been some non-public work to recreate MEPro, however, the architecture is a bit more complex for the default DB and thus it never saw the light publicly...

It's planned for the future, though. (But no ETA !)

300
HP Calculators / Re: A solution to HP connectivity problems
« on: October 29, 2013, 05:11:46 am »
Could this be asked to HP devs directly ?
It's not as (well, so I hope) if it's a big copyrighted part of the OS nor hacking-related or whatnot ... ?

Pages: 1 ... 18 19 [20] 21 22 ... 115