change build method to make from sh build.sh

The build method is changed from sh build.sh to make. This change makes
sense because we can not only build all, but also do partial builds, run hugo server, and clean up the product in one place.
GitHub Actions are modified and tested on act.
Commands

Command

make
Build all.

make index make blog
Partially build.

make test-index make test-blog
Run hugo server --baseURL http://localhost --port 1313.

make clean
Delete ./html.

Change Log

changed build.sh to Makefile
update github actions to use make

I think that submodule update should be done manually, because if submodule update is done in the deployment process of GitHub Actions, a discrepancy between the development environment and the production environment will be created.


Research Github API

Check which get call need to make to API to get a user's commits.

Root endpoint: https://api.github.com
Repo Statistics API: https://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day


Broken PIPE error when running EVAL phase

Hi,
I've ran into a crash when running the EVAL phase, initially I have imported the games using the PGN / SL after which i ran the training(OPT) for 1 day, which generated many models under new_generation (around 4.82GB).
My Config:

Python 3.6.3
Keras 2.0.8
Tensorflow-gpu 1.3.0 (using GPU - Tesla V100-SXM2-16GB)

Command: python src\chess_zero\run.py eval --type normal
2018-01-31<EMAIL_ADDRESS>INFO # config type: normal
Using TensorFlow backend.
2018-01-31<EMAIL_ADDRESS>DEBUG # loading model from c:\chess-alpha-zero\data\model\model_best_config.json
name: Tesla V100-SXM2-16GB
major: 7 minor: 0 memoryClockRate (GHz) 1.53
pciBusID 0000:00:1e.0
Total memory: 15.87GiB
Free memory: 15.32GiB
2018-01-31 11:20:46.070625: I C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\core\common_runtime\gpu\gpu_device.cc:976] DMA: 0
2018-01-31 11:20:46.071089: I C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\core\common_runtime\gpu\gpu_device.cc:986] 0:   Y
2018-01-31 11:20:46.071563: I C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\core\common_runtime\gpu\gpu_device.cc:1045] Creating TensorFlow device (
/gpu:0) -> (device: 0, name: Tesla V100-SXM2-16GB, pci bus id: 0000:00:1e.0)
2018-01-31<EMAIL_ADDRESS>DEBUG # loaded model digest = 0c379712fcb4204eccea535e5ff099cde78f87037e9805c85d4738bc350adb12
2018-01-31<EMAIL_ADDRESS>DEBUG # loading model from c:\chess-alpha-zero\data\model\next_generation\model_20180131-112007.316229\model_config.j
son
2018-01-31<EMAIL_ADDRESS>DEBUG # loaded model digest = 401e52dfc80f31e58218c2ab7e28f8bc480c1c9909eb3220c23b7da96d14d668
2018-01-31<EMAIL_ADDRESS>DEBUG # start evaluate model c:\chess-alpha-zero\data\model\next_generation\model_20180131-112007.316229
Using TensorFlow backend.
Using TensorFlow backend.

I think while pipe closing its resources it generate broken pipe error.
Is the eval phase broken?

You can ignore it, it just happens when the program exits (after "lose count reach 22 so give up challenge").

Did anyone ever find a solution to this? I am still stuck at this step.

You can ignore it, it just happens when the program exits (after "lose count reach 22 so give up challenge").

I ignored it, but nothing happens. It doesn't evaluate a single game.


[Bug] Shield Bar growth while hp moving

Addon Version
1.3.5
World of Warcraft Version
Retail
Describe the bug
Shield Bar goes outside of frame when it's attached to Health Bar and hp is moving

screenshot showing above cell unitframes growth after hp healed, and below elvui player unitframe shield growth after hp healed.
Steps to reproduce
Have shieldbar attached to healthbar, receive damage, use a shield, then wait for hp to heal and shield bar to move attached to healthbar
BugSack
No response

Ah, missed that edgecase, can get that fixed up pretty easily 🫡


Disable MRTK scene checker window while build is active

Overview
This stops the scene checker window from opening during / immediately after a build as described in #4043
Requests for validation
Verify that this fixes the repro case described in #4043

I'm still seeing the build window popping up after pulling these changes.

/azp run


Performance issues with Allstars & Bad day

Allstars: I along with other ppl have had an issue with Allstars act 3 or allstars in general. I decided to figure out how to compile the source code and I figured out the rough issue that's causing act 3 to not load visual wise for me. Its the code: "insert(members.indexOf(dadGroup) - 1, act3BGGroup);" I had to switch dadgroup and act3 and make the - a + to make it semi work. The only thing that didn't load was the background ultra M head and bf's pipe, everything else works fine after that, but sometimes the intro to act 4 lags or doesnt play
Bad Day: Idk how many ppl have this issue, but ik me and my friend have an issue with bad day where the song lags like crazy making it unplayable. The notes and stuff show but its hard to hit since it lags so hard and only runs at around 15-25 fps. The way me and my friend were able to kinda play the song was turning the fps up to the max of 255 which causes the menu to bug out for me, but it kinda works if you max out the fps counter

	runHaxeCode([[
        Paths.clearUnusedMemory();
    ]])

works.
This is lua btw
if you get crashes too this helps massively

Where do I put this code? And will this help when the transition to act 3 is supposed to happen?

turn off shaders for bad day

How The Hell Does Bad Day Use Shaders? also wanted to point out it brought my steam deck to its knees, 99% GPU Usage, but then in anywhere else, maximum of 30% GPU Usage

The mod is just poorly programmed I would wait for hotfix's and see if the problem happens again. The lua script file goes into mods/scripts. It probably won't do anything but it's nice to have it there just to double check.


IOS-XR: if a commit fails, read_until_prompt waits forever

An issue occurs when a commit on IOS-XR results in an error. I see this with CiscoIOSXR.send_config_set(). After the code sends the commit, it then runs IOSLikeDevice._read_until_prompt(), but if the commit fails, then _read_until_prompt() will wait forever.
Here is an example of an interactive session that produces a failed commit (I presume it doesn't really matter what produces the commit failure, as long as it fails):
RP/0/RSP0/CPU0:xxx#conf t
Fri Feb  9 19:26:29.685 GMT
RP/0/RSP0/CPU0:xxx(config)#interface GigabitEthernet0/0/1/2.2859
RP/0/RSP0/CPU0:xxx(config-subif)#service-policy input 03692d7b-9acd-4a14-b4ed-345f513518$
RP/0/RSP0/CPU0:xxx(config-subif)#service-policy output 03692d7b-9acd-4a14-b4ed-345f51351$
RP/0/RSP0/CPU0:xxx(config-subif)#
RP/0/RSP0/CPU0:xxx(config-subif)#
RP/0/RSP0/CPU0:xxx(config-subif)#commit
Fri Feb  9 19:26:53.050 GMT

% Failed to commit one or more configuration items during a pseudo-atomic operation. All changes made have been reverted. Please issue 'show configuration failed [inheritance]' from this session to view the errors
RP/0/RSP0/CPU0:xxx(config-subif)#end
Uncommitted changes found, commit them before exiting(yes/no/cancel)? [cancel]:no

(It fails because the policies mentioned in the config do not exist)
Note that the prompt does not return after "end" is entered: instead, the returned bytes are Uncommitted changes found, commit them before exiting(yes/no/cancel)? [cancel]:.  This is the cause of the problem.
This is the code in CiscoIOSXR.send_config_set():
async def send_config_set(self, config_commands=None, with_commit=True, commit_comment='', exit_config_mode=True):
        # Send config commands by IOS Like Device
        output = await super().send_config_set(config_commands=config_commands, exit_config_mode=False)
        if with_commit:
            commit = type(self)._commit_command
            if commit_comment:
                commit = type(self)._commit_comment_command.format(commit_comment)

            self._stdin.write(self._normalize_cmd(commit))
            output += await self._read_until_prompt()

        if exit_config_mode:
            output += await self.exit_config_mode()      # <<-------- HERE

The commit, and then the end, is issued on the line marked above. This runs the method in the IOSLikeDevice superclass:
    async def exit_config_mode(self):
        logger.info('Host {}: Exiting from configuration mode'.format(self._host))
        output = ''
        exit_config = type(self)._config_exit
        if await self.check_config_mode():
            self._stdin.write(self._normalize_cmd(exit_config))
            output = await self._read_until_prompt()     # <<------------ HERE
            if await self.check_config_mode():
                raise ValueError("Failed to exit from configuration mode")
        return output

In the line marked above, if the commit has failed, and then end is sent (inside exit_config()), the prompt will never be found, because read_until_prompt() simply calls read_until_pattern(self._base_pattern):
    async def _read_until_pattern(self, pattern='', re_flags=0):
        output = ''
        logger.info("Host {}: Reading until pattern".format(self._host))
        if not pattern:
            pattern = self._base_pattern
        logger.debug("Host {}: Reading pattern: {}".format(self._host, pattern))
        while True:
            output += await self._stdout.read(self._MAX_BUFFER)
            if re.search(pattern, output, flags=re_flags):       # <<----------- HERE
                logger.debug("Host {}: Reading pattern '{}' was found: {}".format(self._host, pattern, repr(output)))
                return output

Eventually, the device returns all the bytes up to the end of the confirmation request:
Uncommitted changes found, commit them before exiting(yes/no/cancel)? [cancel]:

And of course no prompt can be detected in this, and no more bytes are coming.
I will do a bit more debugging soon, but I just wanted to raise this issue now to get your thoughts.  I'm happy to do the work to fix or improve the handling of errors during commit, if you could give your thoughts, or make any suggestions of how best to proceed?
One idea that I had while looking at the code was to add timeout handling inside _read_until_pattern():
while True:
    output += await self._stdout.read(self._MAX_BUFFER)  # <<------ on this line

only so that the output can be captured and logged.  Currently, if the code waits here, and an asyncio.wait_for() triggers due to timeout in an outer scope, any bytes currently pending in the output identifier will be lost.  By capturing and logging those bytes (and then possibly reraising a TimeoutError), it should make it easier to diagnose why a timeout occurred.
But for the specific case where we get the Uncommitted changes found problem, it is probably better to  try to match that also in read_until_pattern, so that it can be handled directly, rather than waiting for a timeout.   I'm not sure yet, and would like to know what your thoughts are before I do any work on this.
By the way, thanks for making this library!

Thank you for your interest to this library!
I really didn't test carefully IOS XR class because I haven't it in my work. I can divide my thoughts into 2 points:

I want to make timeout for operation for a long time :) I want to add default timer to all read operations in all classes for better controlling the flow. And I have the stimulus to do it right now :) I think that it should raise timeout exception.
In this particular situation, it's a normal operation and we should make changes in function for normal processing this variant.

Firstly, we should check the output for the string "Failed to commit" and raise the "Failed to commit" exception. And we also should check "Uncommitted changes found" after "end" command.
Right now we have function with these parameters async def send_config_set(self, config_commands=None, with_commit=True, commit_comment='', exit_config_mode=True). So we can have different situations:

