Sometimes you need really fast disk:
follows the command to create 1GB ram disk on macosx
diskutil erasevolume HFS+ “ramdisk” `hdiutil attach -nomount ram://2097152`
note: 1GB=2097152 (1024*2048): number of megabytes (MB’s) * 2048
Sometimes you need really fast disk:
follows the command to create 1GB ram disk on macosx
diskutil erasevolume HFS+ “ramdisk” `hdiutil attach -nomount ram://2097152`
note: 1GB=2097152 (1024*2048): number of megabytes (MB’s) * 2048
Very happy to start now with Apache Wicket v6.0.0.
Thanks Wicket community.
Eclipse Indigo is missing of “PHP Developers Version”.
In order to install “PHP Developers Package”
follow the istructions on this link: http://www.eclipse.org/downloads/php_package.php
Today I want share this post: How Apache Tomcat Implemented WebSocket
I will try websocket this weekend…
I fixed the create table errno: 150 reading better the mysql docs.
Special attention on this requiremet fo Innodb: foreign key columns are listed as the firstcolumns in the same order, see below, and, of course, check the docs…
InnoDB
requires indexes on foreign keys and referenced keys so that foreign key checks can be fast and not require a table scan. In the referencing table, there must be an index where the foreign key columns are listed as the first columns in the same order. Such an index is created on the referencing table automatically if it does not exist. This index might be silently dropped later, if you create another index that can be used to enforce the foreign key constraint.index_name
, if given, is used as described previously.
Usefeul post to solve a weird problem on maven site plugin
http://rijkswatch.blogspot.com/2011/02/maven-21-site-command-problems.html
YouEat 1.10 is released and available on www.youeat.org.
Improvements:
Technical Notes:
Links:
http://mammamao.posterous.com/apache-maven-3-cookbook-review
thanks to mamamao.
I completed the setup of a small application that use Spring Security to perform an OpenID authentication. The application integrates also SpringSecurity and Wicket Security. Follows some details.
The demo conatains two different solutions, one uses the spring namespace, the other configures explicilty Spring security filters and providers.
The main issue to solve is how store the OpenID attributes returned from the OpenID provider to the Sprin UserDetails object.
Spring Security Name Space OpenID Setup
Through the element <openid-login/> Spring auto-configures an OpenIDAuthenticationFilter and an OpenIDAuthenticationProvider. The element <attribute-exchange/> contains all the OpenId attribute element to ask to the provider.
<security:http> <security:anonymous enabled="false" /> <security:logout /> <security:openid -login authentication-success-handler-ref="authenticationSuccessHandler" login-page="/login" authentication-failure-url="/?login_error=true" > <security:attribute -exchange> <security:openid -attribute name="email" type="http://schema.openid.net/contact/email" required="true" /> <security:openid -attribute name="firstName" type="http://axschema.org/namePerson/first" required="true" /> <security:openid -attribute name="lastName" type="http://axschema.org/namePerson/last" required="true" /> <security:openid -attribute name="language" type="http://axschema.org/pref/language" required="true" /> </security:attribute> </security:openid> <security:remember -me key="alessandro-vincelli-openid" /> </security:http> |
To be continue…
DEMO: http://demo.alessandro.vincelli.name/openid/
Source: http://youeat.googlecode.com/svn/spring-security-open-id