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 ... 91 92 [93] 94 95 ... 125
1381
« on: August 09, 2011, 05:43:27 am »
Heya, and welcome to the forums I hope you get started with Lua, as its a fun language to learn (and not so hard). And as others noted, don't be shy on asking questions, there is always someone here that can help you
1382
« on: August 09, 2011, 04:01:30 am »
Well, maybe ")" is a valid pattern, and doesn't cause an error. I didn't look yet into the details, but I will do that later.
1383
« on: August 08, 2011, 01:40:31 pm »
Well, the reason for the first 'bug' (it isn't actually a bug) is because "(" is a magic character. The second argument to string.find is a pattern, so it is parsed as a pattern, and if there is an error in it it will report it. To search for "(" just escape it with "%". Example: string.find(str, "%(") More info on this at http://www.lua.org/pil/20.2.html. Anyway, nice topic
1384
« on: August 08, 2011, 06:05:18 am »
Remove the (Chinese) from the url Edit: ninja'd (or grilled)
1385
« on: August 08, 2011, 06:01:29 am »
It brought me to a page full of ads, didn't see anything interesting, even when translated. I'll check again Edit: Indeed, the link just has little problem. So no bot after all Thanks cztian for the link!
1386
« on: August 08, 2011, 03:04:05 am »
Hmm, I think you can make Lua games that out perform C games Its just a matter of picking the right one, and spending lots of work on it.
1387
« on: August 07, 2011, 01:50:46 pm »
Maybe, but I'm not sure since there is an additional led on the top, the form factor is a bit different and it has less memory.
1388
« on: August 07, 2011, 01:40:31 pm »
Hmm, maybe they remove it to make it cheaper. Normal students don't need stuff like the lab station. My guess it that it will become a budget calculator.
1389
« on: August 07, 2011, 06:38:17 am »
1390
« on: August 06, 2011, 02:32:17 pm »
Looks very nice! Good to use with on calc editors Thanks to Inspired Lua for this page ! I'm glad you liked it I have actually wrote a better, simpler version, but haven't taken the time to upload it.
1391
« on: August 06, 2011, 02:35:36 am »
So many games \o/
1392
« on: August 06, 2011, 01:46:10 am »
Whooo, nice news! Thanks for reporting Adriweb! Edit: I have successfully compiled it on Linux (need to replace -leay32 with -lssl). However, I noticed that Luna will check the code (using lua), and error on stuff with 'on', because its not defined (it is on the calculator). I'll now modify the code to skip this check. Big mistake of me x) Edit2: Converted my file without an error, didn't test it yet
1393
« on: August 05, 2011, 03:49:24 pm »
Nice Deep
1394
« on: August 05, 2011, 03:46:31 pm »
ephan, here is a working python version (fixed your code):
def increment(x): """Increments the string x""" length_of_string = len(x) if length_of_string == 0: return "a" bt = ord(x[-1:]) if bt < 122: x = x[:-1] + chr(bt+1) else: x = increment(x[:-1]) + "a" return x def main(): """Displays all possible words using alphabet a-z""" a = "a" for i in range(1000): a = increment(a) print a if __name__ == "__main__": main()
1395
« on: August 05, 2011, 11:18:51 am »
ephan, I'll give you a tip: Lua starts with 1, python with 0 (/me waits for the beating) @Levak, lol
Pages: 1 ... 91 92 [93] 94 95 ... 125
|