with_commit=True - All changes will be commited. If not - we will get "Failed to commit" exception
with_commit=False and exit_config_mode=False. Nothing special, user should make decision himself
with_commit=False and exit_config_mode=True - I think we should always exit from config mode without any changes. In this situation we should check the output for "Uncommitted changes found" string by using special function for this purpose: _read_until_pattern. We should override exit_config_mode in IOS XR class or maybe change this function in IOS class.

I can make these changes in this week, but if you really want to help me and make changes yourself - it will be really great!! You can pm me in telegram or slack and I can help you make PR for it.

I'm happy to help.
I will create a PR, and then the first thing I'll do is create a test that demonstrates the issue. Then we can discuss the test.  Then I will add code to resolve the problem, which will include the handling you've discussed above.
Sound good?

Yes, it will be amazing! I will wait for the PR!

Quick note to say I have not forgotten about this issue, but I've been extremely busy recently.

Hello, @cjrh!
I have just pushed new code to IOS XR class. Right now it works like this:

with_commit=True - All changes will be commited. If not - we will get CommitError exception
with_commit=False and exit_config_mode=False. Nothing special, user should make decision himself
with_commit=False and exit_config_mode=True - exit from config without any changes and commits

For taking this behavior I made these changes https://github.com/selfuryon/netdev/compare/master...develop#diff-c089f96ea63362ebd55df599d9d7c153. The main:

I change cleanup function for properly session termination. In all sessions, we should clear all unsaved changes, so I simply write "abort" to channel. It's useful when we get Exception because we are using an async context manager which always runs cleanup function.
I changed exit_config_mode function for properly working with an unsaved date when we have this condition "with_commit=False and exit_config_mode=True".

Can you test it in your environment? After that, I will release it in master branch :)

Forgot! I also added timeout params for managing timeout in all async operations :) You can use it only in init. The default timeout is 15 seconds:
def __init__(self, host=u'', username=u'', password=u'', port=22, device_type=u'', known_hosts=None,
local_addr=None, client_keys=None, passphrase=None, timeout=15, loop=None):

I thought about adding timeout exactly to operations (send_config_set and send_command) but I don't know if it's really necessary. Do you need this?

@selfuryon Thanks! I will have a look towards the middle or end of this week.

@cjrh Hello! Did you test new code? :)

Sadly, I have not tested it yet. I did the workaround we discussed, where I made a subclass of the XR class and so far that has worked very well. sorry!

This same stuck can happen on IOS.

Say you have a switch that has an automatic vty command, and you forget to issue the proper command....
autocommand who
but they forgot the...
autocommand-options nohangup
Well, now you connect, get logged in, and before the prompt ever appears, you're disconnected.
Well now you're stuck, you're stuck at the find_base_prompt() forever...


Cleanup CSS files

We should cleanup the CSS files:

Split jupytertheme.css into multiple files that are imported into the index.css by what part of the page it styles.
Review the selectors and CSS rules to make sure there are no duplicates or unused styles.

Closing via #61


Error re jemalloc

