Martyr2's Profile User Rating: *****

Reputation: 4519 Guru
Active Posts:
12,553 (4.33 per day)
18-April 07
Profile Views:
Last Active:
User is offline Today, 03:30 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:
Expert In:
C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

Latest Visitors

Icon   Martyr2 is currently troubleshooting three systems at once.

Posts I've Made

  1. In Topic: Any ideas?

    Posted 25 Mar 2015

    if (cState == "IN") //<-- Should be double equal sign, not single.

  2. In Topic: Dont touch my stuff

    Posted 25 Mar 2015

    View Postdepricated, on 24 March 2015 - 04:28 AM, said:

    See, that's a good sentiment - and in some corporate environments, totally works. However, demonstrating that you know exactly where it broke down and why demonstrates that you knew there was a problem and chose to allow it to break. Rather than take whatever time necessary to either refactor, or roll back, in order to prevent it from breaking - you chose to allow it to break. Meanwhile, the person who put the code in place was not given the opportunity to learn from their mistake when you discovered it, but rather only after witnessing it break down. Part of your job as an employee is to prevent such break downs from happening, and to educate the newbie. That's teamwork.

    Well that is why you play it off as if you didn't know but that after "some investigation" you discovered why it was breaking. That you would be happy to fix it when you have a minute. However, you have to make that offer in front of major players like management. This hides the fact you knew and shows you are willing to be a team player in front of those who matter. Yeah a little unethical, but so was his screwing with the code when it wasn't his without telling anyone.

  3. In Topic: Clueless...

    Posted 25 Mar 2015

    How about you think about it this way... you have read in the 7 lettered English words into an array. Write a function that takes a word, goes through each letter and gets the corresponding number to form a 7 digit number. Store that number with the word. Now when the user enters in a number, you can take the number run it against the numbers already in your list and simply print out the corresponding words.

    // Your list from file in array
    Word | number
    martyrs | 6278977
    redbull | 7332855

    Then if I typed in 6278977 it would loop through the list...

    for (int i = 0; i < numberList.length(); i++) {
      if (numberList[i][1] == numberEntered) { //<--- Notice the second index to get at the number
          System.out.println("One English word would be: " + numberList[i][0]); //<--- notice the second index as zero to get the word

    Hope that makes sense. :)
  4. In Topic: // im really confuse i wass ask to compare colors not int//

    Posted 25 Mar 2015

    What is with all the double slashes? Second of all, you can't directly compare the colors to see if one is greater than the other. All you can test if it is the same color. Is red greater than or less than blue? You can't say, doesn't make sense.

    Now you can do something like...

    Color instructorColor = Color.Red;
    Color myColor = Color.Red;
    if (instructorColor == myColor) {
       // Yes they are both the same color
    else {
       // No they are different colors

    Or you can check the component properties of two colors like compare the RGB/HSB values to see if they have the same amount of red green or blue etc.

  5. In Topic: Internet Explorer "it's over"

    Posted 25 Mar 2015

    I am not sure where people get off saying Firefox is slow. By all charts I have seen it is usually a close second to Chrome in the way of speed. Now if you load it with a bunch of crap addons, then I could see it. I have never had problems with Firefox speed.

    As for IE, I don't think they will go back to the old problems. I think they will go on a regular update schedule like the other browsers (I don't think they can afford not to at this point). I think they finally gave up and decided to follow the standards groups which is really where IE had always failed before. Trying to do their own weird things when everyone else is going another direction. Glad to see that they are still apparently tying the browser to the OS. Wonder if Europe will go after them again.

    Chrome is alright and it is my browser of choice, especially as a developer because the tools are just much more in depth and easier to use than even Firefox. I have been disappointed a little on the release cycles over the last several months but they make progress and push the envelope so all is good. What they are doing with WebRTC along with Firefox has me kinda excited for the industry of telecommunications. If I was a carrier I would be pissing my pants in fear. But that is another thread altogether.

    We can all wait and see. I am sure this new IE will be better in a lot of ways and miserable in others. Microsoft has always been polarizing. :)

My Information

Member Title:
Programming Theoretician
Age Unknown
Birthday Unknown
Vancouver, Canada
I love programming and science (almost became a chemist). My favorite languages are C#, Java, Python and PHP. While I am not programming I enjoy movies that feature something medieval (Gladiator, Braveheart etc) or high tech (like Hackers or Swordfish).

I have a diploma in computer science and another in arts and science. My favorite sciences are astronomy, chemistry and geology.

If you have any questions regarding programming, you will find I live and breathe the stuff and should prove an invaluable asset.

Winner of 28 2008-2014 DIC Community Awards including Blog of the Year, Mentor of the Year, DIC Head of the Year, Most helpful Programming Category, Most Helpful in Web Development Category and overall Nicest Member of the year.

You can now catch me on Twitter! Follow me as I talk about technology and specifically programming and answer questions like the best book to learn from or how to organize your code. :)
Years Programming:
Programming Languages:
C/C++/VC++/C#, VB6/VB.NET, Java, JavaScript, Ruby, HTML/CSS, PHP, ASP/.NET, Python, mIRC Scripting

