Archive for December, 2012

Building a website from a SVN repository

December 12, 2012 Leave a comment

I wanted to find a way to quickly copy the latest versions of files from an SVN repository to a website using a batch file that could be run on a moment’s notice.

I’ve removed some details, but the gist of it is:

@echo off
set path=%path%;C:\Program Files\CollabNet\Subversion Client
svn checkout –username xxx –password xxx
xcopy xxx_xxx\xxx\*.* C:\inetpub\wwwroot\ /s /Y
erase xxx_xxx /s /q
rmdir /s /q xxx_xxx

This gets the latest version of a project from an SVN repo (Unfuddle), copies it to a temp folder, xcopies the files to the website folder, then deletes the temp folder.

Unfortunately, it gets all files, rather than just changed files, but I found that since the checkout was being done via a high-speed server-to-server connection, the speed to download the files was much faster than getting the files to my local machine and uploading them, despite the fact there were many more files.  In any case, it was damn fast.



Categories: Uncategorized

Find all apps installed on Android

December 7, 2012 Leave a comment

When installing an app using adb, you use the APK filename, but to uninstall it, you have to use the package or activity class name. I used PhoneGap build, which generated it’s own class name for my app, subtly replacing a hyphen for an underscore.

Long story short, I didn’t know the class name of the app I wanted to uninstall, so I looked for how to get a list of apps installed on the device (a Nook emulator)

C:\android>adb shell pm list packages

Et Voila!

Categories: Uncategorized