Jump to content

RobertP

Members
  • Posts

    287
  • Joined

  • Last visited

Posts posted by RobertP

  1. If the iPod supported "Find My iPhone/Pod", and if it was enabled then helpfully yeah; providing the pod was password protected or who ever has it does not know how to disable it.

     

    About the blackberry, sorry i have no experience with these devices.

  2. All you have to do now is learn how to lie on a resume and talk a good game.

    Don't lie, that will only put you into a situation that you can not fulfil. You need to be professional when approaching potential customers; and continue to keep that professionalism consistent throughout the who period of working with that person. Make sure you have a portfolio and some code example that you are willing to show publicly, does not have to be the whole application just something to show you know what you are doing and to show your coding style / techniques. If you are only good at coding, then make sure you specifically state that.. if you are coding only... tell them what you can and can not do. -- 99.9% of potential customers do not know the difference between 'web developer' and 'web designer'.

     

    How that helps.

     

    edit: punctuation

  3. Well my browser of choice is chrome, and there is a difference between 'inspect element' and 'view source'. Inspect element will in fact show the modified DOM (html structure), and the view source is the raw response from the web server.

  4. I am looking for a resource friendly (on both the server and the visitors browser) for loading css and javascript files.

     

    I am currently loading both by external links:

    <link rel="stylesheet" href="..." />
    <script src="..."></script>
    I have been contemplating on weather or not i should just embed the css in the html file..
    <style>...</style>
    Background: I am developing a large scale platform that will host websites. It will deploy itself as a distributed cms.

     

    If you have a better idea for performance within this category, please share for the community (and me :))

  5. Thank you, i will use your recommendation, as it seems like common sense rather then trying to build each tag into one expression.

     

    $patterns = array(
        '#\[(b)\]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i',
        '#\[(i)\]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i',
        '#\[(u)\]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i',
        '#\[(color)\=(.+)]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i',
    );
    

  6. ok, so i have the color working, (c tag in this example, as i still can not use tags that are longer then 1 character :( )

     

    #\[([b|i|u|c])?=(.+)]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i

     

    but, this has broken my other 3 tags, [b|i|u]

  7. so i am creating a bbcode parser, and i am having a little issue with my pattern.

     

    #\[([b|i|u])]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i

     

    this works for b,i & u tags; however i am trying to implement a tag that is longer then 1 character (not sure why this would cause a problem, but it does) and add a parameter.

     

    i have tried the pattern below, but without luck.

    #\[([b|i|u|color])(?:=(.+))]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i

     

    if someone could point me in the right direction, that would be amazing..

     

  8. Store it in a database, but when pulling data check the cache first. When a user adds a new menu item, destroy the cache, pull from the database, and then store that data in cache for future lookups.

     

    This seems to be the best route, but i will need to add additional cache protocols to my application.

     

    Thank you all for your replies.

  9. One scenario that i am using would be my dynamic menu structure. My application handles an infinite (per admin preference) menu items; where do i store this array, to be used on almost every page load?

     

    My current implementation is to read the php array from a file, already defined in a variable. (hard to manipulate)

     

    Note: I can not rely on memcache, as not every client will have it installed; however for the clients that do, they can feel the benefit.

  10. So for my application, I have a few different types of 'dynamic data'. I need to read this data, and use it for almost every page. I would not like to always be querying the same data from a database, but at the same time I need a simple interface to edit the data. I know I will temporarily store the data in memcached, but where do I read the data from? Also, I will need a solution that does not involve memcached, as not every client that is using my application will have memcached installed / configured.

     

    One possible solution I thought of could be a php file with a json_encode'ed variable, for easy manipulation.

     

    A side note, all the data being store is multi-dimentional arrays, containing strings, integers and floats, if that makes a diffnerence.

     

    Hopfully this post does not confuse the f**k out of you!

     

  11. Either you made it worse, or it renders a lot worse on Linux.

     

    http://i.imgur.com/osHCL.jpg

     

    EDIT: I was on Windows 7 in my other post.

     

    I was able to replicate this error, so i will now be able to fix.

     

    Once again, thank you everyone!

     

     

    EDIT: Please give it a try now, tell me if it is still not expanding correctly.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.