OSX: Browser is slowing down after updating to 10.6.8

After updating to Mac OSX 10.6.8 the browser was responding very slow. It took up to 30-35 seconds to load a page (doesn’t matter which one). To solve this problem you can add a DNS.

Click on Continue reading to see the solution.

Continue reading OSX: Browser is slowing down after updating to 10.6.8

MongoDB – Usefull PHP queries

Currently I am playing around with MongoDB. Most of the topics regarding MongoDB are quite straight forward. However, sometimes I needed more complex stuff and was not able to find it or it was not documented well. So in this topic I’ll add usefull queries which helped me while developing my application.

Continue reading MongoDB – Usefull PHP queries

Synology released Diskstation Manager 2.3 (firmware)

Today Synology released Diskstation Manager 2.3 (DSM 2.3). Currently the main download sites are very slow. You can find a miror here and the release notes here.

Enjoy!

How to check whether Javascript is enabled in Wicket

It is possible, via Wicket, to gather a lot of information regarding the browser/system of your visitor. If you want this you can also turn on some extended information (like javascript is enabled) via the following code:

getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

This method works via a redirect to the BrowserInfoPage and finally it goes to your ‘original’ page. Because of this it is possible that you see the BrowserInfoPage very shortly especially on slow computers/browsers or internet connections. But what if you don’t want this and only want to know whether Javascript is enabled? Please read on…

Continue reading How to check whether Javascript is enabled in Wicket

AjaxTabbedPanel – Store state when switching tabs

Normally when you switch tabs of an AjaxTabbedPanel it won’t store the state of all your input fields. If you do want this, without pressing a save button, you have to override the newLink(String linkId, final int index) method of the AjaxTabbedPanel class and use an AjaxSubmitLink instead of the default AjaxFallbackLink. Now all values will be stored in the model (not saved to the database).

Keep in mind that all Wicket validations will be validated, so we have to take care of the FeedbackPanel (refreshing) as well.

Continue reading AjaxTabbedPanel – Store state when switching tabs

AjaxTabbedPanel in combination with AjaxLazyLoadPanel

Wicket (extensions) offers a AjaxTabbedPanel to take care of your tabs. The constructor of the AjaxTabbedPanel expects a wicket id (obviously) and a list of ITabs. The implementation of this interface should return the panel via getPanel(String panelId) which will be the ‘actual’ tab. Out-of-the-box Wicket (extensions) offers an abstract implementation of this interface (AbstractTab).

What I want to achieve is that an AjaxIndicator (loading image) will be shown on the place were the actual panel will come till it is completely loaded. Especially when you have a lot of components to render this can be handy. See image below.

Example

Example

Continue reading AjaxTabbedPanel in combination with AjaxLazyLoadPanel

WordPress application on iPhone

This test entry is submitted via my iPhone. I was looking for a free application which is able to write/edit blog entries and manage comments. I think this application will fit my needs. 😉 (More info)

Synology released new firmware (DSM v2.2)

A couple of days ago Synology released new DSM firmware (v2.2) with a big list of new features/upgrades/fixes and improvements. For the whole list, please click here. Synology even offers/supports 2 free iPhone applications (DS Audio and DS Photo)!! Those applications allows you to play your own music ,stored on the NAS, on your iPhone and easily upload/share your photo’s.

Hibernate SQL logging

When you turn on Hibernate’s SQL logging during Java development (e.g. log4j.logger.org.hibernate.SQL = debug, console), you won’t see values (only a ?) which will be/are used in a query.
e.g.

select this_.id as ID113_4_ ........ from INCOMINGMESSAGE ... where this_.STATUS=? and this_.FOO=?

Now turn on some extra logging (log4j.properties):

log4j.logger.org.hibernate.type = trace, console

Now you’ll see some extra information like the type (StringType / EnumType / etc.) and the value:

select this_.id as ID113_4_ ........ from INCOMINGMESSAGE ... where this_.STATUS=? and this_.FOO=?
DEBUG org.hibernate.type.EnumType  - Binding 'UNHANDLED' to parameter: 1
DEBUG org.hibernate.type.StringType  - Binding 'Bar' to parameter: 2

Note: When your application uses big queries then you’ll get a lot of extra logging\!

A lot of spam? Check for X-Spam-Status.

The last couple of months I received a lot of spam on my e-mail address which I am using for my soccer club. When I contacted my provider they told me that they do check for spam and that they put the results of this in the email header. In the email header you can find something like this:

X-Spam-Status: No, score=0.001 required=5
In case of spam:
X-Spam-Status: Yes, score=16.401 required=5

If the score is above 5, the X-Spam-Status flag is set to Yes. In your email application like Microsoft Outlook you can create a rule to check for this status and remove (or move) those emails.

Continue reading A lot of spam? Check for X-Spam-Status.