This file contains hidden or 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
/* | |
* RRIV - Open Source Environmental Data Logging Platform | |
* Copyright (C) 20202 Zaven Arra [email protected] | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains hidden or 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
Attempted two ways to start USBSerial, but it never gets past the while loop | |
USBComposite.clear(); // clear any plugins previously registered | |
USBSerial.registerComponent(); | |
USBComposite.begin(); | |
while(!USBComposite) | |
{ | |
Serial2.println("waiting"); | |
delay(1000); | |
} |
This file contains hidden or 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
IPA_NAME="${ARTIFACTS_DIRECTORY}/Aluvi Nightly.ipa" | |
CRASHLYTICS_SUBMIT="Pods/Crashlytics/Crashlytics.framework/submit" | |
if [ ! -f "$IPA_NAME" ] | |
then | |
echo "IPA not found" | |
echo "$IPA_NAME" | |
fi | |
echo "$IPA_NAME" | |
if [ ! -f "$CRASHLYTICS_SUBMIT" ] |
This file contains hidden or 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
# call this as | |
# android_db_move.sh com.cdlcollege.saas CdlCollegeSaasDatabase | |
# sqlite3 CdlCollegeSaasDatabase | |
#!/bin/bash | |
REQUIRED_ARGS=2 | |
ADB_PATH=/Users/deepwinter1/Documents/eclipse-workspace-classic/android-sdk-macosx/platform-tools/adb | |
PULL_DIR="." |
This file contains hidden or 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
public class LoginRequest extends SpringAndroidSpiceRequest< LoginUser > { | |
String uri; | |
public LoginRequest(String email) { | |
super(LoginUser.class); | |
uri = ApiSettings.API_BASE_URI + "attendees/search/" + email; | |
This file contains hidden or 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
class LoginRequestListener implements RequestListener< LoginUser > { | |
@Override | |
public void onRequestFailure( SpiceException e ) { | |
//showProgress(false); | |
if(e instanceof NoNetworkException){ | |
Toast.makeText(LoginActivity.this, "Network connection is unavailable", Toast.LENGTH_LONG).show(); | |
spiceManager.cancelAllRequests(); | |
} else { | |
Toast.makeText(LoginActivity.this, "Error during request: " + e.getMessage(), Toast.LENGTH_LONG); |
This file contains hidden or 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
08-09 12:10:21.856: D/dalvikvm(14267): GC_FOR_ALLOC freed 91K, 7% free 107001K/113863K, paused 30ms | |
08-09 12:10:21.861: I/dalvikvm-heap(14267): Grow heap (frag case) to 105.532MB for 1032111-byte allocation | |
08-09 12:10:21.891: D/dalvikvm(14267): GC_FOR_ALLOC freed <1K, 6% free 108008K/114887K, paused 32ms | |
08-09 12:10:21.926: D/dalvikvm(14267): GC_FOR_ALLOC freed 832K, 7% free 107175K/114887K, paused 32ms | |
08-09 12:10:21.926: I/dalvikvm-heap(14267): Grow heap (frag case) to 105.702MB for 1032372-byte allocation | |
08-09 12:10:21.961: D/dalvikvm(14267): GC_FOR_ALLOC freed 1007K, 8% free 107175K/115911K, paused 34ms | |
08-09 12:10:22.021: D/dalvikvm(14267): GC_FOR_ALLOC freed 2018K, 8% free 106697K/115911K, paused 31ms | |
08-09 12:10:22.081: D/dalvikvm(14267): GC_CONCURRENT freed 1539K, 8% free 107182K/115911K, paused 2ms+5ms | |
08-09 12:10:22.186: D/dalvikvm(14267): GC_FOR_ALLOC freed 2K, 7% free 108619K/115911K, paused 30ms | |
08-09 12:10:22.186: I/dalvikvm-heap(14267): Grow heap (frag case) to 107.734MB for 1684656-byte allo |
This file contains hidden or 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
Original doc. Notice _rev is on #3 which is because it has been created, then had 2 attachments added. | |
{"_id":"2e4a9635-c225-47c8-84d9-3f9c42d81970","_rev":"3-37aa4534-dd09-49b2-952b-7cc809c6f904","created_at":"2012-05-31T22:18:12.835+0000","longitude":"-122.29621807","deviceuser_identifier":"ANDROID00000000-6ecb-bb13-fc46-a7570033c587","latitude":"37.80973901","_attachments":{"medium.jpg":{"content_type":"image/jpeg","revpos":3,"length":65,"stub":true},"thumb.jpg":{"content_type":"image/jpeg","revpos":2,"length":64,"stub":true}}} | |
This is the 2nd mystery document, which has an id which looks suspiciously like a revision number. | |
{"_id":"2-83c6f8cf-1a3b-4dfd-8d5f-bebe618c01f5","_rev":"1-41670c94-c5b7-4fa8-a69f-418548cb60c9","_attachments":{"thumb.jpg":{"content_type":"image/jpeg","revpos":1,"length":64,"stub":true}}} | |