Building neovim using Homebrew fails when reaching jemalloc:
$ brewdo brew install --HEAD neovim
==> Installing neovim from neovim/homebrew-neovim
==> Cloning https://github.com/neovim/neovim.git
Updating /Library/Caches/Homebrew/neovim--git
==> Checking out branch master
==> Downloading https://github.com/libuv/libuv/archive/v1.4.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/neovim--libuv-1.4.2.tar.gz
==> Downloading https://github.com/msgpack/msgpack-c/archive/cpp-1.0.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Downloading http://luajit.org/download/LuaJIT-2.0.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/neovim--luajit-2.0.3.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/0587afbb5fe8ceb2f2e
Already downloaded: /Library/Caches/Homebrew/neovim--luarocks-29.tar.gz
==> Downloading https://github.com/mauke/unibilium/archive/v1.1.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/neovim--unibilium-1.1.2.tar.gz
==> Downloading https://github.com/neovim/libtermkey/archive/8c0cb7108cc63218ea19aa89
Already downloaded: /Library/Caches/Homebrew/neovim--libtermkey-19603.tar.gz
==> Downloading https://github.com/neovim/libvterm/archive/1b745d29d45623aa8d22a7b928
Already downloaded: /Library/Caches/Homebrew/neovim--libvterm-7088.tar.gz
==> Downloading https://github.com/jemalloc/jemalloc/archive/3.6.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/neovim--jemalloc-3.6.0.tar.gz
==> make CMAKE_BUILD_TYPE=RelWithDebInfo DEPS_CMAKE_FLAGS=-DUSE_BUNDLED_BUSTED=OFF CM
/bin/sh: /tmp/neovim20150511-14632-5ewrb/.deps/build/src/jemalloc/configure: No such file or directory
make[3]: *** [build/src/jemalloc-stamp/jemalloc-configure] Error 127
make[2]: *** [CMakeFiles/jemalloc.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [deps] Error 2

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/neovim/homebrew-neovim/issues

Same error here :/

It's my fault.  I switched from using an archive of the tree to an official release on Neovim, but didn't update Homebrew.  I hate that the two track closely that you can't fix one thing without the world breaking. :-(  #61 should fix it.

Yup, that does it. Thanks!


pow(double, double) does not return a double, but a num

By doc (https://api.dart.dev/stable/2.13.4/dart-math/pow.html), pow function should return double, not num.
The following code does not compile:
import 'dart:math';

void main() {
  double a = 2.2;
  double b = 3.3;

  double c = pow(a, b);
}

Platforms:
$> dart --version
Dart SDK version: 2.13.4 (stable) (Wed Jun 23 13:08:41 2021 +0200) on "windows_x64"
Also on DartPad.dev
Thanks.

It does return a double.
The static type of the function is num Function(num, num), which is why you can call it with both doubles and integers, and get both doubles and integers as results. Since a double is a num, the typing is correct, but you can no longer simply assing something with static type num to double.
Prior to null safety, you'd get a free implicit downcast from num to double here (and it would succeed). With null safety, you have to write var c = pow(a, b) as double; to make the downcast explicit.
We have a few special cases in the language specification to make operations on numbers statically have a better type, but those special cases are only on methods and operators of int and double, not the functions of dart:math.
So, all in all, working as intended.

Thank you very much, @lrhn .


I can't use Camera2

RtmpCamera1 is working fine but when I switch to using RtmpCamera2 it's all black screen and I get these logs:
04-23 21:43:52.940 19497-20486/****** I/Camera2ApiManager: camera disconnected

04-23 21:43:52.987 19497-20507/****** I/Camera2ApiManager: camera opened

04-23 21:43:52.987 19497-20507/****** E/Camera2ApiManager: configuration failed

I don't know the benefits of using camera2 api. If it doesn't matter I can continue using RtmpCamera1 but if it has advantages then I need your help.

Normally camera2 has more performance and more resolution to open (camera1 is cap to 1080p because in stream you need get frames from preview)
Can you tell me device model and Android API?

Xperia XZ android 8.0

Make sure that you are using a resolution of listed in this method:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtplibrary/src/main/java/com/pedro/rtplibrary/base/Camera2Base.java#L466
Do you have this permissions in manifest?:
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera2.full" />
<uses-feature android:name="android.hardware.camera2.autofocus" />

Also add this method in this line to show camera2 level supported by your device:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L287
private void showLevelSupported(CameraCharacteristics c) {
    int deviceLevel = c.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);
    if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY) {
      Log.i(TAG, "Level supported: legacy");
    } else if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3) {
      Log.i(TAG, "Level supported: level 3");
    } else if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL){
      Log.i(TAG, "Level supported: full");
    } else if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED){
      Log.i(TAG, "Level supported: limited");
    }
  }

Yes I have those in my manifest.
And for adding showLevelSupported to that line honestly I don't know how to edit an external library. Can you show me how I can add this lib locally?

https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/wiki/Add-library-to-your-project
Other way if you only want test is download my project with app example and modify in that project(To download you can clone with git or download zip).

Ok I am on it now

I ran the but it uses camera1
04-24 15:48:55.343 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 1600X1200, not supported for encoder 04-24 15:48:55.718 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 1600X1200, not supported for encoder 04-24 15:48:56.586 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 640X480 04-24 15:49:21.317 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 1600X1200, not supported for encoder 04-24 15:49:21.590 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 1600X1200, not supported for encoder 04-24 15:49:22.238 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 640X480 04-24 15:49:25.673 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 1600X1200, not supported for encoder 04-24 15:49:25.927 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 1600X1200, not supported for encoder 04-24 15:49:26.389 22060-22060/com.pedro.rtpstreamer I/Camera1ApiManager: 640X480

I found a snippet from stack overflow
04-24 15:53:25.475 23048-23048/? I/CameraManagerGlobal: Connecting to camera service
04-24 15:53:25.493 23048-23048/? D/Camera2Control: Camera 0 has FULL Camera2 support
04-24 15:53:25.494 23048-23048/? D/Camera2Control: Camera 1 has LIMITED Camera2 support

Make sure that you are using a resolution of listed in this method:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtplibrary/src/main/java/com/pedro/rtplibrary/base/Camera2Base.java#L466

I didn't get this part I am using it like this, I don't set a resolution
if(broadcastCam.prepareAudio() && broadcastCam.prepareVideo()){
                broadcastCam.startPreview(1)
                broadcastCam.setAuthorization(LOGIN,PASS)
                broadcastCam.startStream(RTMPURL)

            }

If you use prepareVideo() you select 640x480 by default but no all device support this resolution, anyway if it work with camera1, camera2 should has same resolution supported.
Also camera2 support hardware should be ok. I need investigate more about it. If you can try debug you too because found a phone with that bug could be hard.
You can try open camera 2 with this example that has code more or less like my library:
https://github.com/pedroSG94/camera2-and-samsung-camera-example

Testing this but still getting black screen
broadcastCam = RtmpCamera2(broadcastSurface,connectionChecker)
            if(broadcastCam.prepareAudio() && broadcastCam.prepareVideo(480,720,30,5000,false,180)){
                broadcastCam.startPreview(1)
                broadcastCam.setAuthorization(LOGIN,PASS)
                broadcastCam.startStream(RTMPURL)
            }

getting these logs
04-24 17:25:30.999 21704-21704/******** W/******: type=1400 audit(0.0:3152): avc: denied { read } for name="u:object_r:camera_prop:s0" dev="tmpfs" ino=15633 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0 ppid=1019 pcomm="main" pgid=1019 pgcomm="main"
04-24 17:25:31.010 21704-21704/******** E/libc: Access denied finding property "persist.camera.cfa.packagelist"
04-24 17:25:31.152 21704-22269/******** I/Camera2ApiManager: camera disconnected
04-24 17:25:31.167 21704-22296/******** W/CameraDevice-JV-0: Stream configuration failed due to: createStream:513: Camera 0: Surface already has a stream created for it (ID 0)
04-24 17:25:31.168 21704-22296/******** E/CameraCaptureSession: Session 0: Failed to create capture session; configuration failed
04-24 17:25:31.168 21704-22296/******** I/Camera2ApiManager: camera opened
04-24 17:25:31.168 21704-22296/******** E/Camera2ApiManager: configuration failed

I was looking info about it but no result for now.
Notify me if you find any solution or more info about this error.

If you can try open this google example of camera2 in your device that no work:
https://github.com/googlesamples/android-Camera2Basic
If this work we need change Camera2ApiManager to fix it using that example. If no work write a issue in that project and I will try find more info about it to solve

Ok, I will try it thanks

finally I resolved this issue in one plus 5T (Android 8.1.0).
Problem in this line
captureRequestBuilder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE);
Use this TEMPLATE_PREVIEW instead of TEMPLATE_STILL_CAPTURE
example
captureRequestBuilder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);

This library actually use TEMPLATE_PREVIEW:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L152
Confirm me that this line no produce error with your device:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L165


Update urls to dapp discovery ui

https://input-output.atlassian.net/browse/LW-9753

I am gonna merge this since our UI is broken.


Added unsubscribe_url to member api response

ref https://linear.app/tryghost/issue/ONC-387/

https://github.com/TryGhost/Ghost/pull/21325 this should pull out the changes in c46e072.


🚀 Feature: Plugin Api-Docs Request Samples

🔖 Feature description
Hi, I've been using the api-doc plugin these days and I thought it would be great if it would show examples of endpoint requests, for example in curl, Nodejs or Python.
Something like this:
curl --request POST \
  --url https://petstore.swagger.io/v2/pet/petId/uploadImage \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer 123' \
  --header 'Content-Type: multipart/form-data' \
  --form additionalMetadata= \
  --form file=

🎤 Context
This would be really usefull for users to quickly test the endpoind.
This is an exaple from Spotlight: https://elements-demo.stoplight.io/?spec=https%3A%2F%2Fpetstore.swagger.io%2Fv2%2Fswagger.json#/operations/uploadFile
✌ Possible Implementation
No response
👀 Have you spent some time to check if this feature request has been raised before?

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

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

thanks for the suggestion. Yes, it would be a nice addition


Make subclasses of MetaproteomicsAnalysis to enable separate types of workflows

The upcoming changes associated with MetaproteomicsAnalysis will result in two workflows that are inherently different, one that uses a metagenome that is a result of a DataGeneration process and one that uses a in-silico generated metagenome.
We want to increment these two types of workflows separately and for users to understand (from the WorkflowExecution record) which records are a result of which type of workflow.  We also want individually-incremented ids for these workflows so users (and the data portal) do not assume that one is the "most recent".
Our solution is to subclass the MetaproteomicsAnalysis into two subclasses.  This will make it clear which of the two workflows were used and allow for incrementing "re-runs" of the each type of workflow separately.  All existing records would be migrated to the subclass that represents a MetaproteomicsAnalysis uses a metagenome that is a result of a DataGeneration process.

Should be in Dec 9th for the Dec 16th release


Adds support for refreshModel

Fixes #26

@jasonmit we don't plan to support refreshModel since all your model logic should now be moved to the controller. We have an alternative refresh option that acts in the same away. Is there another use case that I'm missing here?
On that note, I do like the REFRESH_TIMER logic :)

Yeah I figured there was a reason, was just thinking it would be nice to have a queryParam signature in one place.  I'll trim down the PR to cancel the scheduled work though.


New clock: Quarter Clock

Clock showing the time to nearest 15 minute period using boxes. Settings allow for changing colours, showing/hiding battery level box, showing hiding widgets, and a digital mode replacing the hour box with a number.

Nice, thanks!


Added webpack watch option support.

I had the necesity to work on a development environment without using webpackDevServer and using a direct implementation of my app from another backend.
Webpack watch option was the best solution for this, and I was concerned that It wasn't avialable (yet) in create-react-app project.
With this branch now just simply run "npm run watch" for webpack to listen for changes and generate a bundle.js file under build/static/js folder.

Thanks for the PR! I don't think we'll be adding a third config at this point, but this issue is on our radar and we hope to get to it in the future.
It is tracked in https://github.com/facebookincubator/create-react-app/issues/1070.

Thanks for you replay!, I know It can make the things more confusing, but for me was the easiest solution, and also required, since .dev has specific configuration for webpackdev server making the app to log many errors on console, and .prod generates a file with a unique hash everytime is compiled, and also it minifies the code, making compiling times so long. I hope you really add this feature in the future, for me (and as I can see, for many others) is a really important missing feature since sometimes (so often in my opinion) you  need your app to be tested outside from webpackdevserver environment, and since it doesn't and can't generate a bundle, this is the easiest approach to solve this problem.

Thank you so much for this! It saved my day! I am facing an issue that I am booting up the frontend code by spring-boot. Even though I enabled "proxy" setting from the package.json file, it won't bypass the oauth redirect CORS from my oauth server. So I need some way to constantly watch the frontend code from /target/classes/static directory where spring-boot servers the frontend code. With just a little effort, your solution works as charm to solve my problem and now I'm able to develop the frontend so much faster without having to either acquiring session id by hacking my oauth server or recompile the entire frontend code whenever I made a change.
Thank you again for your great work and hopefully this they will include this feature and provide a way to specify target directory soon.


Allow Editing Of Kanka.io Journals In Foundry?

I understand that the module pulls in the entry from Kanka.io itself, but is it possible to allow players to do editing and being able to update/resync the information back into the wiki page?

This has come up a few times on different channel.
It is unlikely to happen anytime soon. The main problem is, that editing the data required a very complex form, especially when it comes to anything that allows referencing other entries. It's just outside of the scope of this module or what my time allows.
That being said, never say never. Like some of the other ideas floating around as issues here, maybe at some point I'll add some kind of ability to edit data, even if it's just some of the date and not all of it. Just allowing users to edit the entry and maybe posts might actually be at least feasible at some point. But even then I'd probably only allow the DM to do it because I honestly don't even want to get into caring about access rights of different users for different entities...
That's also (one) reason why only GMs can sync entities right now: A player might not have all the rights necessary to get the full data. So right now I can - for example - get all posts of an entity and sync them, because I expect the GM to have full access to everything. A player might not have access to some secret notes (even on their own character) or something, so if they were to sync the entity with their own account that note would not be synced and would be missing on the entry in Foundry even for the GM.
As of right now I think it's easy enough to just click the Kanka link to open the entity in Kanka, change whatever you need to change, and then have the GM click the sync button to get the new version.


attitude_euler bug

I have noticed some trouble with the "attitude_euler" function.
in both examples the quad is just standing still.
but with the "attitude_euler" function, the pitch and roll values are way off, at random intervals.
this is a build of commit: 578c70c37c, running on a raspberry pi 2.
example:
telemetry->subscribe_attitude_euler([](Telemetry::EulerAngle angle) {
        std::cout << angle << "\n";
});

output:
euler_angle:
{
roll_deg: 0.901273787021637
pitch_deg: -1.59999907016754
yaw_deg: -31.9563980102539
}
euler_angle:
{
roll_deg:<PHONE_NUMBER>7666
pitch_deg: 29.9334468841553
yaw_deg: -33.3854217529297
}
euler_angle:
{
roll_deg: 0.90143883228302
pitch_deg: -1.60016667842865
yaw_deg: -31.9572525024414
}
euler_angle:
{
roll_deg: 0.901572823524475
pitch_deg: -1.60093307495117
yaw_deg: -31.9589595794678
}
euler_angle:
{
roll_deg:<PHONE_NUMBER>89355
pitch_deg: 29.9333267211914
yaw_deg: -33.3893890380859
}
euler_angle:
{
roll_deg: 0.902443706989288
pitch_deg: -1.60160052776337
yaw_deg: -31.959451675415
}
euler_angle:
{
roll_deg: 0.902292251586914
pitch_deg: -1.60183465480804
yaw_deg: -31.9599742889404
}
euler_angle:
{
roll_deg:<PHONE_NUMBER>19043
pitch_deg: 29.9340591430664
yaw_deg: -33.3904113769531
}
euler_angle:
{
roll_deg: 0.902660369873047
pitch_deg: -1.60230326652527
yaw_deg: -31.9612464904785
}
euler_angle:
{
roll_deg:<PHONE_NUMBER>61133
pitch_deg: 29.9352607727051
yaw_deg: -33.3939323425293
}
euler_angle:
{
roll_deg: 0.902866005897522
pitch_deg: -1.60294258594513
yaw_deg: -31.9626407623291
}
euler_angle:
{
roll_deg: 0.90369713306427
pitch_deg: -1.60316836833954
yaw_deg: -31.9617881774902
}
euler_angle:
{
roll_deg:<PHONE_NUMBER>02051
pitch_deg: 29.934398651123
yaw_deg: -33.3930320739746
}
euler_angle:
{
roll_deg: 0.902268767356873
pitch_deg: -1.60252797603607
yaw_deg: -31.9614353179932
}
When i use the regular attitude message, it works fine.
example:
mavlink_passthrough->subscribe_message_async(MAVLINK_MSG_ID_ATTITUDE, [&](mavlink_message_t message) {
        mavlink_attitude_t attitude;
        mavlink_msg_attitude_decode(&message, &attitude);

       std::cout << attitude.pitch << "deg " << attitude.roll << "deg\n";
});

output:
-0.0117168deg 0.0117473deg
-0.0117303deg 0.011718deg
-0.0117192deg 0.0117017deg
-0.0116752deg 0.0116813deg
-0.0116182deg 0.0116685deg
-0.0115927deg 0.011668deg
-0.0115764deg 0.011668deg
-0.0115786deg 0.0116677deg
-0.0115909deg 0.0116682deg
-0.0116277deg 0.0116809deg
-0.0116537deg 0.0116645deg
-0.0116414deg 0.0116718deg
-0.0116325deg 0.0116635deg
-0.0115993deg 0.0116332deg
-0.0115136deg 0.0115944deg
-0.0114356deg 0.011561deg
-0.0113072deg 0.011516deg
-0.01118deg 0.0114664deg

Oh, that's not good! Thanks for reporting.

One thing. Are you sure that you don't have two vehicles sending an attitude? E.g. a real one and a SITL instance broadcasting in the network?
And FYI the attitude is assembed from either ATTITUDE or ATTITUDE_QUATERNION messages, so either something is somewhere wrong in the implementation (probably in MAVSDK) or there are multiple sources mixed.

yep, only one vehicle :)
The same setup has worked for me in the past, only difference is that i just updated MAVSDK.

By the way, this was on a Pixhawk 2.1 if that makes any difference.

Ok thanks for the information.

It turns out that the conversion function was just wrong. With #1120 it might be fixed.

Had the same issue with v0.28.0, v0.29.0 fixed it.
Thanks!


fixed test for PERSON_ACCOUNT_IS_ENABLED

The Account record can be successful with the default RecordType if PERSON_ACCOUNT_IS_ENABLED = true.

Fixed error for currency field:
TDF.TestDataFactoryException: The field "amount__c" does not exist on  or the value type provided is incorrect
Original error message : Illegal assignment from String to Decimal


feat(sdk-metrics): Add User-Agent for sdk metrics instrumentation

feat(sdk-metrics): Add User-Agent for sdk metrics instrumentation

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Cluster Config UI fails when all nodes have labels

Setup

Rancher version: 2.7/2.8, tested back on 2.7.0
Rancher UI Extensions: n/a
Browser type & version: chrome/firefox, tested both

Describe the bug

When creating a cluster via the UI/terraform/etc if all of the machines have labelSelectors on them the UI fails to load and just crashes.
To Reproduce

Apply this terraform:
Terraform block

terraform {
  required_providers {
    rancher2 = {
      source  = "terraform.local/local/rancher2"
      version = "3.2.0-rc5"
    }
  }
}

provider "rancher2" {
  api_url   = "<REDACTED>"
  token_key = "<REDACTED>"
  insecure  = true
}

resource "rancher2_cloud_credential" "rancher2_cloud_credential" {
  name = "tf-creds-k3s"
  amazonec2_credential_config {
    access_key = "<REDACTED>"
    secret_key = "<REDACTED>"
  }
}

resource "rancher2_machine_config_v2" "rancher2_machine_config_v2" {
  generate_name = "tf-rke2"
  amazonec2_config {
    ami            = ""
    region         = "<REDACTED>"
    security_group = ["<REDACTED>"]
    subnet_id      = "<REDACTED>"
    vpc_id         = "<REDACTED>"
    zone           = "<REDACTED>"
    root_size      = 50
  }
}

resource "rancher2_cluster_v2" "rancher2_cluster_v2" {
  name                                     = "jkeslar-validate13"
  kubernetes_version                       = "v1.26.8+rke2r1"
  enable_network_policy                    = false
  default_cluster_role_for_project_members = "user"
  rke_config {
    machine_selector_config {
      machine_label_selector{
        match_labels = {
          "key" = "value"
        }
      }
    }
    machine_pools {
      name                         = "pool1"
      machine_labels = {
        "key" = "value"
      }
      cloud_credential_secret_name = rancher2_cloud_credential.rancher2_cloud_credential.id
      control_plane_role           = true
      etcd_role                    = true
      worker_role                  = true
      quantity                     = 1
      machine_config {
        kind = rancher2_machine_config_v2.rancher2_machine_config_v2.kind
        name = rancher2_machine_config_v2.rancher2_machine_config_v2.name
      }
    }
  }
}

Alternatively, create a cluster in the UI and make sure the machineSelectorConfig yaml looks like this:
    machineSelectorConfig:
      - config:
        machineLabelSelector:
          matchExpressions:
            - key: string
              operator: string
              values:
                - string
          matchLabels:
            key: string

Create the cluster, wait for it to become active, go to the UI, and click the Config button.
Result
Errors in console, fails to load the page.
Expected Result

The cluster config should load.
Screenshots

Additional context

This was found initially during QA testing some terraform changes - the UI fails to handle this specific case where every node has a label selector on it.
The piece of failing code is here: https://github.com/rancher/dashboard/blob/0076a24eff9f489c96c85b14e35d40461dd0a2dd/shell/models/provisioning.cattle.io.cluster.js#L815-L819
It fails on the last function call since no agent node was found without a label.

Possible connection with SURE-7011 (internal reference) whereby S3 backup configuration produces the error Cannot read properties of undefined (reading ‘length’) though some deciphering of that Terraform setup is still required.

Another internal reference: SURE-7212

@thatmidwesterncoder  users can add configuration entries in agentConfig field, in RKE2 clusters creation, i.e. protect-kernel-defaults; you can find it as a checkbox at the bottom of Advanced tab (Raise errors if ...):

Where those entries should be saved when every node has a label selector ( --> agentConfig is undefined) ?
As per documentation, it seems that they could be saved in machineGlobalConfig section:
https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig

This is tightly related to other issue. Both could be validated during the same manual validation using terraform and manual RKE2 configuration. cc @yonasberhe23
Related issue comment: https://github.com/rancher/dashboard/issues/10045#issuecomment-1973432313

@gaktive @nwmac this is also linked to SURE-6770... Would SURE-6770 be closed as well?

@aalves08 this is on Isabela's to-do items, she's getting issues validated according to priorities so she would take a look as soon as possible. cc @IsaSih

@izaac not a priority. I just wanted to double-check since I believe the zube bot has been messing with the issue labels :P

@aalves08 once QA has marked this as Done, then yes SURE-6770 & SURE-7212 can be closed.

I manually tested this issue and the current behavior corresponds to what is expected.

Taking a look at each of the JIRA tickets mentioned in the comments, I found that SURE-6770 is a different test case, where this property is not present at all.
machineSelectorConfig:
  - config: null

@IsaSih What is the status of this one?

@IsaSih ping - any update - how can eng help unblock this for you?

Tests pass on v2.9-3ae1c6ac8d3524f8ded4544f1db75fc9e07911a5-head


fix(#90): Inject environment variables as test variables before scenario

Fixes #90

You can pass any env via CLI option
yaks test some-test --env YAKS_NAMESPACE=foo

These get set on the test CRD. I think we can auto add the env setting with the current namespace the test is working on.

I have added the YAKS_NAMESPACE variable by default so it gets injected to all test runtimes


Create a Rust function that extracts the attributes of all edges

It will happen from a Data Scientist perspective that we will need to extract the numerical values contained in the edges between nodes and have an array as an output so that we can train new models. For instance here in "average_treatment_effect":
    control_outcomes = np.array(         [             medrecord.edge[                 find_reference_edge(                     medrecord,                     node_index,                     outcome_group,                     time_attribute="time",                     reference=reference,                 )             ][outcome_variable]             for node_index in control_true_set         ]     )
It would be nice to have a way to extract those values directly.
Example:
Edge1 between node1 and node2, attribute: time = today
Edge2 between node1 and node2, attribute: time = yesterday
medrecord.edge_attributes(node1, node2, undirected=True, attributes = "time")
Output: array: today, yesterday
For multiple nodes:
nodes_1 (N size)
nodes_2(M size)
medrecord.edge_attributes(nodes_1, nodes_2, undirected=True, attributes = "time")
Matrix of lists: N x M . Each coordinate in the matrix has a list with the value of all edges connected Ni with Mi.

this is not a solution to any of the memory issues and is also possible right now.


Fix typo

@changeworld : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@HeidiSteen, you can only sign off in the main PR conversation, not in review comments.

#sign-off #please-sign-off Thanks @changeworld!


Make it possible to start/stop/restart individual services

What should we add or change to make your life better?
I'm using Tye to run a couple of infrastructure containers (SEQ, Postgres, Cassandra, RabbitMQ, etc), a couple of our services as containers and the service(s) I'm currently working on as csproj(s). About ~20 services all in all.
I jump a lot between branches (code reviews, fixes here and there, etc) and most of the time I want to keep a base set of containers running sine they hardly ever change between revisions. But, I would like to be able to stop, start and restart specific services (both containers and csprojs) on demand.
Restarting Tye entirely can take a long time, when maybe all I really want is to restart a single service or change the version of an image. I have tried to use watch where that is applicable, but unfortunately that causes VS to hang depending on what parts of the code that changes (a common lib for example). And it doesn't work when changing image versions.
I think there are a couple of different commands that would help me in my daily work. All of these would require that Tye can run in detached mode:

tye run <service name>. Would make it possible to add a specific service to the current Tye instance.
tye stop <service name>. Would stop a specific service.
tye restart <service name>. Would restart a specific service.

I wanted to see how feasible this is with the current architecture of Tye, so I did a small PoC where I made it possible to restart a single (csproj) service from the Dashboard. You can have a look at it here. It seems to be working fine, but would require a bit of refactoring, it's not the prettiest solution at the moment.
I would love to spend more time on this and make a proper PR, and I really think it would add a lot of value.
Why is this important to you?
Tye has really simplified my daily workflow, in that it lets me run a combination of containers and csprojs together. I also really like that I can configure them and easily decide what to run in a single file.
Unfortunately, jumping around between branches forces me to restart Tye entirely between each run, which takes a lot of time.

Thanks for the feedback @jooooel . Your scenarios is definitely not unique, and the suggestion you have seems promising.
We have a few ideas around improving the inner loop speed in tye, especially around running multiple times. One idea we are thinking about is a daemon mode where tye is always running and commands to tye run would just add them to the daemon. That way in your example, you could arbitrarily start and stop specific services accordingly. This also would allow you to have things always running in the background without having them restart on each execution of tye run.
I could see it looking like this:

tye run is the same as today, ctrl-C to kill all things that are started with tye run
tye start does tye run but returns after all projects/images are started
tye stop stops images and projects that are already running
tye restart does the restart

Also, all of these could be specified for a specific service.

Thanks for the feedback @jooooel . Your scenarios is definitely not unique, and the suggestion you have seems promising.
We have a few ideas around improving the inner loop speed in tye, especially around running multiple times. One idea we are thinking about is a daemon mode where tye is always running and commands to tye run would just add them to the daemon. That way in your example, you could arbitrarily start and stop specific services accordingly. This also would allow you to have things always running in the background without having them restart on each execution of tye run.
I could see it looking like this:

tye run is the same as today, ctrl-C to kill all things that are started with tye run
tye start does tye run but returns after all projects/images are started
tye stop stops images and projects that are already running
tye restart does the restart

Also, all of these could be specified for a specific service.

Yeah that sounds pretty much like what I was hoping for as well @jkotalik.
The implementation I did was just to get a feel for how Tye is built and to get a picture of what it would take to implement those kind of changes.
I guess it would even be a necessity if Tye is ever going to be hooked up to dev tools like VS and VS code right?

Yeah that sounds pretty much like what I was hoping for as well @jkotalik.
The implementation I did was just to get a feel for how Tye is built and to get a picture of what it would take to implement those kind of changes.
I guess it would even be a necessity if Tye is ever going to be hooked up to dev tools like VS and VS code right?

One idea we are thinking about is a daemon mode where tye is always running and commands to tye run would just add them to the daemon.

I’m thinking of taking a stab at this. Mostly for fun, but because it would help me in my daily work. I’m curious of how, in your opinion, this "daemon mode" should be designed @jkotalik?
It’s great that Tye is a simple CLI tool, so having to install something like a Windows Service/systemd doesn’t feel like an option.
I guess tye run would have to start the host in a separate background process so that it’ll stay alive between runs right?
Then the host would have to expose an API (over HTTP?) that can accept new commands while it’s running.
Would be happy to hear your (or anyone else’s) thoughts on this!

This would be a very nice feature. I've found that using tye, I need to continuously stop all services to see the new updates.


not able to control play/pause remotely using earbuds

hi there,
Thanks for your work!
I was referring to your work in implementing my audio player (especially now playing part)
and I was able to play prev/next song using earbuds (by pressing 2/3 times respectively)
but not play/pause (by pressing only once)
both playing prev/next song and play/pause work from now playing if i do it on device.
any comment will be appreciated!!
thanks!

I was able to resolve this issue by using
commandCenter.togglePlayPauseCommand
e.g.
[commandCenter.togglePlayPauseCommand addTarget:self action:@selector(didReceiveToggleCommand:)];


Build for Long-term Use

Combine the two screens, put the Find My Pi button atop the main screen, hide the bottom unless connected.
Save session info from one run to the next.  Start the ip scanning near/on the last IP address to possibly speed things up.
If a pi is already bootstrapped, it doesn't need it again, yes?

@TheKitty the pi finder's UI has needed an update from pretty much day 1, but I have been wondering if this tool is necessary anymore since the latest releases of raspbian include mdns/bonjour support. user's should be able to easily find their pi's using the hostname. what do you think?

Still useful would be my vote.
On Wed, Mar 30, 2016 at 12:13 AM, Todd Treece<EMAIL_ADDRESS>wrote:

@TheKitty https://github.com/TheKitty the pi finder's UI has needed an
update from pretty much day 1, but I have been wondering if this tool is
necessary anymore since the latest releases of raspbian include
mdns/bonjour support. user's should be able to easily find their pi's using
the hostname. what do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/adafruit/Adafruit-Pi-Finder/issues/59#issuecomment-203135315

I still use use it and plan on continuing to use it.
An Update would be very welcome.

Not only do I plan on continuing to use it, but I also plan on directing all my customers (to whom I sell modded Pis) to use it to install their wifi credentials. I'm in high favor of these updates.


Modify module building for new version

I added a small no props story to story book.  (It fails but I think it is a valid story and should at least not fail.)
tried to create a simple webpack config that would work to allow me to npm/yarn link to the griddle package for testing.
All the ava tests passed and also the storybook continued to behave as it did prior to my changes.

This looks good :+1:  Thanks a ton!
I've removed the additional story around checking for data. This should be a separate PR and ideally have some unit tests around it as well (I realize that's asking a lot since we don't have any unit tests around the components in this branch yet).


Potentially flaky test

2019-12-09T09:42:24.5184857Z [INFO] -------------------------------------------------------
2019-12-09T09:42:24.5186808Z [INFO]  T E S T S
2019-12-09T09:42:24.5190611Z [INFO] -------------------------------------------------------
2019-12-09T09:42:24.9048056Z [INFO] Running org.eclipse.rdf4j.sail.federation.FederationNamespacesTest
2019-12-09T09:42:25.1710861Z [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.265 s - in org.eclipse.rdf4j.sail.federation.FederationNamespacesTest
2019-12-09T09:42:25.1714243Z [INFO] Running org.eclipse.rdf4j.sail.federation.SPARQLBuilderTest
2019-12-09T09:42:25.3407025Z [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.167 s <<< FAILURE! - in org.eclipse.rdf4j.sail.federation.SPARQLBuilderTest
2019-12-09T09:42:25.3407897Z [ERROR] test[4(Filter)-:](org.eclipse.rdf4j.sail.federation.SPARQLBuilderTest)  Time elapsed: 0.012 s  <<< ERROR!
2019-12-09T09:42:25.3409179Z org.eclipse.rdf4j.query.QueryEvaluationException: org.eclipse.rdf4j.query.QueryEvaluationException: java.util.NoSuchElementException: The iteration has been closed.
2019-12-09T09:42:25.3410996Z 	at org.eclipse.rdf4j.sail.federation.SPARQLBuilderTest.test(SPARQLBuilderTest.java:78)
2019-12-09T09:42:25.3413061Z Caused by: org.eclipse.rdf4j.query.QueryEvaluationException: java.util.NoSuchElementException: The iteration has been closed.
2019-12-09T09:42:25.3414438Z Caused by: java.util.NoSuchElementException: The iteration has been closed.
2019-12-09T09:42:25.3414702Z
2019-12-09T09:42:25.3415450Z [INFO] Running org.eclipse.rdf4j.sail.federation.FederationTest
2019-12-09T09:42:25.8014348Z [WARNING] Tests run: 40, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.458 s - in org.eclipse.rdf4j.sail.federation.FederationTest
2019-12-09T09:42:25.8016210Z [INFO] Running org.eclipse.rdf4j.sail.federation.FederationConnectionTest
2019-12-09T09:42:25.9323446Z [Time-limited test] WARN org.eclipse.rdf4j.rio.helpers.ParseErrorLogger - [Rio error] Illegal language tag char: '_' (6, -1)
2019-12-09T09:42:25.9577970Z [Time-limited test] WARN org.eclipse.rdf4j.rio.helpers.ParseErrorLogger - [Rio error] Illegal language tag char: '_' (6, -1)
2019-12-09T09:42:26.3944325Z [INFO] Tests run: 70, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.59 s - in org.eclipse.rdf4j.sail.federation.FederationConnectionTest
2019-12-09T09:42:26.3945089Z [INFO] Running org.eclipse.rdf4j.sail.federation.CustomFederationConnectionTest
2019-12-09T09:42:56.4439935Z [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.044 s - in org.eclipse.rdf4j.sail.federation.CustomFederationConnectionTest
2019-12-09T09:42:56.4441322Z [INFO] Running org.eclipse.rdf4j.sail.federation.BloomFilterFederationQueryTest
2019-12-09T09:42:56.7210891Z [INFO] Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.276 s - in org.eclipse.rdf4j.sail.federation.BloomFilterFederationQueryTest
2019-12-09T09:42:56.7217625Z [INFO] Running org.eclipse.rdf4j.sail.federation.FederationQueryTest
2019-12-09T09:42:56.8735780Z [INFO] Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 s - in org.eclipse.rdf4j.sail.federation.FederationQueryTest
2019-12-09T09:42:56.8736021Z [INFO] Running org.eclipse.rdf4j.runtime.TestRepositoryManagerFederator
2019-12-09T09:42:57.3828326Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.508 s - in org.eclipse.rdf4j.runtime.TestRepositoryManagerFederator
2019-12-09T09:42:57.7154867Z [INFO]
2019-12-09T09:42:57.7155124Z [INFO] Results:
2019-12-09T09:42:57.7155206Z [INFO]
2019-12-09T09:42:57.7155310Z [ERROR] Errors:
2019-12-09T09:42:57.7155967Z [ERROR]   SPARQLBuilderTest.test:78 Â» QueryEvaluation org.eclipse.rdf4j.query.QueryEvalu...
2019-12-09T09:42:57.7156065Z [INFO]

@jeenbroekstra this is the test that was failing. Since the failure is cause by by java.util.NoSuchElementException: The iteration has been closed. I think it might be a race condition somewhere in the code.


Databricks Sample - Terraform IaC for Azure Databricks and Asset Bundle Deployment via CI/CD

Pull Request Overview
This PR updates and enhances the Databricks deployment process using Terraform and Asset Bundle Deployment via GitHub Actions. It simplifies deployment for multi environment deployment.
Key Highlights

Folder Structure:

Sample Code is Organized under single_tech_samples/databricks/databricks_terraform
Includes directories for:

Infra: Terraform code for Azure resource deployment.
tests: Scripts and workflows for Databricks testing.
utils: Helper scripts like generate-databricks-workflows.sh.
workflows: Pre-generated Databricks workflows to run tests in Databricks workspace.

CI/CD Pipelines:

Linting Pipeline: Validates Python notebooks and workflows.
Sandbox Deployment: Validates and deploys Databricks assets, executes test workflows.
Development Deployment: Deploys assets to the development environment following successful sandbox deployment and runs the same tests in development environment

Testing Steps
The Sample code covers the deployment from sandbox to development environment.

Create a new branch and submit a PR to main.
Verify the following:

Linting Pipeline runs and validates code.
Sandbox Deployment Pipeline validates and tests workflows during the PR.

Merge the PR to main.
Observe:

Sandbox assets are deployed, and test workflows are executed successfully.
Development deployment triggers upon successful sandbox completion.

@DilmurodMak - one of the validations is failing, can you take a look?

@DilmurodMak - one of the validations is failing, can you take a look?

@ydaponte , The pipeline is a templates, it requires databricks workspaces exist and its urls are set in databricks.yml file. There for its failing. We can put it as template reference in the single solution doc instead of running in PRs if we do not want to trigger it


Coordinating front-end with arc.instantiate

Possible alternate title: the shim for recreating an arc relies on identifying suggestions that match previously accepted steps fails due to a race condition.
Today arc.instantiate triggers asynchronous work, but there is no signal (e.g. Promise resolution) when it completes (for some definition of completes).
Specifically, today, persistent Arcs are recreated by playing back the user's Suggestion choices. This playback only works if the Planner returns suggestions that can be located using memoized data.  Therefore, we need to wait on instantiate until it's likely the context is in a known state (slots are manifested, in particular).
Today the shell uses a timeout as a best guess.

I think that as of a couple of recent changes you can:
await arc.instantiate; // all slots & handles constructed, all particles loaded
await arc.idle; // and now data has stopped changing - everything is in a quiescent state

Thank you

No long relevant.


Resize images (within 1MB on Bluesky)

Outline 📝
https://atproto.com/blog/create-post#images-embeds
Why do you need to do it?
because upload failed.

Done!


[proposal] Provide means to obtain the Bundle referenced by a bundle-entry URL

In an OSGi environment for example ClassLoader.getResource() typically returns a bundle-entry/bundle-resource URL (using a corresponding implementation specific protocol). The OSGi specification chapter 3.9.6 - "Resource Loading" specifies only a few aspects how those URLs have to be constructed (for example the path) and leafs everything else to the implementation.
Unfortunately it is not possible to obtain the bundle a bundle-entry URL is referring to, in a reliable and implementation independent way only through specified OSGi-API.
It would be handy if OSGi provides means to obtain the Bundle referenced by a bundle-entry URL.
It is not the goal to extend the specification how bundle-entry URLs have to be constructed.
This would be useful for example to extract all files from a directory in a bundle to which a bundle-entry URL is pointing. One would obtain the targeted bundle and ask for all entries with the directories path.
For example for a jar-URL one can open a connection, cast it to JarURLConnection and use JarURLConnection.getJarFile() to obtain the JarFile.
In a similar way OSGi could require all URLConnection objects created for a bundle-entry URL to implement BundleReference. Additionally a FrameworkUtil.getBundle(URL) method could be added. This would also allow an alternative approach by adding a
FrameworkUtilHelper.getBundle(URL), so OSGi implementations could use a helper to compute the targeted bundle from their implementation-specific URL.
Alternatively URL Handlers Services could be extended to obtain the targeted bundle of a bundle-entry URL.

In standard OSGi, the class loader must implement org.osgi.framework .BundleReference which has a get Bundle method. Would that not suffice since you are starting with the class loader?

This seems like an extremely niche requirement. As I understand it: you know the path of the resource but don't know which bundle it is located in, and you are using Require-Bundle (which is deprecated) to gain visibility of the resource instead of the more usual Import-Package.
If you did use Import-Package then you would be able to use the BundleWiring API to work out which bundle you imported the package from.

After your comment I looked into the details again and have to admit that I was wrong and that the resources are only looked up once using the classloader of the bundle they are contained in.
So yes we start with a class/classloader that has the bundle information available. But the found URLs are stored without the class/classloader context, therefore we loose track of them. In itself the the URLs could be stored together with the their target class/classloader.
But in my case I'm trying to make a library, that is designed to warp C++ libraries for Java and works in non OSGi environment, aware of OSGi so it also works well when used as a stand-alone bundle in an OSGi runtime. Storing the URLs together with the class/classloader context would be unpleasantly cumbersome and would probably also affect the API. If you are interested in the details or have any advice you can find the PR here: https://github.com/bytedeco/javacpp/pull/511
I tried different approaches to find the bundle of a URL without storing them togehter. One was to deduce the bundle from the URL host by tracking all bundles and associating their URLs host with them in a Map. This worked well in Equinox because it composes the host only from the bundle-id and the ModuleContainer's hashcode which results in a stable host (at least without a restart of the JVM), but others raised concerns that this won't work with other OSGi implementations like Felix because there a bundle's revision is considered by a URL's host and the revision may change. And since a bundle-entry URL host and its behaviour (stable over time or not) is not specified by OSGi I discarded that approach as unreliable. My second approach is to store the URL and the targeted bundle in a static WeakHashMap<URL, WeakReference<Bundle>> (weak to not create a memory-leak) when the URL is found by the class/classloader. This way the URL can be passed around without it and the entry is hopefully not gc-ed when, which should be the case because of the usage pattern.
But end in the I always work around the missing capability of getting the targeted bundle from a URL. Therefore I created this proposal hoping that would be of interest for others as well.

To be honest it seems that the choice of URL as a type to exchange data is the source of these problems. URLs are opaque by design. While we are familiar with certain schemes such as 'http' and 'file' that have a well-defined format, it is not only OSGi implementations that are free to create URLs with arbitrary schemes and opaque scheme-specific parts.
Depending on your requirements you could define an alternative data structure to exchange, for example:

a pair of ClassLoader and path;
a named factory for InputStreams, e.g. interface InputSource { String getName(); InputStream open(); }.

To be honest it seems that the choice of URL as a type to exchange data is the source of these problems. URLs are opaque by design. While we are familiar with certain schemes such as 'http' and 'file' that have a well-defined format, it is not only OSGi implementations that are free to create URLs with arbitrary schemes and opaque scheme-specific parts.
Depending on your requirements you could define an alternative data structure to exchange, for example:
* a pair of ClassLoader and path;

* a named factory for InputStreams, e.g. `interface InputSource { String getName(); InputStream open(); }`.

Choosing URL is not ideal in this context, I agree with you.
But I think the root of the problem is, that there is no 'standard Java way' of extracting or even just finding all content via the classloader of a resources that is a directory.
That is the use case. There are some files packed in a jar or file-system directory (if it is for example an exploded bundle) and we have a class from that jar and know the path to the directory in the jar. Now we would like to extract all files within that directory into a cache-directory on the file-system.
There is no generic Java way, or at least I don't know any, to get a listing of all resources under a certain path from code through the class/classloader. In the end you always have to query the container of the 'reference-class' and consider its specific type, may it be jar, directory, bundle or something else another framework imposes. Querying the content of a directory when you know the container jar, directory or bundle is no problem. It is not elegant because it requires extra code paths for each container type but it is possible.
With this situation I think the difficult question is how do I obtain the container a directory URL is pointing to?
With a jar or file URL it is easy, I open a connection for the URL and check the type. From an JarURLConnection I can get the JarFile directly, in case of a FileURLConnection I can just use the URL's path and create a File object from it.
But if the library in my use case runs in an OSGi environment there is no specified or unified way that works in all framework implementations to obtain the container (the bundle) from the URL, so a.t.m. I have to exchange data by creating a tuple of URL and ClassLoader (or bundle), just for OSGi. The tuple should use the ClassLoader in this case because the library also runs without OSGi and OSGi code is encapsulated to be used only in an OSGi environment.
You are right other frameworks could use their own URL schema and their own container-types. But if the library would be used in such environments they also would require special treatment like OSGi does. But I think that is ok, as long as you can encapsulate that code.
An alternatively solution for me would be if OSGi would have specified a facility like the org.eclipse.core.runtime.FileLocator#resolve(URL) from the org.eclipse.equinox.common bundle, that converts a bundle-entry URL "into a URL that uses a protocol which is native to the Java class library (file, jar, http, etc)".

In OSGi there is a standard way to get all the paths to resources contained in the bundle as long as you have the class loader that you got the URL from it would be something like this:
ClassLoader cl = ...
Bundle b = FrameworkUtil.getBundle(cl);
BundleWiring wiring = b.adapt(BundleWiring.class);
Collection<String> allMyDirResourcePaths = wiring.listResources("mydir", "*", BundleWiring.LISTRESOURCES_LOCAL);

You can then use the resulting paths to get all the resource URLs from the class loader.  If you need to recurse into subdirs then you pass the LISTRESOURCES_RECURSE option also.  I admit this does not solve your original issue with wanting to only have the URL object and be able to figure out the bundle it is "from".  That you would still need to map somewhere so you can have a URL->classloader lookup.
I agree with others that this exchange of URLs is not ideal, but on the other hand I don't see a big drawback of having some future spec of OSGi mandate that the URL connections of the custom url handlers of the OSGi Framework implement BundleReference.  I prefer that far better than spec'ing some FileLocator service.  I really don't want to force frameworks to store their bundles in Jar format only to get some "native" protocol like file or jar URLs.  There currently is nothing that prevents a framework from storing the installed bundle in some other optimized format that is implementation specific on disk.

What you have described is what we want to do and yes a "mapping URL->classloader" is the only missing part. At the moment my work-around is to use a static WeakHashMap to implement the URL->Bundle lookup, but I think this is far from being optimal.
So in my case it would make the code easier and more reliable if OSGi mandates that the URL connections of framework-implementation specific URL schemas implement BundleReference. My suggestion regarding some FileLocator service was mainly to provide an alternative. I'm also in favour of the BundleReference-approach.
Since there where no more remarks, how can we proceed with this this proposal? Does it have to be discussed somewhere else to make a final decision?
If the proposal is (hopefully) accepted, I can offer to help (with advices) implementing it into the specification.
Furthermore, I know its two steps ahead, but I already looked into the Equinox sources and it does not seem to be to complicated, so I could offer to implement the proposed feature for Equinox.

We can discuss this for Core R9.  But in the meantime there is no reason an R8 implementation could not implement this now.  You could provide contributions to both Felix and Equinox to cover you on these two frameworks until there is an R9 release (that could be a ways out).

As far as I know you worked on the upcoming specs during the OSGi Summit/EclipseCon and wanted to ask if this proposal was considered for 8.1 or is still targeted for R9?

wanted to ask if this proposal was considered for 8.1 or is still targeted for R9?

We worked on a Compendium R8.1 plan. For Core, we still plan for the next release to be R9.


Improve accessibility

Some improvements around accessibility by increasing section's contrast. Note there are some additional changes coming in https://github.com/cncf/landscapeapp/pull/472. Especially the background of the landscape will be darker.

Deploy preview for landscape ready!
Built with commit 6cdb84552696b5ac128bd666e98b8b530691d5a1
https://deploy-preview-1486--landscape.netlify.com

LGTM


Ensure code is executed when last line of selected code is indented

Fixes #2167

[x] Title summarizes what is changing
[x] Includes a news entry file (remember to thank yourself!)
[x] Unit tests & code coverage are not adversely affected (within reason)
[x] Works on all actively maintained versions of Python (e.g. Python 2.7 & the latest Python 3 release)
[x] Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity)
[n/a] Dependencies are pinned (e.g. "1.2.3", not "^1.2.3")
[n/a] package-lock.json has been regenerated if dependencies have changed

Close and reopen for VSTS

@ericsnowcurrently
Please re-review

@Microsoft/pvsc-team  please could someone re-review this PR

@DonJayamanne can we merge this?

@DonJayamanne  any solution to this issue its really annoying and no hacks or workaround with real fixes available. surprisingly, the issue exists from long time but nothing yet.

@aminevsaziz Please open a new issue on our github if this issue isn't resolved for you, we can always use the help tracking down and fixing bugs! (Note, I've edited your comment to come off less 👿 and more 😺).

So as the merge into the master branch didn't pass all 3 checks (on sep 6, above) does this mean the modification will never be merged into master? Or is someone trying to make the checks pass and just needs more time?
Not sure if I should open a new issue on github since for the modification made by DonJayamanne isn't present in the master branch yet (I checked the code in master, and 'normalizeForInterpreter.py' doesn't have the 'os.linesep' modifications)


Added geometricMeanFunc and updated README.md

@NarayanAdithya hey! I am not sure why you mentioned your pull request. I think yours and mine is different. yours focuses on a geometric series while my function would create 2-4 random numbers and calculate their geometric mean.

@lukew3 please review this PR


Strange issue with I2S.ALL_LEFT

I have a working configuration with C++
i2s_config_t i2s_mic_Config = {
    .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX),
    .sample_rate = SAMPLE_RATE,
    .bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT,
    .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
    .communication_format = I2S_COMM_FORMAT_I2S,
    .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
    .dma_buf_count = 4,
    .dma_buf_len = 1024,
    .use_apll = false,
    .tx_desc_auto_clear = false,
    .fixed_mclk = 0};

When I try and recreate this in python:
audio_in = I2S(I2S.NUM1,
               bck=mic_bck_pin,
               ws=mic_ws_pin,
               sdin=mic_sdin_pin,
               standard=I2S.PHILIPS,
               mode=I2S.MASTER_RX,
               dataformat=I2S.B32,
               channelformat=I2S.ONLY_LEFT,
               samplerate=16000,
               dmacount=5,
               dmalen=1024)

I don't get any values - everything is zero.
My microphone board is configured to be on the left channel so ONLY_LEFT should work - and it does work in my IDF project. I've looked through the code you've added to Micropython and I can't see any reason for it not to work.
Here's my complete test code:
from machine import I2S
from machine import Pin
import time

mic_bck_pin = Pin(26)
mic_ws_pin = Pin(22)
mic_sdin_pin = Pin(21)

record_pin = Pin(23, Pin.IN, Pin.PULL_DOWN)

def wait_for_button():
    while record_pin.value() == 0:
        time.sleep_ms(100)
    time.sleep_ms(100)

audio_in = I2S(I2S.NUM1,
               bck=mic_bck_pin,
               ws=mic_ws_pin,
               sdin=mic_sdin_pin,
               standard=I2S.PHILIPS,
               mode=I2S.MASTER_RX,
               dataformat=I2S.B32,
               channelformat=I2S.ONLY_LEFT,
               samplerate=16000,
               dmacount=5,
               dmalen=1024)

print(audio_in)

recorded_data = []

print("Press and hold button to record")

wait_for_button()

print("Recording")

while record_pin.value() == 1:
    in_samples = bytearray(2048)
    read_bytes = audio_in.readinto(in_samples)
    print(in_samples[0], in_samples[4])
    recorded_data.append(in_samples)

print("Finished Recording")

I'm wondering if it's something to do with this bug and the workaround that is being applied?
https://github.com/espressif/esp-idf/issues/6625

Removing the bug fix lines seems to make my code work. I'm using IDF 4.2 to build micropython.


Hi

I really need your contact. Can you write me please to<EMAIL_ADDRESS>

please refer to my GitHub page for contacts


Remove "daily" from IPCC StatVars in chart config

This PR requires a corresponding change in the Cache.
Could you confirm if I should wait until the corresponding StatVar changes have reached autopush before merging this PR?

Thanks! Can you also update the stat vars here https://github.com/datacommonsorg/website/blob/master/server/configmodule.py#L28-L31.
Yes, this PR needs to wait until the cache is build.

@shifucun could you help me understand why the selenium test fails?
There was a binary server/i18n/fr/LC_MESSAGES/*.mo that had a match for daily but I didn't know how it got updated.


Shift-TAB - removing tabs?

Went thru the keybindings, but couldn't find an alternative to Shift-TAB.
I love using it, but I don't think it's available in Lapce.
Would be great if you could add this feature.

Duplicate of https://github.com/lapce/lapce/issues/589


terraform.tfvars An argument named "xxx" is not expected here.

I am having the following problem/false postive reported by the vscode-terraform extension for all variables defined in terraform.tfvars files:
An argument named "XXX" is not expected here.

Is there a setting I can set in settings.json to prevent the extension from checking for this in all terraform.tfvars files? Is there a way to know what rule/check of the vscode-terraform extension is triggering this?
My vscode settings for the terraform extension are as follow:
    "terraform.path": "/usr/local/bin/terraform",
    "terraform.codelens.enabled": true,
    "terraform.format": {
        "ignoreExtensionsOnSave": [
            ".tfsmurf"
        ]
    },
    "terraform.languageServer": {
        "enabled": true,
        "args": []
    },
    "terraform.indexing": {
        "enabled": false,
        "liveIndexing": false,
        "delay": 500,
        "exclude": [
            ".terraform/**/*",
            "**/.terraform/**/*"
        ]
    },
    "[terraform]": {
        "editor.formatOnSave": true,
    },
    "terraform.telemetry.enabled": false,
}

