Join us on Discord!
You can help CodeWalrus stay online by donating here.
Menu

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.

Show posts Menu

Messages - SopaXorzTaker

#1

yes, it's that slow :(

Introducing my latest project, TIWallet!

You can generate a Bitcoin keypair with this program and store it securely (or not  :P) on your calculator!
It's still buggy, extremely slow and not intended for everyday use, so be careful.

https://github.com/SopaXorzTaker/tiwallet
#2
https://github.com/SopaXorzTaker/ti-qr

I've decided to port a QR code library onto the TI-84+CE, and found https://github.com/ricmoo/QRCode, which is portable and optimized for low-power devices.

To compile that library for the calculator (with Zilog's ANSI C compiler included), I had to rewrite some of the code to compile under ANSI C, as the compiler was complaining.
Anyway, when you run the demo program (DEMO.8xp, see below), it's going to take about a minute to process and then you'll get a QR code with the sample message displayed on the calculator screen.
Press any key to exit the demo program.
#3
Initially I wanted to write some sort of a Logisim clone, and the idea to write that came up.
It's really primitive, and the program has to handle redrawing of windows, etc (see the source code of GTKEX0/1).
You can even write custom controls for it, the calling convention is really simple and described in the comments.

The code of GTKEX0 (on Cemetech) is commented (and comments aren't preserved in the tokenized version attached), you can read it to understand how the library works.

I am also planning to port it to 84+CE, with colors and stuff.
#4


http://sc.cemetech.net/?hash=DxaLZE3oe+a3YgRYQ8mQA148UdXZ

So basically, GTKALK is my attempt at writing a simple and lightweight GUI library in TI-BASIC.
It's pretty simple, doesn't support the color calculators yet, but I think you guys might find it interesting ;).

Program GTKEX0 is a simple demo of all features so far.
GTKEX1 is a more sophisticated one, showing multiple buttons and stuff.

(move the cursor with arrow keys and use ENTER to click - the Input command is used to handle the cursor)
To exit GTKEX1, just click on the button that says X (obviously).
Please, try it and tell me what do you think  :).
Again, don't expect full-blown Qt running on your calculator.

You can use the code for any purposes, just consider giving credit (optional).
#5
Quote from: xlibman on July 26, 2017, 05:31:34 PM
I don't even know how BTC works  (as in, how are you supposed to exchange them for real money, and which site supports them, because SMF 2.0.x lacks bitcoin support)

There are services to automatically exchange the payments, such as Coinbase.
#6
Quote from: xlibman on July 26, 2017, 06:59:34 AM
Quote from: SopaXorzTaker on July 25, 2017, 11:55:00 AM
NOOOOOOOOOOOOO!
:(

Uh, can I help the site in any way?
By posting more or via donations/ads?

Uhh, I actually can donate some BTC, but uh, I'd rather keep my precious coins :P
I don't block the ads on the site though, as Project Wonderful definitely is one of the best advertising networks from the user's point of view.
#7
NOOOOOOOOOOOOO!
:(

Uh, can I help the site in any way?
#8
Hardware / Re: The WalrusLink Project
June 17, 2017, 03:45:17 PM
Implement the ESP8266 interface that'd add WiFi!
Now would that be even more great with crude on-calc web browsers and stuff?
#9
Quote from: Alvajoy123 on June 16, 2017, 05:22:16 AM
:) Um. This is my first program in C and I will be needing a lot of help and I don't want to mess up my laptop or my computer. :D And I will be using tool chain. :D
So before start is this how you start a C program
#inculde

! please find a YouTube video that can help

By: Alvajoy123


The CE C SDK is not the best thing to start with. First of all, I recommend learning proper C. A basic introduction can be found here: http://www.learn-c.org.
#10
Oh, also: zooming in wouldn't make much sense as the satellite position data is not *that* accurate, and has some deviation from the real satellite, which is a limitation of the algorithm. So that's not that useful anyway.
#11
Calc Projects, Programming & Tutorials / Re: Orbit84
April 15, 2017, 01:48:25 PM
Quote from: p2 on March 23, 2017, 10:08:20 AM
will you later implement a zoom function so we can actually see over which cities they are? :)
Also can you select a satelite and get some information like it's name, purpose and nationality? :)
Those features would be really nice.


