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

gno

  • PHP Contact Form SPAM!

    @AlterEagle thanks. :)
    Comment by gno June 3 permalink
  • What is this type of database filtering called?

    The only thing needed to do such a filtering on a relational database is basic knowledge of SQL. E.g. SELECT * FROM products WHERE (price > 100) AND (ram > 2000) AND (manufacturer == 'Intel') would come up with the results for your…
    Comment by gno January 2012 permalink
  • Use php (instead of .htaccess) to internally redirect to query string?

    As Tcooper says, it's not entirely possible. On a traditional http-server setup URLs are a relative path to a given file on the server. When you write http://website.com/video/music-video it will look for a file or directory in the path webser…
    Comment by gno January 2012 permalink
  • Someone test this on an iPhone/iPad/iAnything please

    @Mottie - If you are using a Mac you can get a iOS simulator by installing Xcode. It's available in the Mac appstore. With the iOS simulator you can emulate any iPhone or iPad you wish, right on your desktop. I own a iPhone, and I'm still…
    Comment by gno October 2011 permalink
  • Hand code a blog?

    Most simple pages with blog elements can easily be build with WordPress. WordPress is blog-centric - but it can be used as a simple CMS for the static content pages. Even webshops and the like can be built with WordPress - it's only your imagin…
    Comment by gno June 2011 permalink
  • A reset for forms?

    Thanks for the offer Karl. I've got it working the way I want, I just wanted to know if you guys had any special approaches to forms. There could be some little secret that I hadn't discovered yet :-)
    Comment by gno June 2011 permalink
  • MySQL Select: difficulties with ordering

    When ordering results in SQL you can pass it multiple columns to sort by. An example set: id | color | name 1 | green | xyz 2 | blue | xzy 3 | red | yxz 4 | green | yzx 5 | blue | zxy Will when selected by: SELECT * FROM x OR…
    Comment by gno June 2011 permalink
  • MySQL Select: difficulties with ordering

    You could still merge those two selects from your in-the-mind-solution into one. The keys are: ORDER BY date, time and use of nested selects and UNION :-)
    Comment by gno June 2011 permalink
  • MySQL Select: difficulties with ordering

    As I understand it, the main problem is the inability to select both the last show of yesterday and all the shows today. Please excuse me if I'm off on this. The answer here is pretty simple - you need to perform a select from two queries comb…
    Comment by gno June 2011 permalink
  • html5shiv, JavaScript Libraries, etc: a question

    @wolfcry911, The fallback method is indeed smart. But honestly, I cannot imagine a situation where it would be necessary. It's a matter of preference - using the fallback is just overkill in my opinion. I dont expect that any of the pages I&#…
    Comment by gno June 2011 permalink
  • html5shiv, JavaScript Libraries, etc: a question

    The main reason to load stuff like jQuery from the Google CDN or similar places is that users that have visited a site which pulls the library from the same place wont have to download it again. It's less intensive bandwidth use for your websi…
    Comment by gno June 2011 permalink
  • Getting background to reach bottom of screen when displayed on larger monitors

    You're right about the high and just as wide as the zig-zags top image. But I do not think that I understand the transparent thing... To do what I wrote you'll need two images. The top one should be as high as you want the top to be at i…
    Comment by gno June 2011 permalink
  • Getting background to reach bottom of screen when displayed on larger monitors

    Having background images that big is a no-go. From what I can see on your screenshot the image could easily be made tileable both horizontally and vertically. You should crop the image into two parts - one being the darker grey top part which shou…
    Comment by gno June 2011 permalink
  • divs inside uls

    whiteInkDesign is correct. It used to be bad, but as of html5 they changed that. So as long as you use the correct doctype, you should have any problems. At least not on any moderately modern browsers :-) Sometimes that is a valid concern though. …
    Comment by gno April 2011 permalink
  • Linking back to webdesigner's site

    I would only do it, if it was something I did for free. You should be able to generate enough work for yourself with a good portfolio. Even if you had a link on 100 pages you did for clients, you would be lucky to get just 1 additional client. It i…
    Comment by gno April 2011 permalink
  • anyone with experience of live video streaming?

    I'm not much into live video streaming - but - I'd say that you should aim for a solution where you stream to your viewers via a server somewhere so you're not running into uplink bandwidth issues. If you have a 3g dongle you'll…
    Comment by gno March 2011 permalink
  • Get the ID of the current page (Wordpress)

    I got around it with a small hack. What I did was to use two loops on the same page. First one extracting the title (a the_title() with three arguments, two empty strings and a false boolean, to avoid it echoing) and using get_page_by_title() to ex…
    Comment by gno March 2011 permalink
  • How to find your first paying client

    It's all about luck. I did one simple website for a friend of mine, who's a photographer. I've been overrun since then. :-) Start doing some sites for people you like, without charging. It even makes you feel nice to help ;-) Then if…
    Comment by gno February 2011 permalink
  • My first website

    It is a really good first shot at webdesign :-) A few little things though: 1) The LightBox creates both vertical and horizontal scrollbars even though they are not there before you open it - in your gallery page. 2) I feel that the placement of…
    Comment by gno February 2011 permalink
  • Live chat.. Chris read this!

    @Robskiwarrior & @soap - I know that I haven't been around too long, but I cannot recall any situations where people have flamed one another on this forum? ;-) While we're at the apologies - I'm afraid that we've buried the …
    Comment by gno February 2011 permalink
  • Live chat.. Chris read this!

    @ChristopherBurton, My apologies for the misunderstandings. My point was just that a chat is not more vulnerable than anything else from a technical point of view - which was what I thought you said it was. @soap, The average Joe can be fooled... …
    Comment by gno February 2011 permalink
  • Live chat.. Chris read this!

    @ChristopherBurton, then I must say that I fail to understand how that would be an argument against a chat service? -- I do not believe that a open, anonymous, on-the-site live chat is a good idea. Anyone can register on this site, and that is the…
    Comment by gno February 2011 permalink
  • Live chat.. Chris read this!

    @ChristopherBurton, My only point is that a live chat itself is not a worse threat than a forum or comments on a blog. SQL injections can happen in any database based application and it is not an issue which is related to just live chats. A chat on …
    Comment by gno February 2011 permalink
  • css-tricks nav menu

    The one thing that makes this tricky is that the current page tab is the wider one when no menu-item's is hovered. The basics could be accomplished, by CSS3 transitions, but you could do the same with jQuery. And jQuery is required to modify t…
    Comment by gno February 2011 permalink
  • Live chat.. Chris read this!

    @ChristopherBurton, While I agree with you on the increasing security issues with the live chat, I must say that your argument with hackers bruteforcing passwords is not worse on a site with chat than it is on a regular forum like this. There should…
    Comment by gno February 2011 permalink
  • Wordpress listing subpages

    look into the wp_list_pages function. something like: Current page id should be replaced with a variable containing the id of the current page. And to make it fool proof you should check if there is a result before starting the output. (Not output…
    Comment by gno February 2011 permalink
  • Make "div" visible while mouse hovering on a "a href"?

    @ChristopherBurton, You are probably right about that. I guess I was a bit too fast... First, I'm pretty darn sure, that you cannot target elements using the +-combinator on elements with a specified state. I have just tested it, and I'm …
    Comment by gno February 2011 permalink
  • BUG anythingslider , video doesn't pause when slided!

    Just because you move it around on your page it will not pause. I cannot figure out why you expect that to happen... You could probably make it happen by running some javascript stuff when the forward/next buttons are pressed. That bit of javascrip…
    Comment by gno February 2011 permalink
  • Make "div" visible while mouse hovering on a "a href"?

    Jamy_za - wouldn't that target all divs that follow an a-tag in hover state? I'll bet my hat that it'll never work. If I were to build something like that I'd use jQuery. A little CSS for initiate state of the div. div.somecla…
    Comment by gno February 2011 permalink
  • Ems, Percent, Pixels, Points

    When designing for smartphones I have found percentages to be a no-go. When you use ems or px it will scale as you expect, but %'s will mess it up. My personal experience is that it is not that important whatever you use, as long as you are co…
    Comment by gno February 2011 permalink