1. Post #1881
    Gold Member
    h2ooooooo's Avatar
    June 2007
    977 Posts
    ..usually I'm on PHP's side, but what the serious fuck?

    http://codepad.org/XU7a1feG

    <?php
    	var_dump(0 == false);
    	var_dump(false == "what");
    	var_dump(0 == "what");
    ?>
    

    Output:
    Code:
    bool(true)
    bool(false)
    bool(true)
    And no, this isn't about the === operator, it's about why 0 is false, and 0 is "what" but false is not what, even though false is 0 and 0 is false.
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  2. Post #1882
    Pass along
    commander204's Avatar
    May 2008
    4,065 Posts
    "what" when changed to a number is 0 so 0 == 0
    Reply With Quote Edit / Delete Windows 7 France Show Events Agree Agree x 5 (list)

  3. Post #1883
    Gold Member
    h2ooooooo's Avatar
    June 2007
    977 Posts
    "what" when changed to a number is 0 so 0 == 0
    Correct.

    http://codepad.org/vNti1C5m

    <?php
    	var_dump((string)false);
    	var_dump((string)0);
    	var_dump((string)"what");
    	
    	var_dump((int)false);
    	var_dump((int)0);
    	var_dump((int)"what");
    	
    	var_dump((bool)false);
    	var_dump((bool)0);
    	var_dump((bool)"what");
    ?>
    

    Code:
    string(0) ""
    string(1) "0"
    string(4) "what"
    int(0)
    int(0)
    int(0)
    bool(false)
    bool(false)
    bool(true)
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  4. Post #1884
    Andrew McWatters
    Dennab
    March 2011
    4,658 Posts
    Today I'm shutting down qfi.im

    Over the years, collectively, there have been a handful of successful projects that have come out of Facepunch's community. I can't think of a single one that wasn't made by a pretty amazing person in any regard. This is one of those projects in my opinion.

    It had a good run, and I think you did an excellent job.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 7Friendly Friendly x 5 (list)

  5. Post #1885
    adamjon858's Avatar
    July 2007
    1,282 Posts
    :(

    You forgot one business model.....freemium.

    1 free premium link per day. You can pay for unlimited for $5/month or something.
    Reply With Quote Edit / Delete Mac United States Show Events Agree Agree x 1 (list)

  6. Post #1886
    italian
    TerabyteS_'s Avatar
    June 2011
    2,644 Posts
    Over the years, collectively, there have been a handful of successful projects that have come out of Facepunch's community. I can't think of a single one that wasn't made by a pretty amazing person in any regard. This is one of those projects in my opinion.

    It had a good run, and I think you did an excellent job.
    Woah, those are some very nice words. Thank you!
    Reply With Quote Edit / Delete Windows 7 Anonymous Proxy Show Events Friendly Friendly x 1Disagree Disagree x 1 (list)

  7. Post #1887
    Gold Member
    StinkyJoe's Avatar
    June 2006
    2,194 Posts
    Woah, those are some very nice words. Thank you!





    Just kidding.
    Reply With Quote Edit / Delete Linux Portugal Show Events Funny Funny x 6Friendly Friendly x 1 (list)

  8. Post #1888
    italian
    TerabyteS_'s Avatar
    June 2011
    2,644 Posts
    :(

    You forgot one business model.....freemium.

    1 free premium link per day. You can pay for unlimited for $5/month or something.
    That would have been against the original plan I had in mind for it which was to avoid impeding access to the user for any reason and keeping the service 100% free, making money only in ways that would not change how the service itself behaved. In the long run it proved to be a model that does not work (with the kind of audience the site was targeted towards, at least), but it has served me a great lesson about running and managing a small-scale size with a few users. Now that this one is out of the way, I could try taking the next step and trying to build something even bigger and better.
    Reply With Quote Edit / Delete Windows 7 Anonymous Proxy Show Events Informative Informative x 1 (list)

  9. Post #1889
    BBgamer720's Avatar
    November 2011
    482 Posts
    Today I'm shutting down qfi.im



    qfi.im post-mortem

    Monthly stats


    Lesson learned
    Being the good guy is not a good business model. People will not give you money unless you force them to, if you ask them to donate they'll repeatedly click the ads instead and get you banned from AdSense (that really happened), and they'll complain about the service not working for lack of funds and refuse to donate even if asked nicely.

    I've also learned that people can't read because I've repeatedly stated that qfi.im works with only with a few certain services, in which mediafire not included (it also has no wait times either so there'd be no point in including it), yet people will skip that entirely and complain.

    Brief history of qfi.im
    qfi.im wasn't originally my idea. A Facepunch user going by the name of Mutank (or something similar) made a small site called SparkGen and I offered myself to make a better-looking interface for it. I started work on what was then called SparkGen, designed and made it functional all on my own, and then, after not hearing from the other guy for a week I decided to take it on on my own, and changed its name to QuickFire (you can probably see where it's going now). That was sometime during April 2011. I added ads to the site and launched it as a 100% free, donation (and ads) funded site. After a while I got banned out of AdSense because of people repeatedly clicking my ads instead of donating.
    For a little longer than a year, qfi.im continued to live off of sparse donations and low cost hosting. Today marks the day when that model has finally collapsed. qfi.im was my personal experiment to see how long such a thing would last and to see if I would be able to build a service able to aliment itself for a long period of time. I think I can say it was a little success.
    Well, it was a nice website. I never really got to use it as it never worked for me - the accounts always ran out by the time I got to use them and other sites just didn't work at all. It was sexy though.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  10. Post #1890
    asantos3's Avatar
    March 2011
    936 Posts
    I'm working on some icons for a blog.

    What do you think?
    Reply With Quote Edit / Delete Windows XP Portugal Show Events Agree Agree x 6Artistic Artistic x 4 (list)

  11. Post #1891
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    ..usually I'm on PHP's side, but what the serious fuck?

    http://codepad.org/XU7a1feG

    <?php
    	var_dump(0 == false);
    	var_dump(false == "what");
    	var_dump(0 == "what");
    ?>
    

    Output:
    Code:
    bool(true)
    bool(false)
    bool(true)
    And no, this isn't about the === operator, it's about why 0 is false, and 0 is "what" but false is not what, even though false is 0 and 0 is false.
    http://codepad.org/omQc3UQn
    Reply With Quote Edit / Delete Australia Show Events Funny Funny x 7 (list)

  12. Post #1892
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    I'm working on some icons for a blog.

    What do you think?
    Very clean and clear but is it suppose to be a printer?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 4Funny Funny x 1Disagree Disagree x 1 (list)

  13. Post #1893
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 3 (list)

  14. Post #1894
    jung3o's Avatar
    October 2011
    2,059 Posts
    is it running top to bottom instead of actually looking at the if statement?

    http://codepad.org/gB5TeeaF
    haha PHP is weird
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 1 (list)

  15. Post #1895
    Meow :3
    Ac!dL3ak's Avatar
    July 2005
    6,045 Posts
    is it running top to bottom instead of actually looking at the if statement?

    http://codepad.org/gB5TeeaF
    haha PHP is weird
    http://codepad.org/CAyDBSQ1

    uh
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 4Friendly Friendly x 2Optimistic Optimistic x 1 (list)

  16. Post #1896

    December 2008
    552 Posts
    Just ran that code, and it ran as expected (echo'ing "hello").. Care to elaborate where the WTF is here?

    Edit: Yeah okay so apparently a 6 year old version of PHP acts like this...
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  17. Post #1897
    Gold Member
    Adzter's Avatar
    September 2009
    1,956 Posts
    Not what I'm working on, but this thread is pretty much general discussion too so I thought you guys might find this hilarious

    http://thedailywtf.com/Articles/The-...ng-System.aspx
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  18. Post #1898
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    Just ran that code, and it ran as expected (echo'ing "hello").. Care to elaborate where the WTF is here?

    Edit: Yeah okay so apparently a 6 year old version of PHP acts like this...
    my local 5.3.10 behaves the same way codepad does

    Edited:

    apparently it's down to some zend extension, but that's still a serious wtf
    Reply With Quote Edit / Delete Australia Show Events Agree Agree x 1 (list)

  19. Post #1899
    Gold Member
    Crhem van der B's Avatar
    January 2010
    1,690 Posts
    Echoes "hello" on my setup too, I'm running php 5.3.5.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  20. Post #1900
    Gold Member
    Catdaemon's Avatar
    February 2005
    2,821 Posts
    my local 5.3.10 behaves the same way codepad does

    Edited:

    apparently it's down to some zend extension, but that's still a serious wtf
    lol zend
    Reply With Quote Edit / Delete Windows 7 Show Events

  21. Post #1901
    Pass along
    commander204's Avatar
    May 2008
    4,065 Posts
    my local 5.3.10 behaves the same way codepad does

    Edited:

    apparently it's down to some zend extension, but that's still a serious wtf
    What is the explanation? I mean why would you want to define functions in an if statement? Perhaps it was just overseen or something. ( In the end I have no Idea how the language is parsed. )
    Reply With Quote Edit / Delete Windows 7 France Show Events

  22. Post #1902
    It's not that it's necessarily a common use case, but it's a good indication that the internals are goofy. The fact that a language doesn't behave as you would expect it to is never a good thing.
    Reply With Quote Edit / Delete Mac United States Show Events Agree Agree x 2 (list)

  23. Post #1903
    Gold Member
    StinkyJoe's Avatar
    June 2006
    2,194 Posts
    It's not that it's necessarily a common use case, but it's a good indication that the internals are goofy. The fact that a language doesn't behave as you would expect it to is never a good thing.
    Might be a good time to rethink my plan to sell avionics software written in PHP...
    Reply With Quote Edit / Delete Linux Portugal Show Events Funny Funny x 6 (list)

  24. Post #1904
    Gold Member
    camacazie638's Avatar
    November 2005
    476 Posts
    Hey Web Devs,
    When it comes to website development this would have to be my first real attempt. With a few months of work along with many revisions, I have arrived to this current milestone with all the knowledge I have gained from there to here. Stating ahead, this is not a completed project; I have many executions that have yet to be written, with a style that is no candy to the eye, and a pipeline I feel could be simplified.

    Server-side I am not using PHP or MySQL, due to my limited internet access I have been using .ASP with some client-side AJAX.
    Within my current project is a system folder ('sys') that includes the directory of users ('dir') and their attributes along with seperate folders ('director')('exe') with scripts to be executed.
    I have absolutely no idea of the standard a database should carry, so I am assuming my attempt will look and seem very uncoventional.
    The plan is to host services throughout domains registered by users, with much of the functionality still in progess, I hope to leave this system as open-ended as possible.

    Here I zipped away the wwwroot folder of my current build including all the files and folders that I am currently working with.
    intepub/wwwroot zip

    I do hope that I can receive some feedback of my approach, along with any ideas of where I might be heading or the direction I am facing.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  25. Post #1905
    Quit one of my two jobs today because the CEO is a nut. Came on full time at my other job with a higher salary, good stock options, and better benefits. Win.
    Reply With Quote Edit / Delete Mac United States Show Events Winner Winner x 8Friendly Friendly x 3 (list)

  26. Post #1906
    Free Gameservers
    darksoul69's Avatar
    August 2006
    2,987 Posts
    Reply With Quote Edit / Delete Windows 7 United States Show Events Artistic Artistic x 11Winner Winner x 1Friendly Friendly x 1 (list)

  27. Post #1907
    Andrew McWatters
    Dennab
    March 2011
    4,658 Posts






    Reply With Quote Edit / Delete Windows 7 United States Show Events Artistic Artistic x 8Winner Winner x 1Disagree Disagree x 1 (list)

  28. Post #1908
    quincy18's Avatar
    September 2007
    999 Posts
    So I am working doing my first website design for a customer since the designer that I used to work with moved and stopped doing web design. I have never done any webdesign before so I thought I'd post it here before giving this mockup(its not done) to the customer for review.



    Any CC is welcome.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Disagree Disagree x 3Funny Funny x 1Agree Agree x 1 (list)

  29. Post #1909
    Free Gameservers
    darksoul69's Avatar
    August 2006
    2,987 Posts
    I can't load the image.

    Reply With Quote Edit / Delete Windows 7 United States Show Events Artistic Artistic x 5 (list)

  30. Post #1910
    quincy18's Avatar
    September 2007
    999 Posts
    Updated, forgot that I had to copy the public link.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  31. Post #1911
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    I can't load the image.

    are you rolling your own support system or going with whcms or some shit
    Reply With Quote Edit / Delete Mac Australia Show Events

  32. Post #1912
    Gold Member
    Adzter's Avatar
    September 2009
    1,956 Posts
    are you rolling your own support system or going with whcms or some shit
    It's HostBill he's using, and it looks like it has a few advantages over WHMCS from what I've seen on their site
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  33. Post #1913
    Gold Member
    Spero78's Avatar
    August 2010
    253 Posts
    are you rolling your own support system or going with whcms or some shit
    Looks like WHMCS
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  34. Post #1914
    crimsongreen's Avatar
    April 2009
    73 Posts
    It's not whmcs. It's http://hostbillapp.com/
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 1Late Late x 1Zing Zing x 1 (list)

  35. Post #1915
    RAPISTS ARE OPPRESSED
    mobrockers2's Avatar
    April 2011
    12,403 Posts
    So I am working doing my first website design for a customer since the designer that I used to work with moved and stopped doing web design. I have never done any webdesign before so I thought I'd post it here before giving this mockup(its not done) to the customer for review.



    Any CC is welcome.
    Please improve on your Dutch, that's some cringe-worthy grammar and spelling.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  36. Post #1916
    quincy18's Avatar
    September 2007
    999 Posts
    Please improve on your Dutch, that's some cringe-worthy grammar and spelling.
    Yeah I already noticed that, this is just a quick in between screen I posted, also changed the font on the top helper lines since those were different from the bottom one.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  37. Post #1917
    Free Gameservers
    darksoul69's Avatar
    August 2006
    2,987 Posts
    Looks like WHMCS
    It's HostBill. It looks nothing like WHMCS.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Late Late x 2 (list)

  38. Post #1918
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  39. Post #1919
    It'd be kind of cool if the background was a 360 panorama that slowly scrolled by.
    Reply With Quote Edit / Delete Mac United States Show Events Agree Agree x 2Artistic Artistic x 2Optimistic Optimistic x 1 (list)

  40. Post #1920
    Andrew McWatters
    Dennab
    March 2011
    4,658 Posts
    It'd be kind of cool if the background was a 360 panorama that slowly scrolled by.
    I'll talk to my client about it
    Reply With Quote Edit / Delete Windows 7 United States Show Events