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 - Vogtinator

Pages: 1 ... 7 8 [9] 10 11 ... 83
121
(I couldn't take a look at your source - I'm on mobile, so this post may be useless)
Did you surround the nRGB header #include in an 'extern "C" {}' block?
It's needed because of C++ name mangling.

122
TI-Nspire / Re: nPDF - A document viewer for the Nspire
« on: January 28, 2015, 12:31:53 pm »
You have to use "npdf.prg.tns" as you're not using the latest ndless version (you'll also have to change ndless.cfg.tns).

123
News / Re: Downgrade For Ti-nspire os 3.9 released
« on: January 17, 2015, 08:15:24 am »
Try the maintenance menu and format everything. You can also try to play a bit with the diagnostics utility, that could give us a clue what might be causing this.
It may even work to take the battery out and wait for a few minutes and try again.

124
TI-Nspire / Re: nGL - a fast (enough) 3D engine for the nspire
« on: January 16, 2015, 04:03:22 pm »
For debugging and testing mostly. That is also why setting up nspire_emu isn't very user-friendly (for now).
With the emulator it's possible from the IDE to press F5 to upload the file to the emulator and run or debug it automatically.

125
TI-Nspire / Re: ndless-apps.org - List of all native Nspire projects
« on: January 11, 2015, 12:26:18 pm »
Quote
Also, if you ever think about renting a VPS from 1&1, don't. They have such a ridiculously low shared memory limit that I wasn't able to run nginx and php at the same time.
Same here. Although the server has 2GiB of mem, it's impossible to use it as a git server with more than one simultaeous transfer, it just doesn't work.
I have to say that it only costs 4€ and it works just fine for a LAMP stack with wordpress, bind and other server stuff, at least with w3 total cache enabled.

</offtopic>

126
TI-Nspire / Re: nGL - a fast (enough) 3D engine for the nspire
« on: January 10, 2015, 07:09:42 am »
Crafti is last year's ticalc POTY! ;D



Huge thanks to everone voting for me :-*
The competition was strong, I expected nQuake to score much higher.

Also, I've been working on the next release for some time already, but it's not going to be finished soon, I'm busy with school stuff and in a few months, work.

Edit: Over 1000 downloads, >700 on ticalc alone!

127
TI-Nspire / Re: TI-Nspire emulator
« on: January 01, 2015, 01:08:22 pm »
Quote
Hey Vogtinator and antoniovazquezblanco (and anybody I should have addressed),

Just wanted to say I was able to compile and run the emulator you are working on from source! :)

I am on Linux (OpenSuse), I got a TI-NSpire CX with 3.6.0.550 image running and installed NDless 3.6 on it :)
Great! I assume you used a flash file createy by nspire_emu v0.70?

If you're running on 64bit, could you try the latest source with x86-64 JIT?

Quote
Thanks for working on this!  And have an amazing day!
Thanks, you too!

128
TI-Nspire / Re: nspire Linux Questions
« on: December 25, 2014, 06:20:42 am »
Code: [Select]
cat /proc/swaps
Try to run just xterm with twm in the X session and then start lxpanel and the rest one at a time to find the cause.
If you can't find the cause, it's either lxsession or openbox.

129
TI-Nspire / Re: nspire Linux Questions
« on: December 24, 2014, 12:45:32 pm »
I guess your system just overloaded, either CPU or RAM. Did you setup swap?

130
TI-Nspire / Re: pyWrite - python script editor
« on: December 13, 2014, 03:08:21 pm »
Well, thank you for looking at my code and giving your opinion, I appreciate it  ;) Let me answer you.

Quote
Still using the deprecated flat binary format with objcopy
Hum... sorry about that, but I don't know what you are talking about ??? I'd be glad you enlight me :)
The PRG file format introduced by Ndless 1.2 I believe is basically just a hack to get basic execution working.
With 3.1 tangrs implemented a loader for the bFLT format which supports some relocations and I added Zehn some months ago which adds some more metadata,
is less buggy and supports C++ exceptions.

Quote
Using nl_exec incorrectly: argv[0] is the program itself, argv[1] the first parameter
Actually I read on hackspire :
"args[] must not include the program name (argv[0]) nor the terminating NULL argument"
Since .py execution is working, I guess im doing it the right way.[/quote]
Yup, you are. I forgot that nl_exec is an abomination of a syscall and I assumed it was doing it like it should do, like execve.
Actually, I should implement execve in libsyscalls so nl_exec can be deprecated.

Quote
Quote
Placing the config file outside of /documents the user can't delete it in a usual way. IMO that's very annoying, each file slows the calc down.
I don't think this a real issue, since the config file's aim is to be not deleted ; and even if you do so, it will be re-created next time you launch the program. Therefore, I admit it's indeed more convenient for the user to control the file.

Quote
Not checking the return values of fread
You just spotted my laziness  :P
But since the config file is hidden and can't be edited by usual ways, it should always has the structure I gave him, no ? ;)[/quote]
I'd add a version number, so it won't try to load a config file with incompatible data.

Quote
Quote
Saving the file as temporary file when running as python script
Why is this a problem ?  :o It enables the user, when he has modified a .py file, to test his changes without having to save his current work. There's no way to do it otherwise.
-It's slow
-It will damage the flash (although that's more an issue on classic calcs)
-The user may think if the file works, it's saved
-If micropython crashes or hangs, the work is lost.

Quote
Quote
In NoteWriter.c line 405 there's an 'n' missing.
Thanks for this ;)

