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

Reputation: 4782 Guru
Group:
Mentors
Active Posts:
13,041 (4.26 per day)
Joined:
18-April 07
Profile Views:
239,263
Last Active:
User is offline Yesterday, 10:58 PM
Currently:
Offline

Previous Fields

Country:
CA
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
Playstation
Your Car:
Who Cares
Dream Kudos:
0
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: Help with getting website going on local machine?

    Posted 2 Sep 2015

    Ok, well what do you have a problem with? If you have WAMP installed, you have everything you need to run the pages locally. Download the files off of your site, put them in the web root on your local machine, make sure that the files are pointing to your local MySQL database with the right credentials (username and password), then export your database and tables from your host's MySQL and import them into your local MySQL.

    You should then be all set to go. PHP runs on your Apache web server, connects to MySQL and then accesses your imported database. :)
  2. In Topic: active record find_by method

    Posted 2 Sep 2015

    Well does User come from ActiveRecord? As in, is User a type of ActiveRecord instance? An "is a" relationship? Then it is going to have find_by defined as an instance method and that is how you would use it. User is an instance of ActiveRecord and you would call its find_by instance method to then find all records which match the criteria from the ActiveRecord store.

    Why are you trying to call it as a static method? :)
  3. In Topic: Image alignment

    Posted 2 Sep 2015

    Well it is because your laptop image is so much taller than the other images. It is 180px tall and your bicycle man is only 147px and your text image even shorter. This is why when you add a margin to the top of the laptop, it is pushing everything down. So you have a few choices here...

    1) Make the laptop the same height at the bicycle man and make it 147px.
    2) Keep the image the same height it is now but in the graphic itself make the laptop further down on the image (not a really good option)
    3) Make the three images of the banner have a style of "vertical-align: text-top;" and then add your margins as you would like to make them line up
    4) Do choice 3 but instead of adding margins, make each image with a position of "relative" and then add to their "top" value to push them into place

    When trying to align images, making them the same height is usually a pretty good idea so that you don't have some images pushing out margins etc on other images in the line. :)
  4. In Topic: What are you working on today?

    Posted 2 Sep 2015

    Lounging around today since I am on my vacation. Still did a little web dev work for my employer so that I don't have a bunch of crap waiting for me when I get back. It has been raining a bit over the last few days which has largely kept me inside... which is nice given the scorching heat over the summer. Been learning a lot of new stuff and things are going great. Watching movies when I can.

    :)
  5. In Topic: Hello

    Posted 31 Aug 2015

    Welcome to Dream.in.Code Jitendriya! I am one of the local experts in web development forums here at DIC. I hope to get a chance to answer some of your questions as you learn. We can definitely help you learn a bunch and all you will need to do is make sure you post some of your code along with any error messages and we will do what we can to help out.

    In the meanwhile, look around, see if you can help someone else and enjoy the forums! :)

My Information

Member Title:
Programming Theoretician
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Vancouver, Canada
Interests:
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.

http://twitter.com/martyrscry :)
Years Programming:
17
Programming Languages:
C/C++/VC++/C#, VB6/VB.NET, Java, JavaScript, Ruby, HTML/CSS, PHP, ASP/.NET, Python, mIRC Scripting

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.coderslexicon.com
Facebook:
http://www.facebook.com/coderslexicon
Twitter:
martyrscry

Comments

  • (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 sarah.needleman@wsj.com. 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 »