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
ERROR - XformsUtil.reportDataUploadError(608) |2013-09-06 20:21:53,066| 'Encounter: [(no ID) Sat Sep 07 00:00:00 UTC 2013 patient_narratives null 2 Test1 num Obs: [obs id is null, obs id is null, obs id is null, obs id is null, obs id is null, obs id is null, obs id is null, obs id is null] num Orders: 0 ]' failed to validate with reason: encounterDatetime: The encounter datetime should be before the current date. | |
org.openmrs.api.APIException: 'Encounter: [(no ID) Sat Sep 07 00:00:00 UTC 2013 patient_narratives null 2 Test1 num Obs: [obs id is null, obs id is null, obs id is null, obs id is null, obs id is null, obs id is null, obs id is null, obs id is null] num Orders: 0 ]' failed to validate with reason: encounterDatetime: The encounter datetime should be before the current date. | |
at org.openmrs.validator.ValidateUtil.validate(ValidateUtil.java:85) | |
at org.openmrs.aop.RequiredDataAdvice.before(RequiredDataAdvice.java:136) | |
at org.springframework.aop.framework.adapter.MethodBeforeAdvice |
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
package org.durapix.sms.controller; | |
import java.util.*; | |
import hms.kite.samples.api.StatusCodes; | |
import hms.kite.samples.api.caas.ChargingRequestSender; | |
import hms.kite.samples.api.caas.messages.DirectDebitRequest; | |
import hms.kite.samples.api.caas.messages.DirectDebitResponse; | |
import hms.kite.samples.api.sms.MoSmsListener; | |
import hms.kite.samples.api.sms.SmsRequestSender; | |
import hms.kite.samples.api.sms.messages.MoSmsReq; |
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
// Check for subscription | |
try { | |
SubscriptionStatusResponse subscriptionStatusResponse = getSubscriptionStatus(phoneNumber); | |
String statusCode2 = subscriptionStatusResponse.getStatusCode(); | |
String statusDetails2 = subscriptionStatusResponse.getStatusDetail(); | |
if (statusCode2.equals("S1000")) { | |
String infoMsg = "Subscribed user!"; | |
LOGGER.info(infoMsg); | |
flagSubs = true; |
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
package lancerscan; | |
import jd2xx.JD2XX; | |
public class Test { | |
public static void main(String[] args) throws Exception { | |
JD2XX jd = new JD2XX(); | |
jd.open(0); |
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
/** | |
* @author Harsha Siriwardena | |
* | |
*/ | |
public class SharingBaseActivity extends Activity { | |
public Spinner sharingSpinner; | |
String SD_CARD_PATH = null; |
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
/** | |
* Created by harshadura on 2/17/16. | |
*/ | |
public class GenerateRandom { | |
private static int[][] range7Array = new int[][]{ | |
{1, 2, 3, 4, 5}, | |
{6, 7, 1, 2, 3}, | |
{4, 5, 6, 7, 1}, | |
{2, 3, 4, 5, 6}, |
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
/** | |
* Created by harshadura on 2/17/16. | |
*/ | |
public class StringOrder { | |
public static void main(String args[]) { | |
String inputA = "harsha"; | |
String inputB = "sanjeewa"; | |
System.out.println(orderByNSq(inputA.toCharArray(), inputB.toCharArray())); | |
System.out.println(orderByN(inputA.toCharArray(), inputB.toCharArray())); |
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
@RequestMapping("/authorize") | |
public String authorize(@RequestParam(value="username", defaultValue="username") String username, | |
@RequestParam(value="password", defaultValue="password") String password) { | |
FirebaseHandler firebaseHandler = new FirebaseHandler(mFirebaseDatabaseReference, new FirebaseHandler.FirebaseServiceListener() { | |
@Override | |
public void onSuccessResponseReceived(Object response) { | |
return ; // << error | |
} |
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
/** | |
* Copyright Google Inc. All Rights Reserved. | |
* <p/> | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* <p/> | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* <p/> | |
* Unless required by applicable law or agreed to in writing, software |
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 (final String groupId: memberList){ | |
Query searchQuery3 = database.child("userGroups").child(groupId); | |
ValueEventListener valueEventListener = new ValueEventListener() { | |
public void onDataChange(DataSnapshot dataSnapshot) { | |
if (dataSnapshot.exists()) { | |
System.out.println("**i am here"); | |
final UserGroup userGroup = dataSnapshot.getValue(UserGroup.class); | |
final List<String> usersList = userGroup.getUsersList(); |
OlderNewer