treehouse : what would you like to learn today?
Web Design Web Development iOS Development

fooman

  • Margin-top pushing overlay down

    If you want that first element on the page to have space between it and the top of the page... what do you do without a margin on the element... or padding on the body? Both have the same effect I'm trying to side-step.
    Comment by fooman January 17 permalink
  • FOUT when un-styled font is totally different size than styled

    I'll take a gander into that idea! I have had multiple ideas similar to this cross my mind, but I was just wondering if there was a "standard" way of getting things to settle into place because a lot of the time I've found that d…
    Comment by fooman January 15 permalink
  • FOUT when un-styled font is totally different size than styled

    Yes but if you display:none; some elements that are simply containers will collapse because they no longer have any content. And if you visibility:hidden; you will still see the jumping of elements as the narrow-width font is loaded. This font-load…
    Comment by fooman January 15 permalink
  • Jquery ajax return headers

    wow I'm a toolbag. I was missing an "s" in "success". Ok... solved due to idiocy.
    Comment by fooman December 2012 permalink
  • Browser detection

    I decided to go with Modernizr, as suggested earlier. I had to test for a few things. If the FormData object is supported. If multiple files can be selected at once. An overall fileinput test to determine if the OS can talk to the browser and allo…
    Comment by fooman December 2012 permalink
  • Browser detection

    On a related note... What browser does Blackberry use and is there a site that emulates or allows testing of it? Browserstack doesn't seem to have anything for BB? Specifically, I'd like to know if BB works with the "multiple" …
    Comment by fooman December 2012 permalink
  • Browser detection

    I've used Modernizr before and it's great and all.. but what if we need to detect specific browsers?? Just taking the table from CanIUse.com and setting up a few statements that summarize to "if any of these browsers, do this"..…
    Comment by fooman December 2012 permalink
  • overflow-x on body causes background to not scroll

    I have fixed the issue with some javascript, because the design I was given required me to use a bit of JS to work with the overflow of divs and elements. I will see if I can set up a smaller test-case because I am very curious of this behavior.
    Comment by fooman November 2012 permalink
  • overflow-x on body causes background to not scroll

    So even if it's overflow-x:hidden, if you are still able to scroll vertically (y-axis), the background is told to stay put? Weird, but thanks for the insight.
    Comment by fooman November 2012 permalink
  • RSS url question

    Awesome possum thx!
    Comment by fooman November 2012 permalink
  • SQL - list of pages with one-to-many relationships

    you, sir... are a saviour. I didn't even look at how simple this could be by using PHP moreso than MySQL :) Thanks for the help!
    Comment by fooman November 2012 permalink
  • SQL - list of pages with one-to-many relationships

    jesus murphy that seems like a lot of reading for what we're trying to accomplish. I've actually taken your advice about using one table. I've found that without doing a thesis on database structure, I use PDO statements to iterate o…
    Comment by fooman November 2012 permalink
  • SQL - list of pages with one-to-many relationships

    PS..... how did you do such an awesome code table haha. Mine was an epic fail :(
    Comment by fooman November 2012 permalink
  • SQL - list of pages with one-to-many relationships

    I thought of doing the structure like that, but I thought it'd be easier to keep track of if I could keep the pages in separate tables. It's just how I figured it'd make sense to do things. I definitely thought of doing things all i…
    Comment by fooman November 2012 permalink
  • mod_rewrite fun

    Thanks for the update! I had tried something almost exactly like this, however I did not use .php at the end of the rule because I thought the top-most conditions made it so that the code did not require a php extension at the end of the rules I wr…
    Comment by fooman November 2012 permalink
  • mod_rewrite fun

    Ok so after looking at your example, that will definitely work. What if you want a rewrite rule that will work for any page and not just about-us? Do you have to make separate rules for all of the pages/sections of your site? Or can you use a ([^/…
    Comment by fooman November 2012 permalink
  • mod_rewrite fun

    I will try this! Thanks so much for your help. And I also need to find the email notification option haha Thx for pointing out it's there.
    Comment by fooman November 2012 permalink
  • How do you structure/control a site based on a few template layouts?

    I'm more interested in learning how to do this type of thing myself. I could use Wordpress, but I enjoy learning things like this. As @andy_unleash said, I think the idea of basically flagging the template and then loading design modules is t…
    Comment by fooman November 2012 permalink
  • How do you structure/control a site based on a few template layouts?

    Multiple layouts per site? If so, how do they get this to happen in the backend??
    Comment by fooman November 2012 permalink
  • mod_rewrite fun

    Thanks for your help! Your rules are for a single-page site (physically just an index file) and all content is derived from the URLs... correct? I am actually going to have an about-us.php file. Different layout and whatnot. I can only get the ru…
    Comment by fooman November 2012 permalink
  • Bulding site for fixed fee

    I run a small recording studio when I'm not doing my full-time web-dev job. So I have to go out and quote projects much the same as I do when doing development work. What I've found, in all cases in all forms of work, is that you often s…
    Comment by fooman November 2012 permalink
  • Testing for not true vs true

    JoniGuiro, if you are referring to testing as such I know what you mean: $somevar === FALSE (PS... awesome avatar haha) I think it was explained to me that it's a bit of a double-test... 'is it not-true?'. Compared to just 'is…
    Comment by fooman November 2012 permalink
  • PDO - returning absolute index with MySQL

    Yes I read that about mysql and it's weird limit issue. There's actually a standard number most people use and, without looking into it, I'm guessing it's the max number of rows a MySQL table can have. I do use OFFSET like you …
    Comment by fooman November 2012 permalink
  • PDO - returning absolute index with MySQL

    The reason I do two queries is because I have to grab the actual page content, and then my Pagination class needs to query for the total number of records. I could include the COUNT() in my initial query, but I'm trying to keep content retriev…
    Comment by fooman November 2012 permalink
  • Problem with Parallax Effect

    Just looking around the Goog cause that'd be sweet if it works. The "floating" elements are positioned "fixed", which means they are taken out of the regular document flow. This means overflow:hidden; does nothing. I see t…
    Comment by fooman November 2012 permalink
  • PDO - returning absolute index with MySQL

    Once again excuse my lack of code formatting, I think the forum doesn't work so nicely with FF16 :(
    Comment by fooman November 2012 permalink
  • PDO - returning absolute index with MySQL

    I am doing a pagination script. Using your kick in the arse, I've gone over my code. I did not know that MySQL had an OFFSET parameter, so that's cool. When selecting the records needed the end of my query is: ORDER BY news.date_posted …
    Comment by fooman November 2012 permalink
  • PDO - returning absolute index with MySQL

    Yes I've actually done fetchAll() and stored it in an array so I can grab the indexes I want. That was my work-around. I figured it's more efficient to just store the group of records than doing 10+ single queries since I am needing a bu…
    Comment by fooman October 2012 permalink
  • PDO - returning absolute index with MySQL

    I apologize for the code formatting... I selected all the code and pressed the button above and that's what I got. I also tried to bold the quote from the documentation :(
    Comment by fooman October 2012 permalink
  • PDO - returning absolute index with MySQL

    Let's say I have a result set of 1000 items/rows. I want to grab #45. According to the documentation, I should be able to pass that index number (45) into fetch(). I did just that, and I continued to be returned the first result time and time…
    Comment by fooman October 2012 permalink