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.


Topics - Spyro543

Pages: 1 ... 5 6 [7] 8 9
91
Other Calculators / Name your calc?
« on: September 13, 2011, 04:28:57 pm »
My TI-Nspire Touchpad's name is Bryce.

Does your calc(s) have a name?

92
Gaming Discussion / Motherload discussion
« on: September 11, 2011, 07:21:47 am »
I am severely addicted to Motherload right now! I've had an account for a few months and I just keep playing, upgrading, and digging!

Discuss Motherload here!

93
Other / Omnimaga FOSS game system
« on: August 27, 2011, 06:43:55 am »
How yould you guys like an Omnmimaga open source game system? Probably running off of the BeagleBoard-xM, this would be quite the cool project. It would probably run a very stripped down version of Linux I would call Omnirun....
Right now we need a project name.

94
...then why can't we make some sort of robot thing! You would type instructions on calc, which could then be sent to motors! (jimbauwen, his calc, and his mighty Arduino could surely do it :D)

With Ndless, we could do this, and could we get info back from the robot?

It would probably be just a simple car setup with four motors, two on each side.
The motors have to work like this:

DirectionLeft motorsRight motors
ForwardsClockwiseCounterclockwise
ReverseCounterclockwiseClockwise
LeftCounterclockwiseCounterclockwise
RightClockwiseClockwise

95
Other Calculators / Project DreamCalc Revived
« on: August 21, 2011, 03:09:18 pm »
Some people here might remember Project DreamCalc, right? Well, I never wanted it to die, in fact, I want to keep working on it.

I lost my notebook, so I lost all my ideas and concepts, so I have to start over on that.  :banghead:

Question:
I would want some help from you guys: What is a good, small screen for BeagleBoard-xM? and what about the keyboard? It would have to have graphing calculator keys, and it would have to be able to plug into a BeagleBoard-xM.

I also have a poll question.

96
Computer Programming / Defined function running before it is called
« on: August 19, 2011, 05:09:04 pm »
This program is nowhere near finished, just warning you!

I'm working on a GUI for g++ because I'm bored. I'm having strange problems with it.

Code: (entire source) [Select]
from Tkinter import *
import os
import tkFileDialog

root = Tk()

tn = Label(root, text="gcc C++ Compiler GUI")
tn.grid(row=0, column=1, columnspan=3, sticky=N+S+E+W)

pathn = Label(root, text="Path to source:")
pathn.grid(row=1, column=1, sticky=N+S+E+W)

namen = Label(root, text="Name of compiled file:")
namen.grid(row=2, column=1, sticky=N+S+E+W)

path = Entry(root)
path.grid(row=1, column=2, columnspan=2, sticky=N+S+E+W)
path.delete(0, END)
path.insert(0, "")

name = Entry(root)
name.grid(row=2, column=2, columnspan=3, sticky=N+S+E+W)
name.delete(0, END)
name.insert(0, "")

quitbtn = Button(root, text="Exit", fg="red", command=exit)
quitbtn.grid(row=3, column=3, sticky=N+S+E+W)

compilebtn = Button(root, text="Compile!", fg="blue", command=quit)
compilebtn.grid(row=3, column=2, sticky=N+S+E+W)

spyro = Label(root, text="By Spyro543")
spyro.grid(row=3, column=1, sticky=N+S+E+W)

def fopen():
    cformats = [('C++ source file','*.cpp'),('Plain text file','*.txt'),('Any File','*.*')]
    filenm = tkFileDialog.askopenfile(parent=root,filetypes=cformats ,title='Select the cpp source file')
    path.insert(0, filenm)

browsebtn = Button(root, text="Browse", fg="black", command=fopen())
browsebtn.grid(row=1, column=4, sticky=N+S+E+W)

root.mainloop()

I'm having two problems: one is the definde function fopen() is running immediately instead of when I call it (when the button is pressed). Any way to fix this?
Code: (first problem) [Select]
def fopen():
    cformats = [('C++ source file','*.cpp'),('Plain text file','*.txt'),('Any File','*.*')]
    filenm = tkFileDialog.askopenfile(parent=root,filetypes=cformats ,title='Select the cpp source file')
    path.insert(0, filenm)