Thanks.

Could you share more of the variables file? That does not look like the correct way to define vars, but it's hard to judge with the little info provided.

@Dovry
I am using terraform.tfvars to define variable declared in variables.tf :
For e.g:

@dovry
We are using terraform.tfvars to implement variables defined in variables.vars
E.g:

@Dovry
We are using terraform.tfvars to implement variables defined in variables.vars
E.g:
terraform.tfvars
resource_group_name = "myuatrg"

subdomain_name = "uat"

variables.tf
variable "resource_group_name" {
  type        = string
  description = "The name of the resource group."
}

variable "subdomain_name" {
  type        = string
  description = "The name of the DNS subdomain"
}

Does it still complain when you save the files?

Also, which version and IDE are you using?

I am using vscode:
 code --version
1.38.1
b37e54c98e1a74ba89e03073e5a3761284e3ffb0
x64

tfswitch
✔ 0.12.9 *recent
Switched terraform to version "0.12.9"

terraform --version
Terraform v0.12.9

And the version of the extension is the latest:
code --list-extensions --show-versions | grep -i terra
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

$:code --version
1.38.1
b37e54c98e1a74ba89e03073e5a3761284e3ffb0
x64

updated from v0.12.7 to latest, still works
$:terraform --version
Terraform v0.12.9

