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

Pages: 1 ... 10 11 [12] 13 14 ... 20
166
Miscellaneous / Square Position Checking
« on: March 12, 2011, 06:52:38 pm »
I'm tired and I can't think of this now but need to make this now...


I have two squares, and I need a condition to check if one of them (smaller or equal than the other) is inside it.

I have the x and y coordinates of both squares and both squares height and width.

What is the condition to make sure one is inside an other?

Thanks.

NEVERMIND

Sorry but I managed to do do it, but now I gotta sleep, wasted al my energy.

167
I decided to make a topic on this, since we have users from Japan that deserve such topic.



The earthquake was really dangerous and the most violent recorded in the country. The epicentre was 400km far from Tokyo and at least 3 major waves (tsunamis) hit Japan after the earthquake.



I hope everybody you know in Japan is all right. Many countries have already offered help (for example France) to Japan.

168
TI Z80 / binPic2Hex
« on: March 10, 2011, 04:40:23 pm »
I just made a new program to help you getting the hex code for images, here's a screenshot of it:

I hope this comes handy for Axe programmers!



It's very simple, but it has advantages too, it's fast, simple to use and very portable (one file).


Attached is a .py file, so you need Python 2.6 to run it.

I'll be adding more features soon, but still trying to keep it simple since that is its goal.


169
TI-BASIC / NSpire Basic Arrays
« on: March 09, 2011, 05:35:58 pm »
Hey there,

I was wondering if I have an array, how to add something to it:

Code: [Select]
{2,4,6,7,8,142}->myArray
Disp myArray
Disp myArray.count()

I want to add the number 666 to my array how can I do it?

Thanks.

170
Humour and Jokes / The Bauwen Brothers
« on: March 09, 2011, 12:40:18 pm »
I had some difficulties understanding who is who between Stefan Bauwens and Jim Bauwens, the two new members of the Omnimaga community and they are brothers and have more 13 brothers/sisters (so they're 15, it seems).

In the meanwhile to help you all with this, I decided to make a table to help you guys with distinguishing the new members:



Hope this helps you!

171
Math and Science / Derivatives
« on: March 08, 2011, 04:40:13 pm »
Can any of you link me to a good text on derivatives or try to teach me them?

My parents don't want to teach me since they say I'm only gonna learn them next year, but I can't wait :P

Thanks.

172
Other Calculators / Hardware Hacking NSpire
« on: March 08, 2011, 02:35:07 pm »
I was wondering if any of you has attempted or managed to hardware hacking the NSpire.

My question being, we can use Ndless to make it able to run Assembly programs, can we reach the same goal by opening it or something similar to hardware hacking?

173
I have a few doubts here:

Code: [Select]
public class Main extends JApplet {
    public static void main(String[] args) {
        MyFunction(); //This won't work
    }
    public void MyFunction() {
        System.out.println("Hello World");
    }
}

This won't work, I know I need to declare MyFunction as an object, but I'm not sure of how to do it :S


Spoiler For Spoiler:

package applettouppercase;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

//////////////////////////////////////////////////////////////// ToUpperCase
public class Main extends JApplet {

    //=================================================== instance variables
    private JTextField _inField  = new JTextField(20);
    private JTextField _outField = new JTextField(20);

    //================================================================= main
    public static void main(String[] args) {
        JFrame window = new JFrame();
        window.setTitle("ToUpperCase Example");
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        //... JApplet works fine as content pane in a window!
        ToUpperCase myToUpperCaseFunction = new ToUpperCase();
       

        window.pack();                       // Layout components.
        window.setLocationRelativeTo(null);  // Center window.
        window.setVisible(true);
    }

    //================================================== applet constructor
    public void ToUpperCase() {
        //... Create or set attributes of components.
        _outField.setEditable(false);    // Don't let user change output.
        JButton toUpperButton = new JButton("To Uppercase");

        //... Add listener to button.
        toUpperButton.addActionListener(new UpperCaseAction());

        //... Add components directly to applet.  Don't need content pane.
        setLayout(new FlowLayout());
        add(_inField);
        add(toUpperButton);
        add(_outField);
    }

    /////////////////////////////////// inner listener class UpperCaseAction
    class UpperCaseAction implements ActionListener {
        public void actionPerformed(ActionEvent e) {
            //... Convert text in one textfield to uppercase in another.
            String data = _inField.getText();  // Get the text
            String out  = data.toUpperCase();  // Create uppercase version.
            _outField.setText(out);            // Set output field
        }
    }
}

This is my proper code (in the spoiler) and the function I need to declare as an object in the Main function is ToUpperCase().

Thanks much.
   

174
WabbitStudio Software Suite / Run in Wabbitemu
« on: February 28, 2011, 04:59:14 pm »
Instead of contacting one of the developers, I decided to post a new topic here since (I think) this is useful for more people than just me.

I want to create a function in Assemblex that runs a file in wabbitemu, so it'll create a 8xp (which I do) and then run it in Wabbit, which has to be in the same folder as Assemblex.

First of all, I'd like to know if you authorize this.

Then, I'd like to know how such thing would be possible so that we can all learn how to do this (if it possible :P). I can open wabbitemu.exe by pressing a button that will run that process, my doubt is sending the file to wabbitemu.

Also, Assemblex is Python, but give a general idea since (I think) this doesn't apply only to me.

Also, the user would have to put wabbitemu.exe in the folder, I wouldn't distribute it, don't worry.

175
Other Calculators / TI NSpire CX Buttons
« on: February 28, 2011, 07:27:45 am »
One of the updates to the NSpire CX were soft buttons. I was one of the ones who first thought 'Woah, soft buttons, awesome!'.

But now that I think about it with my TV remote on my desk, I can see that soft buttons are terrible for calculators. What I like about the 83+Series buttons is that they are like PS2 remote's buttons, easy to click and allow super fast clicking (I type and use a calculator really fast). Soft buttons don't really allow that.

So do you think they are any good?

176
Other Calculators / TI-NSpire Operative Systems
« on: February 27, 2011, 03:09:15 pm »
The other day I decided to experiment changing the TI-NSpire OS to something made by me. Of course I knew that I had to study the OSs made by Texas Instruments first, it's what I did.

I don't know ARM9 Assembly, so all I could do were some tiny experiments:


Experiment 1
I changed, in the code, 631 to 632. I was editing TI-Nspire-2.1.0.631.tno and in the code (hex to string) it said 'TI-NSpire.tno 2.10.631'. I changed the '631' to '632'. Tried putting it in my calculator and it said corrupted.

Experiment 2->30
I tried changing half-bytes, so 'DB' to 'DA' and stuff like that, also tried changing entire bytes, I made, in the overall, more than 30 different attempts to changing the OS (half-bytes!). All of them, Computer Link software said 'corrupted'.


Conclusion and Questions
Has any of you successfully changed anything in any of the OSs?
How come the Computer Link software be so good at detecting corruptions (Internet connection?)?.


My next experiment will be bit-changing, I'll open the binary of it, and change 1 bit in the code, then I'll see if Computer Link Software still states it as corrupted.

177
Miscellaneous / Education Systems
« on: February 26, 2011, 02:42:22 pm »
After a long conversation on IRC, below, hidden is the log, I decided to create this topic for further discussion of each country's educational system.

Code: [Select]
<Scout> Also, do you know that everybody in my country who is licensed (has a degree) is called 'doctor'?
<OmnomIRC> <DJ_O> the workload and deadlines pressure was just too much for me
<OmnomIRC> <DJ_O> I see
<Scout> Unless if you're an Engineer, then you're an Engineer
<Scout> And a few others, but all degrees are Doctors
<Scout> Doctor with Caps D is when you doctorate and Dr is when you are real doctor (Medicine), doctor is for everyone ;D
<OmnomIRC> <DJ_O> over here a doctor both means someone who got a top-tier diploma in uni (doctorat) or someone who heal sick people at hospitals
<SpyBot45> (O) New post by Freyaday in What am I doing wrong here? http://omniurl.tk/6746/124625
<OmnomIRC> <Xeda112358> It takes 10 years after highschhol to be labled a Doctor, here.
<Scout> Xeda, it's not years, I guess
<Scout> I mean, I can stay there 10 years, but I got to do things
<Scout> You can take 100 years or 10 years
<Scout> (I guess, otherwise it's ridiculous)
<SpyBot45> (O) New post by Xeda112358 in What am I doing wrong here? http://omniurl.tk/6746/124626
<SpyBot45> (O) New post by DJ_O in Electric Field Sim  http://omniurl.tk/6723/124627
<OmnomIRC> <DJ_O> Over here it works that way
<OmnomIRC> <DJ_O> 7 years of elementary school including kindergarten (starting at 5 or 6 year old), 5 years of hi school, then you have the option to choose the following paths:
<OmnomIRC> <DJ_O> no further studies, but then you are limited in what job you can have
<Scout> 5 years of High School? i have 3 here :P
<OmnomIRC> <DJ_O> professional studies: a lower version of college that lasts between 1 and 1.5 year, is cheaper and is more oriented towards manual work
<OmnomIRC> <DJ_O> college technique: 3 years of college
<OmnomIRC> <DJ_O> university: 2 years of college followed by 3 years of university, 5 years of it or 8
<OmnomIRC> <DJ_O> I think it's also possible to merge both
<OmnomIRC> <DJ_O> so you save 1 year
<OmnomIRC> <Xeda112358> We have PreSchool, Kindergarten, grades 1~6 for elementary (8 years)
<SpyBot45> (O) New post by DJ_O in Post nDoom bug reports here. http://omniurl.tk/6735/124628
<OmnomIRC> <Xeda112358> then 6 years for middle school and high school
<OmnomIRC> <DJ_O> Idk if pre-school still exists here. IIRC it was opt

In my country, here's how it works:

  • 6 or 7 years old - Primary School (lasts 4 years)
  • Then is Basic School (lasts 5 years)
  • Then is High School (lasts 3 years) (most are 17 by now)
  • Then you have University which is 3 years of licensing in most degrees, but it depends on the degree and each person's choices

Note: Instead of taking High School, you can have 3 years that are called 'Professional Courses' aimed at people who want to work when they're 18 in a specific (usually manual) job.

178
Humour and Jokes / Google Translate Easter Egg
« on: February 26, 2011, 06:56:35 am »
I just found an awesome easter egg in Google Translate:

1. Open Google Translate here;
2. Change it to German-Turkish;
3. Now write ä 15 times (äääääääääääääää);

See what appears ;D

179
Computer Programming / Java Swing Doubt
« on: February 25, 2011, 01:50:15 pm »
Code: [Select]
package gamepanel;

import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        JFrame loadingBarFrame = new JFrame();
        loadingBarFrame.setSize(400,100);
        loadingBarFrame.setVisible(true);
        JProgressBar progressBar = new JProgressBar();
        progressBar.setVisible(true);
        progressBar.setLocation(5,5);
        progressBar.setSize(1000,1000);
        progressBar.setValue(0);
        progressBar.setStringPainted(true);
    }
}

I have this code which is supposed to create a simple progress bar and a frame, however, the progress bar doesn't appear for some obvious reason I'm not aware of, any ideas?

180
Axe / Axe - The 'Fix ' Command
« on: February 20, 2011, 03:22:32 pm »
Introduction

Axe has a command called 'Fix ' with many uses. It's really simple to use and everything is explained in the commands.htm included in Axe. However, this tutorial makes it simpler to understand the several options of 'Fix ' command with examples and explanation.

The Fix command is always followed by a number, and it activates a new feature or changes something, and there is always another Fix that cancels it.

Note: I'm explaining from Fix 0 to Fix 5, I'll explain the others later.

Fix 0 and Fix 1

Code: [Select]
.FIX
ClrHome
Text(0,0,"Small font
Fix 1
Text(0,10,"Big Font
Fix 0
Repeat getKey
End

Whenever, Fix 1 is called, it activates 8 pixels size font. When Fix 0 is called it makes it the default.

This is what happens when I compile and run this code:



This command is similar to the difference in TI-Basic:

Output(0,0,"TEXT
Text(10,0,"TEXT

Fix 3 and Fix 2

The Fix 3 command makes text inverted:

Code: [Select]
.FIX
ClrHome
Text(0,0,"Normal text
Fix 3
Text(0,10,"Inverted text
Fix 2
Repeat getKey
End



This is a very simple command to understand, I think.

Fix 5 and Fix 4

Now, this is one of the most important Fix's in my opinion. It lets you have text and images/sprites at the same time in the LCD.

Here's an example:

Code: [Select]
.FIX
ClrDraw
[181818FFFF181818]->Pic1
Fix 5
Pt-On(20,20,Pic1
Text(0,0,"Image and text
DispGraph
Repeat getKey
End
Fix 4

This is very useful for menus, games and most programs use it.



Conclusion

I hope you liked the tutorial, if you have any questions, comment or PM me.

Attachments

Attached is a ZIP with the three 8xp source codes and executables and the screenshots.

Pages: 1 ... 10 11 [12] 13 14 ... 20