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 - Ti-Programmer

Pages: 1 [2] 3 4 ... 7
16
Calculator C / Ndless SDK Setup Linux
« on: March 26, 2013, 04:47:36 pm »
Ok, so I made the decision to go ahead and start learning C for nspire, because I like c++. Yea, I know the two aren't so close, but some things carry from one to the other.
I've gotten the setup nailed down sortof, I've run into a problem though...

Code: [Select]
me@mygatewaylaptop-NV55S:~/nspiresdk/projects/helloworld$ make
nspire-gcc -Os -Wall -W -marm -I /home/myhome/nspiresdk/ndless/include/ -c hello.c
nspire-ld hello.o -o helloworld.elf
/bin/nspire-ld: line 54: cd: /bin/../system: No such file or directory
make: *** [helloworld.tns] Error 1

I went with the linking option, making links in /bin to point to the correct files, and nspire-gcc runs just fine. I do have the bin folder in my path now though, so I've got it dually covered. There is a /home/myhome/nspiresdk/ndless/system, there is no /system. Something might be wrong with the linked files, I might have to just remove them.

My makefile I stole from the samples given, here it is:

Code: [Select]
GCC = nspire-gcc
LD = nspire-ld
GCCFLAGS = -Os -Wall -W -marm -I /home/myhome/nspiresdk/ndless/include/
LDFLAGS =
OBJCOPY := "$(shell which arm-elf-objcopy 2>/dev/null)"
ifeq (${OBJCOPY},"")
OBJCOPY := arm-none-eabi-objcopy
endif
EXE = helloworld.tns
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
DISTDIR = .
vpath %.tns $(DISTDIR)

all: $(EXE)

%.o: %.c
$(GCC) $(GCCFLAGS) -c $<

$(EXE): $(OBJS)
$(LD) $^ -o $(@:.tns=.elf) $(LDFLAGS)
mkdir -p $(DISTDIR)
$(OBJCOPY) -O binary $(@:.tns=.elf) $(DISTDIR)/$@

clean:
rm -f *.o *.elf
rm -f $(DISTDIR)/$(EXE)

and if you want source code, its really simple, I took the helloworld sample.

Code: [Select]
#include <os.h>
#include <nspireio2.h>

int main(void) {
nio_console csl;
lcd_ingray();
clrscr();
// 53 columns, 29 rows. 0px offset for x/y. Background color 0 (black), foreground color 15 (white)
nio_InitConsole(&csl, 53, 29, 0, 0, 0, 15);
nio_DrawConsole(&csl);
nio_printf(&csl, "hello world!");
wait_key_pressed();
nio_CleanUp(&csl);
return 0;
}

This is probably quite a simple solve, but I don't know my way around the nspire complier/linker yet.

17
General Calculator Help / Re: I'm emulating an Nspire.
« on: March 25, 2013, 06:10:24 pm »
Ehh, I forsee this thread turning into a rage of English vs other languages, so I'll put my two cents into the machine before it gets bad. I don't have a problem with the look/navigation of the site, I just wish the translation was better than Google translate. Incase you guys didn't notice Google translate screws the entire site up, at least for me, and when I hover over anything its a giant "reply" button that covers my entire screen. But hey, if its no big problem, whatever. I'm not pushing for all English, only English, I just want compatibility. It is kinda intimidating to read a whole page in a language I don't understand lol I guess that's how some people view English, but that's another topic.

Now for some moderator to come under me and say something to the tune of "get back on topic!"

18
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: March 24, 2013, 11:54:52 pm »
4715 You sit and watch OmnomIRC for posts in threads to pop up.

19
Lets make c++ inside TI-Basic, that would be amazing. And almost impossible :P

Also, welcome! Hope you enjoy your stay!

20
Sorry bout the color, I was wondering that myself when I made the post. Its fixed now.

21

PvP-Survival-Creative-Roleplay
If you're looking for a 24/7 server hosted and administered by a guy who loves minecraft as much as you do, you've come to the right place. Our staff is looking to provide you with an interestingly vanilla experience. Our server is a multiverse server with four main worlds--Survival, PvP, Adventure, and Beta. Descriptions for all worlds are provided in the server lobby.

A Few Rules:
  • Don’t be stupid/bigoted.
  • No cheating of any kind. This includes x-ray, flying, or any mod that gives you a pvp advantage.
  • No leaving random patches of water/lava on the map, 1x1 towers, nor obscene block art.
  • No racism, spamming, or excessive language. Fight with your sword, not with your mouth!
  • DO NOT TOUCH OTHER PLAYER’S CREATIONS! PERIOD.
  • If we give you power, don’t abuse it. IF.
  • Respect the Admins, they are your superiors.
  • Admins abide by different rules--the will of the superadmins.
Age informtion:
  • If you are not at least 16 years of age, please do not join.
  • If you are suspected of lying about your age, you may be subjected to random verification over teamspeak 3. We are trying to create a mature playing environment, so we ask that you please be willing to comply if you really want to play here.
  • Excessive nagging, hideous spelling/grammar, or just all-around annoying behavior might put your age in question. Please use common sense, and remember you are supposed act like an adult.
  • Do not rage or throw the usual 12-year-old fits about losing all your stuff or being killed. Suck it up and move on.
  • We are all adults, but this is also a game and we like to have fun and joke around. You must be able to take jokes in chat, some fooling around, and adult subjects. We are not the chat police, if you don’t like someone's comments, use the /ignore feature.