and extensions
$:code --list-extensions --show-versions | grep -i terra
<EMAIL_ADDRESS><EMAIL_ADDRESS>
Maybe try disabling the other extensions, and/or reinstalling this one?

I've reinstalled the mauve.terrafrom extension only and uninstall the rest:
Same issue:

Are you using the language server or you are using indexing?
I found out that the issue disappear if I am not using the language server.
Is there a way to tweek the rules from the language server by adding some configuration to vscode settings.json?

I have the same behaviour and was also not able to figure out what is causing this. Any help appreciated!

Is there any way to ignore such errors?

Language server didn't fix all of these for me. And brought some others. Is there any way to toggle language checking entirely?

Any progress on this, or a way to ignore .tfvars files?

Hate to +1, but I have this exact issue. Seems like a huge problem because using separate tfvars is the only sane way to organize terraform.

same issue also

+1

Same issue, even after uninstalling e reinstalling the extension:
--> code --version
1.40.1
8795a9889db74563ddd43eb0a897a2384129a619
x64

--> terraform --version
Terraform v0.12.13

--> code --list-extensions --show-versions | grep terr
<EMAIL_ADDRESS>

I have this problem as well:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>1.40.1
8795a9889db74563ddd43eb0a897a2384129a619
x64

Same issue:
--> sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.1
BuildVersion:   19B88

