-
Recent Posts
- Problems connecting to unix:///var/mysql/mysql.sock
- Using rails and respond_to to include nested data
- Handle different environments with PHP
- MySQL 5.5, Mac OS X and startup item security error
- Rails plugin development using WebMock
- Read more, continue reading, and how to easily fix it using WP
- Windows clients with CUPS and Samba
- Making a Cafe Latté without a “do it all” machine
- Using form_tag and collection_select with Rails3
- Switching coffee and PHP testing
Tags
ajax apache api authentication cakephp coffee configuration cups cxf daily365 design firebug gedit hibernate history java javascript jcs job language linux mac mvc mysql non-tech opensource paginate php plugin projects prototypejs quick tip rails ror ruby samba smashingmag snapopen spring terminal test twitter usability wordpress wpml
Ajax Upload component
Today I created a “ajax upload” component, that mimics the behaviour google has in their gmail application, when you attach files to an email.
It’s not totally complete yet and no exambles have been added yet. They will come later though!
Head over to github.com/jimmiw and check it out
Continue reading “Ajax Upload component” »
Tagged ajax, javascript, opensource, plugin
Comments Off
Snap Open forked!
I have been using Snap open in gEdit for quite some time and I love it. It’s fast and easy to use, plus it saves me from using my mouse. However, the “fast” part seems to loose it’s grounds, when you start using it in larger projects. I even started to have problems on java projects.
After some investigation, I found out that it also looked in my target folder. The .snap_open_ignore file helped a lot here though. But still the search was slow and some times the search window stalled for longer periods.
Continue reading “Snap Open forked!” »
Tagged gedit, opensource, plugin, snapopen
Comments Off
Overriding Firebug
The other day at work, I deployed a test release of a product to the test servers, which ofcourse gave some problems… It seems that our CEO’s and other devs didn’t have Firebug installed which caused the app to stop loading. The reason for this is, that I like the console.log() feature, which I use intensively while developing apps.
Continue reading “Overriding Firebug” »
Tagged firebug, javascript
Comments Off
More features
Alrighty then… I finally got around to add some more features to my webpage, and the first thing I added was the comments section! it’s finally up and running, all you need, is an OpenID and you can login and type a comment to the various posts. I also updated my CakePHP backend to version 1.2rc3, just so i’d have all new thingies.
What else… ah yes… I’ve added a syntax highlighter to the code sections as well. It works rather well, but increases the load time on the page slightly… I’ve also included pagenation on the blog! Was actually kinda fast to implement, just a few lines of Cake code and wupti.
Continue reading “More features” »
CakePHP and the (in)famous Auth component
After struggling for a while with CakePHP (specifically 1.2 rc3, but also in general) and the Auth Component, I finally found out how it works. While working freelance on a site for a customer, I had to make some form of Authentication in order to login the users of the system etc. What better place to start than CakePHP’s own documentation: http://book.cakephp.org/view/172/Authentication…
This didn’t really help me on my quest
Continue reading “CakePHP and the (in)famous Auth component” »
Tagged authentication, cakephp, php
Comments Off
New homepage framework!
After a few discussions with the frontend group at work about writing everything yourself, they suggested that I looked at CakePHP. It looks a lot like Ruby On Rails and has most of the features it has, just for php :)
CakePHP is a Rapid development framework, written in php for php. It has a lot of cool features, such as Active Directory objects for databases, “search friendly urls” (almost by default), a good MVC pattern and much more!
Continue reading “New homepage framework!” »
cxf, spring and http-conf:client problems…
Question:
Is there a way to shorten the timeout in CXF? (http://incubator.apache.org/cxf/)
Answer:
After looking through the CXF documentation, they state that you through Spring (www.springframework.org) can set a timout.
Continue reading “cxf, spring and http-conf:client problems…” »
JCS and performance
JCS is a caching system maintained at apache and is located here: http://jakarta.apache.org/jcs/
When using JCS in a large project, we did a lot of performance testing, and the cache seemed to perform just fine. After some more testing and the use of JProfiler (gotta love that tool) for optimizing, I discovered that lookups in the JCS cache (LRU) where really slow.
Continue reading “JCS and performance” »
Strange Hibernate behaviour
At work I decided to implement some DAO files in Hibernate. I started by making the smallest DAO first, and began with the work.
After making two HibernateDAO classes and beginning the third (file2DAO), which does nearly the same as second one (file1DAO). I simply copied all the data from the file1.hbm.xml file to the final file2.hbm.xml and edited the file to adjust it to the file2′s class.
Continue reading “Strange Hibernate behaviour” »