Sample App Failed to create default SDK Client

Brief of my issue:
I success fully builded avs-device-sdk in my Target Board,
But i'm getting below errors while running the Sampleapp Executable
I'm using below command to run SampleApp
TZ=UTC ./SampleApp ../../Integration/AlexaClientSDKConfig.json ../../Integration/inputs/SensoryModels/ DEBUG9
and I'm Getting below errors,
**Running app with log level: DEBUG9
2017-12-26 09:51:59.868 [  1] W Logger:debugLogLevelSpecifiedWhenDebugLogsCompiledOut:level=DEBUG9:
WARNING: By default DEBUG logs are compiled out of RELEASE builds.
Rebuld with the cmake parameter -DCMAKE_BUILD_TYPE=DEBUG to enable debug logs.
2017-12-26 09:51:59.870 [  1] I ConfigurationNode:initializeSuccess
2017-12-26 09:52:00.004 [  1] I AlertScheduler:executeScheduleNextAlertForRendering::no work to do.
2017-12-26 09:52:00.005 [  1] E Settings:initializeFailed:reason=SqliteFilePathNotFound
2017-12-26 09:52:00.005 [  1] E Settings:createFailed:reason=Initialization error.
2017-12-26 09:52:00.006 [  1] E DefaultClient:initializeFailed:reason=unableToCreateSettingsObject
2017-12-26 09:52:00.006 [  1] I DirectiveSequencer:doShutdown
2017-12-26 09:52:00.008 [  2] I CertifiedSender:CertifiedSender worker thread done.  exiting mainloop.
Failed to create default SDK client!
Failed to initialize SampleApplication
Failed to create to SampleApplication!**
Tell us what hardware you're using:
--PICO-PI-IMX7d
Tell us about your OS (Type & version):
- -Yocto Based Linux
Anyone please help me to solve this issue.

And my AlexaClientSDKConfig.json file is looking like below,
{
"authDelegate":{
"clientSecret":"my_secret_id",
"deviceSerialNumber":"123456",
"refreshToken":"Atzr|IwEBIOq8KuoikJyEscxrvQlW2ELvwW2coV9yIXlub-54Fw6szXBVJmMB-X5-U589hP0eZ9e8HtLNWpQOPkNKNKHHdtwnKoxA5mjbbQIo7GoSzcdXihh81RpZ1X0ycczvE_tr50bbwC1BmtUQy0R9Od6STQVnZFt4PJW$
"clientId":"my_Client_Id",
"productId":"rpiEcho"
},
"alertsCapabilityAgent":{
"databaseFilePath":"/home/root/build_db/alerts.db",
"alarmSoundFilePath":"/home/root/alexa_sound/med_system_alerts_alarming_03.mp3",
"alarmShortSoundFilePath":"/home/root/alexa_sound/med_system_alerts_alarming_03_short.wav",
"timerSoundFilePath":"/home/root/alexa_sound/med_system_alerts_melodic_03.mp3",
"timerShortSoundFilePath":"/home/root/alexa_sound/med_system_alerts_melodic_03_short.wav"
},
"settings":{
"databaseFilePath":"",
"defaultAVSClientSettings":{
"locale":"en-US"
}
},
"certifiedSender":{
"databaseFilePath":"/home/root/build_db/alerts.db"
}
}

The databaseFilePath for settings is empty. It should be different than alerts db file. Something like "/home/root/build_db/settings.db". Also the databaseFilePath for certifiedSender should be different, which is like "/home/root/build_db/certifiedSender.db" .