Quote
On line 633 there's an invalid character literal: '\25' isn't 0x25 but rather "25", which is not a single character, I guess you meant '\x25'
I have to thank you for this too. Actually Notewriter 1.0 was using this '\25' character for indicating line feeds, which wasn't very proper. The 2.0 version was not intended to use this character anymore, and even if it still supports his use, this '\25' was unintended.
There are some more cases, it's highlighted in red on GitHub.

Quote
Quote
Your WinBox framework looks useful, but there's no documentation for it and IMO it would be 100x easier to use if it was coded in C++.
Actually I made a documentation, but sadly its in french :( I wanted to provide an english version too, but since I was not on omnimaga at this time, I told myself it would be some harassing work for almost nothing.
If you want to take a look nonetheless, it's available here, with Winbox 1.2 : http://tiplanet.org/forum/archives_voir.php?id=10587
If you like the doxygen approach, it's really easy to make documentation with it. It's generated from comments in your source files.

Quote
I would have prefer to code Winbox in C++ too, but when I started the project, years ago, C++ was not fully implemented for the nspire (or I've been misinformed).
You're absolutely right, vtables didn't work due to the missing support for relocations (like I said above), but now everything except std::thread is implemented.

Quote
Quote
You're using quite a few triple-pointers: "Widget ***wFiles", I haven't seen those in the last 20 years and I'm only 17.
The last, but not least ! I dont know if I should be ashamed, or proud... :angel: My father, who is an engeneer and develop projects for more than 20 years, also told me triple pointers were never necessary. I guess I just found a specific case where they are necessary.
Actually, they're only necessary in bad code, a refactor should get rid of most of them. The issue is that code that needs triple pointers has triple pointers and is therefore bad code... Also, it's a triple indirection nobody wants to think about so bugs are pre-programmed.

131
TI-Nspire / Re: TI-Nspire emulator
« on: December 13, 2014, 02:04:19 pm »
Oh, I saw boot1 for the classic calcs so I assumed there are also boot1's for newer models. There is a "Boot1 TI-Nspire CX prototype (v. 3.0.0.DEVBUILD)" though, that may work or did the keys change?

132
TI-Nspire / Re: pyWrite - python script editor
« on: December 13, 2014, 02:00:40 pm »
Oh, I only looked at the repository on github, but I guess that wouldn't make a difference for me...

133
TI-Nspire / Re: pyWrite - python script editor
« on: December 13, 2014, 12:31:35 pm »
Quote
Does anybody have any idea if there is a possibility of adding the SymPy Python library to micropython? it would be very useful for advanced python programming and i use it alot on desktop, so im wondering if there is any way...
I haven't tested module support at all, I assume it works like normal python does.
The default module search path is /documents/ndless.
As SymPy consists of a lot of files, it will be terribly slow to install, but it should work as it doesn't require other libs.

Quote
Edit : NoteWriter's tabs are a neat idea, though :P
I've got a better, less space consuming idea :P
But first I'll have to fix some bugs, test freetype and implement Undo & Redo.

Quote
I actually agree the mouse cursor is an awesome idea that I've no idea how to code.
It's not hard: https://github.com/Vogtinator/pyWrite/blob/master/cursortask.cpp
To query the state, it's using cursor_task.x, y and state.
In general, nGL has a quite different architecture compared to your WinBox, as nGL is mainly a game library with a main loop
which makes mouse handling a bit easier.

Quote
It's smooth and useful.
Contrary to the OS's one :P

Quote
Thanks for this editor, it's really great!

I have suggestions about it:
* Draw a smaller menu and hide it when the program doesn't fit the screen (and use the scratchpad button to show it).
Smaller: Yes Hiding: No More useful: Yes.

Quote
* Make mouse move box smaller so that we can at any time see at least on pixel of the mouse.
Yeah, definitely.

Quote
* Make an auto indentation.
That's going to be hard, as that would change the program.
How should:
Code: [Select]
y = 0
z = 0
if x == 1:
y = 1
z = 2
get indented?
Quote
* Add a scrolling bar.
Yup.
Quote
* Open the last document on launching.
Yup.

Quote
I updated Notewriter by the way, fixed some issues, now it works perfectly fine. I also put my code on Github.
I had a look at your code and I can already see some bugs:
-Still using the deprecated flat binary format with objcopy
-Using nl_exec incorrectly: argv[0] is the program itself, argv[1] the first parameter
-Placing the config file outside of /documents the user can't delete it in a usual way. IMO that's very annoying, each file slows the calc down.
-Not checking the return values of fread
-Saving the file as temporary file when running as python script
-In NoteWriter.c line 405 there's an 'n' missing.
-On line 633 there's an invalid character literal: '\25' isn't 0x25 but rather "25", which is not a single character, I guess you meant '\x25'

Your WinBox framework looks useful, but there's no documentation for it and IMO it would be 100x easier to use if it was coded in C++.
You're using quite a few triple-pointers: "Widget ***wFiles", I haven't seen those in the last 20 years and I'm only 17.

Wow, this is now quite a long post now, I had to write it in a text editor and it still have to scroll to read everything.

134
TI-Nspire / Re: TI-Nspire emulator
« on: December 13, 2014, 04:44:59 am »
You can download from tiplanet "*hint hint*".

135
TI-Nspire / Re: Snow
« on: December 08, 2014, 03:11:56 pm »
Yup, although it's believed on cemetech that I'm French...

Pages: 1 ... 7 8 [9] 10 11 ... 83