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

Reputation: 4625 Guru
Active Posts:
12,749 (4.3 per day)
18-April 07
Profile Views:
Last Active:
User is offline Yesterday, 03:53 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 most definitely the real life Tony Stark.

Posts I've Made

  1. In Topic: Web Development and Hosting

    Posted 28 May 2015

    Welcome to Dream.In.Code stagedwebs! You hate WordPress yet you don't mind Joomla? Wow, that is a first. I am completely the opposite. But whatever floats your boat I guess. Anyways, welcome to the forums and if you have any issues, be sure to show us some code so we can see what you are actually doing and can assist you. No code typically means slow if any answers.

  2. In Topic: Joomla issue

    Posted 28 May 2015

    Yeah you missed the part where you throw Joomla! away and get something like Wordpress. Sorry, that CMS is just a piece of junk. Not surprised you are having issues with it. :)
  3. In Topic: How to Calculate Running Sum of Numbers from Text File

    Posted 28 May 2015

    Don't overthink it. You simply read the line, split it into the numbers and start with the first number... 3.25. You save that to runningsum and print that at your running total. Then you loop to your next number and add it to runningsum, then you print that. Then take the next and the next, adding each to runningsum.

    for (int j = 0; j < split.length; j++) {
       runningsum += Double.parseDouble(split[j]);
       System.out.println("Running sum is now: " + runningsum);

    Notice here that we are parsing each number and "adding it to" (aka add and then set... or += for short) runningsum. We can then print that as our running sum.

  4. In Topic: Moving to C# from

    Posted 26 May 2015

    I have to agree with the previous two posters. C# is really easy to get started with if you have been doing VB.NET for a number of years. There are a few subtle differences in syntax but the logic is pretty similar. Both of their advice is valid and I recommend doing both. Take a current VB.NET project, convert it using MSDN documentation to guide you as to what may need changing. This will teach you fast.

  5. In Topic: Using radio buttons and wanting to multiply a text box

    Posted 25 May 2015

    Look at these lines...

    // OUTPUT
    xTotalLabel.Text = compact.ToString();
    xTotalLabel.Text = sedan.ToString();
    xTotalLabel.Text = suv.ToString();
    xTotalLabel.Text = van.ToString();

    If you execute them in order, you will see that each line is overwriting the xTotalLabel.Text from the one before it. The last one, van.ToString() will then be the last one executed and put into that text. Which is why you always see it last.

    You really shouldn't do all the calculations at once either. Only do the calculation based on the options selected. Put your number of days as a variable in RentalChoice() and then in each of your if statements where you check the radio buttons, then do the calculations for xTotalLabel.Text

    if ((xCompactRadioButton.Checked == true) && (xSedanRadioButton.Checked == false) && (xSUVRadioButton.Checked == false) && (xVanRadioButton.Checked == false))
        int compact = num1 * days;
        xTotalLabel.Text = ("You rented a Compact for $" + num1 + " and " + days + " days. The total is: $" + compact);

    You could even boil this down into a more generic function of its own...

    private void setLabel(int num, int days, string carType) {
       int total = num * days;
       xTotalLabel.Text = ("You rented a " + carType + " for $" + num1 + " and " + days + " days. The total is: $" + total);


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

    mireille4U Icon

    30 Apr 2015 - 05:27
    Greeting from mireille i saw your profile today and i became interested in you and i will like to know more about you and if you can mail an email to my mail address ( i will give you my is my mail address i hope we can move from here.above. Mireille
  2. Photo

    Dogstopper Icon

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

    mostyfriedman Icon

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

    Martyr2 Icon

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

    mostyfriedman Icon

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

    ishkabible Icon

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

    balloon1 Icon

    18 May 2013 - 14:57
    Hi can you help me with one of my questions!
  8. 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?
  9. 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. :)
  10. 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.
  11. 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!
  12. Photo

    MsParnel Icon

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

    ishkabible Icon

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

    Martyr2 Icon

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

    no2pencil Icon

    19 Feb 2012 - 11:51
    It's like the movie 300. 10 times.
  • (8 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »