Debugging Scala projects in IntelliJ

Open up your preferences, and go to your SBT settings. You want to add this to your VM Parameters: “-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005″ Now to debug, you need to create a new debugging profile of type “Remote” And make sure that it is running with your sbt debug line ” -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005″, …


Sorted Pagination with Lift Framework

Lift provides built in snippets to allow easy pagination of data. Here is a brief reference for the SortedMapperPaginatorSnippet (SMPS henceforth). As you can tell from the name, it specifically allows sorted pagination of mapper data. The Lift documentation provides more general information on PaginatorSnippets here. Let’s say you have …


Setting up your iPhone with Morroni email

Before you start this tutorial, make sure you have the following handy: An email address hosted by Morroni Technologies (For this tutorial, we will use info@morroni.com as an example) A username (For this tutorial, we will use mor0127 as an example) A password Once you are ready, go to your iPhone …


Browser Detect and Redirect in Lift Framework

This may not seem like a difficult task for many of the more experienced Scala/Lift developers out there but it took me some time to write this little piece and I thought I would share it. I basically needed a way to redirect clients running IE6 to a single page …


IntelliJ, SBT, and Lift

Update: This is easier now. See this post: http://blog.morroni.com/2011/03/11/the-best-lift-sbt-intellij-startup-process/ This post describes how to get IntelliJ, Git, SBT(Scala Build Tool) and Lift playing nicely together. This post assumes you have Maven and SBT already installed since you will need them in order to make this work. More information about the …


Setup IntelliJ 9 for Lift Framework Development

This small tutorial may seem overly simplified but I think that a lot of newbies out there will find it helpful. I also would consider using sbt instead of just maven but this tutorial covers just maven. I have been developing using Lift for a little over a year now …


Centos 5.4, PHP, and Microsoft SQL Server

I ran into this problem and got stuck on it for a day so I thought I would post.  The only way to get PHP to talk to Microsoft SQL server properly on a  Redhat/Centos 5.4 build is to ensure that you have disabled SELinux at start-up.  This option is …