Some Notes:
  • We use anti-xray to hide ore and chests from cheaters.
  • Damage to blocks by any kind of explosion (TnT, Creeper, etc) and fire spread are disabled; the world will regenerate itself.
  • We have in-game clans and a party system to facilitate cooperation and private chatting.
  • There is land protection/claiming on this server, we need to experiment with it before it is made available to the public. Raiding is allowed.
  • We have a very small and simple spawn lobby only meant for safe spawning.
  • Most maps’ difficulties are set to normal.
Server Hardware:
Intel i-7 870
16gb DDR3 Ram -- 10240MB (10GB) Dedicated
2TB Harddrive

SERVER IP: wt.selfip.com

Please note: Do NOT update your client right away when Mojang releases updates. We do NOT update to dev builds often. We need our plugins to work, and for that we must wait until all have updated to a stable version.

Also note: We recommend Misa’s Realistic Texture pack (http://www.minecraft...ated-11jan2013/). Our adventure map was crafted using this texture pack, so it captures our ideas best.

Not sure if its against the rules to post here. If it is, please remove this post or move it to off-topic please. Thanks!

22
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: September 16, 2012, 03:29:29 pm »
3379: In Soviet Russia, Soviet Russia is in you!

3380: In Soviet Russia, the guns don't go KaBoom, they go KABOOOSHKA!

23
Heres the dummest thing Ive heard
Quote from:  My brother
how do  I turn the computer on?
How I turn the calc on?
I have a better one
"How do I write a program?"
or
"Teach me how to program really quickly!"

24
Miscellaneous / Re: They blocked Omnimaga at our school D:
« on: March 28, 2012, 09:52:09 pm »
The school finally blocked Omnimaga D:
Stupid xtech.boss.net :P

+1 For TOR. I've used tor before and I read somewhere that your signals are completely encrypted until they reach their target, which may even be a computer in Germany or somewhere! There it's decrypted and the response is encrypted and sent then decrypted by you.... blah....blah.....blah....and so on. You get the idea. Secure, Large, Discreet. Profit!

25
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: September 05, 2011, 12:25:13 am »
2099. "nom" is now a vocabulary word that you use to greet people.

26
Web Programming and Design / Re: Forum software choice.
« on: September 03, 2011, 11:43:56 pm »
my board: http://tiprogrammer.57o9.org uses mybb and is pretty customizable, afaik. and my projects blog : http://tiprogrammer.57o9.org/myprojects uses wordpress.

Spoiler For Explaination For Lack of Users:
( Yes i know it only has 2 users, thats cause i don't/haven't asked for members and am a little unorganized currently. Hopefully, when I finish working on it, there will be more ppl. )

27
TI Z80 / Re: Wikipad: the online calculator keypad anyone can edit
« on: September 03, 2011, 09:05:11 pm »
Hell yes Comic Sans. I love Comic Sans~
Yes, Comic Sans is awesome. >9000 awesome.

28
Site Feedback and Questions / Re: SSL
« on: August 28, 2011, 02:36:41 pm »
Oh noooes... The certificate is invalid! This site is dangerous! Should I proceed back to safety, or go into the lion's den.  I take a deep breath, gather my courage, and proceed anyway. I'm greeted with a strange site, a mysterious one.  It looks nothing like how I remembered it.  Then I realized I wasn't logged in.

Yes why is it invalid?
a certificate has to be signed and up to date, like Netham45 said, they cost a lot of money, and its sorta useless, cause you don't absolutely need one.

EDIT: Dang, calcdude84se beat me

29
Miscellaneous / Re: School pranks
« on: August 27, 2011, 06:45:54 pm »
As limited users, we can't do much at my school, so I used powershell to upgrade myself to an admin. :)
 :w00t:
How did you do that?
and another one:
if the target machine is running windows:
http://blogs.linux.ie/fuzzbucket/2008/02/23/cygwin/ on a usb drive is the ticket into being able to irc chat or whatev you want.
Like i did that + ssh <username>@<myip> + screen + irssi and i could chat in windows with no restrictions, cept the size of the terminal. Before you try tho, make sure you have openssh-server installed on your machine if its using ubuntu linux.
on mac, i guess you just do everything above 'cept everything about cygwin. "Go-Utilities-Terminal" will get you to bash.

Not really a prank, but it could be useful  >:D

and this is gonna be a huge post, sry
LanSchool is a program teachers can use to monitor your computer remotely, as well as shut it down or blank the screen. In older versions of the software, the packets it uses are not encrypted, so it was possible to use this program called LanSchooled to do the same stuff the teacher's computer does. Once I used it to blank all the screens in the computer lab.  :P  Unfortunately, newer versions of LanSchool are not compatible. (v7.0 or greater)

http://wiki.compsci.ca/index.php?title=LanSchool
to add on to that, I got a util called procexp.exe. If the taskman is locked then this *might* give you access to it, otherwise, you can use this as a taskman. Shutdown the process that runs that allows the teacher to access your computer, then you can do *anything.

link: http://download.sysinternals.com/Files/ProcessExplorer.zip
CNET link: http://download.cnet.com/3001-2094_4-10223605.html?spi=b540282cb60e58d6a0a77275faba2ee7
(*: no, not anything on the net, that is still logged, i meant like play a game or somethin)

But the best thing is to install linux over the main partition and make it look like windows.

30
Miscellaneous / Re: Gaming at school
« on: August 26, 2011, 10:50:26 pm »
well sometimes it doesn't work, cause not all websites are setup for https transfer. But if omnimaga ever gets blocked, you can do https on it. Idk, maybe even facebook or something might work.

Pages: 1 [2] 3 4 ... 7