Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, May 30, 2012

inotifywait - run scripts on file changes

When working on a project in Java, I often need to stop/start maven whenever I make changes to the source code. I wanted to have maven restart automatically whenever I changed the source code. I ended up using some bash scripts to get the job done. inotifywait will run the script restart.sh whenever a file inside src is saved. This could also be done to automatically run test when source code changes. watch.sh:
#!/bin/bash
while inotifywait -re close_write src; do ./restart.sh; done
restart.sh:
#!/bin/bash
./kill_tomcat.sh
sleep 1
mvn tomcat:run -o &
kill_tomcat.sh:
#!/bin/bash
pkill -kill -f tomcat:run

Thursday, September 29, 2011

Fix clang errors in ubuntu

In natty clang needs some the headers that are not included in ubuntu. To get clang to work use the following:
sudo ln -s /usr/include/c++/4.5 /usr/include/c++/4.4

Friday, February 19, 2010

OS update 3.1.3

originally posted on Monday, February 8, 2010, 06:00 PM

I finished setting up the development environment on my machine. I Installed the latest version of xcode, and had to upgrade the iPod touch to the latest version in order to be able to use it for development.

I did the setup on my own machine and found the following issues:
The certificate I got from apple was displaying as being from an untrusted source. I had to install the "WWDR intermediate certificate" from the apple developers website to avoid this.

I was looking around the web trying to find objective-c compilers that do not require a mac and found GNUstep. It allows developing applications using objective-c. This is not a replacement for cocoa and xcode, but it does allow practicing objective-c without having to be on campus.