Jump to content

diogo

Moderators
  • Posts

    4,320
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by diogo

  1. Not the ideal solution though... Maybe something went wrong when you installed PHP?
  2. Good interview Ryan!
  3. This should work. create a date field besides the counter field. and put change the code to this: if (!$user->isSuperuser()) { if( date('Ymd', strtotime($page->day)) != date('Ymd') ) { $page->counter = 0; $page->day = today(); } else { $page->counter += 1; } $page->of(false); $page->save('counter'); $page->of(true); } echo $page->counter; written in the browser and not tested. But it should give you an idea.
  4. You can use the Page link abstractor module to prevent this from happening http://modules.processwire.com/modules/page-link-abstractor/
  5. <?php # Pete, this one is missing ?>
  6. Apeisa, the interrogation mark is missing...
  7. diogo

    Code Dreams

    Did it land on top of your code?
  8. diogo

    .pw domains

    my.pw would be perfect for a future hosted pw sites project. I tried to check if it's available, but I keep getting a server error.
  9. There are no spy cams But check the first image that appears if you google your name.
  10. I think that this structure is good. Keeping one file per page will allow you to keep as many info as you want about each file and easily scale to have even more info in the future if you need.
  11. I had to give back the nice mention on Joss's song
  12. Pete, I have the idea that count($a) is better for performance than $a->count()
  13. diogo

    humblebump.com

    can I suggest one? favicon.ico
  14. I had the favicon of a web provider, from when I accessed on a coffee
  15. yaaaaaaaaaaaaaaaaay :)
  16. and then stream it for all of us
  17. And achso. With those three you can understand any conversation Genau http://www.jazzradio.com/
  18. Joss, I have a good one for you. Genau. You will hear this all the time if you go to Germany
  19. I love to listen to this while programming http://grooveshark.com/#!/album/Little+Joy/2892128 (for the Germans: https://chrome.google.com/webstore/detail/scilors-groovesharktm-unl/feegenemlbjkbnfpgdmjddbeiecdbpob?hl=en-US&utm_source=chrome-ntp-launcher) Edit: meanwhile I listened to the songs you posted. They are great, but don't think I could focus on programming with them edit2: right now this is what I'm listening to http://grooveshark.com/#!/album/Not+Music/5149661
  20. I didn't see the second example before... Soma, didn't you edit your answer?
  21. Try with a relative path. Assuming that you have this structure -domain.com --httpdocs ---index.php --wire use this: $wireDir = '../wire';
  22. Soma, but how do you define the input field type?
  23. Thanks for telling Ryan. Can't wait to know about the result.
  24. diogo

    Book Recommendations

    Wow, not expensive at all! And they are DRM free (unlike the one I suggested, I must say... I had to install ADE in Wine to be able to put it in my Kobo through Linux )
×
×
  • Create New...