#!/bin/bash while inotifywait -re close_write src; do ./restart.sh; donerestart.sh:
#!/bin/bash ./kill_tomcat.sh sleep 1 mvn tomcat:run -o &kill_tomcat.sh:
#!/bin/bash pkill -kill -f tomcat:run
#!/bin/bash while inotifywait -re close_write src; do ./restart.sh; donerestart.sh:
#!/bin/bash ./kill_tomcat.sh sleep 1 mvn tomcat:run -o &kill_tomcat.sh:
#!/bin/bash pkill -kill -f tomcat:run
sudo apt-get install python-dev pip install cython pip install rfoorconsole is a remote Python console with auto completion, which can be used to inspect and modify the namespace of a running script. To invoke in a script do:
from rfoo.utils import rconsole rconsole.spawn_server()To attach from a shell do:
rconsole
gcc example.cpp -lsomelibrarywmii build files have the shared libraries located before the source files, and thus can not be easily built with the default configuration.
CC = gcc-4.4 -c LD = gcc-4.4This allowed the project to compiled with the following command:
dpkg-buildpackage -rfakeroot -us -uc -b
sudo ln -s /usr/include/c++/4.5 /usr/include/c++/4.4
import ipdb; ipdb.set_trace()I wanted something similar for ruby. I got the same behaviour set up with the following code and patching using irb_completion's output. Install the required gem files:
gem install ruby-debug-base gem install ruby-debug gem install wirble gem install patch_irb_completion;patch_irb_completionModify the ruby file to be debugged:
require 'rubygems' require 'ruby-debug' require 'wirble' Wirble.init Wirble.colorize debugger #location to stoprunning the code with the --debug option will stop at the requested location and drop an rdb prompt with tab completion. Reference: http://stackoverflow.com/questions/2504515/what-do-i-put-in-my-ruby-jruby-code-to-break-into-the-debugger http://www.unboxedconsulting.com/blog/irc-completion-from-the-debugger
<!-- Generate DDL -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>hbm2ddl</goal>
</goals>
</execution>
</executions>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<implementation>jpaconfiguration</implementation>
</component>
</components>
<componentProperties>
<propertyfile>src/main/resources/database.properties</propertyfile>
<persistenceunit>persistenceUnit</persistenceunit>
<outputfilename>schema.ddl</outputfilename>
<drop>false</drop>
<create>true</create>
<export>false</export>
<format>true</format>
</componentProperties>
</configuration>
</plugin>