BetaWar's Profile User Rating: *****

Reputation: 1106 Grandmaster
Group:
Moderators
Active Posts:
6,936 (2.49 per day)
Joined:
07-September 06
Profile Views:
54,871
Last Active:
User is offline Yesterday, 05:37 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
1600

Latest Visitors

Icon   BetaWar has not set their status

Posts I've Made

  1. In Topic: A talk about the challenge of font design through time

    Posted 21 Apr 2014

    That was an interesting talk. The lowercase verdana 's' at low resolution might as well be a scribble, but considering the technology of the time it is still almost legible which is pretty much all you could ask for back then.

    Fonts are something that I have been pretty intrigued by for some time, though I haven't ever actually gone through the process of creating one, it is on my list to do at some point.
  2. In Topic: Another question for my final project - this one is hard

    Posted 21 Apr 2014

    You would implement it something like so:
    function exampleLoaded(e) // e is the page load event.
    {
      alert("The page has loaded");
    }
    
    window.addEventListener("load", exampleLoaded, false);
    
    


    So, your attempt is fairly close, but you don't want to actually call the draw function in addEventListener instead you want to pass the function in as an argument, and that only requires the name.

    At that point you would also want to remove the call to draw from draw.js and move line 32 up to the head. Then line 2 wouldn't need to use the src attribute (actually, I have found that attempting to give a script tag the src attribute and add script inside of it causes more problems than it is normally worth (at least in my opinion). I almost always to a separate script for anything I want to be in the HTML file.
  3. In Topic: Repeating header bg

    Posted 21 Apr 2014

    You are applying the header background to all center tags, not just some tags with a specific ID, or class, but all of them.

    Also, in HTML 5 (which is the current doctype you have declared in your document -- first line), there is no center tag. All centering should be handled through CSS at this point.
  4. In Topic: How to sort std::vector<Structure>?

    Posted 18 Apr 2014

    You can pass in a third argument for a sort function, which basically just needs to come down to something along these lines:

    bool compareTriangle(const Triangle& a, const Triangle& B)/>
    {
    // logic here.
    return true;
    }
    
    


    http://www.cplusplus...algorithm/sort/

    You could also make the comparison function a member of the class/struct and just pass in an instance of Triangle as the third argument.

    Hope that helps.
  5. In Topic: The Birth and Death of Javascript

    Posted 18 Apr 2014

    Yes, it does have some fiction in it, but it is half true :) The majority of the talk focuses on the time between 1995 and 2013 with a little speculation about where it will be going in the coming years.

My Information

Member Title:
#include "soul.h"
Age:
23 years old
Birthday:
September 6, 1990
Gender:
Location:
Your mind
Interests:
Video games, programming, school.
Full Name:
James Blades
Years Programming:
5+
Programming Languages:
JavaScript, Java, C, C++, Actionscript 2, Actionscript 3, PHP 4, PHP 5, Python 2.6, Perl

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.reigninggames.com
LinkedIn:
http://www.linkedin.com/in/jwkblades

Comments

Page 1 of 1
  1. Photo

    raghav.naganathan Icon

    25 Feb 2013 - 04:43
    Congrats on the 900 :) Perfect square :)
  2. Photo

    Nseiki102 Icon

    07 Oct 2011 - 08:59
    Thank You for your help. I greatly appreciate it.
  3. Photo

    BetaWar Icon

    15 Feb 2011 - 09:17
    No problem. I love JavaScript so it isn't anything terribly difficult. The hardest part is to come up with challenges that will get people interested and not scare everyone away until we at least are a bit more known :)
  4. Photo

    Dormilich Icon

    15 Feb 2011 - 00:42
    thanks for managing the JavaScript competition.
    best wishes, Dormi
  5. Photo

    Theaegd Icon

    28 Mar 2010 - 11:56
    I <3 opera
  6. Photo

    BetaWar Icon

    21 Feb 2010 - 11:21
    I think there are a few people who like IE, but we are the minority. I use it because I have grown up with it, it acts the most as I would expect it to (out of the major browsers) and I have grown accustom to its little quirks. Everyone talks about building things for FF then hacking for IE, but I find that Opera, IE, Chrome, and Sarafi normally work very close to the same, and FF is the outlier.
  7. Photo

    -=m0n1k3r=- Icon

    20 Feb 2010 - 21:11
    Serious Question(s): Are you the only user who prefers IE over all of the other browsers? I haven't seen anyone else with that marked...
    Also, why do you prefer it?
Page 1 of 1