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

Pages: 1 ... 16 17 [18] 19 20 ... 424
256
Humour and Jokes / Re: removedfromgame.com ..... O.o
« on: September 13, 2011, 12:00:59 pm »
do this procedure:
1. go to removedfromgame.com/cli2
2. type help
* ephan lost.

I think a lot of people around here already know that btw. Shouldn't this be in Humor and Jokes or Spam?

257
Miscellaneous / Eclipse, autocomplete everything
« on: September 13, 2011, 10:11:22 am »
I did some online research on how to make it so that Eclipse suggests autocompletion for every single word written in my opened documents.

This is a feature that would really help me coding, but I couldn't find it online. I'm asking for help because I'm wondering if some of you know how to do it. Thanks :)

258
Minecraft Discussion / Re: minecraft beta demo legal!
« on: September 13, 2011, 05:31:50 am »
Even if it's legal, can you distribute it like that?

EDIT: I noticed it's PC Gamer's Demo, which can legally be found here.

I am highly certain that distributing copies of it is not legal, but I am not sure.

259
Miscellaneous / Re: Coding Font
« on: September 13, 2011, 04:29:23 am »
FinaleTI, you would win the Internet if you used that font in a cool IDE, not Visual Studio :P

Either way, I also like dark background, but not black. My favourite theme on gedit is Oblivion (dark gray background).

260
News / Re: Omnimaga Rules Update
« on: September 13, 2011, 04:17:07 am »
As long as we can still make recommendations, this is a great rule! I hope less people negatively criticize other people's code around here now :)

261
Miscellaneous / Re: Coding Font
« on: September 12, 2011, 05:43:24 pm »
when I was in APCS, my teacher didn't taught us anything so we had to learn by ourselves XP
(Yeong got a score of 4 in AP test XP )

Out of? Also, I know people who use Microsoft Word to write CSS. Of course, now they use Notepad++ thanks to me :P

262
Miscellaneous / Re: Post your desktop
« on: September 12, 2011, 01:09:10 pm »

263
Miscellaneous / Coding Font
« on: September 12, 2011, 10:39:17 am »
I know there's a topic on something similar here but this is different.

What is your favourite coding font? The one you use on your programming text editors.

I use Consolas or Courier New, what about you ;)

264
Nevermind then :P

No problem, thanks for the attention ;)

265
But you said you were already using a string to set the location.
Well, my solution ain't dynamic either, but at least more secure than that imho

I have a string with it, in the php file, there's no way the user can delete it.

266
Ikkerens, you are not understanding... I don't know what the URL is, "http://www.mywebsite.com/folder" was an example. I need to get it as I said before ;)

267
There's 1 real secure way to do this.
As soon as the form is loaded (for example: ./form.php)
You create a $_SESSION['currentpage'] = 'form.php';

And when the user submits the form, you check that variable. If it's empty, the user has deleted the session cookie.
In that case you simply return back to the form ;)

Er, what? I only need to get the location of the form, like:

http://www.mywebsite.com/folder/form.html

The location is http://www.mywebsite.com/folder.

268
Miscellaneous / Re: Post your desktop
« on: September 12, 2011, 06:40:41 am »
Oh right, fullscreen in 11.04 hides the sidebar, doesn't it.

The Unity bar is always hidden, it only appears when I drag my mouse to the left of the screen. It's customizable ;)

269
Computer Programming / Picture Rotating
« on: September 12, 2011, 06:14:18 am »
This is a general programming question. I chose to put it here, because I'm using Java.

I need to display an image, and that image can rotate with the mouse. Basically, it's like Builderboy's game Nightmare, where the player has an orientation and he is always looking at the location of the mouse.

I'm not asking for Java code, I'm asking about how to make it.

Code: [Select]
int orientation;
int x;
int y;

These are the three main variables of the player object. My problem is how to display an image with a certain rotation.

If the player were a rectangle, I would display it like this:

Code: [Select]
/* g is the graphics component */
g.fillRect(x, y, 20, 20);

Now, how can I rotate the rectangle? My only obvious answer is using trigonometry, it's not very hard, but I'm wondering if there are any other ways. Thanks a lot!

270
Actually, a more fail-proof method to do that (without Javascript) would be to use an <input type="hidden" name="url" value="CURRENT_URL" /> or something similar.
That's actually what I was talking about, have the javascript grab it. Although hard coding it in would work better.
Yes, I managed to do it in another way, but er, thanks everyone!
Np, glad to be able to give you some options. How did you actually go about doing it might I ask?

I just have a string with the location of the form. I wanted to make it dynamic, to work everywhere, but it's not really how I wanted.

Pages: 1 ... 16 17 [18] 19 20 ... 424