Hi,
Thank you. I got cleared that issues with your help.
And now i'm getting below error.
2017-12-27 06:06:54.589 [  1] I ConfigurationNode:initializeSuccess
2017-12-27 06:06:54.803 [  1] I AlertScheduler:executeScheduleNextAlertForRendering::no work to do.
2017-12-27 06:06:54.807 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechSynthesizer,name=Speak,handler=0x71a748,policy=BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=ClearQueue,handler=0x71b010,policy=NON_BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Stop,handler=0x71b010,policy=NON_BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Play,handler=0x71b010,policy=NON_BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0x719fc8,policy=NON_BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=StopCapture,handler=0x719fc8,policy=NON_BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlert,handler=0x71bca0,policy=NON_BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetAlert,handler=0x71bca0,policy=NON_BLOCKING
2017-12-27 06:06:54.808 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=SetEndpoint,handler=0x743768,policy=NON_BLOCKING
2017-12-27 06:06:54.809 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=ResetUserInactivity,handler=0x719da4,policy=NON_BLOCKING
2017-12-27 06:06:54.809 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=AdjustVolume,handler=0x742c90,policy=NON_BLOCKING
2017-12-27 06:06:54.809 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetMute,handler=0x742c90,policy=NON_BLOCKING
2017-12-27 06:06:54.809 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetVolume,handler=0x742c90,policy=NON_BLOCKING
2017-12-27 06:06:54.809 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderPlayerInfo,handler=0x742fc8,policy=NON_BLOCKING
2017-12-27 06:06:54.809 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderTemplate,handler=0x742fc8,policy=NON_BLOCKING
#############################
Connecting...
#############################
2017-12-27 06:07:01.819 [  2] I DirectiveSequencer:onDirective:directive={"namespace:"System",name:"SetEndpoint",messageId:"f130fda3-9e2e-43b7-a900-8812edeadf62",dialogRequestId:""}
2017-12-27 06:07:01.820 [  3] I DirectiveRouter:preHandleDirective:messageId=f130fda3-9e2e-43b7-a900-8812edeadf62,action=calling
2017-12-27 06:07:01.820 [  4] I DirectiveRouter:handleDirective:messageId=f130fda3-9e2e-43b7-a900-8812edeadf62,action=calling
########################################
Alexa is currently idle!
########################################
**#####################################
Client not connected!
#####################################**
########################################
Alexa is currently idle!
########################################
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline**#####################################
Client not connected!
#####################################**
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/alsa-plugins/1.0.29-r0/alsa-plugins-1.0.29/pulse/pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/alsa-plugins/1.0.29-r0/alsa-plugins-1.0.29/pulse/pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream**#####################################
Client not connected!
#####################################**
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:977:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib /home/jiserver/edm_yocto/build-x11-pico-imx7/tmp/work/cortexa7hf-vfp-neon-mx7d-poky-linux-gnueabi/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm_dsnoop.c:553:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
2017-12-27 06:07:07.566 [  1] I SensoryKeywordDetector:License expires on 28 Mar 2018 00:00:00 GMT
2017-12-27 06:07:07.566 [  1] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
#    #     #  #####      #####  ######  #    #
# #   #     # #     #    #     # #     # #   #
#   #  #     # #          #       #     # #  #
#     # #     #  #####      #####  #     # ###
#######  #   #        #          # #     # #  #
#     #   # #   #     #    #     # #     # #   #
#     #    #     #####      #####  ######  #    #
   #####                                           #
  #     #   ##   #    # #####  #      ######      # #   #####  #####
  #        #  #  ##  ## #    # #      #          #   #  #    # #    #
   #####  #    # # ## # #    # #      #####     #     # #    # #    #
        # ###### #    # #####  #      #         ####### #####  #####
  #     # #    # #    # #      #      #         #     # #      #
   #####  #    # #    # #      ###### ######    #     # #      #

+----------------------------------------------------------------------------+
|                                  Options:                                  |
| Wake word:                                                                 |
|       Simply say Alexa and begin your query.                               |
| Tap to talk:                                                               |
|       Press 't' and Enter followed by your query (no need for the 'Alexa').|
| Hold to talk:                                                              |
|       Press 'h' followed by Enter to simulate holding a button.            |
|       Then say your query (no need for the 'Alexa').                       |
|       Press 'h' followed by Enter to simulate releasing a button.          |
| Stop an interaction:                                                       |
|       Press 's' and Enter to stop an ongoing interaction.                  |
| Privacy mode (microphone off):                                             |
|       Press 'm' and Enter to turn on and off the microphone.               |
| Playback Controls:                                                         |
|       Press '1' for a 'PLAY' button press.                                 |
|       Press '2' for a 'PAUSE' button press.                                |
|       Press '3' for a 'NEXT' button press.                                 |
|       Press '4' for a 'PREVIOUS' button press.                             |
| Settings:                                                                  |
|       Press 'c' followed by Enter at any time to see the settings screen.  |
| Speaker Control:                                                           |
|       Press 'p' followed by Enter at any time to adjust speaker settings.  |
| Info:                                                                      |
|       Press 'i' followed by Enter at any time to see the help screen.      |
| Quit:                                                                      |
|       Press 'q' followed by Enter at any time to quit the application.     |
+----------------------------------------------------------------------------+
So The issue is ,
**#####################################
Client not connected!
#####################################**

do you have gstreamer1.0-alsa installed on your system? can you try
sudo apt install gstreamer1.0-alsa
Also verify you have basic functionality (you should hear a constant tone):
$ gst-launch-0.10 audiotestsrc ! autoaudiosink
verify you can play mp3 (using mad decoder from gstreamer1.0-plugins-ugly):
$ gst-launch-1.0 filesrc location=${HOME}/sdk-folder/application-necessities/sound-files/med_system_alerts_melodic_02.TTH.mp3 ! mpegaudioparse ! mad! autoaudiosink

Hi,
I am using yocto image, and i dont have apt to install the packages.
But i have native compiler with image and i tried compiling sources but getting lot of dependency issues.
Is there any way to upgrade the gstreamer-1.0 - 1.10.4 version in yocto sources?
Thanks & regards,
Thiru.

@vsthirunavukkarasu , have you tried the smart project management system of yocto? https://community.nxp.com/docs/DOC-328199
Also what about the basic functionality testing?
$ gst-launch-0.10 audiotestsrc ! autoaudiosink
And playing of mp3
$ gst-launch-1.0 filesrc location=${HOME}/sdk-folder/application-necessities/sound-files/med_system_alerts_melodic_02.TTH.mp3 ! mpegaudioparse ! mad! autoaudiosink

@mradulan,
Thank you so much for your valuable answer,
i run  gst-launch-1.0 command and i got below msg.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
====== BEEP: 4.0.9 build on Dec 27 2017 15:29:51. ======
Core: MP3 decoder Wrapper  build on Mar 21 2014 15:04:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_mp3d_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_MP3D_ARM_02.13.00_CORTEX-A8  build on Apr 10 2014 15:26:15.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
Got EOS from element "pipeline0".
Execution ended after 0:00:06.848453419
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
And the mp3 file is playing perfectly.,
But i'm getting below response from AVS,
After listening mode it is going to idle,
Speaking mode is not working
###########################
Thinking...
###########################
2017-12-29 09:02:28.967 [  6] I InProcessAttachmentReader:readFailed:reason=SDS is closed
########################################
Alexa is currently idle!
########################################
If you have any solution kindly share to me.
Thanks & Regards,
Thiru.

if the playing of mp3 is working perfectly, there are no gstreamer issues. What questions are you trying for it to go to IDLE mode from THINKING mode. Can you try some questions like:

What's the weather outside?
Tell me a joke.
Wikipedia. Lions.


npm start failing

I am trying use the fabric-boilerplate.
I followed your instructions up to the npm start,  but it fails.
The fabric docker instances seem to be running properly:
nagin@rcc-hrl-kvg-558:~/work/src/github.com/fabric-boilerplate$ sudo docker ps
[sudo] password for nagin:
CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                              NAMES
8fbb050f8977        rikmoedt/fabric-peer:0.5-dp         "sh -c 'sleep 5; peer"   25 minutes ago      Up 25 minutes                                          fabricboilerplate_vp1_1
567c1144a10f        rikmoedt/fabric-peer:0.5-dp         "sh -c 'sleep 5; peer"   25 minutes ago      Up 25 minutes       <IP_ADDRESS>:7050-7051->7050-7051/tcp   fabricboilerplate_vp0_1
561b339f7fb7        rikmoedt/fabric-membersrvc:0.5-dp   "membersrvc"             25 minutes ago      Up 25 minutes       <IP_ADDRESS>:7054->7054/tcp             fabricboilerplate_membersrvc_1
However the npm start fails:
nagin@rcc-hrl-kvg-558:~/work/src/github.com/fabric-boilerplate$ sudo npm start

<EMAIL_ADDRESS>start /home/nagin/work/src/github.com/fabric-boilerplate
npm run build-css | npm run watch-css | npm run nodemon

<EMAIL_ADDRESS>nodemon /home/nagin/work/src/github.com/fabric-boilerplate
GOPATH=$(pwd) nodemon ./bin/www

sh: 1: node-sass: not found
sh: 1: node-sass: not found
sh: 1: nodemon: not found
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "nodemon"
npm npmERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! npmerrno ENOENT
There many many npm ERR messages after that.
What do you suggest?
--Ken

have you tried npm install ?

npm install also fails: npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls grpc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/nagin/work/src/github.com/fabric-boilerplate/npm-debug.log

sudo npm install has a different error:  ../src/node/ext/byte_buffer.cc: In function \u2018v8::Localv8::Value grpc::node::MakeFastBuffer(v8::Localv8::Value)\u2019:
../src/node/ext/byte_buffer.cc:100:72: warning: \u2018v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const\u2019 is deprecated (declared at /home/nagin/.node-gyp/7.1.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
Local fastBuffer = bufferConstructor->NewInstance(3, consArgs);
^
CXX(target) Release/obj.target/grpc_node/src/node/ext/call.o
../src/node/ext/call.cc: In static member function \u2018static Nan::NAN_METHOD_RETURN_TYPE grpc::node::Call::New(Nan::NAN_METHOD_ARGS_TYPE)\u2019:
../src/node/ext/call.cc:616:20: error: \u2018class v8::Object\u2019 has no member named \u2018SetHiddenValue\u2019
info.This()->SetHiddenValue(Nan::New("channel_").ToLocalChecked(),
^
../src/node/ext/call.cc:625:19: warning: \u2018v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const\u2019 is deprecated (declared at /home/nagin/.node-gyp/7.1.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
argc, argv);
^
make: *** [Release/obj.target/grpc_node/src/node/ext/call.o] Error 1
make: Leaving directory /home/nagin/work/src/github.com/fabric-boilerplate/node_modules/grpc/build' gyp ERR! build error  gyp ERR! stack Error: make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/nagin/work/src/github.com/fabric-boilerplate/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.19.0-25-generic
gyp ERR! command "/usr/bin/nodejs" "/home/nagin/work/src/github.com/fabric-boilerplate

I'm not sure that this is relevant but the last error is: npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build

What are the versions of node and npm?

$ npm -version
3.10.9
$ nodejs -v
v7.1.0

$ node -v
v6.9.1
$ npm -version
3.10.8
Try installing those versions, I had troubles with nodejs >7

I think a few of these issues could be resolved by updating the version of hfc that is being used.  grpc, which is an hfc dependency, is a real pain to get to build in 0.13.2.   Newer versions of hfc use an updated version of this package.  This demo's hfc version should be bumped to 0.5.4 if the intent is to keep running against v0.5 fabric networks, or 0.6.5 if the demo is going to be used against bluemix or the newer docker compose offering.

Here is the docker-compose offering that I was talking about:
https://github.com/IBM-Blockchain/fabric-images

I will take a look at the hfc and docker-compose next week.  For now this is update do downgrading node and npm: I install node v6.9.1 and npm 3.10.8 but it was not easy since apt-get does not support these versions.
Instead I had to get a tarball for node and use npm to downgrade itself. I add this info since it might
be the source of the problem.  With the version change sudo npm install but unfortunately sudo npm start
fails.
Details are list below:
$tar -xvf node-v6.9.1-linux-x64.tar.xz
copied node to /usr/bin
$sudo npm install -g<EMAIL_ADDRESS>$ sudo npm -v
3.10.8
nagin@rcc-hrl-kvg-558:~/work/src/github.com/fabric-boilerplate$ sudo node -v
v6.9.1
nagin@rcc-hrl-kvg-558:~/work/src/github.com/fabric-boilerplate$ sudo npm install
npm WARN lifecycle<EMAIL_ADDRESS>cannot run in wd %s %s (wd=%s<EMAIL_ADDRESS>nagin@rcc-hrl-kvg-558:~/work/src/github.com/fabric-boilerplate$ npm start

<EMAIL_ADDRESS>start /home/nagin/work/src/github.com/fabric-boilerplate
npm run build-css | npm run watch-css | npm run nodemon

<EMAIL_ADDRESS>nodemon /home/nagin/work/src/github.com/fabric-boilerplate
GOPATH=$(pwd) nodemon ./bin/www

sh: 1: nodemon: not found
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "nodemon"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>nodemon: GOPATH=$(pwd) nodemon ./bin/www
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>nodemon script 'GOPATH=$(pwd) nodemon ./bin/www'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     GOPATH=$(pwd) nodemon ./bin/www
many many error methods follow.

Hi @KennethNagin, some ideas which come out from your logs:

It seems both nodemon and node-sass are not installed. They are dependecies that should be installed globally (npm install -g nodemon node-sass)
Please use a node version < 7.x
Be sure you have all you need to compile native addons with node-gyp
It is possible you would need to change permissions to the folder /usr/local/lib/node_modules in order to give access to your no-root user (sudo chown -R $(whoami) /usr/local/lib/node_modules)
It is a good idea to use hfc 0.5.4. You can checkout the new branch ng1 which contains some additional features (see the complete commit message), updated readme and some fixes (including hfc 0.5.4)

I have the same issue. npm install nodemon fixes it. It looks like nodemon is missing from package.json.

npm install nodemon seems to fix the problem.


nginx: [warn] conflicting server name on <IP_ADDRESS>:443, ignored

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
Hello,
Recently i tried adding SSL to uptime kuma as i've had it on non ssl with a subdomain.
After i did everything, i got an error saying "nginx: [warn] conflicting server name on <IP_ADDRESS>:443, ignored"
Nothing is running on 443 port, and it doesn't work for some reason.
Any fix? I'll put a picture of the configuration file.
📝 Error Message(s) or Log

🐻 Uptime-Kuma Version
1.21.3
💻 Operating System and Arch
Debian 11
🌐 Browser
Google Chrome
🐋 Docker Version
Docker 23.0.6
🟩 NodeJS Version
No response

Do you have other files in nginx/conf.d? Maybe you have a duplicate configuration with the same server_name by accident.

I fixed that issue, but now SSL is still not working, and i have to include ":3001" in order to access the uptime kuma.
What could it then?

Did you just fix it? I think it is fine now.

Fixed the issue, it works now.


Incorrect typechecking

This test should fail typechecking:
func double(a: int[10], b: int[10]) {
  for (let i = 0..9) {
    b[i] := a[i] + a[i];
    b[i] := a[i] + a[i];
  }
}

It doesn't.
EDIT: Fixed in cbe1fcc4dc139a190a130fb505332d48a92a53a1

Same with this:
func foo(a: int[10], x: bool) {
  a[0] = x;
}

Fixed.


Push/Pull: GitHub Token Authentication

Hey @bbest,
On August 13th GitHub implemented a token authentication for remote access (instead of just password protection).  As such, I cannot push/pull from any repo that I am not the owner of.
I was able to follow GitHub's help page for token set up, and can easily generate a new token. However, when I tried to push changes to OCNMS (after getting my JSON authentication to work) I was met with an error message that unfortunately I did not screen grab. Effectively, it just said to set up a personal token using the same link above.
Once I did that, I followed the instructions on this 3rd party's help page to try and set up the token in the repo itself. That has also failed.
.
Perhaps I set up my token incorrectly, but regardless how does creating a token on my end grant me access to a repo that is under your name?

Hi Pike,
That error message suggests that git lost track of where it's supposed to update. You could try editing the configuration of the git repo on your file system:
edit(file=".git/config")

Here's what mine looks like:
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	ignorecase = true
	precomposeunicode = true
[remote "origin"]
	url = https://github.com/noaa-onms/ocnms.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

Note that at some point we moved from marinebon to noaa-onms, which I'm guessing is your issue here.

Issue was resolved in combination with adding:
.git
to
[remote "origin"] 	url = https://github.com/noaa-onms/ocnms
and by following this sequence referenced in Chapter 10 of Happy Git and GitHub for the useR:
library(gitcreds)
gitcreds_set()
gitcreds_get()
#> <gitcreds>
#>   protocol: https
#>   host    : github.com
#>   username: PersonalAccessToken
#>   password: <-- hidden -->
Note: a GitHub PAT was created  in Github by going to:
Settings --> Developer Settings --> Personal access tokens --> Generate new token
*select "repo"
In terminal:
git push to test, though I was prompted to enter my computer's password via key chain access and everything miraculously worked


Fix: Don't download data if exists

What does this PR do?
Fix: Don't download data if exists. Will throw an error if Data exists in the working directory, and there's no internet.
Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests? [not needed for typos/docs]
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

[x] Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

What's blocking this from being merged?

Hello @kaushikb11! Thanks for updating this PR.

In the file flash/core/data/utils.py:

Line 61:1: W293 blank line contains whitespace


update doc about aggregation field in merge task and a null check

for
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/druid-user/J1vbA19BIzw/O7491tscBgAJ

:+1:


container.h:391

Failing to install easysnmp via pip
 easysnmp/interface.c: In function ‘netsnmp_create_session_tunneled’:
    easysnmp/interface.c:1723: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1726: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1728: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1735: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1736: error: ‘netsnmp_transport_config_compare’ undeclared (first use in this function)
    easysnmp/interface.c:1736: error: (Each undeclared identifier is reported only once
    easysnmp/interface.c:1736: error: for each function it appears in.)
    easysnmp/interface.c:1740: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1741: warning: implicit declaration of function ‘netsnmp_transport_create_config’
    easysnmp/interface.c:1742: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast
    /usr/include/net-snmp/library/container.h:391: note: expected ‘const void *’ but argument is of type ‘int’
    easysnmp/interface.c:1745: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1747: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast
    /usr/include/net-snmp/library/container.h:391: note: expected ‘const void *’ but argument is of type ‘int’
    easysnmp/interface.c:1750: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1752: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast
    /usr/include/net-snmp/library/container.h:391: note: expected ‘const void *’ but argument is of type ‘int’
    easysnmp/interface.c:1755: error: ‘SnmpSession’ has no member named ‘transport_configuration’
    easysnmp/interface.c:1757: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast
    /usr/include/net-snmp/library/`container.h:391`: note: expected ‘const void *’ but argument is of type ‘int’
    error: command 'gcc' failed with exit status 1

What OS are you using, which version of Python, and what version of Net-SNMP do you have?

net-snmp 1:5.5-54.el6_7.1
Python 2.6.6

Looks like Net-SNMP 5.5? If so, this package doesn't support that version.

What version do you suggest?

According to the official docs, 5.7.x is suggested for Linux OS. I believe 5.6.x is also supported for OS X.

Well that is a pain. Ok, thanks. Guess I want be able to use easysnmp.
Thanks for the help.


Difference between tests 058 and 060?

060 does not contain any hint as to what is "incorrect".

Ah. It checks for glyph name duplicates, fonttools renames glyphs internally with "#<n>" like [..., "space", "space#1", ...].

alright! I think 060 can be dropped then, as 058 already fulfills that need for checking validity of glyph names and 059 does the same as 060 but stating clearly its purpose.

What about https://github.com/googlefonts/fontbakery/issues/1795?

check/060 was deprecated on FontBakery 0.4.0 (2018-May-16)


Fix Django 1.6 compatibility issues.

Can't see an issue with the current builds — and the patch only adds late imports of module that, as far as I can see, don't have any side effects.
I'll need a reproducible test case on that one :)

My bad, the issue was in our tests (we import factory before configuring Django settings).


7B chat 报错：../aten/src/ATen/native/cuda/IndexKernel.cu:92: operator(): block: [1,0,0], thread: [96,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.

please post your code


Adding notifications on rebalance start

Fixes #155

@vavrusa OK, I think the above solves your problem. If you are using OffsetStash, you want to call MarkOffsets after receiving a RebalanceStart notification within DwellTime. You don't need to call CommitOffsets as it is called automatically by rebalance/release. To confirm, the (updated) reblance process is as follows:

issue a RebalanceStart notification
release subscriptions
wait for DwellTime
commit offsets
re-join consumer group
restart heartbeat
subscribe to partitions
issue a RebalanceOK notification

@dim cool, that works, it's basically the same thing.

Why did you remove the "ConsumerDone"? Again, I understand it doesn't matter in your case when waiting for DwellTime is a few hundred ms, but if the consumers finish processing anywhere between 0 - 30s, it's useful to not block rebalance by waiting for the full DwellTime every time.

@dim "ConsumerDone" may be a more flexible way.

@dim I alos think "ConsumerDone" would be a more flexible way.

@vavrusa good catch, could you please check my latest commit

@dim We've been using it for a while now, can you get this merged? I'd like to upstream https://github.com/vavrusa/sarama-cluster/commit/75f6a7310377cf9f9e132636afb6b40eecaa243b as well when this is merged.


Editor on Mac OS X should support System Find/Replace keyboard commands

As a Mac developer, I expect my editor to support system-wide find/replace commands. I often work from a terminal, select some text, ⌘-E to use for Find, then switch to en editor and ⌘-G to Find Next. This is broken (unimplemented but feels broken) in Code.

At a minimum I would expect to see

Find...
Find Next
Find Previous
Replace
Replace Next
Use Selection For Find
Use Selection For Replace

@joaomoreno @weinand I'm not familiar at all with system-wide find/replace mechanics on OS X.
Is the text to find going to some system specific location? (is it like a clipboard mechanism?) Can this be accessed from electron?

Wow, first time I hear about this, it's very interesting! Found this. I'd label this one upstream.

Or at least allow a configurable set for Mac OS style keyboard shortcuts, so that way people who might use the same tool on both MS and Mac platforms can keep the shortcuts the same in both places.

Seems to be a dupe of https://github.com/Microsoft/vscode/issues/11233


Use TestAuthorization and skip decoding of eip7702 tx

In this PR we have decoded tx bytes to extract AuthorizationList.
a better way would be to use values from json as we are already parsing them, it is needed to cast them to RecoveredAuthorization and test/debug this.

Hi @rakita I am down to attempt this but have some questions:

I can read these tests at alloy-eips: https://github.com/alloy-rs/eips/blob/3136c2883e8d59cd1ac5b004dffb8bc826f0fc03/crates/eip7702/src/auth_list.rs#L302, would you like me to extend it with extracting values directing from json and then assert them?
Or would you like to add new tests in https://github.com/bluealloy/revm/blob/main/crates/primitives/src/eip7702/authorization_list.rs where we parse values from json and test them?

@rakita Awaiting your response, thanks!

We should remove this file: https://github.com/bluealloy/revm/blob/main/bins/revme/src/cmd/statetest/models/eip7702.rs
And use this struck: https://github.com/bluealloy/revm/blob/d38ff452714e1c4a17cf0fbdaa4913f6d61033c4/bins/revme/src/cmd/statetest/models/mod.rs#L139


Idea

I just thought of a really really good idea. There's no tablets to test right now and it's a slow day I might take my lunch break. Really good idea! Ground breaking!

But is it the best idea ever? IDK yet


Question: Entity documents

If you presented yaml entity documents to walf with say something like langchain could waffle create control yaml from input?
If you take the MQTT of common opensource devices such as https://tasmota.github.io/docs/Commands/#control or https://esphome.io/components/light/
I guess all entities and controls of how they have been named could be exported as documents so that a LLM would get [zone] turn the light on
Likely in the documents the Yaml representation of that entity would exist
[zone:lounge
entity:light
name:main light
state:on/off
control:on/off]
]
Its just a general question and ignore if I got the control yaml totally wrong as just an example but I have been wondering if say some of the smaller 7b parameter models such as llama with llama.cpp could be finetuned and if you could provide formatted yaml documents could you train a system to output code as the only entities outside of the LLM's knowledge is the naming those items have.
So if those entities where presented as documents could a LLM return the correct formated yaml?
If it did then you have just solved home-assistants and control wih the like of homeassistant or openhab.

Hi Stuart, I believe the answer is "yes", there could (and should) be yaml for control. I am in the process of rewriting some of the code, and fine-tuning a 7B llm for this task. It should be ready by the end of November and I am going to ping you when it is ready.

Cool there is a great KWS https://github.com/dscripka/openWakeWord that use synthetics to train and is super easy.
Wenet deliberately go back to n-gram LM type moels of ASR to make command sentence detection more accurate.
https://wenet.org.cn/wenet/lm.html
https://wenet.org.cn/wenet/context.html
LLama & Waf feeding openhab would be exceptionally cool :)


[Bug] version 0.13.0 writes to STDERR breaking build pipelines

Describe the bug
As of version 0.13.0 of azure-devops a message is written to STDERR for every command that is executed. As a result I had to change all of our build scripts to redirect STDERR to /dev/null whenever executing any of these commands.
For example just
To Reproduce
Azure-Devops extension version:
azure-cli                         2.0.74
command-modules-nspkg              2.0.3
core                              2.0.74
nspkg                              3.0.4
telemetry                          1.0.3

Extensions:
azure-devops                      0.13.0
interactive                        0.4.3

Steps to reproduce the behavior:
az pipelines list --organization https://dev.azure.com/ME/ --project "TEST" --query "[].{name: name, id: id}"

Expected behavior
Provide a list of projects with nothing written to STDERR

Thanks for reporting the issue.
Looks like this is due to the new Preview feature in Azure-CLI which we included in this release to mark the commands as preview. This should be happening only for preview commands.
Will take a look at it on priority.

@aweiker While I am following up with the Knack/Azure-CLI teams for the behavior, it looks correct to me that a preview command sends out a warning that it might change. It is on the author of the script to allow warnings if some one intentionally wants to use the preview functionality.
Script should fail/pass depending on the exit code rather than stderr. Fail on stderr is more like treat warning as error which you cannot if you are using a preview command in Azure-CLI.
Powershell Task in Azure-Pipelines-

@aweiker The Knack/Azure-CLI team came back with the same response as I suggested above. I see there are already issues filed there for other commands.
Since this behaviour is consistent with the Azure-CLI framework, I am closing this issue.
Feel free to follow up here or on Azure-CLI issue if you have some feedback.


base image: ubi8 to ubi9

For RHAOS 4.14 we should rebase on ubi9 for binary artifacts

I'm not sure the change is properly exercised because we discovered that failures in the internal lanes are silently skipped (#653)
Nevertheless, this change is correct and
fixes #660

/approve
/lgtm


Game Suggestion: NOT pixel

Bot Name (required):
NOT pixel
Bot Handle (required):
They say you can only join by referral, so I'm posting the link. https://t.me/notpixel/app?startapp=f6506558140
Reason for Inclusion:
Hi Phil! This is a project from the creators of the famous notcoin. The creators of notcoin officially in their social networks promised that for this project will be the biggest airdrop this year. Airdrop is scheduled for November, that is very soon.
The essence of the project that for a certain interval of time you need to taping at random in the picture painting a pixel, a certain number of attempts is given (in the beginning 6). For each pixel are accrued tokens PX - they will be converted into airdrop then. After all presses are used, after a recovery interval (6 minutes by default) they will be available again. Also in the boosts section is available tokens claim every minute
It is very desirable to automate this project, because the creators have already shown what they are capable of + very soon airdrop speaks in favor of the fact that they will fulfill their promises.

https://github.com/vanhbakaa/Notpixel-bot

Thanks,
This looks fun, I need to wrap my head around what needs to be done to automate it, but I think something can be done.

Thanks,
This looks fun, I need to wrap my head around what needs to be done to automate it, but I think something can be done.

You need to simulate a random tap on the screen and after that claim a pixel. And also in the boosts section the usual claim button as in other miniapps.

https://github.com/vanhbakaa/Notpixel-bot

Can this be implemented in Phil's bot?

Thanks,
This looks fun, I need to wrap my head around what needs to be done to automate it, but I think something can be done.

Good afternoon. Do you plan to realize this game? After all, it is very promising and limited on the time of mining, as the developers say in November everything will end. So I would like to see this game in your scripts, very much.

Hi @mi7f,
Unfortunately their anti-bot detection is currently blocking any progress on adding this game.

Hi @mi7f,
Unfortunately, their anti-bot detection is currently blocking any progress on adding this game.

Maybe implement a ready-made solution? Here above a man threw the source code, which according to him works:
https://github.com/vanhbakaa/Notpixel-bot

Hi @mi7f,
Unfortunately, their anti-bot detection is currently blocking any progress on adding this game.

Hi Phil!!! Is there any possibility to work with the portable version instead of the web? There is no antibot block there.

Hi @farmdigit!
We use Selenium primarily to handle interactions with Telegram through the web version, which allows us to automate tasks within a browser. Selenium supports a variety of browsers like Chrome, Firefox, Edge, and others, making it versatile for this kind of automation.
However, Selenium is designed to work with web browsers and not external desktop applications, including the portable version of Telegram. For interacting with the Telegram desktop client, it would need a different approach.
Hope this helps clarify things!


Localization

Hi,
Just wanted to know if you are planning to add localization to this package so it can manage several languages. Otherwise that is something that I could do when I have some free time.
Thanks!

@carmilso that sounds good to me if you want to add it, what kind of localization are you looking for? so the software itself is in multiple languages or there is an issue with the parser?

@carmilso that sounds good to me if you want to add it, what kind of localization are you looking for? so the software itself is in multiple languages or there is an issue with the parser?

Yes, I was talking about having it in multiple languages. So for example my system is in spanish and gcalcli itself is already giving me information in spanish, so it would be nice if we could add this feature to nextmeeting.
I will start working on this through a PR as soon as possible.
Btw thanks for the work, it's awesome to have gcalcli integrated in waybar.


Inconsistent and often changing link behavior when clicked

Browser native functionality (at least Chromium based and FF) has the following behavior for clicking a web link:

Button
Behavior

left
open up link in current tab

middle
open up link in a new background tab

right
open up the context menu, doesn't open the link from click itself

In silver bullet, I've noticed that these link types often change between version and often don't hold consistent behavior with each other:

wikilinks
external links
links rendered through live queries/templates

Currently (based on running the app locally on the latest commit to main) it appears that external links (not within a live query) are no longer behaving correctly.
Specifically, the behavior is:

Button
Behavior

left
open up link in a focused new tab (this may be desirable? however external links rendered in a live template have native functionality)

middle
moves the text cursor into the link and pastes (at least on linux, this doesn't occur in previous versions)

right
open up the link context menu if the cursor hasn't expanded the markdown, otherwise opens up a non-link context menu

This issue currently is mainly to address the external link behavior. That said, it would be nice to have tests that could pick up these changes as various versions often are all over the place with how links respond to the mouse.

Should be noted that adding contenteditable = false to the link plugin will fix the unexpanded middle click behavior of external links

Thanks for reporting! I tweaked/fixed some of this already on my development branch (which I'll merge in the next few days). Let's review again once that's in.

Ok, I don't have a middle mouse button to try with, but the other reported issues should be fixed. Let me know if you still encounter issues!


Logs aren't sent before process exits

When I was testing sending data programmatically in a process without a listener the last logs never arrived to Loki.
If I'm not mistaken - in Node.js the behaviour is that the process exits after there's no more event listeners, port listeners or interval/timeouts.
The fact that a process can exit without sending logs is fairly critical as it may also mean that any fatal errors won't be logged.

Thanks for the feedback. Could you please provide a reproduction? I don't seem to have any problems on my end

Fixed with 2.1.0 🙂 Sorry for taking so long
Feel free to reopen if issue persist


Usage of negative indexes in R.update/adjust

I'm confused about some behaviour in R.update (and R.adjust by proxy). My expectation is that if a negative index were passed as the index to either of these functions, the original list would be returned (since the given index is undefined). For reference this is how I stumbled on this:

However, I understand from looking at the documentation and the test for R.adjust that -1 is being used as a shorthand for 'last item in list', -2 as 'second to last', etc. I'm not super familiar with this behaviour, but it seems like something fairly Python/Ruby-esque, whereas by default in JS array[-n] returns undefined. R.findIndex seems to follow this paradigm, since it returns -1 if an index is not found, but for whatever reason the logic is different for R.update/adjust.
Can I ask what the reasoning is here? An FP pattern I'm not familiar with? And (more pertinently) is there a 'safer' option in Ramda for only replacing existing items in an array, or is this a case where I should just be rolling my own check before applying these functions?
Thanks a lot!

Sorry for the slow response.  I've been away from Ramda for some time.
This is not an FP pattern.  It is something used in parts of JS ([1, 2, 3, 4, 5, 6].slice(1, -1) //=> [2, 3, 4, 5]).  I think it was a mistake to include it in Ramda, as it does not match our notion of simplicity.  But it also would not be so easy to remove -- a backward compatibility break that we don't like to encourage.
But if you have a particular suggestion along these lines, I'm all ears.

No worries at all, thank you for the insight! I'd forgotten that slice's end param can take a negative index. I feel like it makes more sense in that context, but I also agree with you that changing this behaviour would be a big breaking change for anyone relying on the current implementation.
I'll have a think on this and let you know if something comes to mind, though I'm sure there are smarter folks out there who could beat me to it. ;)

For updating an array, since you are already iterating over it to find the index, why not replace the object when you find it:
const d = [ { id: 1, content: 'one' }
          , { id: 2, content: 'two' }
          , { id: 3, content: 'three' }]

const replaceWithID = id => R.map(
  R.ifElse(
    R.propEq('id', id),
    old => ({ id: 4, content: 'four', oldState: old }),
    R.identity,
  ),
)
const replaceWithID4 = replaceWithID(4)
const replaceWithID2 = replaceWithID(2)

console.log(replaceWithID4(d))
console.log(replaceWithID2(d))

console.log(replaceWithID4(d))
// => [{"id":1,"content":"one"},{"id":2,"content":"two"},{"id":3,"content":"three"}]
console.log(replaceWithID2(d))
/**
 * [
 *   {"id":1,"content":"one"},
 *   {"id":4,"content":"four","oldState":{"id":2,"content":"two"}},
 *   {"id":3,"content":"three"}
 * ]
 */

In my case the logic is being handled in a Redux reducer, so I ended up with this:
  function updateAttempt({ id, ...payload }) {
    const attemptId = R.propEq('id', id)
    const attemptIdx = R.findIndex(attemptId, state.attempts)
    const updatedAttempt = R.mergeRight(R.find(attemptId, state.attempts), { id, ...payload })
    return attemptIdx < 0 ? state : R.mergeRight(
      state,
      {
        attempts: R.update(
          attemptIdx,
          updatedAttempt,
          state.attempts
        )
      }
    )
  }


chore(script): Remove hardcoded cache

The --lru_mb was renamed, but it is not needed. Dgraph can handle the size of RAM needed for cache.
fix #35

This change is

the install script can take these as parameters at runtime in interactive mode

Not sure what you mean. Interactive mode?


SVT-AV1: run single-threaded by default

This updates svt-av1 to always run single threaded.

@tdaede Thanks, let me know when you add the missing svt-avt directory to all the servers and I'll try another run.

I just tried one, the actual binaries are failing now. looking at it.

@tdaede, wondering if you have any update on this?

The command line seems to work locally for me.
./Bin/Release/SvtAv1EncApp -i ~/Desktop/nyan.yuv -enc-mode 0 -lp 1 -q 24 -o out.yuv -b out.ivf -w 480 -h 304 -intra-period 100

@kylophone got it working on beta.arewecompressedyet.com now. Turned out to be library path issues, easy fix.

@kylophone got it working on beta.arewecompressedyet.com now. Turned out to be library path issues, easy fix.

Ah, great. Thanks!


Bring back repl command

There are quite a few useful things you can do with the repl, particularly with regards to utilities like formatting NEAR and getting public keys from private keys.
Would be great to undelete that command if it's possible

@mikedotexe what do you think of this:
near convert --yocto <number>

# Yocto: <> NEAR: <>

near convert --near <float>

# Yocto: <> NEAR <>

near convert --privateKey <>

# Public:
# Private:
# Phrase

near convert --secretKey <>

# Public:
# Private:
# Phrase


master - general updates including strict mode

the before-mentioned strict mode plus general updates to 2.6 and fresh bundle and whatnot

Thank you.


Drop the YAML linting

… but only if we don't have any YAML files anymore after dropping DDEV in #20.

We have YAML files in .github/. So the YAML linting should stay.


New Error with 5.2.20

Ensemble Error back with 5.2.20:
Device: <IP_ADDRESS> Envoy-IQ, update Device state error: TypeError: Cannot read property '' of undefined
at envoyDevice.updateDeviceState (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3966:93)

Also exists in 5.2.18 but OK in 5.2.16.

Try 5.2.21

Looks good again. Thank you!


Covalent programmatic start hangs in Google Colab notebook

@araghukas just checked this in google colab with latest pre-release, does not seem to be working 👀
Originally posted by @santoshkumarradha in https://github.com/AgnostiqHQ/covalent/issues/1854#issuecomment-1869137210

Tried this in the default Google Colab notebook after installing covalent with !pip install --upgrade --pre covalent (Python 3.10, Covalent 0.233.1rc0)

All of !covalent start, !covalent start --no-cluster, and ct.covalent_start() do indeed hang

Nothing helpful in the logs, unfortunately
!covalent start -d > /dev/null & tail -f ~/.cache/covalent/covalent_ui.log

[2024-01-05 03:26:59,907] [INFO] Will watch for changes in these directories: ['/usr/local/lib/python3.10/dist-packages/covalent_ui']
[2024-01-05 03:26:59,909] [INFO] Uvicorn running on http://localhost:48008/ (Press CTRL+C to quit)
[2024-01-05 03:26:59,910] [INFO] Started reloader process [8862] using WatchFiles
[2024-01-05 03:27:06,227] [INFO] Started server process [8956]
[2024-01-05 03:27:06,227] [INFO] Waiting for application startup.
[2024-01-05 03:27:06,228] [DEBUG] runner_ng.py: Line 348 in _listen_for_job_events: Starting event listener
[2024-01-05 03:27:06,228] [DEBUG] dispatcher.py: Line 498 in _node_event_listener: Starting event listener
[2024-01-05 03:27:06,228] [INFO] Application startup complete.
[2024-01-05 03:27:07,003] [INFO] <IP_ADDRESS>:44228 - "GET / HTTP/1.1" 200

(logs hang at this point.)
for comparison, I tried the above on my laptop as well:
$ covalent start -d > /dev/null & tail -f ~/.cache/covalent/covalent_ui.log

[2024-01-05 03:29:37,189] [INFO] Will watch for changes in these directories: ['/Users/araghukas/miniconda3/envs/funcserve/lib/python3.9/site-packages/covalent_ui']
[2024-01-05 03:29:37,192] [INFO] Uvicorn running on http://localhost:48008 (Press CTRL+C to quit)
[2024-01-05 03:29:37,192] [INFO] Started reloader process [93693] using WatchFiles
[2024-01-05 03:29:39,073] [INFO] Started server process [93713]
[2024-01-05 03:29:39,073] [INFO] Waiting for application startup.
[2024-01-05 03:29:39,074] [DEBUG] runner_ng.py: Line 348 in _listen_for_job_events: Starting event listener
[2024-01-05 03:29:39,074] [DEBUG] dispatcher.py: Line 498 in _node_event_listener: Starting event listener
[2024-01-05 03:29:39,074] [INFO] Application startup complete.
[2024-01-05 03:29:39,967] [INFO] <IP_ADDRESS>:57296 - "GET / HTTP/1.1" 200
[1]  + 93689 done       covalent start -d > /dev/null
[2024-01-05 03:29:40,483] [DEBUG] = connection is CONNECTING
[2024-01-05 03:29:40,484] [DEBUG] < GET /socket.io/?EIO=4&transport=websocket HTTP/1.1
[2024-01-05 03:29:40,484] [DEBUG] < host: localhost:48008
[2024-01-05 03:29:40,484] [DEBUG] < connection: Upgrade
[2024-01-05 03:29:40,484] [DEBUG] < pragma: no-cache
[2024-01-05 03:29:40,484] [DEBUG] < cache-control: no-cache
...

other notes:

installing covalent updates the notebook kernel's Pydantic version from pydantic==1.10.13
because of above, need to restart notebook kernel for import covalent as ct to work (else pydantic errors)
not unexpected, but the CLI commands status, config, stop and purge do work, however


Is there any way to switch modifiers?

With the V1, I could just, for instance
capslock = leftmeta
leftmeta = capslock
However, with the V2, I need a separate layer and I would have to define every possible keybind, and that seems exhausting, is there anything I'm missing?
Thank you

You want
capslock = layer(meta)
leftmeta = capslock

The syntax has changed since v1 but most things should be just as easy. I encourage you to reread the man page and changelog.


Custom render for images ( villain-render )

Currently villain uses Openseadragon to render and control the zoom, pan and navigation of images, but is kind of outdated and there is notwebgl support, also is overkill to have since is used primarly for high-resolution zoomable images.
Possible solution
https://www.pixijs.com/
https://github.com/inlet/react-pixi
See: Use webgl #238

v2.0.0 allows to use any render


Check GitHub issue status and show namespace approval

Check GitHub issue status and show approval status in release planner.
If Approval is completed, then we should show inform user to update the package name in tspconfig.yaml and show documentation.
If approval is pending then we should ask user to get namespace approval


chore(learn): audit files for crowdin

Checklist:

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #XXXXX

Audits the challenge text in the Responsive Web Design superblock to account for words/phrases that should not be translated because they refer to code.
Signed-off-by: nhcarrigan<EMAIL_ADDRESS>

@nhcarrigan I am fine with these changes.  @ojeytonwilliams What do you think about the acronym suggestion by @nhcarrigan.  I think that might be a good idea.

@nhcarrigan I am fine with these changes.  @ojeytonwilliams What do you think about the acronym suggestion by @nhcarrigan.  I think that might be a good idea.

One other issue is that, if I understand the Crowdin flow correctly, changing these challenges will require re-translation/proofreading.  Since we're making a big push to get the first two Certs done quickly, it might best to hold off syncing these changes with Crowdin until that's done.

One other issue is that, if I understand the Crowdin flow correctly, changing these challenges will require re-translation/proofreading.  Since we're making a big push to get the first two Certs done quickly, it might best to hold off syncing these changes with Crowdin until that's done.

Yes, this will require the modified strings to be re-translated and approved - however, the fixes in this PR are intentionally done to address some concerns we've run in to with our first translation sprint.

Yes, this will require the modified strings to be re-translated and approved - however, the fixes in this PR are intentionally done to address some concerns we've run in to with our first translation sprint.

however, the fixes in this PR are intentionally done to address some concerns we've run in to with our first translation sprint.

Understood.  Was the issue just that a few things that really should have been wrapped in code tags in the English were not?  If so, cool, I'm entirely on board.  Nice work collating all these, by the way.

however, the fixes in this PR are intentionally done to address some concerns we've run in to with our first translation sprint.

Understood.  Was the issue just that a few things that really should have been wrapped in code tags in the English were not?  If so, cool, I'm entirely on board.  Nice work collating all these, by the way.

Yeah - a lot of instances where "this is wrapped in quotes but refers to content within the code so should we translate it?"

Yeah - a lot of instances where "this is wrapped in quotes but refers to content within the code so should we translate it?"

@nhcarrigan Thank you for your detailed work here! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


Wireframe meshes

Hello,
I think it would be valuable if one could toggle on/off wireframe rendering for markers displayed in RViz.
It can be done easily through the OGRE material.
It is useful for debugging geometry but also for creating schematic images.
Best,
Daniel

Please note that rviz for ROS1 isn't actively developed anymore. New features are accepted only if provided by the community.
In this vein, I am looking forward to your PR :wink:
How would you like to toggle wireframe rendering? Globally, for individual marker displays, or for individual markers?
What should be the GUI interface for this?

Thanks for the response!
I was hoping to find it in some display panel as a global control. But it is also nice with meshes :)
I won't promise to, but maybe I'll have a look if it can be added trivially some day. Or maybe my group will finally move to ROS2 before.


feat:add job-class kwarg to rqworker

Fixes #159

@cunla I have added both a test for when --job-class is used and for when it's not used, ensuring proper behavior for both current django-tasks-scheduler users and also for those coming from django-rq-scheduler.
Would you like me to follow a different approach? like allowing any Job type, as a responsibility of the user?
In my case, I updated my CustomJob to inherit from JobExecution instead of rq.job.Job.

@cunla please let me know if I can be of help.
Thanks!!


Add fallback support for when cURL multi is not available

Fixes #16.

It turns out that even when cURL is installed, the curl_multi_init() function may be disabled on some hosts who are seeking to guard against DDoS attacks. See https://github.com/ampproject/amp-wp/pull/2183#issuecomment-491506514.

This PR modifies FasterImage::batch() to check if cURL multi is available, and if not, it falls back to doing plain curl_init() calls to obtain the images sequentially.

@willwashburn Are unit tests not working?

I ran the unit tests locally and they are working when $has_curl_multi is manually set to false per above.

If you'd like to add me as a pusher to the repo that would be great. Hopefully that would also cause Circle to get triggered.

Ah, Circle is now running the tests from my PR. It may be that I had to be added as a contributor first.

@willwashburn Circle is failing with apparently due to the update of PHPUnit from v4 to v6. Perhaps a Composer cache problem?

@willwashburn could you please try the “Rebuild without cache”?

(I would but there are auth issues for me with GitHub and Circle.)

@westonruter I tried rerunning without the cache but doesn't even seem to be getting there. I think if you make another commit it might actually run (circle is weird)

(I had to also push the commit to a branch on the target repo in order to trigger the build.)

Closing in favor of #18.


Unable to use bower to download the file

I had to manually download the javascript file to use it. If the dependency can be downloaded via bower and managed with the version number that would be great.

Should be good now.  Thanks for bringing it up:
bower install ng-cordova-beacon

Best,


Dockerize go-fmt

It would be helpful to new engineers to dockerize go-fmt Make target and make it runnable with make fmt. This would require a very light-weight Go image with this installed:
go install mvdan.cc/gofumpt@latest

We should be able to run this with docker compose. Also update the docs/CONFIGURATION.md file to remove this required dependency.

@gauravgahlot You're assigned

@prestonvasquez please close the issue has it been fixed


added a fix for https-jwt test

Please provide a description of this PR:

Updated the jwt-server deployment by adding the readiness probe.

cc : @yangminzhu


Drop support for Maven 3.6.2 or older

Due to MNG-6173 MavenSession.getAllProjects() should return all projects in the reactor, disableSelectedProjectsHandling=true does not work with Maven 3.3.1-3.3.9. This was spotted here: https://github.com/gitflow-incremental-builder/gitflow-incremental-builder/pull/321#issuecomment-793596425
Another but more "cosmetic" problem (even without disableSelectedProjectsHandling) is that on such a Maven version, GIB will report a changed module that has not been selected as not being part of the reactor (except reporting it as de-selected).
Furthermore, Maven 3.3.9 was released 6 years ago.
TODOs:

remove from CI
revisit the changes made in https://github.com/gitflow-incremental-builder/gitflow-incremental-builder/commit/90a05ea954172c9a46cf78d973750f7711882117
adjust README

PS: The breaking-change label looks more scary than this change will likely be. GIB should still be able to run on 3.3.9, but there are no guarantees anymore from this point.

#460 had to drop support for 3.5-3.6.2 as well due to https://issues.apache.org/jira/browse/MNG-6580


[build/conda] Make python versions configurable

It's currently hard-coded here:
https://github.com/energy-quants/.github/blob/d056c050947dd482ce2a4d78013b14b7f8ab765b/.github/workflows/build-conda.yml#L158


Joint Foundation Bootstrap Team Meeting 2018-11-26

Time
UTC Mon 26-Nov-2018 14:00 (02:00 PM):

Timezone
Date/Time

US / Pacific
Mon 26-Nov-2018 06:00 (06:00 AM)

US / Mountain
Mon 26-Nov-2018 07:00 (07:00 AM)

US / Central
Mon 26-Nov-2018 08:00 (08:00 AM)

US / Eastern
Mon 26-Nov-2018 09:00 (09:00 AM)

London
Mon 26-Nov-2018 14:00 (02:00 PM)

Amsterdam
Mon 26-Nov-2018 15:00 (03:00 PM)

Moscow
Mon 26-Nov-2018 17:00 (05:00 PM)

Chennai
Mon 26-Nov-2018 19:30 (07:30 PM)

Hangzhou
Mon 26-Nov-2018 22:00 (10:00 PM)

Tokyo
Mon 26-Nov-2018 23:00 (11:00 PM)

Sydney
Tue 27-Nov-2018 01:00 (01:00 AM)

Or in your local time:

http://www.timeanddate.com/worldclock/fixedtime.html?msg=Node.js+Foundation+Bootstrap Team+Meeting+2018-11-26&iso=20181126T14
or http://www.wolframalpha.com/input/?i=02PM+UTC%2C+Nov+26%2C+2018+in+local+time

Links

Minutes Google Doc: https://docs.google.com/document/d/14UdfVQRda-W0e3HfIShymLfrkohQfhfKmleQbG9jHnk/edit?usp=sharing
Previous Minutes Google Doc: https://docs.google.com/document/d/15fbbXmeVVi4dqWLZPCvLOMlE0K4dUoRak7olr_ARAKw/edit

Agenda
Extracted from bootstrap-agenda labelled issues and pull requests from the nodejs org prior to the meeting.
Update on Progress (15 minutes)

chore: Update README.md with repo description and jargon definitions. #40

5 minute timebox

doc: initial version of CPC Charter #48

5 minute timebox
build context and revisit in larger conversation later in meeting

[WIP] PROJECT PROGRESSION #45

5 minute timebox
build context and revisit in larger conversation later in meeting

Discussion (40 minute timebox)

EXPECTATIONS stage 0 #41

15 minute timebox

Drafting initial governance for merged foundation #33

25 minute timebox
Refs:

What does C3 look like? #38
What does the CPC look like? #37
[WIP] PROJECT PROGRESSION #45
doc: initial version of CPC Charter #48

Invited

Node.js Members: @nodejs/members
JSF Project Maintainers
JSF TAC
Node.js Foundation Board of Directors
JSF Board of Directors

Notes
The agenda comes from issues labelled with bootstrap-agenda across all of the repositories in the nodejs org. Please label any additional issues that should be on the agenda before the meeting starts.
Joining the meeting

link for participants: https://zoom.us/j/779273015
For those who just want to watch: https://www.youtube.com/c/nodejs+foundation/live

Great meeting... PR opened for notes https://github.com/nodejs/bootstrap/pull/50


Undocumented breaking change in v20170423: missing externs?

Reported in
https://github.com/alexeagle/closure-compiler-angular-bundling/issues/30#issuecomment-300364464:
Upgrading from v20170409 to v20170423 breaks my program:
node_modules/@angular/core/@angular/core.js:5607: ERROR - variable System is undeclared
        return System.import(module)
               ^^^^^^

node_modules/@angular/platform-browser/@angular/platform-browser.js:3091: ERROR - variable Hammer is undeclared
        const /** @type {?} */ mc = new Hammer(element);
                                        ^^^^^^

node_modules/moment/moment.js:8: ERROR - variable module is undeclared
    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
                                          ^^^^^^

node_modules/moment/moment.js:9: ERROR - variable define is undeclared
    typeof define === 'function' && define.amd ? define(factory) :
           ^^^^^^

node_modules/moment/moment.js:399: ERROR - variable require is undeclared
                require('./locale/' + name);
                ^^^^^^^

node_modules/rxjs/util/root.js:8: ERROR - variable global is undeclared
else if (typeof global == 'object' && global.global === global) {
                ^^^^^^

Possibly related to #2480

As far as I can tell we don't have any externs for System.import so that should have failed before, at least that first error. Maybe the default level (error/warning/off) of something changed.

In the changelog:

Support compilation of programs with missing definitions.

What's that? I'm not familiar with that change.

I think that's referring to https://github.com/google/closure-compiler/commit/697e52a631df6abe5a4106307e5db2ccb94c19bb by @mprobst

So I'm wondering if that change assumed that unknown types were already being warned. Git bisect would tell us for sure - I just don't have time to run it this week.

My change was tested quite a bit against the Google-internal code base. AFAICT it should not cause these kinds of errors (then again, you never quite know...).

FWIW, using the previous working version of the compiler none of these appeared in the warnings.
https://circleci.com/gh/alexeagle/closure-compiler-angular-bundling/83 is a build with the warnings enabled.

the same problem still persists with v20170521.
the latest https://github.com/angular/closure-demo does not compile with closure giving same output as v20170423:
node_modules/@angular/core/@angular/core.js:5447: ERROR - variable System is undeclared
        return System.import(module)
               ^^^^^^

node_modules/@angular/platform-browser/@angular/platform-browser.js:3096: ERROR - variable Hammer is undeclared
        const /** @type {?} */ mc = new Hammer(element);
                                        ^^^^^^

node_modules/rxjs/util/root.js:8: ERROR - variable global is undeclared
var __global = typeof global !== 'undefined' && global;
                      ^^^^^^

Someone will probably need to do a 'git bisect' and find which commit broke this.

It's definitely clear that addition checks were turned on for specific flag combinations, but I've seen nothing to say that the warnings are wrong.

when symbols check is disabled it works with the newest releases of the compiler.
https://github.com/google/closure-compiler/commit/4c7aaa8a86b1bf4d40ac6c78139394797e88b3b3

Thanks for tracking this down @erdemapaydin !
@MatrixFrog is the right fix to add these to the standard externs?

What would we be adding? If it's just System.import and global I believe those are both part of the standard (or will be soon) so that sounds good.

global is part of the standard. That needs added as const global = window in the browser environment externs (not the language externs - at least until we fix the compiler).
System.import is NOT a standard. It won't be added in the future either. That should be a custom export.
module and define are both custom externs and not part of the browser environment. They would need to be custom externs. Defining the module extern will break the common JS rewriting.

Yeah its still a problem..

The issue you're replying to is still open, but it references issues elsewhere that are themselves closed.
My understanding of the issue is that some Angular code contains references to undeclared symbols. The fix is to provide externs definitions for those symbols.
None of the symbols are part of an ECMAScript or browser spec, so we can't add them to the standard externs. (Incidentally, there's a stage 3 proposal to add globalThis.)
I don't think there's anything to do on the compiler side, so I'm going to close this issue. Feel free to reopen if I'm mistaken.


a user complained that it didn't work on their phone

Also, it doesn't work on mobile - which is where I tried it first.

me:

First I've heard of this. Can you let me know the phone, phone version, browser, and browser version?

more details:

I am using an iPhone in portrait mode…the problem is the buttons are too big, not responsive, and are pushing the text/input boxes off the screen. Hope this helps!

Earlier today I shrunk the buttons, so maybe it is already fixed?


Charts[Node]: Use latest hedera-explorer release

Feature to Enhance
We need to use latest chart from: https://github.com/hashgraph/hedera-mirror-node-explorer/tree/main/chart
Requested Enhancement
Currently we store a copy of hedera-mirror-node-explorer. We need to check if there is a latest release or not since it appears to throw some errors when loaded from FST deployment
Business Need
We need to be able to view all transactions in the deployed FST network
Additional Context

[ ] depends on https://github.com/hashgraph/full-stack-testing/issues/675

Closing, because we are going to remove the sub-chart and deploy externally.
see:

https://github.com/hashgraph/solo/issues/617
https://github.com/hashgraph/full-stack-testing/issues/974


failure in initialization

Getting this syntax error upon brew bundle :
Error: (eval):47: syntax error, unexpected tIDENTIFIER, expecting end-of-input
Please report this bug:
    https://github.com/Homebrew/homebrew-bundle/issues/
/usr/local/Library/Taps/homebrew/homebrew-bundle/lib/bundle/dsl.rb:29:in `instance_eval'
/usr/local/Library/Taps/homebrew/homebrew-bundle/lib/bundle/dsl.rb:29:in `process'
/usr/local/Library/Taps/homebrew/homebrew-bundle/lib/bundle/dsl.rb:21:in `initialize'
/usr/local/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/install.rb:4:in `new'
/usr/local/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/install.rb:4:in `run'
/usr/local/Library/Taps/homebrew/homebrew-bundle/cmd/brew-bundle.rb:72:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/Homebrew/brew.rb:19:in `require?'
/usr/local/Library/Homebrew/brew.rb:90:in `<main>'

I'm sure I'm missing something simple, any ideas?

Please paste your Brewfile in here, thanks!

https://github.com/mindyor/dotfiles/blob/master/osx/Brewfile

cask 1password on line 47 is invalid syntax. Fixing that will fix this.

Oh, that was silly. Thank you
On Aug 19, 2016 10:40 AM, "Mike McQuaid"<EMAIL_ADDRESS>wrote:

Closed #195 https://github.com/Homebrew/homebrew-bundle/issues/195.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Homebrew/homebrew-bundle/issues/195#event-761570052,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADU_DcN2d8J5PghdobtULU8LhzjVm3g8ks5qheqEgaJpZM4JoBWq
.


Add an official twitter account?

If we tweeted out confirmed alerts from an MBTA Ninja twitter, that could raise a lot of awareness. (More than just constantly tweeting "use MBTA Ninja!")
We could also just try to integrate with the MBTA Alerts twitter as discussed yesterday.
Or we could do both.

We should probably do both.
Added our account. Credentials to be shared in person :)
https://twitter.com/mbta_ninja


Create a template for new plugins

...that new developers would just extends while providing "menu path", "description", "key shortcut" and "some callable"

@xulman volunteers to provide it

Closed with https://github.com/mastodon-sc/mastodon-plugin-example


Vectorize a string slice at compile time ?

Hey, thanks a lot for your work!
I adapted your CSV example to this:
const TEST: &str = env!("TEST");

static PARSED: [&str; 2] = iter::collect_const!(&str =>
    string::split(TEST, ","),
        map(string::trim),
);

Unfortunately the Rust compiler doesn't let me compile the code if there are not exactly 4 delimiters in the TEST environment variable. I looked at the documentation and didn't find anything that would allow me to use any size without having to change the source code.
I'm pretty new to Rust and I'm not even sure what I'm asking for is possible, but I imagined one of the two things:

Convert the slice to a vector using some macro magic:

static PARSED: Vec<&str> = konst::vectorize!(iter::collect_const!(&str =>
    string::split(TEST, ","),
        map(string::trim),
));

Be able to count occurrences of a character:

static ENTRIES_COUNT = iter::count_const!(TEST, ',');
static PARSED: [&str; ENTRIES_COUNT] = iter::collect_const!(&str =>
    string::split(TEST, ","),
        map(string::trim),
);

I'm pretty sure there are better solutions than this (if any), this is just to illustrate my need.
Let me know what you think!

I came up with a build.rs script which computes the size and put it in a new environment variable:
static ENTRIES_COUNT = unwrap_ctx!(parse_usize(env!("ENTRIES_COUNT")));
static PARSED: [&str; ENTRIES_COUNT] = iter::collect_const!(&str =>
    string::split(TEST, ","),
        map(string::trim),
);

This is not ideal, but it works

While you can't collect into an array of unknown size, you can collect into a slice, then use try_into_array to convert it to an array.
use ::konst::{iter, slice, string, unwrap_ctx};

const TEST: &str = "foo, bar , baz,qux ";

const PARSED_SLICE: &[&str] = &iter::collect_const!(&str =>
    string::split(TEST, ","),
        map(string::trim),
);

static PARSED_ARRAY: [&str; PARSED_SLICE.len()] = *unwrap_ctx!(slice::try_into_array(PARSED_SLICE));

fn main() {
    println!("{PARSED_ARRAY:?}");
}

Works like a charm, thanks a lot !
Don't you think it would still make sense to provide a helper function/macro to do this ? I feel like it's a lot of boilerplate for something as simple


Squares change height when dpi is not default

If I decrease the dpi, their height also decreases, if I increase it, their height also increase. They should stay as squares.

Screenshots (middle one is with default dpi)

Yep, has been on my to-do list for a while now, especially because on bigger screens like foldables or tablets it looks a bit off.
Thank you

Should be corrected in Version 0.7.1.
Can you double check?


bump

Description
Changes proposed in this pull request:

encode/decode button in form,
checkboxes
...

Related issue(s)

/retest


didn't find module disjoint_sets

Hi, Avikalp
Thank you for sharing your great work~ I'm intended to use your model to judge the quality of advertisement poster, which in my opinion is similar to your work.
Here's my problem, when I follow the instruction in README to run selected_feature.py, it reports-----
ImportError: No module named disjoint_sets , and I can't use ' pip install disjoint_sets ' to solve this problem, so may I ask if there's any file missed ?
Besides, since you have train your model on the dataset, may I have your pre-trained model to test my data? And have you tested your model on some general dataset, like AVA or AADB?

Hi, Avikalp:
I meet the same question when I try to implement your code to my data. I can't find the module/package disjoint_sets in python. Did you write any other separate module by yourself to implement this code? Thanks a lot for your information.

Hi, Avikalp
Thank you for sharing your great work~ I'm intended to use your model to judge the quality of advertisement poster, which in my opinion is similar to your work.
Here's my problem, when I follow the instruction in README to run selected_feature.py, it reports-----
ImportError: No module named disjoint_sets , and I can't use ' pip install disjoint_sets ' to solve this problem, so may I ask if there's any file missed ?
Besides, since you have train your model on the dataset, may I have your pre-trained model to test my data? And have you tested your model on some general dataset, like AVA or AADB?

Are you fixed it ?


feat(monorepo): Layout package

Proposed changes (including videos or screenshots)

Issue(s)

Further comments

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: ggazzo:x: kodiakhq[bot]You have signed the CLA already but the status is still pending? Let us recheck it.


TypeError  '<' when using zoomify

I'm using
cooler zoomify -r 10000 -o data/Li_et_al_2015.mcool data/Li_et_al_2015.cool

and I'm returning
Traceback (most recent call last):
  File "/opt/conda/bin/cooler", line 8, in <module>
    sys.exit(cli())
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/cooler/cli/zoomify.py", line 146, in zoomify
    agg=agg)
  File "/opt/conda/lib/python3.6/site-packages/cooler/reduce.py", line 679, in zoomify_cooler
    resn, pred, mult = get_multiplier_sequence(resolutions, base_resolutions)
  File "/opt/conda/lib/python3.6/site-packages/cooler/reduce.py", line 366, in get_multiplier_sequence
    resn = np.array(sorted(bases.union(resolutions)))
TypeError: '<' not supported between instances of 'NoneType' and 'int'

The command works with other cool files I'm using, and I'm currently testing this with data I found online, so I don't know its structure too well. What is going wrong here?

what's the resolution of the input cooler data/Li_et_al_2015.cool ?
could you run cooler info data/Li_et_al_2015.cool on it ?

also, it looks like you're requesting a single resolution for zoomify with -r 10000 , maybe cooler coarsen is more appropriate tool for what you're trying to achieve ?

coarsen would take existing cooler and re-bin it into a cooler with lower resolution (larger binsize) by averaging k by k pixels of the input cooler
zoomify is doing a bunch of coarsenings to create an mcool "container" of coolers with different resolutions: i.e. you could do cooler zoomify -r 2000,5000,10000,... - also I believe you have to make sure those resolutions are supposed to be multiples of the input cooler file

Well I think the first issue is this...
"bin-type": "variable",
"bin-size": null,
"storage-mode": "symmetric-upper",
"nchroms": 1,
"nbins": 103,
"sum": 24239652.493847895,
"nnz": 402,
"genome-assembly": "unknown",
"creation-date": "2019-10-25T13:50:07.876548",
"format-version": 3,
"format": Traceback (most recent call last):
File "/opt/conda/bin/cooler", line 8, in
sys.exit(cli())
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/cooler/cli/_util.py", line 197, in decorated
func(*args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/cooler/cli/info.py", line 62, in info
json.dump(attrs_to_jsonable(dct), f, indent=4)
File "/opt/conda/lib/python3.6/json/init.py", line 179, in dump
for chunk in iterable:
File "/opt/conda/lib/python3.6/json/encoder.py", line 430, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/opt/conda/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
yield from chunks
File "/opt/conda/lib/python3.6/json/encoder.py", line 437, in _iterencode
o = _default(o)
File "/opt/conda/lib/python3.6/json/encoder.py", line 180, in default
o.class.name)
TypeError: Object of type 'bytes' is not JSON serializable

"bin-type": "variable",
"bin-size": null,

yup ... - that looks very very special... variable bin sizes...
@nvictus would be the best one to comment of course

I pulled it from a group of test files, since I need to have a method of automatically massaging data based on datatypes and user inputs. I'm glad to know it wasn't the command, but the dataset that's the issue, because I am just trying to make the command essentially
for <user file>:
    cooler zoomify -r  <user input resolution> -o <modified user file name> <user file name>

Then upload that to higlass

yeah - if you're not necessarily interested in that particular cooler-file/dataset - i.e. you are trying to use something for demonstration purposes, than I would just move on and never touch that file again ...
If you are still interested in it - I would start exploring the data in it, by trying to dump it into a text file:

"nnz": 402,

suggests that it has only 402 non zero values - so it  is very small and can be easily explored as a whole ...
here is the link to the dumping command https://cooler.readthedocs.io/en/latest/cli.html#cooler-dump
PS
if I recall correctly zoomifying (and thus browsing in higlass) of coolers with variable size bins is not really supported - because coarsening of variable bins isn't well defined , but again @nvictus  would know for sure

I saw a PR saying it worked better now, but I think this should be ok for the moment. I appreciate the help!

Well I think the first issue is this...

That first issue is a string encoding issue. The format attribute was stored as bytes instead of unicode, probably because the file was created manually (or an old cooler version) in Python 2.
This was fixed in #180 so the info should print if you upgrade to 0.8.7.

if I recall correctly zoomifying (and thus browsing in higlass) of coolers with variable size bins is not really supported

It actually does work, but the interpretation of "resolution" is that the base resolution of a variable-sized bin map is 1 and the coarsened resolutions are groupings of adjacent bins. So k = 10,000 would try to group consecutive groups of 10,000 bins, but the whole chromosome is 103 x 103, so you hit edge case that should have exited more gracefully because there is nothing to coarsen.

Closing as the original issue is fixed in #180


Prevent potential overflow when converting timestamp values

$ git grep '* MICROSECONDS_PER_SECOND'
presto-base-jdbc/src/main/java/io/prestosql/plugin/jdbc/StandardColumnMappings.java:        return instant.getEpochSecond() * MICROSECONDS_PER_SECOND + roundDiv(instant.getNano(), NANOSECONDS_PER_MICROSECOND);
presto-main/src/main/java/io/prestosql/operator/scalar/DateTimeFunctions.java:        return Math.round(unixTime * MICROSECONDS_PER_SECOND);
presto-main/src/main/java/io/prestosql/operator/scalar/timestamp/VarcharToTimestampCast.java:        return epochSecond * MICROSECONDS_PER_SECOND + rescale(fractionValue, actualPrecision, 6);
presto-main/src/main/java/io/prestosql/type/DateTimes.java:        return epochSecond * MICROSECONDS_PER_SECOND + roundDiv(picoOfSecond, PICOSECONDS_PER_MICROSECOND);
presto-main/src/main/java/io/prestosql/type/DateTimes.java:                start.getEpochSecond() * MICROSECONDS_PER_SECOND + start.getLong(MICRO_OF_SECOND),
presto-main/src/test/java/io/prestosql/operator/scalar/timestamp/TestTimestamp.java:            long epochMicros = base.toEpochSecond(offset) * MICROSECONDS_PER_SECOND + picoOfSecond / PICOSECONDS_PER_MICROSECOND;
presto-orc/src/main/java/io/prestosql/orc/reader/TimestampColumnReader.java:        long micros = (seconds + baseTimestampInSeconds) * MICROSECONDS_PER_SECOND;
presto-orc/src/main/java/io/prestosql/orc/reader/TimestampColumnReader.java:        long micros = (seconds + baseTimestampInSeconds) * MICROSECONDS_PER_SECOND;
presto-orc/src/test/java/io/prestosql/orc/OrcTester.java:                long micros = timestamp.toEpochSecond() * MICROSECONDS_PER_SECOND;
presto-orc/src/test/java/io/prestosql/orc/OrcTester.java:                long micros = timestamp.toEpochSecond() * MICROSECONDS_PER_SECOND;

$ git grep '* MICROSECONDS_PER_MILLISECOND'
[...]

etc

When converting timestamp values between units (seconds, milliseconds, microseconds) we should multiply with checking for overflow unless the value can be statically proven not to cause overflow.
Maybe it would be possible to make the constants like MICROSECONDS_PER_SECOND, MICROSECONDS_PER_MILLISECOND, etc private and provide some reusable conversion functions instead?
This would solve some other problem too -- that it's too easy to write conversion code that works "slightly incorrectly" for values before the epoch.
cc @martint @losipiuk @aalbu

@martint please define the overall approach so that someone can work on this

The most common operation we use on picoseconds is unit conversion: I think a straightforward solution would be a Picoseconds (or Picos) utility class with an API similar to TimeUnit.
We'd want toNanos, toMillis, etc, and either the corresponding from functions or convert(long, TimeUnit) (like TimeUnit.convert1). Because we frequently round during these conversions, we'd also want roundToNanos, etc.
We use two other operations on picoseconds: conversions to picos-of-day and extraction of other time fields (e.g. minute-of-hour). These could be implemented in a new class or as a few extra methods on the same class as the conversions.2
1 Personally, I prefer from(long, TimeUnit).
2 Another possibility would be to implement the picosecond-conversion class as a one-element enum (as if it were an extension of TimeUnit) and leaving the additional methods for dealing with picos-of-day as regular static methods.

@martint What do you think?

I'm looking into this, but here are a couple of thoughts:

We need to make a distinction between temporal values that represent a delta from an epoch baseline (i.e., the values can be negative or positive) and those that represent things like "picoseconds within a day", or "minutes of the hour", as they have different semantics, especially around rounding and scaling.
For temporal functions in Presto, we also need to be able to operate on all precisions in a more dynamic manner, so a fixed set of classes may not be sufficient.
We have 3 places where we operate on temporal types: built-in functions in the engine, SPI, inside connectors. We need to consider what needs to go where.

For dynamic precision, we could keep versions of the methods we already have for that purpose, something with the same basic idea as rescale(value, fromPrecision, toPrecision), but ideally with a more type-specific name (or namespace).
We already have this function in multiple places, each with slightly different semantics. If we renamed it to something like rescaleTimestamp and gave it appropriate rounding semantics, overflow checking, and documentation, it could work well as-is and could replace many of the uses of the conversion constants.
Using this pattern, we could have just one or two functions per operation type per datetime "type" (i.e. timestamp vs subunit-of-unit). We could also provide the integer constants representing each unit's scale to produce slightly more readable code (rescale(n, NANO, PICO) vs rescale(n, 9, 12)).

We also don't currently use fully-consistent rounding behavior for timestamps (or time-of-day). Timestamps.roundDiv rounds much like Math.round, while DateTimes.rescale, which is used in much the same way, uses regular long division, which truncates in different direction above and below zero (presumably a bad choice for epoch-based times).
(The same goes for other datetime values, though I think we want floor rounding rather than half-ceiling rounding for units like time-of-day.)

Timestamps.roundDiv rounds much like Math.round, while DateTimes.rescale

rescale is generally used after the value has been rounded to the desired magnitude. E.g.,
if (sourcePrecision > targetPrecision) {
    picoFraction = round(picoFraction, (int) (TimeType.MAX_PRECISION - targetPrecision));
}

long microFraction = rescale(picoFraction, TimeType.MAX_PRECISION, 6);

or
interval = round(interval, 3);
interval = rescale(interval, MAX_SHORT_PRECISION, 3);


Cherry-pick important fixes for 3.0.1 (#668)

Fixes for Date Manipulations, see #668.

@swift-ci please test and merge

@parkera This is awesome, thank you! Last question, does this mean this fix will be back-ported into Swift 3.0.1-preview 2 (which I saw up on swift.org this morning), or just that it'll appear in the next snapshot or in preview 3?

It will be in the next preview (since preview 2 is already released).