awesome project idea  :thumbsup:

Well, implementing zoom-in would be pretty hard, as I just use the image as graph background.
Currently, the program supports tracking only one satellite, but I might consider adding the ability to use multiple data sets ^_^
#12
Randomness / Re: SXZvYWgncyBBUkc=
March 21, 2017, 07:14:08 PM
hint
a type of culinary oil
2*10^3, 2^3
#13
Randomness / Re: SXZvYWgncyBBUkc=
March 21, 2017, 07:09:55 PM
Here.
#14
Calc Projects, Programming & Tutorials / Re: Orbit84
March 18, 2017, 05:06:19 PM
Quote from: DJ Omnimaga on March 18, 2017, 05:00:20 PM
Would there be a way to make it so that the amount of spaces between each number doesn't matter, or do the number of spaces inside the data actually matters? Because it can be very hard to manually copy such long data by hand from a website that doesn't use monospaced fonts without forgetting one space or adding an extra one by accident.

Another idea I have would be string support as an option to choose at the start of the program. The user would copy/paste the data in SourceCoder or the original TI-Connect which used to have a string/list/matrix editor, save as string then transfer the string to his calculator or an emulator, which would probably take less time than manually typing everything.

Well, the number of spaces is a quirk of the format and must be preserved, because, uh... hm, yes it's very important (I'm just lazy to parse it :)).
However, it's very easy to make the program read the existing string variables, and I'll probably consider doing that, thanks for the tip.
Did you try it, though?
#15
Hey guys!
I've been developing the program for two weeks now, and it's really exciting.
Orbit84 allows you to see where the satellites are in real time!
This program still has some little bugs, so please report them if you find any.



This program will display the orbit of any satellite on a beautiful Earth map borrowed from NASA ;).
I am pretty lazy to group the files together using the buggy TiLP beta, so I am including the program itself and the .8ca image file which you need to install if you want the map background.

The program uses the old SGP algorithm from the Department of Defense. TI-BASIC is pretty slow, and I was lazy to read through 400 lines of Fortran to implement a better one (SGP4) instead, which would be even slower.

Known bugs: the first step after starting the program displays invalid values.

To use the program, you'll need a set of Two-Line Elements, which is an ancient format still used for describing satellite orbit.
This data can be obtained from https://celestrak.com/NORAD/elements/.
The text files on the page above contain the data, which consists of three-line groups, for example:

ISS (ZARYA)             
1 25544U 98067A   17075.95152778  .00001773  00000-0  33947-4 0  9992
2 25544  51.6434 138.0748 0007006 301.6640  60.9310 15.54215659 47417


Upload the both files attached to your calculator and run prgmORBIT.
It'll ask you to enter the data, enter the last two lines (starting with 1 and 2, without the first name line) exactly as you see them, preserving the number of spaces between the digits. Press [enter] between each of the lines. If the program tells you that the length is incorrect, you might have missed a symbol, and have to retype the last line you entered again.
Then, enter your latitude and longitude, also you can safely set the Altitude parameter to zero.

Now, the program should be displaying the orbit of the satellite in real-time, with a ground track plot.
The two lines at the top left side of the graph screen show the azimuth and elevation of the satellite. When the elevation line is green, the satellite is visible (above you).

Of course, you must set the calculator's clock to UTC time and date first, as that is assumed in the calculations.
When running the program after it has been first run, you'll be asked if you want to update the TLE data. You can answer "No" if you want to keep the existing data. Keep in mind that you should update the TLE every week so that the data stays valid.


I'd be glad to hear your ideas for improvement of the program!  :)
Powered by EzPortal