Currently browsing author

Larry Morroni

Moving your local git repo to a new master

We have been adopting git as our source control platform over the past month and in the process, we changed our project of choice form gitolite to gitorious. This required uis to change the master origin on our local repos and push them to the new git gitorious server. List …


Create MySQL User and Grant Database Access

These are common commands . It would be easier to memorize these but for some reason I always seem to go back to them for reference. Create a User CREATE USER ‘user1′@’localhost’ IDENTIFIED BY ‘pass1′; Grant Privileges to a Database GRANT ALL ON databaseName.* TO ‘user1′@’localhost’; Or in one simple …


Migrate SVN to Git

We are slowly moving our old and new projects over to Git. There are a variety of benefits that are not within scope here. This how-to assumes you have Gitolite and Git installed on your server. This short how-to assumes that you are able to setup an empty repo on …


Useful Git Commands

We are migrating from svn to git here for source control and I have put together some useful commands to share with our team. Setting up your client machine Make sure that you have git installed (For OSX) $ brew install git $ git config –global user.name “John Doe” $ …


WordPress -> Facebook Integration

We recently installed a plugin for our blog that will allow authors to easily publish teasers from articles to FB and Twitter. Now I just need to get the crew to start writing some meaningful blog entries! Wordbooker: http://wordpress.org/extend/plugins/wordbooker/ Larry http://blog.morroni.com/author/lmorroni/


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 …


Lift Framework Tips

Displaying a menu item only if a user is logged in. If they are not logged in, route them to /login This is inside Boot.scala 1 2 3 4 val LoggedIn = If(() => User.loggedIn_?, () => RedirectResponse("/login")) val myLoc = Loc("SecurePage", "securePage" :: Nil, "Secure Page", LoggedIn) val myMenu …