Contact Information

Website URL:
Website URL


  • (8 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  1. Photo

    Dogstopper Icon

    05 Dec 2013 - 14:39
    Have a 6-year badge good sir!
  2. Photo

    mostyfriedman Icon

    12 Oct 2013 - 21:07
    I am good, busy as well.
  3. Photo

    Martyr2 Icon

    07 Oct 2013 - 12:16
    Good mosty, you? Been busy lately.
  4. Photo

    mostyfriedman Icon

    07 Oct 2013 - 11:26
    Martyr2 my man, how's it going??
  5. Photo

    ishkabible Icon

    22 Aug 2013 - 15:58
    O ah, didn't even realize it. No prob. much deserved!
  6. Photo

    balloon1 Icon

    18 May 2013 - 14:57
    Hi can you help me with one of my questions!
  7. Photo

    groovmuffn Icon

    24 Apr 2013 - 10:10
    Greetings! Newish coder here. I came across your php histogram equalization code the other day and figured I'd try and draft something similar up in javascript. I feel like my code is sound, though something has to be wrong as the output of the image is black with some faint greens. I'm wondering if I am missing something from your original code. Consider perusing a jsFiddle?
  8. Photo

    Martyr2 Icon

    31 Dec 2012 - 12:48
    Thanks lucky3! Winning these types of things always energizes me to continue my work to help everyone I can here. I am a firm believer that we should always provide more than just a quick answer, but teach as well. :)
  9. Photo

    lucky3 Icon

    31 Dec 2012 - 02:23
    Congratulations for the "Mentor of the Year" 1st place, "Nicest Member of the Year" 1st place, "Most Helpful- Web Development" 1st place, and "DIC Blog of the Year" award 3rd place awards! Really impressive, and well deserved.
  10. Photo

    xwordgrl Icon

    27 Dec 2012 - 14:26
    Martyr2, I’m a reporter for the Wall Street Journal and would like to ask you a question about your post on Code Academy. Please email me at Thanks!
  11. Photo

    MsParnel Icon

    16 Sep 2012 - 23:17
    Thank you very much for the project list :).
  12. Photo

    ishkabible Icon

    19 Feb 2012 - 20:19
    "This is Chris's basement!!!"
  13. Photo

    Martyr2 Icon

    19 Feb 2012 - 12:47
    Very very true. echo "THIS IS SPARTA!!!";
  14. Photo

    no2pencil Icon

    19 Feb 2012 - 11:51
    It's like the movie 300. 10 times.
  15. Photo

    Martyr2 Icon

    31 Jan 2012 - 16:48
    Thanks macosxnerd! I am glad someone noticed. :)
  • (8 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »