Month: May 2012

  • One-to-Many Count Parent’s Children in mySQL

    So I have two tables. The first one contains a list of images that belong to a job, the second one contains all the different properties of each image. Parent Table(t1) fileName jobID file1.jpg job01 file2.jpg job01 Child Table(t2) fileName jobID OptionName Value file1.jpg job01 contrast SomeValue file1.jpg job01 saturation SomeValue There can be zero…

  • DoEvents() in WPF

    DoEvents() allows the UI to refresh while your perform a long lasting action, like parsing over a lot of files. In the windows forms you can just call DoEvents() from inside your blocking structure but in WPF this is not available, at least not by default. To get DoEvents() in WPF we first need to add…

  • Bypassing Ajax Caching When Using MooTools in Joomla

    I was working on some Ajax on a project and while debugging I noticed that my responses where exactly the same. Now, I know cashing is important to improve efficiency but in my situation I was using Ajax because I wanted Live responses from my webservice. At first, I thought it was my code but soon realized that…

  • Sorting with jQuery and Saving The New Order

    I was building a form the other day and was adding items dynamically. I wanted to be able to drag and sort my items as I was building the form. Now, all this is very easy to do with jQuery but my problem was that I needed my item id’s to be persistent. I needed a…