My 2nd problem is that after fopen() runs (when it's not supposed to :mad:) all of the widgets freeze and don't do anything. I can't activate the text boxes and none of the buttons do anything.

97
Computer Projects and Ideas / new Event based OOPL idea
« on: August 15, 2011, 06:35:32 pm »
Recently I got an idea for a new programming language I call Project Vortex (not quite sure why).
It'll be event based and object oriented programming. I got most of my inspiration from Game Maker. And just like Game Maker, this language will be made mainly for games.

Here are the events I've thought of so far:
onStart: Happens when the program is started.
onExit: Happen when the program is closed.
onCreate: Happens when the object is initialized.
onKeyPress: Here is a list of all the keys you can put in onKeyPress:
Spoiler For Spoiler:
onKeyPress(<key>)
Q W E R T Y U I O P A S D F G H J K L Z X C V B N M
[ ] ; ' , . / \ 12345567890 ` - =
Tab Space Enter Ctrl Alt Delete Bksp Up Down Left Right
onKeyRelease: Same as onKeyPress but happens when a key is released.
onCollision: Happens when the object's sprite overlaps the specified object.
onEnd: Happens when an object is destroyed (ended).
This is all I can think of right now :P

Object Oriented Programming Syntax
Object(): Creates a new object.
Inside of the (): Object(<name>,<variables>)
Spoiler For creating an object:
Before we do anything, we have to make the "playing field"

~This is a comment
Area("area",600,600)   ~Creates a new area by the name area and makes it 600 by 600 px
area.bg(0xFFFFFF)   ~Sets the background of the area to black

~Now we make the object
Object("HelloWorld") {
     onCreate {   ~The code inside of the {} gets executed when this object is called
          var say = "Hello World!"   ~Creates var say and puts "Hello World" in it
          say = inputbox "What do you want to say?"    ~Shows a text box and stores the input in say
          labelbox say  ~Shows a window that contains the text of say
     }
}

area.show()   ~Displays the area on the screen
HelloWorld.sprite("")   ~Sets the sprite of the HelloWorld object. Empty quotes make it invisible
HelloWorld.disp("area",1,1)   ~Displays the object on the area at location 1,1

This program takes input from the user and shows it.

This is a horridly incomplete concept. Help and suggestions would be nice. Thanks in advance :)

98
Other / Making a mini-computer
« on: August 05, 2011, 01:01:38 pm »
http://anovanews.blogspot.com/2011/08/making-mini-computer.html

Many of you have seen me talking about this on IRC.
Well, I finally posted about it on my blog.

What do you guys think?

99
Casio Calculators / Can't login to Casio kingdom
« on: August 04, 2011, 02:12:14 pm »
Today I wanted to log in to Casio Kingdom, and I went to the login field like usual:


Well, the security code CAPTCHA is "Security Code".  ???
So I entered in Security Code, and the maxlength of the textbox is less than the amount of characters in Security Code. *.*
I tried not typing anything in, and it failed with the login. :banghead:

How do I log in? :crazy: :mad:

100
Other / Desktop -> laptop?
« on: July 25, 2011, 08:55:52 pm »
I had a random idea today.

http://anovanews.blogspot.com/2011/07/use-for-my-old-desktop-computer.html

So what do you guys think?

101
Other / List of Ubuntu releases
« on: July 24, 2011, 04:14:43 pm »
I found lists of all the Ubuntu releases (4.10 to 11.10).
(These lists are on the Ubuntu website, so they must be legal!)
Releases 4.10 to 9.10
Releases 10.04.1 to 11.10

102
I'm needing some help with PircBot (documentation). For some reason, when I add a second event to my bot code, javac completely fails to compile any of it. And I'm trying to op a user here, and it's not working out so well. Here are the two source code files:
Code: (BryceBot.java) [Select]
import org.jibble.pircbot.*;

