Skip to content

Instantly share code, notes, and snippets.

Avatar
♻️
In search of green builds

Stephen Senkomago Musoke ssmusoke

♻️
In search of green builds
View GitHub Profile
View Medic Mobile Form Compile Error
WARN No project package.json file found at /Users/ssmusoke/IdeaProjects/dgmt-poc/package.json
WARN Project has no dependency on medic-conf.
INFO Processing config in dgmt-poc.
INFO Actions:
- convert-app-forms
- upload-app-forms
INFO Starting action: convert-app-forms…
INFO Converting form /Users/ssmusoke/IdeaProjects/dgmt-poc/forms/app/child-visit.xlsx …
Traceback (most recent call last):
File "/usr/local/opt/python/libexec/bin/xls2xform-medic", line 5, in <module>
View Zombo District 2021 Presidential Results
"district_code","district_name","parish_code","parish_name","polling_station_code","polling_station_name","registered_voters","amuriat_oboi_patrick","kabuleeta_kiiza_joseph","kalembe_nancy_linda","katumba_john","kyagulanyi_ssentamu_robert","mao_norbert","mayamba_la_willy","mugisha_muntu_gregg","mwesigye_fred","tumukunde_henry_kakurugu","yoweri_museveni_tibuhaburwa_kaguta","valid_votes","invalid_votes"
87,ZOMBO,4,ZULUME,1,4,821,12,8,4,4,45,4,2,11,2,6,347,445,24
87,ZOMBO,30,ABANGA,1,ABANGA KUBI P/S,638,7,4,3,4,24,4,3,1,3,3,228,284,12
87,ZOMBO,16,ABEJU,1,ABEJU COOP. SOCIETY,449,6,2,6,0,47,1,0,2,1,1,125,191,19
87,ZOMBO,45,AMUDA,1,ADHINGI PR SCHOOL,912,4,2,3,1,25,6,1,7,2,6,389,446,23
87,ZOMBO,6,PAMACH,1,ADWOGU CLUB,354,3,0,1,2,9,1,0,2,0,0,196,214,10
87,ZOMBO,39,AFFERE WARD,1,AGIERMACH MALITABU CLUB,749,3,1,2,5,44,5,0,2,2,2,330,396,24
87,ZOMBO,19,OMBILA,1,AJEI P SCHOOL,614,2,2,1,1,35,3,0,2,0,3,205,254,24
87,ZOMBO,52,OSOYE,1,AJERE CHAPEL,609,5,4,2,0,48,4,0,3,1,6,164,237,46
87,ZOMBO,8,JUPADINDO WARD,1,AJIGO CATHOLIC
View Polling Stations where Katumba beat Kyagulanyi
district_name,polling_station_name,registered_voters,katumba_john,kyagulanyi_ssentamu_robert
ABIM,AGWATA CATHOLIC CHURCH,620,107,15
ALEBTONG,OCOM,483,6,3
AMOLATAR,BAROWALO TE AEME,247,19,1
AMURIA,ANGARO MANGO TREE,238,2,0
BUKEDEA,OLWA PILOT SC,831,2,1
BUKWO,KAPNAUNJURO,107,1,0
BUNYANGABU,KIGAYA,309,1,0
ISINGIRO,RUBONDO PRI SCH,476,1,0
ISINGIRO,RWENGE C.O.U,538,5,4
@ssmusoke
ssmusoke / showbreakpoints.blade.php
Last active Dec 13, 2020 — forked from adamhopkinson/showbreakpoints.blade.php
Small TailwindCss component to show which breakpoint is active based on the debug mode
View showbreakpoints.blade.php
@if (config('app.debug'))
<div class="flex space-x-2 mb-4 rounded border text-center text-sm font-bold">
<div class="flex-1 p-2"><span class="text-green-700 mr-1 xs:inline-block sm:hidden">&#x2713;</span><span class="text-red-700 mr-1 hidden sm:inline-block">&#x2717;</span><br>XS</div>
<div class="flex-1 p-2"><span class="text-green-700 mr-1 hidden sm:inline-block md:hidden">&#x2713;</span><span class="text-red-700 mr-1 inline-block sm:hidden md:inline-block">&#x2717;</span><br>SM</div>
<div class="flex-1 p-2"><span class="text-green-700 mr-1 hidden md:inline-block lg:hidden">&#x2713;</span><span class="text-red-700 mr-1 inline-block md:hidden lg:inline-block">&#x2717;</span><br>MD</div>
<div class="flex-1 p-2"><span class="text-green-700 mr-1 hidden lg:inline-block xl:hidden">&#x2713;</span><span class="text-red-700 mr-1 inline-block lg:hidden xl:inline-block">&#x2717;</span><br>LG</div>
<div class="flex-1 p-2"><span class="text-green-700 mr-1 hidden xl:inline-block 2xl:hidden">&#x2713;</span><span
View muzima-01Dec20-0830.txt
Forking a new process... (use -Dfork=false to prevent forking)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T19:41:47+03:00)
Maven home: /usr/local/Cellar/maven@3.3/3.3.9_1/libexec
Java version: 1.8.0_251, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
[INFO] Scanning for projects...
View muzima.txt
an despite precondition failure due to onFail='MARK_RAN':
liquibase.xml : Not precondition failed
SEVERE 11/30/20 2:43 PM:liquibase: Change Set liquibase.xml::muzima-20201123083000::bmokaya failed. Error: Error executing SQL INSERT INTO scheduler_task_config (name, description, schedulable_class,
start_time, start_time_pattern, repeat_interval, start_on_startup, started,
created_by, date_created, changed_by, date_changed, last_execution_time, uuid )
VALUES ('Process Muzima's Queue Data', 'Task to process queue data submitted to the muzima processor.', 'org.openmrs.module.muzima.task.ProcessQueueDataTask',
'2020-11-23 00:00:00','MM/dd/yyyy HH:mm:ss',3600, 1, 1,
1, now(), NULL, NULL, NULL, uuid()): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Queue Data', 'Task to process queue data submitted to the muzima processor.', ' at line 4
liquibase.excepti
View Encounter Creation Error
{
"error": {
"message": "[encounterType on class org.openmrs.Encounter]",
"code": "org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource:805",
"detail": "org.openmrs.module.webservices.rest.web.response.ConversionException: encounterType on class org.openmrs.Encounter\n\tat org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.setProperty(BaseDelegatingResource.java:805)\n\tat org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.setConvertedProperties(BaseDelegatingResource.java:672)\n\tat org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource.convert(DelegatingCrudResource.java:107)\n\tat org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource.create(DelegatingCrudResource.java:76)\n\tat org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceController.create(MainResourceController.java:92)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n
View ANC REgister 2019 Error
org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate data set 'ANC' because:
Failed to evaluate Error evaluating because:
null
at org.openmrs.module.reporting.report.definition.evaluator.DefaultReportDefinitionEvaluator.evaluate(DefaultReportDefinitionEvaluator.java:82)
at org.openmrs.module.reporting.report.definition.evaluator.DefaultReportDefinitionEvaluator.evaluate(DefaultReportDefinitionEvaluator.java:35)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:272)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
at org.openmrs.module.reporting.report.definition.service.ReportDefinitionServiceImpl.evaluate(ReportDefinitionServiceImpl.java:168)
at org.openmrs.module.reporting.report.definition.service.Re
View UI Framework Erorr - Form 32
UI Framework Error
Root Error
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.openmrs.Form#32]
at org.hibernate.internal.SessionFactoryImpl$1$1.handleEntityNotFound(SessionFactoryImpl.java:253)
at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:219)
at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:275)
at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)
at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1106)
at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:1025)
View ANC Register
DEBUG - BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(263) |2020-05-28 14:51:24,108| No cached value with key <org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition{personAttributeType=dec484be-1c43-416a-9ad0-18bd9ef28929}>. Evaluating.
ERROR - EvaluationProfiler.log(111) |2020-05-28 14:51:24,130| 1 2020-05-28 14:51:24.130 >>>> ERROR EVALUATING_DEFINITION PatientDataSetDefinition[ANC]: null
java.lang.NullPointerException
at org.openmrs.module.ugandaemrreports.data.converter.NationalityPersonalAttributeDataConverter.convert(NationalityPersonalAttributeDataConverter.java:25)
at org.openmrs.module.reporting.data.DataUtil.convertData(DataUtil.java:57)
at org.openmrs.module.reporting.dataset.definition.evaluator.PatientDataSetEvaluator.evaluate(PatientDataSetEvaluator.java:99)
at org.openmrs.module.reporting.dataset.definition.evaluator.PatientDataSetEvaluator.evaluate(PatientDataSetEvaluator.java:42)
at org.openmrs.module.reporting.definition.service.BaseDefiniti