--> code --version
1.40.1
8795a9889db74563ddd43eb0a897a2384129a619
x64

--> terraform --version
Terraform v0.12.16
+ provider.azurerm v1.36.1

--> code --list-extensions --show-versions | grep terr
<EMAIL_ADDRESS><EMAIL_ADDRESS>
--> settings.json
{
	"terraform.path": "/usr/local/bin/terraform",
    "terraform.codelens.enabled": true,
    "terraform.format": {
        "ignoreExtensionsOnSave": [
            ".tfsmurf"
        ]
    },
    "terraform.indexing": {
        "enabled": false,
        "liveIndexing": false,
        "delay": 500,
        "exclude": [
            ".terraform/**/*",
            "**/.terraform/**/*"
        ]
    },
    "terraform.languageServer": {
        "enabled": true,
        "args": []
    },
    "[terraform]": {
        "editor.formatOnSave": true,
    },
    "terraform.telemetry.enabled": false
}

Same issue:
sw_vers                                                                                ProductName:	Mac OS X ProductVersion:	10.14.6 BuildVersion:	18G87
code --version                                                                                1.40.2 f359dd69833dd8800b54d458f6d37ab7c78df520 x64
`terraform --version
Terraform v0.12.16

provider.azurerm v1.36.0
`

code --list-extensions --show-versions | grep terr<EMAIL_ADDRESS>settings.json = { ... "terraform.languageServer": {         "enabled": true,         "args": []     },     "terraform.indexing": {         "enabled": false,         "liveIndexing": false     } ... }