public class BryceBot extends PircBot {
   
public BryceBot() {
this.setName("BryceBot");
}
   
public void onMessage(String channel, String sender,
                       String login, String hostname, String message) {
if (message.equalsIgnoreCase("$time")) {
String time = new java.util.Date().toString();
sendMessage(channel, sender + ", The time is now " + time);
}
   
public void onMessage(String channel, String sender,
                       String login, String hostname, String message) {
if (message.equalsIgnoreCase("$op")) {
if (sender.equalsIgnoreCase("KittyGirl")) {
void op(channel, sender);
sendMessage(channel, sender + ", you have been opped.");
}
}
   
public void onMessage(String channel, String sender,
                       String login, String hostname, String message) {
if (message.equalsIgnoreCase("$op")) {
if (sender.equalsIgnoreCase("UbuntuGuy")) {
void op(channel, sender);
sendMessage(channel, sender + ", you have been opped.");
}
}
   
public void onMessage(String channel, String sender,
                       String login, String hostname, String message) {
if (message.equalsIgnoreCase("$op")) {
if (sender.equalsIgnoreCase("Ti-PrgmR")) {
void op(channel, sender);
sendMessage(channel, sender + ", you have been opped.");
}
}
}
}
Code: (BryceBotMain.java) [Select]
mport org.jibble.pircbot.*;

public class BryceBotMain {
   
public static void main(String[] args) throws Exception {
       
BryceBot bot = new BryceBot();

bot.setVerbose(true);
       
bot.connect("irc.SHOUTcast.net");

bot.joinChannel("#tiandubuntu");
       
}
   
}

When I try to compile the files above, I get this:
Code: (Terminal output) [Select]
aaron@aaron-N150P-N210P-N220P:~/BryceBot/pircbot-1.5.0$ javac -classpath pircbot.jar:. *.java
BryceBot.java:16: illegal start of expression
public void onMessage(String channel, String sender,
^
BryceBot.java:16: illegal start of expression
public void onMessage(String channel, String sender,
       ^
BryceBot.java:16: ';' expected
public void onMessage(String channel, String sender,
                     ^
BryceBot.java:16: ';' expected
public void onMessage(String channel, String sender,
                                            ^
BryceBot.java:16: not a statement
public void onMessage(String channel, String sender,
                                             ^
BryceBot.java:16: ';' expected
public void onMessage(String channel, String sender,
                                                   ^
BryceBot.java:17: ';' expected
                       String login, String hostname, String message) {
                                           ^
BryceBot.java:17: not a statement
                       String login, String hostname, String message) {
                                            ^
BryceBot.java:17: ';' expected
                       String login, String hostname, String message) {
                                                    ^
BryceBot.java:17: ';' expected
                       String login, String hostname, String message) {
                                                                    ^
BryceBot.java:20: illegal start of expression
void op(channel, sender);
^
BryceBot.java:20: ';' expected
void op(channel, sender);
       ^
BryceBot.java:20: not a statement
void op(channel, sender);
        ^
BryceBot.java:20: ';' expected
void op(channel, sender);
               ^
BryceBot.java:20: not a statement
void op(channel, sender);
                 ^
BryceBot.java:20: ';' expected
void op(channel, sender);
                       ^
BryceBot.java:25: illegal start of expression
public void onMessage(String channel, String sender,
^
BryceBot.java:25: illegal start of expression
public void onMessage(String channel, String sender,
       ^
BryceBot.java:25: ';' expected
public void onMessage(String channel, String sender,
                     ^
BryceBot.java:25: ';' expected
public void onMessage(String channel, String sender,
                                            ^
BryceBot.java:25: not a statement
public void onMessage(String channel, String sender,
                                             ^
BryceBot.java:25: ';' expected
public void onMessage(String channel, String sender,
                                                   ^
BryceBot.java:26: ';' expected
                       String login, String hostname, String message) {
                                           ^
BryceBot.java:26: not a statement
                       String login, String hostname, String message) {
                                            ^
BryceBot.java:26: ';' expected
                       String login, String hostname, String message) {
                                                    ^
BryceBot.java:26: ';' expected
                       String login, String hostname, String message) {
                                                                    ^
BryceBot.java:29: illegal start of expression
void op(channel, sender);
^
BryceBot.java:29: ';' expected
void op(channel, sender);
       ^
BryceBot.java:29: not a statement
void op(channel, sender);
        ^
BryceBot.java:29: ';' expected
void op(channel, sender);
               ^
BryceBot.java:29: not a statement
void op(channel, sender);
                 ^
BryceBot.java:29: ';' expected
void op(channel, sender);
                       ^
BryceBot.java:34: illegal start of expression
public void onMessage(String channel, String sender,
^
BryceBot.java:34: illegal start of expression
public void onMessage(String channel, String sender,
       ^
BryceBot.java:34: ';' expected
public void onMessage(String channel, String sender,
                     ^
BryceBot.java:34: ';' expected
public void onMessage(String channel, String sender,
                                            ^
BryceBot.java:34: not a statement
public void onMessage(String channel, String sender,
                                             ^
BryceBot.java:34: ';' expected
public void onMessage(String channel, String sender,
                                                   ^
BryceBot.java:35: ';' expected
                       String login, String hostname, String message) {
                                           ^
BryceBot.java:35: not a statement
                       String login, String hostname, String message) {
                                            ^
BryceBot.java:35: ';' expected
                       String login, String hostname, String message) {
                                                    ^
BryceBot.java:35: ';' expected
                       String login, String hostname, String message) {
                                                                    ^
BryceBot.java:38: illegal start of expression
void op(channel, sender);
^
BryceBot.java:38: ';' expected
void op(channel, sender);
       ^
BryceBot.java:38: not a statement
void op(channel, sender);
        ^
BryceBot.java:38: ';' expected
void op(channel, sender);
               ^
BryceBot.java:38: not a statement
void op(channel, sender);
                 ^
BryceBot.java:38: ';' expected
void op(channel, sender);
                       ^
BryceBot.java:43: reached end of file while parsing
}
 ^
BryceBot.java:44: reached end of file while parsing

^
50 errors
aaron@aaron-N150P-N210P-N220P:~/BryceBot/pircbot-1.5.0$

If I compile and run the bot with just the first event (the one that shows the time), it works fine, but if I even copy and paste that event and use that code to make a slightly different code block with it, it fails.
If anyone here knows how to use PircBot, I would greatly appreciate help. Thanks.

103
The Axe Parser Project / Invalid token?
« on: July 16, 2011, 08:11:01 am »
Hi, first time Axe programmer here. :P

At 15% of compiling, I get an Invalid Token error.

Here is the code:
Code: (program source code) [Select]
.MOVEDEMO
1->A
1->B
Pt-On(1,1,[FF818181999999FF]):DispGraph
Lbl 1
Getkey->C
If C=4
Then
A+1->A:Pt-On(A,B,[FF999999818181FF]):DispGraph
End
If C=1
Then
A-1->A:Pt-On(A,B,[FF818181999999FF]):DispGraph
End
If C=2
Then
B-1->B:Pt-On(A,B,[FF8181F1F18181FF]):DispGraph
End
If C=3
Then
B+1->B:Pt-On(A,B,[FF81818F8F8181FF]):DispGraph
End
Goto 1

How can I make this code work?

104
Web Programming and Design / HTML form help needed
« on: July 13, 2011, 11:57:58 am »
On my website, I am making an HTML form that someone would fill out to request a custom-made operating system. (My friend and I take requests for custom operating systems and I wanted to make a form that someone could use to request an OS) I once made a test form. This is the email that it sent me:
Code: [Select]
name=test
[email protected]
comment=This is a test email.
Submit=Submit
Look at this. New lines, spaces in-between words, and special characters are shown correctly.
Now look at the output for the form used to request OSes:
Code: [Select]
username=Aaron&useremail=acrennie%40gmail.com&osname=Testing+This+Form&osdescription=Just+testing+this+form+%3A3+%0D%0A&ostype=kde&logo=AdviceBackground.png&wallpaper=AdviceBackground.png&includepkgs=Packages+and+stuffz+%3AP&publishtogallery=yesThis is formatted for putting in a URL. Why is it like this? I used the exact same parameters for this one as I did for my old test form.
If you need it, here is the source code for the form:
Code: [Select]
<form action="MAILTO:[email protected]" method="post" enctype="multipart/form-data" name="EmailTestForm">
Your Name:<br>
<input type="text" size="20" name="username"><br>
Your Email Address<br>
<input type="text" size="20" name="useremail"><br>
OS Name:<br>
<input type="text" size="20" name="osname"><br>
OS Description:<br>
<textarea name="osdescription" rows="10" cols="40" wrap="physical"></textarea><br>
Select a desktop interface:<br>
<select name="ostype">
<option value="noneselected">Select an interface</option>
<option value="jeos">Just Enough OS</option>
<option value="kde">K Desktop Environment (KDE)</option>
<option value="gnome">Gnome Desktop Environment</option>
<option value="server">Server (Text-Only)</option>
<option value="minimalx">Minimal X (IceWM)</option>
</select><br>
Add a logo:<br>
<input name="logo" type="file" /><br>
Add a wallpaper:<br>
<input name="wallpaper" type="file" /><br>
If no logo or wallpaper added, the standard SuSE logo and/or wallpaper will be used.<br><br>
List the packages wanted here. Remember, this is a SuSE OS, so make sure the packages you are listing are SuSE-compatible.<br>
<textarea name="includepkgs" rows="10" cols="40" wrap="physical"></textarea><br>
Do you want this OS to be publicly shown on SuSE Gallery?<br>
<input type="radio" name="publishtogallery" value="yes">Yes
<input type="radio" name="publishtogallery" value="no">No<br>
<input type="submit" value="Send Request"></form>
Sorry, but I do not have the source for my old test form.

My question is, how can I make the OS form output readable, just like the old test form?
(To test this form, go to http://anova.57o9.org/osform.htm)

105
Spoiler For original post:
Some of you have probably heard of my DreamPad project of building a mobile programming device. I won't talk much about it here, but I am totally rebooting the project. This is going to be a graphing calculator - and instead of figuring out how it would look first, I want to figure out what it is made up of first:
(Finished questions are in GREEN)

Screen Resolution: 320x240
Screen type: COLOR
A "Teacher Mode" / Press To Test: YES
Backlight: YES
Navigation type: ARROW KEYS
Wi-Fi capabilities: YES (and have a hardware switch to toggle)
USB functionality: YES (viewing USB devices on calc)
USB connection to computer: MASS STORAGE
Battery type: RECHARGEABLE (recharge through USB)
Dev board / processor type: BeagleBoard xM (It has an ARM processor)
Letter input type: ALPHA BUTTON
Sound: THROUGH HEADPHONES
Name: DreamCalc - Changed because of possible legal issues with Casio (ClassPad).
Now look at this BeagleBoard xM. These will be the specs for my graphing calculator:

It would be nice for a graphing calc, but is this a calculator or a laptop? I think this board would be better for the DreamPad instead of the DreamCalc...

Pages: 1 ... 5 6 [7] 8 9