code

Posts tagged “code”

  1. Cross Subdomain Authentication with FeathersJS Client

    FeathersJS v4 switched from storing the jwt token in a cookie to localStorage. This was fine when the app stayed on one domain, but when splitting things out into several apps on different…

  2. Create React App Fix for Webpack Symlinks Without Ejecting

    When restructuring my project and moving it to use Create React App I've ended up with an odd error for my shared jsx components (I've split the project into two separate apps but…

  3. Example of Sequelize Associations in FeathersJS

    I've been playing around with FeathersJS and one thing that has been hard to find is a concrete example of setting up Sequelize with related tables. Here's an example of the users table…

  4. Jest + Enzyme simulate form events

    Since I've started doing Jest+Enzyme testing I've run into a few issues. One of those was dealing with state change related tests when you don't have access to the actual React component state.…

  5. Text file busy - db/test.sqlite3

    Sometimes things are just too obvious… When trying to setup the test database for my new rails app I kept getting stuck with this error message: Turns out the file was in use……

  6. Top Level Cookies in Opera for Custom Domain Names

    For our local development at work we all use the same fake domain – helps with setting API keys and other things across the board and isn’t hard to setup whatever system any…

  7. jQuery Multiple Events Without Default Behaviour

    Sometimes you trip over the little things. With several people working on the same page while we were recreating some JS functionality from scratch I’ve noticed one of my buttons suddenly stopped working.…

  8. Enable delayed messages in Zend_Queue

    The default Zend Queue DB implementation unfortunately does not allow you to pass a timeout value when saving a message on the queue. However not all is lost and you can easily extend…

  9. PHP_AUTH_USER and PHP_AUTH_PW is null

    Ok, so you’re trying to setup password protection on your website using HTTP authentication. Unfortunately despite the request for password working your authentication keeps failing. If you check the output of your script…

  10. Multiple changes and a delete on same object in doctrine

    If you want to make several different changes to a doctrine record object you might find yourself slightly puzzled when it comes to deleting related objects. It seems that unless you set the…

  11. PHPUnit & Selenium - screenshot path problem

    Setting up Selenium RC server together with PHPUnit has proven surprisingly easy… Well most of it. Every now and then as a beginner you might run into monster errors like the one above.…

  12. Autloading modular forms & models in Zend Framework 1.8

    It’s not really obvious with the error messages you get, but using a thing like Form Login does not work out of the box with a modular structure. Which is slightly surprising considering…