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 - Jim Bauwens

Pages: 1 ... 94 95 [96] 97 98 ... 125
1426
Lua / Re: Controlling external hardware through Lua
« on: July 30, 2011, 01:19:40 am »
Adriweb, you can also use math.eval to execute a function in a library document (not in the current tns file) and return stuff saved there.

1427
perennial, in theory it should work, but no one ever tested it. Critor wanted to do it with his own nspire's, but hasn't got any chance yet. Also, we cannot be sure that it will not be harmed, as its hard to solder to the NAND chip.

1428
Lua / Re: Lua Classes
« on: July 29, 2011, 12:55:58 pm »
Well, I'll try my best to explain them.

Imagine you have a game were you can have many different cars. All the cars have different things like engine power, but still share much stuff. This is were classes come in.
With classes you can make a basic structure of an object, and create new objects based on the first one. Nspire Lua has the class() function that saves us lots of work.

Example:
Code: [Select]
car = class()

function car: init(power, type, lights, etc)
    self.power = power
    self.type = type
    self.lights = lights*2
    self.options = etc
end

function car: drive(speed)
   return self.power * speed -- this doesn't make much sense, but its just an example
end

Now, once we made our basic car class, we can define cars using this class:
Code: [Select]
volvo = car(10, "2x2", 4, {air-conditioning = True})
jeep = car(60, "4x4", 12, {air-conditioning = False, trailer-hook = True})

jeep:drive(10)       -- returns 600
volvo:drive(20)      -- returns 200

if jeep.options.trailer-hook then
   print("The jeep can have a trailer")
else
   print("No trailer for you :(")
end

This is just a basic example, and it written here without testing, so it can have some bugs.

1429
Lua / Re: Sound with nspire Lua
« on: July 29, 2011, 12:34:56 pm »
Very nice!
I'm starting to think of another method, one that allows me to update the screen sometimes.
That way I might be able to make a little music player.

1430
Lua / Re: Controlling external hardware through Lua
« on: July 29, 2011, 12:33:26 pm »
Thanks :D

1431
Lua / Re: Sound with nspire Lua
« on: July 29, 2011, 10:32:46 am »
Well, I still need to fix the timing part, as I make a wrong calculation there. But most of the things work, so its not really a problem. Anyway, I'm glad it works :)

Have fun!

1432
Lua / Re: Sound with nspire Lua
« on: July 29, 2011, 09:46:44 am »
Oh, and congratulations with your new CX :)

Edit: or wait, I'm confusing you with someone else

1433
Lua / Re: Sound with nspire Lua
« on: July 29, 2011, 09:29:41 am »
Are you sure everything is correct? Also, you can try if changing \255 in the beginning to \127 helps.

1434
General Calculator Help / Re: Any Link software on Ubuntu?
« on: July 29, 2011, 08:37:16 am »
ouch, thats bad internet!
Good luck anyway!

1435
General Calculator Help / Re: Any Link software on Ubuntu?
« on: July 29, 2011, 08:28:01 am »
RMB is Chinese yuan ...
and 1750 Chinese yuan = 190.474639 Euros.

Looks to me like its more expensive with you.

1436
General Calculator Help / Re: Any Link software on Ubuntu?
« on: July 29, 2011, 08:01:45 am »
Yes, there is software named "tilp". However the package in the ubuntu repo is a bit outdated, so you must install it from source. But that isn't so hard, here is how to do it:

First download this script: http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh
Copy it to your home directory ("/home/northern_snow")
Open a terminal (Applications --> Accessories -->Terminal)
Run this:
Code: [Select]
sudo apt-get install subversion autoconf automake libtool libglib2.0-dev zlib1g-dev libusb-dev libgtk2.0-dev libglade2-dev libsdl1.2-dev gettext bison flex groff texinfo xdg-utils libarchive2-dev intltoolThis will install all the dependencies to compile tilp.
Then run this:
Code: [Select]
chmod +x ./install_tilp.sh
sudo ./install_tilp.sh
You will be asked for your password, type it (it's normal that you don't see it while typing).
Then wait for the installation to finish.

When it's done (without any errors) you have successfully installed and compiled tilp. To use tilp just run "sudo tilp" in a terminal.

Edit: updated for the latest version of TiLP

1437
Web Programming and Design / Re: Shiny new OmniPlayer
« on: July 29, 2011, 06:50:30 am »
Whoo, its works nice!
I just had to enable plugins for radio.omnimaga.org, but that's a issue with me :)

1438
OmnomIRC Development / omnomIRC settings do not save in Google Chrome
« on: July 28, 2011, 04:02:51 pm »
I recently started having a problem with omnomIRC that it wouldn't save its setttings. This means that I can't enable time stamps and other channels.
The problem is that the cookies don't get saved because its running in an iframe in another domain.
The solution to this problem is to change the src of the iframe to "http://omnom.omnimaga.org/omnomirc_dev/" instead of "http://netham45.org/omnomirc_dev/".
I don't know if this will create other issues, but I don't think so.

1439
TI Z80 / Re: Croquette IDE
« on: July 28, 2011, 03:58:01 pm »
Looks really nice!

Good job :)

1440
News / Re: Farewell
« on: July 28, 2011, 03:54:39 pm »
 :hyper:

Pages: 1 ... 94 95 [96] 97 98 ... 125