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 ... 9 10 [11] 12 13 ... 20
151
Other Calculators / Cemetech has a new theme
« on: April 01, 2011, 12:41:53 pm »
Well, it looks like Cemetech has a new template (or theme if you prefer). It's a retro theme and it looks you have both the OS mouse and a 84+ SE mouse!

Here's a picture of it:



I'd check it myself if I were you to see the 84+ SE mouse effect.


I first thought this was just an experiment, but it seems like it is somewhat permanent:
Quote
<KermOffc> back at the office
<KermOffc> TechNOM76, , Scout , it's not temporary
<KermOffc> I'm sorry to hear you guys don't like it

It also seems like it's not an April Fools Day joke:
Quote
Edit: And yes, I know that it's April 1st; it's an unfortunate coincidence, but I assure you no less real.


To sum up, it's nice to see both TI Freakware and Cemetech are getting new themes and changing their forums, I hope this helps keeping the TI Community young.

More information can be found here.

152
Other / What's the font?
« on: March 29, 2011, 07:54:26 am »
I am a recent Ubuntu user and am in love with one of its default fonts:



The font used for code in many websites when browsing in Ubuntu, any idea what its name is (the font in the textfield)?

Thanks

153
Computer Programming / Installing wxWidgets and compiling software
« on: March 26, 2011, 07:10:42 am »
Last night, I installed wxWidgets 2.9.1 on my Ubuntu 10.04. It all went well, and it works:

Code: [Select]
david@DavidPC:~$ wx-config --version
2.9.1
david@DavidPC:~$

It was installed. Now I want to make my first GUI program, and used this code:

Code: [Select]
/*
 * hworld.cpp
 */

#include "wx/wx.h"

class MyApp: public wxApp
{
    virtual bool OnInit();
};

class MyFrame: public wxFrame
{
public:

    MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);

    void OnQuit(wxCommandEvent& event);
    void OnAbout(wxCommandEvent& event);

    DECLARE_EVENT_TABLE()
};

enum
{
    ID_Quit = 1,
    ID_About,
};

BEGIN_EVENT_TABLE(MyFrame, wxFrame)
    EVT_MENU(ID_Quit, MyFrame::OnQuit)
    EVT_MENU(ID_About, MyFrame::OnAbout)
END_EVENT_TABLE()

IMPLEMENT_APP(MyApp)

bool MyApp::OnInit()
{
    MyFrame *frame = new MyFrame( _("Hello World"), wxPoint(50, 50),
                                  wxSize(450,340) );
    frame->Show(true);
    SetTopWindow(frame);
    return true;
}

MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
: wxFrame( NULL, -1, title, pos, size )
{
    wxMenu *menuFile = new wxMenu;

    menuFile->Append( ID_About, _("&About...") );
    menuFile->AppendSeparator();
    menuFile->Append( ID_Quit, _("E&xit") );

    wxMenuBar *menuBar = new wxMenuBar;
    menuBar->Append( menuFile, _("&File") );

    SetMenuBar( menuBar );

    CreateStatusBar();
    SetStatusText( _("Welcome to wxWidgets!") );
}

void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
    Close(TRUE);
}

void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
    wxMessageBox( _("This is a wxWidgets Hello world sample"),
                  _("About Hello World"),
                  wxOK | wxICON_INFORMATION, this);
}

My question being, how to compile it?

When I go to the console and type g++ helloWorld.cpp I get:

