Archive

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 https://xxx.unfuddle.com/svn/xxx_xxx/ –username xxx –password xxx
xcopy xxx_xxx\xxx\*.* C:\inetpub\wwwroot\demo.xxx.com /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.

 

 

Advertisements
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
package:com.bn.policymanager.svc
package:com.android.launcher
package:com.android.defcontainer
package:com.bn.setupkicker
package:com.bn.touchcalibrator
package:com.android.quicksearchbox
package:sensor.test
package:com.android.inputmethod.latin
package:com.android.phone
package:com.openmerchantaccount.astronomy
package:com.android.htmlviewer
package:com.bn.encore.devicecleanup
package:com.android.browser
package:com.android.music
package:com.bn.benchmarks
package:com.android.providers.userdictionary
package:com.bn.filestresser
package:android.tts
package:com.adobe.air
package:com.bn.nook.dadmin
package:com.bn.fscheck
package:com.openmerchantaccount.athens
package:com.android.providers.media
package:com.bn.kube
package:com.android.certinstaller
package:com.bn.videomark
package:com.android.gallery
package:android
package:com.android.settings
package:com.android.providers.contacts
package:com.bn.deviceregistrator
package:com.android.protips
package:com.android.providers.applications
package:com.bn.cloud.svc
package:com.android.providers.drm
package:com.adobe.flashplayer
package:com.android.term
package:com.bn.authentication.svc
package:com.android.speechrecorder
package:com.mybeauty_world.app
package:com.android.packageinstaller
package:com.bn.app.crypto.server
package:com.android.development
package:com.android.providers.telephony
package:com.android.providers.subscribedfeeds
package:com.svox.pico
package:com.bn.bnappinstaller
package:com.android.spare_parts
package:com.android.providers.settings
package:org.hermit.android.battrack
package:com.bn.syschecksum
package:com.bn.devicemanager
package:com.android.providers.downloads
package:com.android.server.vpn

Et Voila!

Categories: Uncategorized