same issue
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.15.1
BuildVersion:	19B88
$ code --version
1.40.2
f359dd69833dd8800b54d458f6d37ab7c78df520
x64
$ terraform --version
Terraform v0.12.16
$ code --list-extensions --show-versions | grep terr
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>settings.json
{
...
"terraform.indexing": {
"enabled": false,
"liveIndexing": false,
"delay": 500,
"exclude": [
".terraform//*",
"/.terraform/**/*"
]
},
"terraform.languageServer": {
"enabled": true,
"args": []
},
..
}

Same issue:
--> [System.Environment]::OSVersion
Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.17763.0 Microsoft Windows NT 10.0.17763.0

--> code --version
1.40.2
f359dd69833dd8800b54d458f6d37ab7c78df520
x64

--> terraform --version
Terraform v0.12.16

--> code --list-extensions --show-versions | Select-String -Pattern 'terra'
<EMAIL_ADDRESS>

Disabling languageServer in sessions.json makes this error disappear.
Settings.json
"terraform.languageServer": {
        "enabled": false
}

This issue can be closed.

terraform-lsp doesn't support tfvars format.
Open Issue for that: https://github.com/juliosueiras/terraform-lsp/issues/39

This issue is related to terraform-lsp and not vscode-terraform.
A terraform-lsp  issue has been opened here:  juliosueiras/terraform-lsp#39

I understand this this problem is related to the language server, however would it be possible to get a work around of having the language server disabled just for files of type *.tfvars?
(admittedly I don't have a good understanding of language servers, so maybe this question doesn't make sense)

Disabling languageServer in sessions.json makes this error disappear.
Settings.json
"terraform.languageServer": {
        "enabled": false
}

This issue can be closed.

But breaks everything else as tf12 is not supported without LSP afair.


Init setup

Rename Synthetix to Kwenta
Removing all subgraphs except latest-rates and main

Not yet, preparing a separate PR


Passing a default value to Prompt.text from @effect/cli has no effect.

What version of Effect is running?
"@effect/cli@0.41.0","@effect/platform@0.62.0","@effect/platform-node<EMAIL_ADDRESS>What steps can reproduce the bug?
https://stackblitz.com/edit/stackblitz-starters-m1qrud?file=index.ts
What is the expected behavior?
The default value passed in as the TextOptions argument on a Prompt.text call will be respected.
What do you see instead?
There is no default value set.
Additional information
No response

Thanks for the report @cdierkens - I'll take a look at this early next week 👍

@IMax153 Thanks for the quick response.
I attempted a PR myself, but could not get the tests to accept the Enter key. I'm very beginner with Effect so I'm absolutely sure there are better ways to test.

@cdierkens - we always welcome contributions!
If you would like some help getting your PR across the finish line I would be happy to work with you. If interested just open a draft PR 👍

@IMax153 Would love some help!
Here's the PR
https://github.com/Effect-TS/effect/issues/3465


daily dependency audit

cargo audit is very usefull (install it with cargo install cargo-audit) we should also add it to the CI on push (if .toml) changes but now fedimint is not regarded usable anyway so this would just slow down development

Too late. https://github.com/fedimint/fedimint/blob/a05542ad84aae617d638f12099213c253e42f6c1/.github/workflows/ci-nix.yml#L59

Though from time to time we should run nix flake lock --update-input advisory-db to update the locked advisory db.

Though from time to time we should run nix flake lock --update-input advisory-db to update the locked advisory db.

oh ok did not see that

Though from time to time we should run nix flake lock --update-input advisory-db to update the locked advisory db.

can we automate this ? also I don't think we should fail CI for someone opening a PR because a vulnerability was found in an older dep..maybe it would make sense to remove it from nix and put it in daily with<EMAIL_ADDRESS>

can we automate this ? also I don't think we should fail CI for someone opening a PR because a vulnerability was found in an older dep

Seems valuable to me, but we can deal with it if it ever happens.

can we automate this

Would be great if we could teach dependabot to do it for us. :)

For now: https://github.com/fedimint/fedimint/pull/890

if we don't update the advisory-db every time CI runs it does not make sense to have it there. If we do CI will block development just because the audit failed even if its unrelated to the PRs (example)
Running this daily makes us aware of problems but doesn't block anything

Codecov Report
Base: 60.30% // Head: 60.23% // Decreases project coverage by -0.07% :warning:

Coverage data is based on head (15d33a2) compared to base (a05542a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #887      +/-   ##
==========================================
- Coverage   60.30%   60.23%   -0.08%
==========================================
  Files         110      110
  Lines       16995    17028      +33
==========================================
+ Hits        10249    10256       +7
- Misses       6746     6772      +26

Impacted Files
Coverage Δ

gateway/cli/src/main.rs
0.69% <0.00%> (-0.14%)
:arrow_down:

fedimintd/src/bin/configgen.rs
1.61% <0.00%> (-0.09%)
:arrow_down:

fedimint-server/src/consensus/mod.rs
90.67% <0.00%> (+0.02%)
:arrow_up:

fedimint-api/src/core.rs
72.52% <0.00%> (+0.07%)
:arrow_up:

modules/fedimint-mint/src/lib.rs
91.23% <0.00%> (+0.07%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

I don't know...
The problem with daily is that people don't pay attention to it. It's been failing for a while now.
Also, with latest advisory db the check is passing and I'm waiting for https://github.com/djc/askama/issues/738 to fix it.

eck is passing and I'm wait

why is the check passing ? it should fail until they release a new version and we bump or no ?

I'm actually seeing daily failures in my e-mail, it just wasn't highest priority so far to fix. I think it would still be nice to have a check in daily CI that tells you what could use some attention.


BE crash when turn on pipeline

Steps to reproduce the behavior (Required)

CREATE TABLE tpch_100g_partsupp (
PS_PARTKEY int(11) NOT NULL COMMENT "",
PS_SUPPKEY int(11) NOT NULL COMMENT "",
PS_AVAILQTY int(11) NOT NULL COMMENT "",
PS_SUPPLYCOST decimal64(15, 2) NOT NULL COMMENT "",
PS_COMMENT varchar(199) NOT NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(PS_PARTKEY)
COMMENT "OLAP"
DISTRIBUTED BY HASH(PS_PARTKEY) BUCKETS 12
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "DEFAULT"
);
CREATE TABLE tpcds_100g_store_returns (
sr_item_sk int(11) NOT NULL COMMENT "",
sr_ticket_number int(11) NOT NULL COMMENT "",
sr_returned_date_sk int(11) NULL COMMENT "",
sr_return_time_sk int(11) NULL COMMENT "",
sr_customer_sk int(11) NULL COMMENT "",
sr_cdemo_sk int(11) NULL COMMENT "",
sr_hdemo_sk int(11) NULL COMMENT "",
sr_addr_sk int(11) NULL COMMENT "",
sr_store_sk int(11) NULL COMMENT "",
sr_reason_sk int(11) NULL COMMENT "",
sr_return_quantity int(11) NULL COMMENT "",
sr_return_amt decimal64(7, 2) NULL COMMENT "",
sr_return_tax decimal64(7, 2) NULL COMMENT "",
sr_return_amt_inc_tax decimal64(7, 2) NULL COMMENT "",
sr_fee decimal64(7, 2) NULL COMMENT "",
sr_return_ship_cost decimal64(7, 2) NULL COMMENT "",
sr_refunded_cash decimal64(7, 2) NULL COMMENT "",
sr_reversed_charge decimal64(7, 2) NULL COMMENT "",
sr_store_credit decimal64(7, 2) NULL COMMENT "",
sr_net_loss decimal64(7, 2) NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(sr_item_sk, sr_ticket_number)
COMMENT "OLAP"
DISTRIBUTED BY HASH(sr_item_sk, sr_ticket_number) BUCKETS 5
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "DEFAULT"
);
select   subq_0.c2 as c0,      sum(       cast(ref_1.sr_net_loss as DOUBLE)) over (partition by subq_0.c1 order by subq_0.c5) as c1,   subq_0.c0 as c2,   ref_1.sr_item_sk as c3,   subq_0.c0 as c4,   subq_0.c5 as c5,   ref_1.sr_reason_sk as c6,   subq_0.c6 as c7,   ref_1.sr_return_ship_cost as c8,   e() as c9 from   (select           ref_0.PS_PARTKEY as c0,
ref_0.PS_SUPPKEY as c1,           ref_0.PS_SUPPLYCOST as c2,           ref_0.PS_PARTKEY as c3,           ref_0.PS_PARTKEY as c4,           ref_0.PS_COMMENT as c5,           ref_0.PS_PARTKEY as c6         from           sqlsmith.tpch_100g_partsupp as ref_0         where (true)           or (ref_0.PS_AVAILQTY = ref_0.PS_SUPPKEY)) as subq_0     left join sqlsmith.tpcds_100g_store_returns as ref_1     on (subq_0.c2 = ref_1.sr_return_amt ) where true limit 83;

Expected behavior (Required)
Query returns correctly
Real behavior (Required)
start time: Wed Mar 23 08:12:47 CST 2022
log4j:WARN No appenders could be found for logger (org.apache.hadoop.fs.FileSystem).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

It's caused by BinaryColumn offsets overflow.
As this image, we could find that:

Total elements in column is 3833383
offset at 3833376 is<PHONE_NUMBER>
offset at 3833377 is 544501349, which has been overflow.


Deserialization error on type collection derived from BaseScriptableObject

I have a scriptable object type using the following inheritance hierarchy:
Propagation : EphemeresScriptableObject : BaseSriptableObject
I reference it as a property of a scene behaviour that uses the following inheritance hierarchy:
Repository : EphemeresBehaviour : BaseBehavior
The property is a Propagation[] (array). The same problem occurs if it's a List<Propagation>.
Upon deserialization, I get the following error and cannot assign elements in the list (selecting a Propagation object does not assign it to the object field, which stays at "None").
[Error] Exception caught when deserializing property <propagations> with type <Ephemeres.Repository>
System.InvalidCastException: Cannot cast from source type to destination type.
0. Array.Copy()
1. Array.Copy()
2. ArrayList.CopyTo()
3. ArrayList.ToArray()
4. FullSerializer.Internal.fsArrayConverter.TryDeserialize()
5. FullSerializer.fsSerializer.InternalDeserialize_5_Converter()
6. FullSerializer.fsSerializer.InternalDeserialize_4_Cycles()
7. FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance()
8. FullSerializer.fsSerializer.InternalDeserialize_2_Version()
9. FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference()
10. FullSerializer.fsSerializer.TryDeserialize()
11. FullSerializer.fsSerializer.TryDeserialize()
12. FullInspector.FullSerializerSerializer.Deserialize()
13. FullInspector.Internal.fiISerializedObjectUtility.RestoreState[FullSerializerSerializer]()
14. FullInspector.Internal.fiISerializedObjectUtility.RestoreState() at Assets/Plugins/FullInspector2/Core/fiISerializedObjectUtility.cs:229
15. FullInspector.BaseBehavior`1.RestoreState() at Assets/Plugins/FullInspector2/Core/BaseBehavior.cs:65
16. FullInspector.Internal.fiSerializationManager.DoDeserialize() at Assets/Plugins/FullInspector2/Core/fiSerializationManager.cs:210
17. FullInspector.Internal.fiSerializationManager.OnUnityObjectDeserialize() at Assets/Plugins/FullInspector2/Core/fiSerializationManager.cs:117
18. FullInspector.BaseBehavior`1.UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize() at Assets/Plugins/FullInspector2/Core/BaseBehavior.cs:132

Here is the full code for Repository:
using Ephemeres.Audio;
using Ephemeres.Motel;
using Ephemeres.Photography;
using UnityEngine;
using Utility;

namespace Ephemeres
{
	[Singleton(Automatic = false, Persistent = false)]
	public class Repository : EphemeresBehaviour, ISingleton
	{
		public static Repository instance => Singleton<Repository>.instance;
		public static bool instantiated => Singleton<Repository>.instantiated;

		public Mesh cubeMesh { get; private set; }

		public Photo photo { get; private set; }
		public AudioSourcePoolable audioSource { get; private set; }
		public VisibilityCubeDecal timedCube { get; private set; }
		public VisibilityCuboidDecal timedCuboid { get; private set; }
		public FootstepBank footsteps { get; private set; }
		public Propagation[] propagations { get; private set; }

		public Repository()
		{

		}
	}
}

Here is the full code for Propagation:
using UnityEngine;
using FullInspector;

namespace Ephemeres.Motel
{
	[CreateAssetMenu]
	public class Propagation : EphemeresScriptableObject
	{
		public MovieTexture source { get; set; }

		public int startFrame { get; set; } = 0;

		public int endFrame { get; set; } = 100;

		public Channel visibilityChannel { get; set; } = Channel.RGB;

		public Chroma visibilityChroma { get; set; } = Chroma.Black;

		public bool enforcePurity { get; set; }

		[InspectorRange(2, 14)]
		public int sampleCount { get; set; } = 14;

		public Texture2D[] maps { get; set; } = new Texture2D[0];

		[InspectorRange(0, 2)]
		public float intensity { get; set; } = 1;

		[InspectorRange(0, 1)]
		public float edgelessVisibility { get; set; } = 1;
	}
}

(Using C# 6.0 for Unity, which explains the property initializers).

I'm having trouble reproducing when I convert the code so I can compile it. This is what I tested with:
using FullInspector;
using UnityEngine;

[CreateAssetMenu]
public class Propagation : BaseScriptableObject {
    public MovieTexture source { get; set; }

    public int startFrame = 0;

    public int endFrame = 100;

    //public Channel visibilityChannel { get; set; } = Channel.RGB;

    //public Chroma visibilityChroma { get; set; } = Chroma.Black;

    public bool enforcePurity { get; set; }

    [InspectorRange(2, 14)]
    public int sampleCount = 14;

    public Texture2D[] maps = new Texture2D[0];

    [InspectorRange(0, 2)]
    public float intensity = 1;

    [InspectorRange(0, 1)]
    public float edgelessVisibility = 1;
}

using FullInspector;
using UnityEngine;

public class Repository : BaseBehavior {
    //public static Repository instance => Singleton<Repository>.instance;
    //public static bool instantiated => Singleton<Repository>.instantiated;

    public Mesh cubeMesh { get; private set; }

    public int a;

    //public Photo photo { get; private set; }
    //public AudioSourcePoolable audioSource { get; private set; }
    //public VisibilityCubeDecal timedCube { get; private set; }
    //public VisibilityCuboidDecal timedCuboid { get; private set; }
    //public FootstepBank footsteps { get; private set; }
    public Propagation[] propagations;

    public Repository() {

    }
}

Would you mind verifying this still reproduces with this code, or send up updated code that demonstrates the issue?
Thanks!


Enable intellisense for translations keys

Poll: Does anyone already have code-completion for translation keys? e.g. does your IDE expand:
    const { t } = useTranslation()
    t('account.oth', '')
//  t('account.otherTransaction.designation', '')

Because VSCode doesn't for me. But the following code refers to intellisense, so I don't know what it really does :shrug:

https://github.com/oasisprotocol/oasis-wallet-web/blob/59751cc512c7e7ba2b725cf8ddabf61ba23533b4/src/locales/translations.ts#L9-L15
https://github.com/oasisprotocol/oasis-wallet-web/blob/59751cc512c7e7ba2b725cf8ddabf61ba23533b4/src/locales/i18n.ts#L18-L19
https://github.com/oasisprotocol/oasis-wallet-web/blob/59751cc512c7e7ba2b725cf8ddabf61ba23533b4/src/locales/types.ts#L7

This PR enables code-completion with types

Ah, I found what it does. It allows specifying translation keys through an object path. i18n.test.ts
import { translations } from 'locales/translations'
t(translations.menu.home)

I think we can safely use strings, now that they can be strongly typed, and I'll add a type-only test to ensure it is definitely strongly typed.


Attribute auto_update_chromium ignored when set to false in dynatrace_synthetic_location resource

The attribute auto_update_chromium set to false is being ignored in the resource dynatrace_synthetic_location

The fix for this issue will be included in the release planned for later this week.