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

Reputation: 4316 Guru
Active Posts:
12,163 (4.57 per day)
18-April 07
Profile Views:
Last Active:
User is offline Yesterday, 08:05 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 sings "I'm waking up, I feel it in my bones. Code enough to make my systems 0wN. Welcome to the new age, to the new age."

Posts I've Made

  1. In Topic: Recalling Values from array trouble

    Posted 28 Jul 2014

    wow, lots of problems here. Starting from the top...

    1) max = rev[0]; and min = rev[0]; - How can you even set these when you have yet to put values into your rev array?
    2) Your two for loops for finding min and max can actually be done in one loop. You test the value against max, then test it against min and set max and min accordingly.
    3) When you find your max and min, you are to record the index of the max and min as well. Then you can use that index to access your comp array and get the name of the company.
    4) For printing your companies, why did you stick it in a loop that goes around once? No need for a loop then.

    Hope these tips help! :)
  2. In Topic: Function with local variable

    Posted 28 Jul 2014

    Well first of all I am not really sure why you are asking for a name and then trying to stuff it into a variable which has been defined as an 'int'. Doesn't make a whole lot of sense does it?

    Secondly, you ask for some numbers, they are put into some variables, but then you don't do anything with those variables back in main(). Could be a problem if you expected it to output something. ;)
  3. In Topic: Batch script error

    Posted 28 Jul 2014

    Did you actually download and install SQLXML? Oh and I am not sure if Express is going to have everything you need for that. Sounds like you have yet to install and meet the system requirements for running that code.

    You can try SQLXML 3.0 and see if perhaps that works...
  4. In Topic: How can Build a program like UPX?

    Posted 28 Jul 2014

    So let me get this straight, you want us to run a program that may or may not be distributing a virus? Lovely.

  5. In Topic: Convert from console to use windows form

    Posted 28 Jul 2014

    Well first of all did you try and create a new project based on windows form? A fresh new project. Once you do that, cut and paste out of this console into the appropriate parts of the windows form project. Many of your variables are going to be form level variables, much of this code can then set those variables and run the bulk of your code in the form load event. Console.writeline statements are going to be turned into references to controls where you set the "text" property.

    I go into a little more depth on this through my blog...


    Hope this helps. :)

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 25 2008-2013 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 »