Code: [Select]
g++ helloWorldGUI.cpp
helloWorldGUI.cpp:5:20: error: wx/wx.h: Ficheiro ou directoria inexistente
helloWorldGUI.cpp:8: error: expected class-name before ‘{’ token
helloWorldGUI.cpp:13: error: expected class-name before ‘{’ token
helloWorldGUI.cpp:16: error: ISO C++ forbids declaration of ‘wxString’ with no type
helloWorldGUI.cpp:16: error: expected ‘,’ or ‘...’ before ‘&’ token
helloWorldGUI.cpp:18: error: ‘wxCommandEvent’ has not been declared
helloWorldGUI.cpp:19: error: ‘wxCommandEvent’ has not been declared
helloWorldGUI.cpp:21: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
helloWorldGUI.cpp:22: error: expected ‘;’ before ‘}’ token
helloWorldGUI.cpp:22: error: expected ‘;’ before ‘}’ token
helloWorldGUI.cpp:30: error: ‘wxFrame’ has not been declared
helloWorldGUI.cpp:31: error: expected constructor, destructor, or type conversion before ‘EVT_MENU’
helloWorldGUI.cpp:46: error: ISO C++ forbids declaration of ‘wxString’ with no type
helloWorldGUI.cpp:46: error: expected ‘,’ or ‘...’ before ‘&’ token
helloWorldGUI.cpp: In constructor ‘MyFrame::MyFrame(int)’:
helloWorldGUI.cpp:47: error: class ‘MyFrame’ does not have any field named ‘wxFrame’
helloWorldGUI.cpp:47: error: ‘NULL’ was not declared in this scope
helloWorldGUI.cpp:47: error: ‘title’ was not declared in this scope
helloWorldGUI.cpp:47: error: ‘pos’ was not declared in this scope
helloWorldGUI.cpp:47: error: ‘size’ was not declared in this scope
helloWorldGUI.cpp:49: error: ‘wxMenu’ was not declared in this scope
helloWorldGUI.cpp:49: error: ‘menuFile’ was not declared in this scope
helloWorldGUI.cpp:49: error: expected type-specifier before ‘wxMenu’
helloWorldGUI.cpp:49: error: expected ‘;’ before ‘wxMenu’
helloWorldGUI.cpp:51: error: ‘_’ was not declared in this scope
helloWorldGUI.cpp:55: error: ‘wxMenuBar’ was not declared in this scope
helloWorldGUI.cpp:55: error: ‘menuBar’ was not declared in this scope
helloWorldGUI.cpp:55: error: expected type-specifier before ‘wxMenuBar’
helloWorldGUI.cpp:55: error: expected ‘;’ before ‘wxMenuBar’
helloWorldGUI.cpp:58: error: ‘SetMenuBar’ was not declared in this scope
helloWorldGUI.cpp:60: error: ‘CreateStatusBar’ was not declared in this scope
helloWorldGUI.cpp:61: error: ‘SetStatusText’ was not declared in this scope
helloWorldGUI.cpp: At global scope:
helloWorldGUI.cpp:64: error: variable or field ‘OnQuit’ declared void
helloWorldGUI.cpp:64: error: ‘wxCommandEvent’ was not declared in this scope
helloWorldGUI.cpp:64: error: ‘event’ was not declared in this scope
helloWorldGUI.cpp:64: error: ‘WXUNUSED’ was not declared in this scope
helloWorldGUI.cpp:69: error: variable or field ‘OnAbout’ declared void
helloWorldGUI.cpp:69: error: ‘wxCommandEvent’ was not declared in this scope
helloWorldGUI.cpp:69: error: ‘event’ was not declared in this scope
helloWorldGUI.cpp:69: error: ‘WXUNUSED’ was not declared in this scope
david@DavidPC:~/Documentos/C++$

