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 ... 13 14 [15] 16 17 ... 424
211
Site Feedback and Questions / Re: European IRC Operator(s)
« on: September 26, 2011, 04:32:18 pm »
I could moderate the IRC channel, but I'd like another European guy doing it. However, if Netham45 makes a bot that moderates automatically (that's what you're talking about right?), it'd be cool.

212
I thought Windows took around 6 terabytes of diskspace and Mint about 1 gigabyte? ???

J/k but I was sure Windows was considerably larger in size, so I would guess its partition is much larger, right?

Terabytes O.O

213
Axe / Re: Axe Q&A
« on: September 24, 2011, 04:41:22 pm »
I don't optimize my code (extremely) because it makes it unreadable (in Axe).

Thanks Michael Leesquidgetx, I was confusing variable names, I managed to fix it, not with your code, but with your idea :D

edit by squid: you sure do have a tendency to mix up names :P

214
Axe / Re: Axe Q&A
« on: September 24, 2011, 03:44:48 pm »
Thanks Runer leafiness, it makes perfect sense. I changed it to 12, and then I changed it to 64 (which is quite a lot). However, the player just goes on and on to the left.

I think it's because of the comparisons (signed, unsigned), I just used >> and << on all of them, I did it in a sort of random way. Am I doing it wrong?

215
Wow, didn't even notice that, the link is fixed! Yeah its .NET so if you have Mono you can use that. I'll have a Linux build (a mono wrapped linux executable) in a bit. I have work in a half hour so I may release a linux executable after work (I work for 5 hours).

edit: actually it will not work in Mono right now because it uses a batch script. I'll upload a Linux version with a shiny new bash script after work.

But is the location of the files in Linux the same as in Windows? Also, I'm wondering of how hard it would be to make a native application, the program is not very complex. Will you upload source code?

216
Yep, link is broken. And any chance to get a binary or a .jar for Linux?

I think it was made in .NET, hence it wont' work on non-Windows operating systems.

217
Axe / Re: Axe Q&A
« on: September 24, 2011, 01:48:30 pm »
Code: [Select]
Repeat getKey(15)
 .UPDATE POSITIONS
 X+H→X
 Y+V→Y

 A+C→A
 B+D→B

 .SET MAXIMUM SPEED
 If H>>256
  256→H
 End

 .SET MAXIMUM SPEED
 If (H<<-256)
  -256→H
 End

 .RIGHT FRICTION
 If A>>0
  A-1→A
 End

 .LEFT FRICTION
 If A<<0
  A+1→A
 End

End

This is not the full code of my program, it's just part of it, the part where I control the horizontal acceleration.

Horizontal Acceleration is saved on variable H, and I'm using Fixed Point (x256).

I try to give H friction, so that when the player presses the
arrow, the player stops after a bit. However, it's not really working.

Any ideas on how I can make it? Thanks

218
Web Programming and Design / Re: Change data attribute of object in html
« on: September 24, 2011, 12:37:51 pm »
I guess I'll use Ajax then.

Code: [Select]
$(document).ready(function() {
  $('#text').data="hometext.html";

  $('#projetos').click(function() {
    var xmlhttp;

    if (window.XMLHttpRequest)
    {
      xmlhttp=new XMLHttpRequest();
    }
    else
    {
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.onreadystatechange=function()
    {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
      {
        document.getElementById("text").data="projetos.html";
        alert("hey");
      }
    }
    xmlhttp.open("GET","ajax_info.txt",true);
    xmlhttp.send();
      //$('#text').attr('data', "projetos.html");
  });
});

I tried that to change the "data" attribute when the user presses a link but I get (in the Javascript Console, Chrome):

Quote
GET http://(...)/ajax_info.txt 404 (Not Found)

219
Web Programming and Design / Re: Change data attribute of object in html
« on: September 24, 2011, 12:32:59 pm »
It probably is changing the data attribute correctly, but that doesn't mean the user's browser loads the new data.

Is there a way I can make it load it, like updating it? Thanks.

@Binder News, I can't use Ajax for this, but thanks for the suggestion.

220
Web Programming and Design / Re: Change data attribute of object in html
« on: September 24, 2011, 11:00:11 am »
try $('#text').data="hometext.html";

Thanks for the tip, but it didn't work either. I know there's a function called data() which I could use for this, but I'm either not using it right or it is also not working.

I think the problem is the following:

I change the data attribute of the object. That part works. However, due to jQuery/Javascript limitations the object isn't "refreshed", the content isn't "updated".

221
Web Programming and Design / Change data attribute of object in html
« on: September 24, 2011, 04:52:27 am »
I am using Javascript (with jQuery) to change the attribute of an object tag, the "data" attribute.

Here's the HTML code:

Code: [Select]
<div id="content">
  <object id="text" width="600" height="450" type="text/html" border="0" style="overflow: hidden;"></object>
</div>

That is a simple object within a div, an HTML object. I want to link it to file, using the [/tt]data = "file.html"[/tt] attribute.

Code: [Select]
$(document).ready(function() {
  $('#text').attr('data', "hometext.html");
});

So this should make it so that when the page is ready, the "text" object data is set to "hometext.html".

However, nothing is really happening, because linking "hometext.html" to the object data should display the contents of "hometext.html" in its location.

If I manually go to the HTML code and set data="hometext.html" it works, but not through jQuery.

How can I do it? Thanks!

222
Web Programming and Design / Re: Horizontal Fade on both edges
« on: September 22, 2011, 09:47:15 am »
First of all, <header> isn't an HTML tag. You can't just make up your own and assume it'll work, unless you're using XML with style rules.

And I said to put margin: 0 in the body tag, not your header tag.

<header> is an HTML 5 tag I am very sure. Also "margin: 0;" on "body" worked, thanks!

223
Web Programming and Design / Re: Horizontal Fade on both edges
« on: September 22, 2011, 09:27:22 am »
@flyingfisch, the height is now changeable, thanks!

@Deep, that didn't really work (I even used "0px")

I have this:

Code: [Select]
header {
  background-color: #3B5999;
  width: 100%;
  margin: 0px;
  margin-bottom: 20px;
  padding: 0px;
}

header img {
  margin: 0px;
  padding: 0px;
  /* height: 50px */
}

224
Axe / Re: Finishing Touches; Animations, Graphics & Menu Tutorial
« on: September 21, 2011, 11:51:57 am »
Wow, nice tutorial, squidgetx.
The only thing I don't understand is the dollar sign in the Pt-On()-Function in the last example. Is this new to axe in 1.0.x, in which menu can I get it, or is it just a typing mistake?

$ means the Hexadecimal notation symbol, not sure of what it is in Axe ;)

Nice tutorial squidgetx!

225
Web Programming and Design / Re: Horizontal Fade on both edges
« on: September 21, 2011, 11:49:12 am »
Modify the background so it has both sides. That's the only cross-browser solution.

Thanks, I'll try that. I have another question though... How to achieve a top bar like Facebook.com? I mean, I managed to make a bar, but it's not fully on top and to the right and to the left, it looks like this:



Here's the header (where the text is) HTML and CSS code:

Code: [Select]
<header>
  <img src="titulo.jpg" />
</header>

Code: [Select]

header {
  background-color: #3B5999;
  width: 100%;
  margin-bottom: 20px;
}

The "titulo.jpg" image is the part that says "projeto G". I'd also like a way of controlling how tall the top bar is.

I have "width: 100%", so it's supposed to work alright, but it doesn't really work.

Pages: 1 ... 13 14 [15] 16 17 ... 424