This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git cvsimport -p -x -v -k -o cvsheadbranch -s _ [email protected]:/dir/cvsroot -C newGitDir 'CVS MODULE NAME' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#like svn:externals, only you can update the code!!!! | |
#install (*nix) - easy! See http://piston.rubyforge.org/ | |
#Assuming BASH | |
[sudo] gem install piston | |
#Usage - import remote subtree/directory to required project destination | |
piston import -v0 [--repository-type git|svn] <url/of/git/or/svn/repository> <destination/directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn archetype:generate -DarchetypeCatalog=http://kallisti.eoti.org:8081/content/repositories/snapshots/archetype-catalog.xml | |
See http://malsandroid.blogspot.com/2010/04/galatea-mavenandroid-archetype.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
you need to run this once with Active SDK = Simulator, and once with Active SDK = Device - for some reason, if you don't, Xcode says "i386 is not a valid architecture, only armv6 and armv7 are valid". But, once you've done that once, it works fine thereafter. | |
Wow. I think I've done it - automatic, full integration with XCode GUI! (based on Eonil's code) | |
NB: several changes, the biggest being that this is recursion-safe (it can be called from INSIDE a build-step, and won't crash if you do). | |
Usage: | |
Create a static lib project | |
Select the Target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log4j.rootLogger=INFO, logfile | |
log4j.logger.org.springframework.web.context=DEBUG, stdout | |
# in case any output is given to stdout, format it | |
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | |
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | |
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n | |
log4j.appender.logfile=org.apache.log4j.RollingFileAppender | |
log4j.appender.logfile.File=myproject.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See original post at http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone | |
cmake_minimum_required(VERSION 2.8) | |
cmake_policy(SET CMP0015 NEW) | |
cmake_policy(SET CMP0016 NEW) | |
project(test) | |
set(NAME test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for myFileSetVar in `find /some/path -iname '*some.file*'`; do newAwkVar=`echo $myFileSetVar | awk -F/ '{print $1}'`; echo $newAwkVar came from $myFileSetVar; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See http://stackoverflow.com/questions/2947990/using-ikvm-to-convert-a-jar-flying-saucer-xhtmlrenderer | |
I wanted to use the Flying Saucer Java API in .NET so I tried to use IKVM to convert the Flying Saucer library: | |
ikvmc core-renderer.jar | |
For some reason, IKVMC gave me an exe core-renderer.exe so I renamed it to core-renderer.dll, added to my assemblies and hacked away | |
using java.io; | |
using java.lang; | |
using com.lowagie.text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Lazy load (at request time) a Spring bean --> | |
<bean id="someBeanLazy" class="org.springframework.aop.framework.ProxyFactoryBean"> | |
<property name="targetSource"> | |
<bean class="org.springframework.aop.target.LazyInitTargetSource"> | |
<property name="targetBeanName" value="someRealBean" /> | |
<property name="targetClass"> | |
<bean class="java.lang.Class" factory-method="forName"> | |
<constructor-arg value="com.package.TheClassToMakeLazy"/> | |
</bean> | |
</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Matrix4 lookat = Matrix4.LookAt(cameraPositionX, cameraPositionY, cameraPositionZ, 256, 0, 256, 0.0, 1.0, 0.0); | |
GL.MatrixMode(MatrixMode.Modelview); | |
GL.LoadMatrix(ref lookat); |
OlderNewer