No idea why though :(

154
Humour and Jokes / What Zeda looks like...
« on: March 25, 2011, 08:30:34 pm »
... We all know Zeda is a walking brain, a maths genious and here's how I imagine her:



What do you think? A quick sketch.

Note: No offense Zeda.

155
Math and Science / Pitagoric Triplet
« on: March 25, 2011, 06:50:42 pm »
A pitagoric triplet is, as most of you know, a group of numbers a,b,c that solve the following rule:

Code: [Select]
a²+b²=c²

The most common example is 3²+4²=5².

The challenge is the following:

Code: [Select]
a²+b²=c²
a,b,c are all natural numbers
a+b+c=200

You can easily find the answer on the Net, but I want the mathematical (by hand) proof of your work.

Good Luck! If you find the answer like some already did, post it in spoiler tags please.


156
Axe / Simple Axe Questions
« on: March 22, 2011, 05:43:37 pm »
I've been working on a few things have the following questions:

1. How to write white text in black background? So if I have Rect(0,96,96,64 and then want to use Text( and make it white over dark background. How can I do it? I can't DrawInv everything by the way.
2. I have 2 pictures (two FFFFFFFFFFFFFFFF Pics) and I want to check collision between them, I have (X,Y) for the upper left corner of one of them and (A,B) for the upper left corner of the other one. How can I make them both stop when they collide with each other. So, if one hits the other, they'll both block, collide and can't move unless if they turn around. Thanks.


Notes: I'm not using the x256 mode (I never use/used it). Thanks

157
Miscellaneous / USA/France/Spain open fire on Libya
« on: March 19, 2011, 02:19:55 pm »
I just saw on the news, France shot a tank on Libya due to Khadafi's refuse of a reserved air space.

I'm afraid this might mean war :S

What do you think?

158
Math and Science / Why is this?
« on: March 18, 2011, 05:46:18 pm »
x^n

if last digit of x = 9 and n is even:

the last digit of n is 1.


Example

9^4 = 6561
69^2 = 4761

Any number

Can any of you explain me why?

159
nDoom / How to setup and install nDoom
« on: March 18, 2011, 05:06:07 pm »
Introductions
Gamers, programmers, and a lot of internet users recently found out about nDoom and everybody wants to play it.

Setting up nDoom on a TI-NSpire can be difficult, hence I decided to write this article/tutorial on how to install and set up nDoom for the TI-NSpire Touchpad (and Clickpad, but I'm focusing on the Touchpad).

What do you need
To run Assembly/C programs like nDoom on the NSpire you need a TI-NSpire, NDless, TI-Nspire™ Computer Link Software, a USB cable to connect your NSpire to your computer and nDoom.

Setting up NDless
I didn't mention one thing you need in the previous paragraph, on purpose, because I want to explain it in separate. nDoom only works with NDless 2.0, which only works with TI-NSpire Operative Systems 2.x. This is, the Operative Systems that will work are all the ones that are of the type 2.x. I recommend 2.0.1, since it worked perfectly for me in my Touchpad, but I think the others will work as fine.

The first thing you need to install (and I can't help you with it) is the TI-Nspire™ Computer Link Software. Anyone who has ever installed a program on their computer will make it through easily (press 'Next' a hundred times).
Note: This software is only available for Windows and Macintosh.

After installing TI-Nspire™ Computer Link Software, connect your calculator to your computer and turn it on. Then open the software and, hopefully, a dialog will show up asking you to confirm which calculator you want to connect to. Connect.

Now you need the OS 2.0.1 (if you don't have it already, and you can check which OS you have by, in your calculator, going to the definitions menu and pressing State, this shouldn't be too hard). In case you don't have the OS you need, you can get it here. More OSs can be found here.

Now browse to the folder where your .tno file is, and drag and drop it to the Computer Link Software:



A popup will ask you if you really want to install the OS, do not disconnect your calculator until it is installed. The progress bar starts on the computer but will keep on to the calculator later.

Now that you have the proper OS you can install NDless. The version I used can be found here. It worked for me, but if you want the latest version of Ndless, you have to go here and download the 'latest' folder.

Whichever version you use, transfer the following files to your calculator (the same way you transferred the OS):
ndless_resources.tns;
ndless_installer_os-2.0.1.tns; //This may depend on your OS, but if you did just as I said in this tutorial, this is the one

Setting up nDoom

While it is true that nDoomis still beta, an 'executable' and very stable version of it is available. You can find it here.

Transfer all of the files in the folder downloaded (after extracting them of out of the .zip) to your calculator, the same way you did with the OS and NDless.

Now you have to unplug your calculator from the computer, but check if you have the ndoom_b1.tns and doom1.wad files on it. Recheck if you have the ndless installer and resources files.

Don't forget to unplug.


Really.

Now, hopefully, you have everything you need. Open your calculator, find the ndless_installer_os-2.0.1.tns file and open it. If everything is OK, a 'Sucess' message will show up and you can then open ndoom_b1.tns and play nDoom!

If the screen goes crazy, check if you have ndless_resources.tns on it (it happened to me).
If still not working, retry the tutorial or respond to this topic, since me or someone else can help you.

Before, you can even check these links:

http://ourl.ca/9206;
http://ourl.ca/7717;

Thanks to...

Thanks to the NDless development team for creating NDless and making an awesome readme.txt (I read it!) which thought me how to do this.
Thanks to Mrakoplaz for creating nDoom.

160
Miscellaneous / One File VS Multiple Files
« on: March 18, 2011, 02:40:12 pm »
Are you a multiple file user (Computer Programming or Calculator Programming)?

Or do you have 1000 lines in a single file?

What do you think is best?

Discuss.

----

I personally use a single file for pretty much everything, one file and print in each line debugging is for real man!
But organized code is best when using multiple files, I have to agree with that.

161
General Calculator Help / Branch defined functions NSpire
« on: March 17, 2011, 11:49:37 am »
In the 8x Series I can:
Code: [Select]
Y1= (2.5X)(X>10)
Y2 = (5X)(X<=10)

This meaning:
If x>10, y=2.5x
If x<=10, y=5x

How can I do this on the nspire?

162
Computer Programming / C++ Questions
« on: March 16, 2011, 05:28:27 pm »
http://pastebin.com/Ku8EWBXN

I have that code and for some reason it is crashing when running, there is no output, it crashes right after executing.

What do you think about it?

163
Web Programming and Design / Javascript Problems
« on: March 14, 2011, 09:12:43 am »
Code: [Select]
<!DOCTYPE html>
<head>
<script language="javascript" type="text/javascript">
function addtext() {
var newtext = document.myform.inputtext.value;
document.myform.outputtext.value += newtext;
}
</script>
</head>
<body>
<form name="myform">
<input type="inputtext" size="25" />
<input type ="outputtext" size = 25" />
<p></p>
<input type="button" value="Convert" onClick="addtext();">

</form>
</body>
</html>

I have this code which is supposed to pick the text from the inputtext textbox and put it in the outputtext box. It is not working though, any ideas?

164
Site Feedback and Questions / Random Timed Rules Bot
« on: March 14, 2011, 08:39:57 am »
JimBauwens just made a little bot in Python that links to the rules, it works like this:

Quote
[06:17:49] * JimBot (~JimBot@) has joined #omnimaga
[06:18:18] <jimbauwen> Hello JimBot :)
[06:18:24] <jimbauwen> JimBot: Hello
[06:18:25] <JimBot> Hello jimbauwen! Please read the rules:http://bit.ly/gLSyEt
[06:21:30] <@OmnomIRC> <Scout> Jim, is that your bot?
Note: I Cut the IP's in this quote.

Now I love this idea, a bot that links to the rules every x hours, I vote for 3 hours.

I think this is a good idea and would like to hear your opinions.

165
Site Feedback and Questions / Omniurl.tk Rules
« on: March 13, 2011, 04:56:36 pm »
I think that in OmnomIRC our link to the rules is bit.ly and I am in favour of having links in that super cool omniurl.tk :)

I think it looks better, what do you think?

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