Friday, March 17, 2017
PHD CTF Quals opens up a team registration for the information security contests
PHD CTF Quals opens up a team registration for the information security contests
PHD CTF Quals, held on December 10-11, will identify the best teams, who will compete at the main contests on May 30-31, 2012, at the Positive Hack Days forum.
December 12-25 will carry on with individual competitions: the top participants will be awarded with diplomas and certificates from Positive Technologies and will be able to take part in the May contests at the forum.
Registration for the qualification competition is now open.
To register for PHD CTF Quals, visit http://phdays.com/smt.asp?gnum=0
To register for PHD CTF Afterparty, visit http://phdays.com/smt.asp?gnum=1
The participant registration for PHD CTF Quals and PHD CTF Afterparty is closing on November 28, 2011.
For detailed information about the competition visit the corresponding sections of our web site: www.phdays.ru.

Available link for download
Saturday, February 11, 2017
Persisting DateTime with zone information
Persisting DateTime with zone information
I was stuck a while ago trying to figure out how to map PersistentDateTimeTZ in a GORM class. Its an implementation of Hibernates UserType interface that persists a Joda DateTime value using 2 columns - one for the actual timestamp and one for the time zone. The DateTime class contains time zone information but a SQL timestamp column is time zone agnostic so you can lose data when the value is saved (the same exact problem exists when persisting java.util.Date values).
I could never figure out how to map the user type to my domain class property correctly. Just doing:
static mapping = {
dateTimeProperty type: PersistentDateTimeTZ
}Failed with:
org.hibernate.MappingException: property mapping has wrong number of columns.
I seem to remember someone on the Grails mailing list suggesting I tried treating the value as an embedded type. That also didnt work as GORM embedded types have to be Groovy classes in grails-app/domain and PersistentDateTimeTZ is written in Java and lives in a library jar.
I finally found the solution in the 2nd Edition of The Definitive Guide to Grails (which I cant recommend enough, by the way). The trick is to pass a closure specifying the two columns to the property definition in the mapping builder. The working code looks like this:
static mapping = {
dateTimeProperty type: PersistentDateTimeTZ, {
column name: "date_time_property_timestamp"
column name: "date_time_property_zone"
}
}The order of the columns corresponds to the order of the values returned by the sqlTypes() method of whatever UserType implementation youre using.
Available link for download
Tuesday, January 24, 2017
People Behaving Badly and information securitys tie in
People Behaving Badly and information securitys tie in
Last week, I had the opportunity to travel to the Bay Area in California to record an information security video (thanks Intel and TechTarget!). Of course, I couldnt travel across the country and not see the sights of San Francisco. A most excellent highlight of the trip was for my son and I to meet television and social media celebrity, Stanley Roberts. My son is a huge fan of Stanleys, has learned a ton from him (me too!), and was over the moon-excited to be able to meet him in person.

I wanted to share with you Stanleys videos (a really good "best of" is below) and how his work relates to what we do for a living. Stanley catching people in the act of doing bad things intentionally, or perhaps through ignorance, is the very thing that drives the field of information security today. Its the essence of my previous blog post from today and my whole shtick about if we just addressed the basics of security (followed the core best practices and rules) we wouldnt experience the consequences.
Stanley, we need to figure out how to do something on "people behaving badly with computers"!
Check out Stanleys YouTube channel or, if youre in the Bay Area, KRON 4 News...I think youll enjoy it. If anything, beyond the laughs, youll see that crazy human behavior is across the board in all aspects of life, not just in IT and security.
Available link for download