Support Signals (Broadcast RPC)

Hi, I'd like to make use of Signals, which are supported in recent versions of zeebe/Camunda.
The way I understand this could be achieved by updating zeebe-grpc with uptodate protospecs, or handling it directly in pyzeebe.
Either way, the question is if pyzeebe should provide a method similar to publish_message() ?
If you don't want to support it in pyzeebe, feel free to close this and we'll instead attempt to roll our own.
ref: BroadcastSignal RPC

#475 (#476) could solve this.


Add Dumb-init To Image

Add dumb-init to solve the zombie process problem
Add headers module

Add dumb-init to act as the init process for the container and reap any zombie apache processes.

Dumb-init is there to reap any processes that finish but do not get reaped by a parent process. I thought this was going to solve the problem where apache would leave a pid file, but it didn't. Closing this PR


Merge debug tools into a single tool

We currently have lots of tools to debug

cilium monitor
cluster diagnosis
cilium-health
cilium-bugtool
cilium debug info
microscope

We should either:

merge all the command evocations in cilium client
create a new tool that contains all debug tools?

I'm not against the tools per se I would only like to call all of them from a single place.
https://xkcd.com/927/

microscope is written in Python, so it would be hard to integrate it without rewriting it from scratch.


Error while loading shared libraries. (libssl.so.1.1)

Hey there! On anchor-cli 0.24.2.
Trying to run the command anchor test but when I do so, I get hit with:
BPF SDK: /home/user/.local/share/solana/install/releases/1.9.1/solana-release/bin/sdk/bpf

cargo-build-bpf child: rustup toolchain list -v

cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release

/home/user/.rustup/toolchains/bpf/bin/cargo: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

I carefully followed all the steps from the official tutorial, https://project-serum.github.io/anchor/getting-started/installation.html#install-rust on a freshly installed version of Ubuntu 22.04.
Do you have any idea how to fix this?
== UPDATE ==
It seems that Ubuntu 22.04 has OpenSSL 3.0.2 installed by default. This seems to be the cause of the problem.
As downgrading is not a good idea, do you have any other solution?
For reference:
openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

ldd $(which openssl)
	linux-vdso.so.1 (0x00007ffffa2cc000)
	libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f5e0e69a000)
	libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f5e0e258000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5e0e030000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f5e0e846000)

I also had the same issue.
Hope I can use anchor on Ubuntu 22.04

Can you try this? https://askubuntu.com/a/1404383

Hi @fanatid,
The solution you've shared worked.
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb

Thanks.

Can you try this? https://askubuntu.com/a/1404383

spent some time searching for this. thank you @fanatid


Provide a way to start a complete distributed environment in a single machine

Is your feature request related to a problem? Please describe.
Now it's quite painful to start a complete distributed environment in a single machine, we have to start the scheduler, start the worker, then start the web.
Describe the solution you'd like
I hope there is a simple way to do this by a single line of code. For example
from mars.deploy.local import new_cluster

cluster = new_cluster()

and then we can create a session by
from mars.session import new_session

session = new_session(cluster.endpoint)

Of course this is just an example.
Describe alternatives you've considered
I suggest we start the scheduler and worker in an actor pool, and start the web in a separate process.
Additional context
It's also useful for using in our unittests.

I will take over this job.
When I try to fix the #8 ，the serialization issue is resolved, but under the distributed setting, there's still problem which leads to a hang at the client side, I think after the implementation of pseudo-distributed mode, it's simpler to discover the real problem under the hood.

a cluster class manages a web process, a scheduler process and several worker processes?
seems easy enough, I can give it a try

Yeah, mars.deploy.local.new_cluster will start a service bundled with scheduler, worker and web.
I am working on it. Perhaps one or two days later can have a try.


windows VM firstly not created if disk size is changed

Description
We made a windows VM template. If you don't change anything than the VM instantiates and everything is working fine.
If i change the disk size and click on create button, then i get the error:
[one.template.instantiate] Error allocating a new virtual machine template. Wrong OS/BOOT value. Device with DISK_ID 1 not found
but if i click on create again (no change at all - the disk size still changed) than everything works.
To Reproduce

Create Windows VM without any changes - click on "Create" button - success!
Create Windows VM with disk size changed - click on "Create" button first time - fail!
Click on "Create" button second time - success!

Expected behavior
Expected that after change of the disk size and click the first time on "Create" button - it creates the VM without errors.
Details

Affected Component: Sunstone
Hypervisor: KVM
Version: 6.0.0

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

We will close this issue because we can't reproduce it in version 6.2.
If you can reproduce it in that version, feel free to reopen it.


Cleanup merged branches

We got 70+ branches. merged/squashed branches should be deleted I guess.

Deleted all branches that weren't ahead of master. There are still quite a lot of branches left that are stale, feel free to delete them:
https://github.com/getAlby/lightning-browser-extension/branches/stale

Did that again, closing.


Failure to include cxxopts on MSVC v143 with std.core module import

I received the following error when attempting to compile a basic project:
C:\Users\<user>\source\repos\<org>\<proj>\src\<proj>.cpp(2,16): warning C5050: Possible incompatible environment while importing module 'std.core': _M_FP_PRECISE is defined in current command line and not in module command line
C:\Users\<user>\source\repos\<org>\<proj>\src\<proj>.cpp(2,16): warning C5050: Possible incompatible environment while importing module 'std.core': mismatched C++ versions.  Current "202002" module version "202004"
D:\a\_work\1\s\binaries\x86ret\inc\memory(3473,30): error C2475: 'std::operator ==': redefinition; 'constexpr' specifier mismatch
  C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\memory(3473): message : see declaration of 'std::operator ==' [C:\Users\<user>\source\repos\<org>\<proj>\out\build\vcpkg-x64-debug\src\<proj>.vcxproj]
  C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\vector(776): message : while compiling class template member function 'std::vector<std::string,std::allocator<std::string>> &std::vector<std::string,std::allocator<std::string>>::operator =(std::vector<std::string,std::allocator<std::string>> &&) noexcept' [C:\Users\<user>\source\repos\<org>\<proj>\out\build\vcpkg-x64-debug\src\<proj>.vcxproj]
  C:\Users\<user>\source\repos\<org>\<proj>\out\build\vcpkg-x64-debug\vcpkg_installed\x64-windows\include\cxxopts.hpp(2166): message : see reference to function template instantiation 'std::vector<std::string,std::allocator<std::string>> &std::vector<std::string,std::allocator<std::string>>::operator =(std::vector<std::string,std::allocator<std::string>> &&) noexcept' being compiled [C:\Users\<user>\source\repos\<org>\<proj>\out\build\vcpkg-x64-debug\src\<proj>.vcxproj]
  C:\Users\<user>\source\repos\<org>\<proj>\out\build\vcpkg-x64-debug\vcpkg_installed\x64-windows\include\cxxopts.hpp(1530): message : see reference to class template instantiation 'std::vector<std::string,std::allocator<std::string>>' being compiled [C:\Users\<user>\source\repos\<org>\<proj>\out\build\vcpkg-x64-debug\src\<proj>.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\vector(784,1): fatal error C1907: unable to recover from previous error(s); stopping compilation
    INTERNAL COMPILER ERROR in 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\CL.exe'
        Please choose the Technical Support command on the Visual C++
        Help menu, or open the Technical Support help file for more information

The minimal sample is:
#include <cxxopts.hpp>
import std.core;

int main(int argc, const char** argv)
{
    return 0;
}

It is a CMake project on C++ 20 running with the 'Visual Studio 17 2022' build generator for CMake. Notable compilation option: /experimental:module is present to enable importation of std.core that bundles several of the std library headers.
As of yet I am not sure whether it is a bug in cxxopts or MSVC std lib. Any help would be appreciated.

Given that module support is very experimental in all compilers I don't really know what I can do about this one.

Given that module support is very experimental in all compilers

It is supposed to have full support in MSVC other than the std.* modules which are experimental (and, annoyingly, seem to not be standard).

I don't really know what I can do about this one.

Understood, I will pass this onto MSVC to see if it's an issue on their end, especially seeing as it caused an internal error in the compiler.


fix HMS catalog connection fails with exception maxActive=0

Proposed changes
Added JDBC optional parameters with default values in HMSExternal catalog
Issue Number: close #30188

run buildall

Hello @Nitin-Kashyap , regarding this issue, I think we should not add additional JDBC default parameters in HMSExternalCatalog to provide JdbcClient initialization. This will make the code bloated. We only need to simply specify the default values of the parameters in JdbcConfig, like This PR: #30262. because for The connection pool on the FE side will not bear excessive tasks, so it will not cause any problems. Of course, we will rearrange the parameters of the connection pool later to make it more reasonable.

Hello @Nitin-Kashyap , regarding this issue, I think we should not add additional JDBC default parameters in HMSExternalCatalog to provide JdbcClient initialization. This will make the code bloated. We only need to simply specify the default values of the parameters in JdbcConfig, like This PR: #30262. because for The connection pool on the FE side will not bear excessive tasks, so it will not cause any problems. Of course, we will rearrange the parameters of the connection pool later to make it more reasonable.

@zy-kkk : Agreed, however there should still exist some validation when specified "hive.metastore.type" = "jdbc"
I'm happy to contribute that as part of this PR. Please suggest which parameters should only be allowed in type=hms; I shall update this PR accordingly.


Move aux. installation and update out of autorun and into build_image

The autorun job currently uses a cijoe workflow that updates the guest and installs additional packages each time it boots. This occurs for every job, causing the guest-init step to take around 5 minutes and consume network bandwidth. Ideally, this process should take less than 30 seconds and use no network bandwidth.
Now, that we know what is needed, then these tasks can be moved into the build-image.

Note, it currently takes about 20min to deploy an image in the current infrastructure.

The installation and update is now moved to the build_image, once the image is deployed, then the guest-provisioning takes about 60 seconds.


rmd-20676 cast boolean property

Gradle properties are not automatically cast to boolean in an expected
way.
See https://issues.gradle.org/browse/GRADLE-2306

I think @tonytvo is best to review this, but looks ok to me.

another thing to note is that we would like to commit incrementally and it's really hard to justify how much is small enough or how do we should incrementally checking it in. I'm still learning about it, here's some tips/tricks guidelines and it works for me:

separate formatting and feature PR (spaces, indenting, etc... in different PR with feature PR)
write test and put in enough functions/features to get the tests works and commit
bug fix (and write test for the bug if possible)
typically the files changed should range from 1-10 files changed for one 1 commit, however, if there are more than 20 files changed, I often ask myself, what can I do now so the next time I commit there would be a smaller number of files changed (there should only be 1 place to make the change, instead of changing too many places)

Thanks Tony, this is a fix for the previous PR I sent, which included the API functionality.
I am using apiCredentials as a boolean property to know if the user wants to use API Credentials or username and password credentials. The previous PR introduced the functionality but I missed forcing this property to a boolean then.

On the tests side of things. Testing to ensure a passed parameter is of the expected type is kind of excessive but to some degree required in annoying dynamic languages like groovy that accept a string as a boolean (I am not going to add a test for that though, where does it end!).
I am still trying to figure out how to do tests for this plugin since all it does is to call a third party library for all its tasks.

I see ...

regarding to apiCredentials as a boolean, I would ask do we need this apiCredentials to tell whether the user want APICredentials or userNamePasswordCredentials

we could configure UserNamePasswordCredentials by default. If it isn't configured then we look to see if APICredentials is configured and set the flag "isAPICredentialsUsed" = true and use that flag for later purposes.

so the basic idea is when you run a task, you want to know that if a specific action has been invoked (call 3rd party APIs), you want to make sure that the right method has been called with the right arguments. This is where you test the interaction between the code with the 3rd party API, you want to make sure it behaves as you expect. (groovy spock framework make this easy to work with for developers, you can take a look at the tests in resmd-packaging/buildSrc/groovy/com.....)
** In most of the times, you would like to test if the system behaves as expected by inspecting the state of the system after the method execution. However, this is not possible when 3rd party system is not available  (like veracode system, like methods call go over the network, databases, etc...), as a result. You would assume that API of the 3rd party is correct and we test the interaction between the system with the 3rd party API. This is where most of the tests of veracode gradle plugins could fit in.
** note that the reason most people don't like this interaction style is you could "over specify" the software with the interaction tests and when the API changed, lots of the tests will break.


Ts improvements

What kind of change does this PR introduce?
Docs update
Added some missing types in the docs.

I don´t think there´s any benefit? The types from ./$types are used to get typescript intellisense working. By typing the event we loose all benefits of sveltekits type generation.
Why do you think this should be added, is intellisense not working for you?

@david-plugge I am new to typescript.
I just added these because typescript was not happy until I added these in my project. (files were marked red)
All my files were red without these, so I thought may be it will be a good idea to have this in the docs itself so next time I copy paste the code to implement auth-helpers I don’t have to apply these fixes to remove the typescript warnings.

@ak4zh It seems like there is something wrong with your typescript setup. Can you share a repo?

@david-plugge https://github.com/ak4zh/sveltekit-saas-starter
While you are giving it a look can you also see if you know why the auth-helps give me another error only in production.
Here’s the deployed version of same repo https://sveltekit-saas-starter.vercel.app/ check the console it will have an error that supabaseUrl is required, while same code works fine in dev mode.
This has to do something with the new version of auth-helpers

While you are giving it a look can you also see if you know why the auth-helps give me another error only in production.
Here’s the deployed version of same repo sveltekit-saas-starter.vercel.app check the console it will have an error that supabaseUrl is required, while same code works fine in dev mode.
This has to do something with the new version of auth-helpers

That´s because you are using dynamic env variables. In that case you need to set the env variables in the vercel deployment.
You can use static env if you want to replace the variables during build time.
import { env } from '$env/static/public';

https://github.com/ak4zh/sveltekit-saas-starter/blob/bc1d74a61ebebc0176b35089a081838d6b795517/src/lib/db.ts#L2

You are missing a tsconfig.json in your project. Rename your jsconfig to tsconfig.

@david-plugge I do have env variables setup from vercel dashboard.
Not really sure about the difference between dynamic and static.
Though the error says missing supabaseUrl but if you inspect the page source you will find all env are available inside.
I will try with static

@ak4zh are you still running into the type issue?

No it seems everything is fixed now.
Thanks for the assistance.


Fixed issue

Fixed the "NotADirectoryError" error that occurred when starting servers.py
Fixed copying files with execute permissions

fixed issue


help update

hello

is it database.updateposition

comes values from datamanage.java ?
regarding heartbit i can capture time with this query ? for update time query ?
<entry key='database.updateLatestPosition'>
UPDATE device SET lastGPSTimestamp = UNIX_TIMESTAMP(:time), lastUpdateTime = UNIX_TIMESTAMP(NOW()) WHERE deviceID = RIGHT(CONCAT('000000000000000', :deviceId), 15);
</entry>
?  is it correct ? as from datamanage.java comes like values during heartbit i can capture time as in updatepossition query right ? or help me

here below config u can help me or guide me regarding what values i can capture for gps signal, battery info and other few data from gt06n :) can u give me hint just as name of value like there is

gpssignal i can capture value or which java file i can see values to pass in xml with query ? as well above question 1 time also and other values cell info satelite , battery level  etc etc ?
    <entry key='web.enable'>false</entry>
    <entry key='web.port'>8082</entry>
    <entry key='web.path'>/opt/traccar/web</entry>

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>google</entry>

    <entry key='logger.enable'>true</entry>
    <entry key='logger.level'>all</entry>
    <entry key='logger.file'>/opt/traccar/logs/tracker-server.log</entry>

    <!-- DATABASE CONFIG -->

    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost:3306/iat?allowMultiQueries=true</entry>
    <entry key='database.user'>keval</entry>
    <entry key='database.password'>Keval0987</entry>

    <entry key='database.selectDevicesAll'>
        SELECT deviceID AS id, deviceID AS uniqueId FROM device WHERE deviceID REGEXP '^[0-9]+$';
    </entry>

    <entry key='database.insertPosition'>
        START TRANSACTION;
           SELECT @lastLatitude := lastValidLatitude, @lastLongitude := lastValidLongitude, @odometer := lastOdometerKM FROM device WHERE imeiNumber = :device_id;
        SELECT @lastSpeed := speedKPH FROM eventdata WHERE accountID = @accountID AND deviceID = @deviceID ORDER BY timestamp DESC LIMIT 1;
        SELECT @distance := (ACOS(SIN(@lastLatitude * PI() / 180) * SIN(:latitude * PI() / 180) + COS(@lastLatitude * PI() / 180) * COS(:latitude * PI() / 180) * COS((:longitude * PI()/180)-(@lastLongitude*PI()/180)))*6371000);

	UPDATE device SET lastValidLatitude = :latitude, lastValidLongitude = :longitude, lastGPSTimestamp = UNIX_TIMESTAMP(:time), lastOdometerKM = @odometer + @distance, lastUpdateTime = UNIX_TIMESTAMP(NOW()) WHERE deviceID = RIGHT(CONCAT('000000000000000', :deviceId), 15);

        SELECT @accountID := accountID, @deviceID := deviceID FROM device WHERE imeiNumber = :device_id;

SELECT @fakeStatus := CASE
		WHEN (:speed > 1) AND (@distance = 0) THEN 61713
		WHEN (:speed > 1) AND (@distance > 0) THEN 61714
		WHEN (:speed < 1) AND (@distance > 0) THEN 61715
		ELSE 61716
	END;

	INSERT INTO eventdata (accountID, deviceID, timestamp, statusCode, latitude, longitude, speedKPH, heading, altitude, rawData, distanceKM, odometerKM, creationTime, address)
        VALUES (@accountID, @deviceID, UNIX_TIMESTAMP(:time), @fakeStatus, :latitude, :longitude, :speed * 1.852, :course, :altitude, '', @distance, @odometer + @distance, UNIX_TIMESTAMP(NOW()), :address);
        COMMIT;
    </entry>

    <entry key='database.updateLatestPosition'>
UPDATE device SET lastGPSTimestamp = UNIX_TIMESTAMP(:time), lastUpdateTime = UNIX_TIMESTAMP(NOW()) WHERE deviceID = RIGHT(CONCAT('000000000000000', :deviceId), 15);
    </entry>

Heartbeat messages are not recorder in the database in the current version.

All additional data is stored in :other parameter in XML or JSON format. You can extract it if you want using standard MySQL functions (in case of XML). Set of attributes depends on the protocol you are using and on the type of messages your device sends.

but which file i can make changes in funtion java u can help me like pipe files or datamanager.java ? :)

is it example there something little example ? so i can follow ?

You need to change protocol decoder class if you want to decode heartbeat messages.

For example you can use following function call to get number of satellites (assuming that you are using XML format):

ExtractValue(:other, '/info/sat')


added insert.md into vector folder

Hey @beef-erikson thanks for your contribution :+1:  but it seems that insert method is already contributed.
I am closing this one feel free to open a new PR.


Include OpenCV with Python bindings

In the processing chain for the test sites we are using an OpenCV-Python module to filter the SAR based water/wetness frequencies. Is it possible to include the OpenCV-Python package in the toolbox as well? If not, we’ll look for another solution using OTB.

OpenCV is available from OSGeo4W, so yes we can include it with the installer so all users have it available in QGIS.

The OpenCV package of the OSGeo4W installer does not seem to include the python bindings necessary to import the opencv python package in the QGIS python console. I found a solution for this though. I downloaded and ran the OpenCV installer from  https://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.11/ . This creates a folder named “opencv”. From this directory I copied the file “opencv\build\python\2.7\x64\cv2.pyc” to C:\OSGeo4W64\apps\Python27\Lib\site-packages. After that it was possible to import cv2 in the QGIS python console and the opencv filter works fine.
Do you think you can include this change in the GWA installer without affecting other OSGeo modules? I’ve attached the cv2.pyc file to this email.

In principle we could do that - include some ready-built distribution of the Python bindings. It has to be built on the same platform and with the same Python version and possibly also the same version of OpenCV.
Since you already proposed one working solution, you can count on that we include the bindings in one way or another.


Do not update state if newNarrow is same as old one.

When does that happen?

If user is in stream narrow let's say announce. and then again selects announce stream then on current master SWITCH_NARROW action if dispatched, which is useless.
Updating state here https://github.com/zulip/zulip-mobile/blob/master/src/chat/chatReducers.js#L36


update plex

when running any commands, should check user's current version of plex and auto update to latest version

[ ] tools folder

live in #218


Auto-detect and resolve trying to use SCRAM-SHA-1 on pre-2.8 kernel.

If SCRAM-SHA-1 supplied as the authMechanism but the server
is pre-2.8 and doesn't support it, automatically switch to
MONGODB-CR. This will allow much easier upgrades as the
customer's app config can be updated and deployed out of band and
before  upgrading to 3.x vs. requiring simultaneous upgrades.
@see https://jira.mongodb.org/browse/SERVER-15521

no need you can use DEFAULT as the auth mechanism and mongodb-core does it for you.

@christkv is DEFAULT auth mechanism mentioned in the docs? Don't see it here. Mentioned else where? http://mongodb.github.io/node-mongodb-native/2.0/reference/connecting/authenticating/

It could well be missing from the docs can you open a node ticket so I
don't forget ?
On Friday, September 25, 2015, Matt Kangas<EMAIL_ADDRESS>wrote:

@christkv https://github.com/christkv is DEFAULT auth mechanism
mentioned in the docs? Don't see it here. Mentioned else where?
http://mongodb.github.io/node-mongodb-native/2.0/reference/connecting/authenticating/
—
Reply to this email directly or view it on GitHub
https://github.com/mongodb/node-mongodb-native/pull/1299#issuecomment-143263510
.

Also, a question Andrew raised: can we distinguish (observe the difference between)

auth failed due to wrong authMechanism
auth failed due to wrong password

This distinction matters if a client tries to "try SCRAM-SHA-1, then try MONGODB-CR". If the first (more secure) method fails because the password is wrong by one character, we don't want to attempt the less-secure method.

NODE-570 filed

Good question never come up before can you open another ticket for this so
I remember on Monday to check and or fix
On Friday, September 25, 2015, Matt Kangas<EMAIL_ADDRESS>wrote:

Also, a question Andrew raised: can we distinguish (observe the difference
between)

auth failed due to wrong authMechanism
auth failed due to wrong password

This distinction matters if a client tries to "try SCRAM-SHA-1, then try
MONGODB-CR". If the first (more secure) method fails because the password
is wrong by one character, we don't want to attempt the less-secure method.
—
Reply to this email directly or view it on GitHub
https://github.com/mongodb/node-mongodb-native/pull/1299#issuecomment-143265838
.

NODE-571 filed

@christkv thx!  Updated and noted in<EMAIL_ADDRESS>


Bootstrap from a Class Library

Hello,
Is it possible to launch the bootstrapper and the ShellView from a class library ?

You can put the bootstrapper, views, viewmodels, etc, in a class library. The actual WPF Application instance will need to come from somewhere, and the easiest way is to have an App.xaml in your main application (which references the bootstrapper defined in the class library): that's how I normally do it.
It's probably possible to even set up the Application/Dispatcher/etc in the class library, but you might have to do it manually.

Thank you for the answer. I was trying to connect my wpf class library to a not managed application. I tried with the following code and now it seems work correctly (except for a little problem that made me lost a a lot of time and that I initially ascribed to this call). Do you see any problem to do this way?
 var bootstrapper = new Bootstrapper();
 bootstrapper.Start(null);

[For completeness the problem was that before launching wpf I had to reset the floating point with the following function
        [DllImport("ucrtbase.dll", CallingConvention = CallingConvention.Cdecl)]
        public static extern int _fpreset();

]

I'm trying to inject the class library into IOC。

@robigit Apologies I missed message. Starting the bootstrapper without first setting it up with an application isn't supported, and things like showing IWindowManager won't be able to function.
I'm closing this as old - please re-open if you still have questions.
@yiyecao If you've got a question, please open a new issue and give enough detail for someone to be able to answer it.


Fix ArgumentException uses with hardcoded paramName

There are loads of places across the repo which use ArgumentException/ArgumentNullException/etc with hardcoded parameter names. These should be updated to use nameof rather than relying on a string literal with the right contents.

Hey @MikhailArkhipov, per your suggestion, I am going to work on this issue and submit a separate pull-request for this issue from the pull-request I created for #647 . I need to make two FOSS contribution for a course I am currently taking and this will be a great second issue for me. Thanks for all your help!

https://github.com/microsoft/python-language-server/pull/1187 fixed this


Add Unit Column when selecting a unit for a term

Currently, units are only saved in the cell format of the respective column. To make this more ISA conform, the annotation of a column with a unit requires the Unit column to spawn, with associated Term source columns

Done, will be implemented with the next release (0.1.3)


No support Vaadin 8

When can use on vaadin 8?

Version 2.0.0 is available at https://vaadin.com/addon/autocompletetextfield-add-on
It's using the compatibility packages. I'm still working on a Vaadin 8 "native" version.


igluctl: bump AWS SDK to 1.11.210

We're not able to upload (s3cp) schemas to some regions added after our release.

In https://github.com/seratch/AWScala/releases page, last release is 0.6.1 not 1.11.210 thus I change the title.

Nope, AWScala is different project, a wrapper for AWS SDK, which transitively brought outdated AWS SDK in current version of Igluctl. In fact, I would like to factor out AWScala from Igluctl, because:

It adds outdated transitive AWS SDK
In the end, "AWS SDK on the Scala REPL" (from their README) which is not our case.
All modules we use from AWScala can be easily substituted with plain AWS SDK, almost without boilerplate. I see no real benefit.

My proposal here:

Add explicit AWS SDK 1.11.228 to dependencies. It'll override transitive (yet still binary-compatible) one from AWScala
If time allows in the end - factor out AWScala entirely (please, add un-milestoned ticket)


[Lualine] fix: readability

Fixes #124

Can you post any screenshot for before and after? 😊

Absolutely!
Before:

After:


charades_map/charades_nanmap

https://github.com/wykang/Charades/blob/adc58b7cfe2567f17cc7b62caf4ff4a13a1e8f22/utils/map.py#L26
m_ap = np.mean(m_aps)
m_ap = np.nanmean(m_aps)
Are these two evaluation indicators the same?

Yes. The second one was used in case there are ever any classes missing from the evaluation (when using custom evaluation sets etc), in which case the AP for the class would be 'nan', and the second one will ignore this.
Hope that helps,
Gunnar


Feature/sn 685 add search icons to searchable fields

@AlexanderMakarov124 Can we make the icon to be centered?


long floating number in the writing target

Really love this new feature, but I noticed as I write under the "writing target", the percentage number sometimes is shown as very long floating numbers, see the screenshot below,

I think using integers would be fine for the percentage, just a suggestion.

Please see v2.1.2. Thanks.


External Revision

After development is done, code is properly fixed and/or testnet is launched (whatever comes first), I want to revise the following:

UML diagrams
Sparq docs (both en-US and pt-BR)
Doxygen comments in code (and it's integration per se)
CMake file structures (for documenting/organization purposes)
External dependencies check and possible pruning (for documenting/organization purposes)
Versioning scheme (project is set to 0.0.1 since the very beginning, I suppose we'll keep using SemVer but I'm not sure about the cadence of it - when will we bump it to 0.1? 0.2? 1.0? etc.)

I realized this is probably a perpetual issue - as big as the code is right now, every now and then we're gonna have to do another "eagle view" through the whole thing. But eh, that's how it goes.
Branch 18-extrev has the following changes:

Revision of external deps on CMakeLists.txt, code formatting on the AIO-setup script, README, and a little quality-of-life inclusion on .gitignore
Code formatting and revision of Doxygen docs for THE WHOLE PROJECT (well, almost all files) - running doxygen should give no warnings anymore, and quite a few files had a significant reduction in the number of lines
I bumped the version on CMake back to SemVer format (MAJOR.MINOR.PATCH) as I wasn't sure why exactly we just had an integer there - anyway CMake shouldn't complain about it anymore either

Considering UML diagrams were removed from sparq-docs long ago, and I was given permission to remove the pt-BR part of it (as it is severely deprecated and no one has the time to maintain it properly), I'm closing the issue for now. Just need someone to check later if nothing broke on the way.


Features/depreciate xtc task - Add missing resources file

Motivation
I erroneously left out the resources file from my previous commit.

Looks like this has been moved/done in a separate commit so I'm going to close here.


Update prebid cache usage to follow 1.0

This PR addresses https://github.com/prebid/prebid.github.io/issues/482
However, it cannot be merged unless/until we update the Prebid.js version that is on the CDN at
https://acdn.adnxs.com/prebid/not-for-prod/prebid.js
to 1.0
(Unless there is another CDN URL we are using for 1.0, and we're leaving that one pre-1.0 for now, in which case I will update this PR to use the new URL.)

OK, the new 1.0 CDN URL is https://acdn.adnxs.com/prebid/not-for-prod/1/prebid.js

Just pushed a force update to only modify the Show Video Ads page.
The updates to the various video example pages look a lot more involved, and I'm pretty sure a few of the examples are broken as-is.  Since more work/investigation is needed, opened a new issue to track updating the Prebid.org-hosted video examples:
https://github.com/prebid/prebid.github.io/issues/508


Acknowledge button doesn't actually add an ACK

Describe the bug
Adding an ACK to any opened Zabbix alert is not adding the ACK.
Clicking the ACK button shows a dialog box to enter the ACK message. After typing it and clicking 'Acknowledge' the dialog is hidden but nothing happens.
Expected behavior
Adding an ACK on the plugin should add an ACK with the same message on Zabbix.
Network data
Request headers:
POST /api/datasources/proxy/1 HTTP/1.1
Host: my.redacted.domain.example.com:3000
Connection: keep-alive
Content-Length: 186
Accept: application/json, text/plain, */*
Origin: https://my.redacted.domain.example.com:3000
X-Grafana-Org-Id: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Content-Type: application/json
Referer: https://my.redacted.domain.example.com:3000/d/2BbYiHkWz/dashboard-correo-vps?orgId=1
Accept-Encoding: gzip, deflate, br
Accept-Language: es-ES,es;q=0.9,en;q=0.8

Request body:
{"jsonrpc":"2.0","method":"event.acknowledge","params":{"eventids":"4530885","message":"Héctor Luaces (Grafana): TEST ACK.","action":0},"id":1,"auth":"3f03f394ce8139bcc0e44289648b4ee9"}

Response headers:
HTTP/1.1 200 OK
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods: POST
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 1000
Content-Length: 56
Content-Type: application/json
Date: Wed, 05 Jun 2019 11:11:06 GMT
Server: Apache

Response body:
{"jsonrpc":"2.0","result":{"eventids":[4530885]},"id":1}
Software versions

Grafana
Zabbix
Grafana-Zabbix Plugin

5.4.2
4.0.8
3.10.2

Tested on Mac, Linux and Windows machines on several browsers.

Think I figured the problem.
It is related to Zabbix API change between 3.x and 4.x versions.
Once I press the Acknowledge button - the following request is being generated:

And it would work for Zabbix 3.x:
https://www.zabbix.com/documentation/3.4/manual/api/reference/event/acknowledge
action
Possible values:
0 - (default) none;
1 - close problem.
But not for 4.x:
https://www.zabbix.com/documentation/4.2/manual/api/reference/event/acknowledge
action
Possible values:
1 - close problem;
2 - acknowledge event;
4 - add message;
8 - change severity.
For some reason plugin picks the wrong value.
I believe this is the string responsible:
https://github.com/alexanderzobnin/grafana-zabbix/blob/bc889ffe30df7b2600eff058c32661408b840dfe/src/datasource-zabbix/zabbix/connectors/zabbix_api/zabbixAPIConnector.js#L95

SOLUTION THAT WORKED FOR ME
On the plugin upgrade, all datasources have been updated automatically to use 4.x version by default. However, their config remained 'unapplied' or something. So I end up just 'applying' their config manually.
Go to Datasources > your Zabbix datasource > Press 'Save & Test'
This did the trick, acknowledges started to work.

Grafana
Zabbix
Grafana-Zabbix Plugin

6.2.1
4.2.3
3.10.2

Wow, that was it. Worked perfectly, which is weird because I toggled the API version from 3.x to 4.x to do tests before opening this issue.
Nevertheless, it is fixed. A user of mine had to refresh the browser caché for it to work.
Thanks @PavelMikhailouski . I'm closing this.


I cannot use custom resources defined by enmasse when RBAC is enabled

I deployed enmasse on openshift 3.7, with enable_api_server=true, and I was not able to create address space using oc create -f addressSpace.yaml, and I cannot get resources by oc get addressspaces.
"error: unable to recognize "addressSpace.yaml": no matches for enmasse.io/, Kind=AddressSpace"

the server doesn't have a resource type "addressspaces"

reproducer:
#prepare and deploy
oc cluster up --service-catalog
export KUBECONFIG="/var/lib/origin/openshift.local.config/master/admin.kubeconfig"
oc login -u system:admin
oc --config ${KUBECONFIG} adm policy add-cluster-role-to-user cluster-admin developer
oc adm --config ${KUBECONFIG} policy add-cluster-role-to-user cluster-admin system:serviceaccount:myproject:enmasse-admin
oc adm --config ${KUBECONFIG} policy add-cluster-role-to-user cluster-admin developer
oc create -f templates/install/openshift/cluster-roles.yaml
oc login -u developer -p developer
ansible-playbook /opt/enmasse/templates/install/ansible/playbooks/openshift/systemtests.yml --skip-tags "always,clients" --extra-vars "namespace=myproject admin_user=enmasse-admin authentication_services=[standard,none] register_api_server=true enable_rbac=true"

#create addressspace
oc create user kornys
oc policy add-role-to-user enmasse.io:api-server kornys -n myproject
oc login -u kornys -p kornys
oc create -f addressspace.yml
oc get addressspaces

This is a known issue. With rbac enabled you also need to set secure_api_server: true so that it enables client TLS request from kubernetes master.
However in open shift up to and including 3.9 there is a bug in the certificate. This is fixed in https://github.com/openshift/origin/pull/19880 so to use custom resources for the time being with oc cluster up, you must disable rbac.


Introduce Nix to the project

What this Pull Request (PR) does
Don't run extract_wisdom or summarize on this
I am the maintainer of fabric-ai package in the central NixOS repository called nixpkgs
Earlier I created a PR #1088, but to make development a lot more comfortable for myself and other Nix users who decide to contribute to fabric I also wrote this Nix flake which will bring benefits of the Nix ecosystem to fabric.
It improves developer experience and lets people unclutter their systems. Flake maintenance is not resource intensive at all if you know what you are doing, so any Nix user can create a PR if flake.lock needs updating.
What does this bring to the project:

Reproducibility, if you use nix build to build fabric the build will be binary level reproducible on any system because everything is pinned in the flake.lock including the compiler.
Development shell, this flake provides a development shell configuration that can be activated automatically using direnv when entering the project root. It includes everything that you will need to develop the project including the go compiler, go tools, gomod2nix,
and the helper script update that basically executes go mod -u && go mod tidy && gomod2nix generate. Everything in this flake is pinned using flake.lock which is checked into git so you also get a history of ALL your dependencies including the compiler, not just go modules.
This essentially means that even in a lot of years when old fabric code is incompatible with the new go compiler version you can just revert to the old git commit and automatically get the old compiler version and you will be able to build old versions of fabric with no problems.
The package provided by this flake.nix means that NixOS users can directly install fabric from your git repository and any of it's branches or tags bypassing the fabric-ai package the central nixpkgs repository that is updated a lot less frequently.
nix fmt formats all go files codebase with gofmt and all nix files with various nix formatters. It is possible to add yamlfmt.enable = true; to treefmt.nix and then it will also format yaml files, basically it's a tool to format any text files in the project. nix flake check can be used to check  if all files are formatted properly. In the future I probably will open a PR that adds goimports-reviser support to treefmt-nix so it will also be able to sort imports.

If you don't know what Nix is and don't use it:

You can just ignore all files in this PR and use your own compiler like you did before even with those files present. Nothing changes for you personally.
In the future, if you need to build an old version of fabric with an old version of the compiler instead of having only one option you will have two options:

Find out which version of the go compiler is needed for that commit, find it's package somewhere, install it, build the commit you want.

Install Nix, checkout the needed commit, run either nix build for a production package or nix develop to enter a devshell with the needed compiler and run go build

What to keep in mind:

Unfortunately if you run go get -u && go mod tidy or modify go.mod in any other way and then don't run gomod2nix generate after that it will desync go.mod and gomod2nix.toml which can lead to unexpected results when using nix buildor installing the nix package, normal builds will not be affected.
This problem can be mitigated by creating a github workflow that runs gomod2nix gnerate on all commits so that if go.mod is changed in any of them gomod2nix.toml is automatically synced.
Another solution might be to just install gomod2nix and remember to run it whenever you change go.mod but you will have to remind this to everyone who creates a PR that requires changing go.mod

For Nix users: If you want to get the context length fix from #1088 before it is even merged you can do this by adding an overlay like this:
inputs = {
  fabric = {
        url = "github:jaredmontoya/fabric";
        inputs = {
          nixpkgs.follows = "nixpkgs";
        };
      };
};

    nixpkgs.overlays = [
      (self: super: {
        fabric-ai = inputs.fabric.packages.${system}.default;
      })
    ];


WBCAMS-20: Update wording on virtual jobs. Reindexing will be require…

…d before this change takes place

Accidentally added too many things - do not add this to master


kube2iam example's aws ec2 describe-instances call assumes an us-east-1 region

In the example for kube2iam, the call to obtain the IAM Role ARN assigned to the worker nodes, namely
kubectl get no \
  --selector=kubernetes.io/role==node \
  -o jsonpath='{.items[0].spec.externalID}' | \
  xargs aws ec2 describe-instances \
  --instance-id \
  --region us-east-1 \
  --query 'Reservations[*].Instances[*].IamInstanceProfile.Arn' | \
  sed -e 's/instance-profile/role/g'

assumes the region is us-east-1. As a result, if running in a different region, the AWS CLI call will fail, as the instance will not be found in the us-east-1 region.
Since we set a default region, usually, in the initial setup using aws configure, we can omit the   --region us-east-1 \ line.

@dnedev send a PR?

Coming up ;)


Request and response: _cookies

At this moment when  we have a couple of header with key value, we are adding in an array like:
{
  "_cookies" : [
       {"key-cookie-one": "value-cookie-one"},
       {"key-cookie-two": "value-cookie-two"}
    ]
}

There is no point to use an array when there are values and keys for cookies. We can use an object itself like:
{
  "_cookies" : {
       "key-cookie-one": "value-cookie-one",
       "key-cookie-two":  "value-cookie-two"
  }
}

When it is just the keys, we will leave as it is at this moment. For example:
{
  "_cookies" : [
       "key-cookie-one",
       "key-cookie-two"
  ]
}

0.109.0❤


Fix where we were never dismissing the alert dialog

http://manage.dimagi.com/default.asp?184706#1033818

We'll be doing weekly merges of 2.24 back into master, so there isn't a need to create a master PR for 2.24 changes


Update PyPi version of django-mailgun

I see that the master branch of django-mailgun has support for python3 because it uses the io module instead of the StringIO module, but this change is not reflected in the newest version of django mailgun on PyPi.

:+1:

:+1:

Until @BradWhittington has the time to look at this awesome project, I made a 'friendly fork' at https://github.com/pydanny/django-mailgun and released it at https://pypi.python.org/pypi/django-mailgun-redux.
Once @BradWhittington comes back, I'll stop maintenance of that project.

@pydanny Are you using your fork with python3? See #21. I wasn't able to get master working with python3 without rolling back the latest PR, but perhaps I misdiagnosed the problem.

I haven't had any unicode problems yet, but then again I haven't tried anything beyond ASCII.
As we use this package in cookiecutter-django, I've let @mailgun know that it would be nice to have a maintained package. :smile:

@pydanny It's not a unicode error, it's the fact that the latest commit uses the unicode builtin, which was removed in python3.
>>> unicode
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'unicode' is not defined

I've given @pydanny the keys to the repo and release rights on pypi, sorry I've been a blocker to progress on this... I haven't used this lib myself for a while, hopefully this helps move it forward.

I did a 0.3.0 release yesterday. In the next day or so I will stand up a test suite so I can more quickly accept pull requests. Therefore I'm marking this as closed.


workaround for acm hub CRDs apply.

Signed-off-by: morvencao<EMAIL_ADDRESS>

/hold

/unhold

/lgtm


Add Challenge difficulty: "Good for Beginners" series

While the eventual goal is to standardize difficulty levels across Challenge schemas, we can start by curating a "good for beginner" series.
Past challenges, like the Beat AML Challenge (Drug Response, Predict for binary values) have been appropriate for beginners/students. Are there challenges that: (1) predict for binary values and (2) do not require Dockers that may also be newcomer friendly?
On the Challenge Details page, the UI implementation could look like a tag (inspiration).
On the Search page, the UI implementation could be a separate filter (inspiration).

Dockerizing tools is now a best practices and hopefully is much easier for new participants than it was 5 years ago when I used it in my first big challenge. If we had demographic information about the participants of a challenge, this could give us a clue to identify beginner friendly challenges among past challenges. One approach could be to ask in the #challenge Slack channel if there are organizers who know about challenges that have been used for education or that they would consider easy.
In parallel, we could kick start a discussion around what defines an easy / intermediate / difficult challenges. This information would be displayed to organizers when they register their challenge.

Some relevant documentation:
Here's the link to the Zindi Africa analysis: https://docs.google.com/document/d/1mdI4bY4nqfipD39t4vTCBKiEJrSz26gi3MQSNvgGofU/edit
Here's the link to the excel: https://docs.google.com/spreadsheets/d/1frG8tB4x_FbnR1-hMeLHb-4rC7y1Hsbx_7G6vNhZk6k/edit#gid=0


🔖(major) bump release to 2.0.0

Added

Add a new endpoint to withdraw an order
Endpoint to retrieve the first course_run related to a course_link
Add order payment schedule
Manage commercial newsletter subscriptions
Allow backoffice to generate certificates from a course and product relation
Bind remote catalog syllabus to contract template
Add redis backend to cache configuration
Add generate certificate button in Back Office
Add admin Enrollment endpoint
Add tabs layout on back offices forms
Filter admin resources list through their pk
Allow backoffice to generate certificate if order is eligible
Allow backoffice admin user to cancel an order
Add filter tag iso8601_to_date
Allow student to download his owned contract once fully signed
Allow to filter course product relation by organization title or
product title or by course code on the client API.
Allow to filter courses by course code or title on the client API
Allow to filter orders by product title on the client API
Allow to filter enrollments by course title on the client API
Debug app to preview template (certificate, degree, invoice,
contract definition)
Allow to filter out organization through course product relation id on
the client API
Add custom template tag to convert ISO 8601 duration to a specified time unit.
Add custom serializer field for duration field to format ISO 8601
Add effort duration field for the Course Model
Add phone number field for the User Model
Add property verification_uri to Certificate model
Add a certificate verification view
Add has_consent_terms boolean field to Order model
Bind terms and conditions to the contract definition template
Extend Site model to store terms and conditions
Add join_and and list_key template tags
Add address and new properties on client OrganizationSerializer
Add admin endpoints to create/update/delete organization addresses
Add several admin api endpoint filters
Filter course product relation client api endpoint by product type
Link Organization to Address Model
New properties on Organization model to complete contract definition context
Allow to bulk sign contracts by training
Filtering orders by organization, product, and course product relation
Allow to set CSRF_COOKIE_DOMAIN through env vars
Dedicated storage for easy_thumbnail using boto3
Allow to override settings in tray
Add API endpoints for other services to fetch  data on course run
Allow to filter contracts by signature state,
product, course and organization, id and course product relation id
Add bulk download of signed contracts to generate ZIP archive with command
Add read-only api admin endpoint to list/retrieve orders
Add a management command to synchronize course run or product
on a remote catalog
Install and configure celery with redis
Add CachedModelSerializer
Allow to leave organization empty while order is in draft
Add API client signature provider to sign contract from an order
Add admin route to add and modify OrderGroups
Allow to filter contracts through their signature state
Allow filtering orders by state or product type exclusion
Allow filtering orders by enrollment
Create missing courses automatically on course run sync
Create certificate template
Add contract and contract definition models with related API endpoints
Add instructions markdown field to Product model
Add filter course by product type
Enroll as "verified" mode in OpenEdX when enrolling via an order
Add mermaid graph for Order workflow
Add a route to reorder target_courses
Add target_course route and list view for products
Add multiples product, order, certificates and enrollment in the database
that's initialized with the make demo-dev
Add client api filter to filter Order resource by product__type
Add a backoffice redirect view to redirect to the frontend admin backoffice
Add filters to CourseRun list for a given course on admin api
Allow issuing a certificate directly for an enrollment (without an order)
Generate certificates for products of type certificate
Add route detailing current user
Add related certificate products and orders to enrollment API endpoint
Add admin endpoints to create/update/delete organization/course accesses
Add admin endpoint to search users
Add endpoints to get course product relations and courses from organization
Add order groups to allow limiting the number of seats on a product course
Add api endpoint to retrieve course product relations
Add get_selling_organizations method to Course model
Add courses client api endpoint
Add ThumbnailImageField "cover" to Course model
Add abilities to courses/organizations and their accesses
Add ID field to the course serializer
Add course and organization accesses with roles
CRUD admin API for organizations, products, course runs,
certificate definitions, courses and retrieve enabled languages
Allow on-demand page size on the order and enrollment endpoints
Add yarn cli to generate joanie api client in TypeScript
Display course runs into the admin course change view
Display password field into admin user change view
Automatically allocate organization equitably on order creation according to
their active order count per organization for the course/product couple
Add many admin api filters with text search
Add a nested endpoint to retrieve all the course runs of a course
Filter courses according to whether they have listed course runs or not
Add some objects to demo-dev command. A credit card, a billing address and
one order of each state. Also add some order target courses.
Add markdown editor inside the BO
Add admin endpoint to manage course product relations
Add organization contract signature
Add moodle LMS backend
Make the target course card title clickable
Add contract details inside order view
Add playwright component stack

Changed

Update network name in docker-compose file in order  to fit richie
and openedx-docker naming.
Update the certificate viewset for the API client to return
certificates from orders and from enrollments owned by a user.
Update demo-dev command to add a second product purchase with learner
signature.
Improve degree certificate template
Bind organization course author into certificate context
instead of organization order
Prevent to create an order with course run that has ended
Debug view for Certificate, Degree, Contract Definition and Invoice
Internalize invoice template
Use HTTPStatus instead of raw HTTP code value
If a product has a contract, delay auto enroll logic on leaner signature
Prevent to enroll to not listed course runs related to an order awaiting
signature of a contract by the learner
Use Invoice.recipient_address to populate Contract address context
Link Invoice to Address object
Update psycopg to version 3
Update contract api endpoint to retrieve contracts by ownership
Internalize degree template
Allow to download enrollment certificate from related download api endpoint
Data returned by product admin serializer
Refactor the Order FSM to make a better use of transitions
Allow to get course product relation anonymously
through a course id / product id pair
Take products in account to process Course state
Update OrderSerializer to bind Course information
Use ThumbnailImageField instead of ImageField for Organization logo
Refactor how the user is authenticated and passed throughout the request
Normalize the organization code field
Activate pagination by default on all endpoints (20 items per page)
Use user fullname instead of username in order confirmation email
Rename certificate field into certificate_definition for the ProductSerializer
Improve certificate serializer
Upgrade to Django 4.2
Add model and API endpoint for course wishes
Change order viewset filter "state" to accept multiple choices.
Product and Order serializers now return Contract and ContractDefinition
object instead of ids.
Rename nested order serializer attributes to be more descriptive
Update nested order serializer to return enrollment
Update order serializer to return enrollment
Rename serializers attributes to be more descriptive:

EnrollmentSerializer
OrderSerializer
OrderLightSerializer
CourseSerializer
CourseAccessSerializer
OrganizationAccessSerializer

Rename query parameters to be more descriptive:

OrderViewSetFilter
ProductViewSetFilter
EnrollmentViewSetFilter

Update admin course serializer to return course runs
Allow group order deletion through course product relation
Delete group orders when deleting a course product relation
Rename admin api payload parameters to be more descriptive:

AdminOrganizationAccessSerializer
AdminCourseAccessSerializer
AdminCourseSerializer
AdminCourseRunSerializer

Update the course runs list

delete the resource link column and move it to the options
format start and end date
add course code colum

Add an order cancellation action in the order detail view
Preserve query params filters on page refresh

Removed

Remove mypy
Product API endpoint
Remove djmoney and Moneyfields
Badge providers now live in the obc python package
Remove unused OrderLiteSerializer

Fixed

Fix unenrollment issue on closed course runs
Fix auto enrollment with closed and specific course runs
Fix demo-dev command synchronization error.
Add missing django dockerflow middleware

Also in the settings for the open api schema
src/backend/joanie/settings.py
328:        "VERSION": "1.0.0",

Also in the settings for the open api schema
src/backend/joanie/settings.py
328:        "VERSION": "1.0.0",

That will force us to update the swagger json test files.


Azure pipeline is failing to build maven project with self-hosted agent

Unhandled: Unable to locate executable file: 'mvn'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
I've installed Maven version 3.6.3 but when the pipeline fails with above error it show below version:
2020-12-18T09:11:50.3988367Z ##[section]Starting: Maven
2020-12-18T09:11:50.8555288Z ==============================================================================
2020-12-18T09:11:50.8555684Z Task         : Maven
2020-12-18T09:11:50.8555905Z Description  : Build, test, and deploy with Apache Maven
2020-12-18T09:11:50.8556179Z Version      : 3.179.0
2020-12-18T09:11:50.8556372Z Author       : Microsoft Corporation
2020-12-18T09:11:50.8556650Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/maven
2020-12-18T09:11:50.8556957Z ==============================================================================
2020-12-18T09:11:51.3170826Z ##[error]Unhandled: Unable to locate executable file: 'mvn'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2020-12-18T09:11:51.3193840Z ##[section]Finishing: Maven
Not sure what is wrong here and why the Azure is not able to pick the maven (updated the PATH variable with maven path). Please guide me.

Any comments? Please let me know if my questions is not clear?

Hi, @eswarbudda!
Could you please re-run the pipeline with the “Enable system diagnostics” option enabled and share the following information:

YAML file of your pipeline
Pipeline logs with system diagnostics information

Thanks!

@eswarbudda is this issue still actual to you?

Closed due to inactivity. Please feel free to reopen if the issue still actual to you.

Closed due to inactivity. Please feel free to reopen if the issue still actual to you.


[WIP] [AC-54] Introduce attribution_class field on artwork page

https://artsyproduct.atlassian.net/secure/RapidBoard.jspa?rapidView=30&projectKey=AC&selectedIssue=AC-54
This is the first step to getting the new artwork attribution_class  aka "classification" field onto artsy.net
There are some open questions about the order of fields, here are some examples:
A work with an attribution_class of   "unique"

A work with an attribution_class of   "limited edition"
Note that edition info appears in two places, separated by another field

A  public domain work with an attribution_class of   "unique"
Note that the classification is floating amid a bunch of other fields. Wondering how this should be ordered…

Here is how the classification details modal looks right now.

@nicoleyeo - it's slightly different than design. I dropped the 'Ok' button since in most other dialogs on the site we just use the x to close the dialog. Could add that if you feel strongly.
Also in most screens this dialog will be bigger than screen - so the content will have to be scrolled to be visible. Let me know if you think it's important to have bottom margin so that the content does not run to the end of the dialog all the way, but in this case it might not be obvious that there is more content to scroll.

@oxaudo ah, did not realize the modal worked this way — I think it's a better experience to have the bottom margin (feels more broken if you're scrolling within a frame imo).
Ideally would be good to have the button to keep the user moving in the way we want, and keep trusting our user flow, but if it's a lot of scope creep to add the button to the modal component, please let me know.
Let me know if it's more helpful to sit down together to talk through this! I'm still getting familiar with the constraints of our components and always happy to learn more.
Thank you!

@nicoleyeo - I've added the button at the bottom of the content that closes the dialog. Inserting a margin that does not scroll within the open dialog turns out pretty not straightforward. I'm abandoning it for now and we can return to it later if/when we have more time:)
P.s. This pattern of content running all the way to the bottom of the modal window if it's overflowing it is a common thing with the dialogs that we bring up in force so I figured it'll be familiar to users. (not saying that it's great - just it's already there....)

One more update here. Mobile:
Collapsed Attribution class:

Expanded attribution class:

Okay ready for review, anyone who wants to chime in!


Really rough working example of auto complete mentions

This is not ready to merge
Related to #2
Super rough hack at this, needs cleanup in JS and css/styling but I wanted to show how I approached autocomplete.
I was going to write it as a plugin but I have no idea how to deal with the all that stuff in ComponentDidUpdate. Hopefully can be there start of a discussion!

very nice, btw I created a new PR based your branch in this repo. This way we can easily continue to work on it together in the same branch -> https://github.com/nikgraf/draft-js-plugin-editor/pull/27


choosing matrix operation

Which matrix operation are we doing ?

Probably matrix multiplication and dot product or trace of an array.

let's do trace of array.

We have another member. He may have any suggestions. We will decide after he joins.

we are doing trace


Add an option for including the request into the template context, similar to what Pyramid does.

As per title, this would be a handy feature.

I guess we need something similar to aiohttp_jinja2 context processors. See https://github.com/aio-libs/aiohttp_jinja2/issues/13 for discussion and https://github.com/aio-libs/aiohttp_jinja2/pull/14 for implementation.
Would you like to propose pull request?


Added function to delete models

Function for deleting models through the DELETE endpoint. Added test as well based on the test written for secrets which was similar in delete requirements.

Can you update the changelog and SDK version as well?

Done


Application and device functions should support both id/uuid and name

Customer caught out by this here:
https://jel.ly.fish/view-user-created-view-b321e5b8-6703-49ef-abfb-260570f18f6f-forum/support-thread-discourse-210255
@nghiant2710 @vipulgupta2048

@phil-d-wilson, it's already in my plan but I don't have a date for it yet since this needs a lot of time to implement for all application/device methods.
I will update the ticket when it's ready.

Hello, this feature has been implemented as part of #326 and more details can be found in https://blog.balena.io/balena-python-sdk-v13/ and https://docs.balena.io/reference/sdk/python-sdk/ Most models (device, application, releases etc) can now be queried by ID, UUID (long and short) and slug/name/commit when appropriate matching the behavior on the node-sdk one.


Evaluation Against Portion of Benchmark Data

Proposal
Motivation
An evaluation of full data is always important to ensure an apple-to-apple comparison.
And during quick experimentation in practice, especially in limited compute scenario, sometimes partitioner would just want to use 10% of benchmark data to do evaluation.  While the current limit supports so, it does not proportionately adjust accordingly to the data size.
The proposal is when limit is <1, limit represents the percentage of the total number of examples.
If it is >=1,  then it means the number of examples per task (only use this for testing).
Usage
It evaluates the model with 10% of hellaswag data.
python main.py \
    --model hf-causal \
    --model_args pretrained=[MODEL] \
    --tasks hellaswag \
    --limit 0.1 \
    --device cuda:0

(original behavior) It evaluates the model with 1000 of hellaswag data.
python main.py \
    --model hf-causal \
    --model_args pretrained=[MODEL] \
    --tasks hellaswag \
    --limit 1000 \
    --device cuda:0

Consideration
While this would make the limit to be legal in None, int, float at the same time, this also avoid introducing an additional variable.
scikit-learn has similar practice, for example, https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier
max_samplesint or float, default=None
If bootstrap is True, the number of samples to draw from X to train each base estimator.

If None (default), then draw X.shape[0] samples.

If int, then draw max_samples samples.

If float, then draw max_samples * X.shape[0] samples. Thus, max_samples should be in the interval (0.0, 1.0].

What is the usecase for evaluating on a fixed percentage of a dataset? We currently have this set up to go with the number of examples under the assumption that people don’t know how many examples there are in each task and are mostly looking to limit their compute usage.
Can you explain a situation where this functionality is desired?

hi @StellaAthena. Thanks for your quick comment.
The use case is quickly experimenting different training configs (e.g. for eval loop, quick eval if evaluating full data is compute-intensive, before a full benckmarking is required). It is similar to using fixed number of examples, with a little bit different context. If a user could specify sampling fraction, they could roughly estimate the margin of error (as it is correlated to sampling fraction) across different tasks before running.
Let me know what you think. Thanks!

Merging on the grounds that obviously some people would find it useful and I don’t have any specific issues with it.

Thank you for your review.


Add manual PR creation workflow and refactor common functionality

This PR addresses issue #23 by adding the option for manually running the workflow action from an issue. It also refactors common functionality between the existing create-pr-from-issue workflow and the new manual-pr-from-issue workflow into a separate callable workflow.

Superseded by #26


Misleading metrics and logs in sidecar

using:  v0.0.115
time="2021-10-06T12:21:27Z" level=info msg="got pending" pending=3972869 source=default
time="2021-10-06T12:23:13Z" level=info msg="getting pending" source=default
time="2021-10-06T12:23:13Z" level=info msg="got pending" pending=3972869 source=default
time="2021-10-06T12:25:03Z" level=info msg="getting pending" source=default
time="2021-10-06T12:25:03Z" level=info msg="got pending" pending=3972869 source=default
time="2021-10-06T12:25:41Z" level=info msg="client/metadata fetching metadata for all topics from broker kafka-headless.kafka.svc.cluster.local:9092\n"
time="2021-10-06T12:25:41Z" level=info msg="client/metadata fetching metadata for all topics from broker kafka-headless.kafka.svc.cluster.local:9092\n"
time="2021-10-06T12:25:41Z" level=info msg="client/metadata fetching metadata for all topics from broker kafka-headless.kafka.svc.cluster.local:9092\n"
time="2021-10-06T12:27:06Z" level=info msg="getting pending" source=default
time="2021-10-06T12:27:06Z" level=info msg="got pending" pending=3972869 source=default

These logs are from a new Step's sidecar which is connected to a Kafka Topic which was previously used by another Step. There are no more new messages coming into the topic and hence there is nothing to be processed but the logs indicate that 3972869 messages are pending.
This gets fixed after I enter a new message into the Topic and after processing that message, the logs indicate pending=0 which is correct
Metrics emitted by pod also indicate that 3972869 are pending which seems scary on the dashboard 😅

This works as expected now! Thanks!


HSDS-231: MessageCard Survey Component

Jira Issue
Problem/Feature
This PR adds a new MessageCard.Survey component that can be used as an action of the MessageCard component.
The MessageCard.Survey component acts as a shell with the common functionality for all survey types/variations, and can render specific variations as children.
This PR includes the "thumbs up/down" variation as the ThumbsSurvey component. Other variations will be created in the future as we continue to make progress with the Microsurveys POC.

@plbabin @jakubjanczyk thanks for the review! Should be ready for re-review now.

@plbabin would love a 👀 on this one if you get the chance!

Thanks for the review @plbabin! I've just updated the branch based on your comments. I've implemented the focusRing mixin for the focus styles, and while the buttons don't look great when they're both selected and focused, I think it's clear the state in which they are. I will chat with Alex about this so she can give us a better selected state for these buttons that look good when focused as well.

I talked with Alex about the selected styles and she's going to create new designs for those. I'll go ahead and release this version to get us unblocked and will push a patch with the new styles once we have them.


[BUG] setfetch sets version to distro name only on macOS

Expected behaviour
When running !top distro, macos should come 9th as its more used that pop!os (according to !top distro macOS)
Current behaviour
The setfetch script adds version to distro name on macos, this makes people fetch have macos 11.3.1 instead of macos which prevent it from coming on !top command
Solution
Remove it the $ver entirely (Also if possible update every previously set macos fetches to macOS instead of having versions
or have !top distro macos someone have macos 11.3.1 included in count

@6gk could u take a look here? this is a fetcher.sh issue

setfetch sets version to distro name only on macOS

this is not what happens; closing.
kidding.
I mean, linux includes version too, so things like ubuntu are lower in !top.
This is a !top issue, not a fetcher.sh issue.

fix top then 😔

@mTvare6 The issue has been closed with a commit.
Take a look on the server :)


[Bug] Help output includes markdown gobbledygook

In the defs-cmds.go file (and perhaps elsewhere?) there's markdown that is clearly intended for the docs site that we dump to the console as part of help output. This is clearly undesirable. I imagine the best option here is to strip these out and instead include a link to the docs page for the command at the end of the usage output.
EX:
λ  ./temporal task-queue describe --help
NAME:
   temporal task-queue describe - Describes the Workers that have recently polled on this Task Queue.

USAGE:
   The `temporal task-queue describe` command provides [poller](/application-development/worker-performance#poller-count) information for a given [Task Queue](/concepts/what-is-a-task-queue).

   The [Server](/concepts/what-is-the-temporal-server) records the last time of each poll request.
   Should `LastAccessTime` exceeds one minute, it's likely that the Worker is at capacity (all Workflow and Activity slots are full) or that the Worker has shut down.
   [Workers](/concepts/what-is-a-worker) are removed if 5 minutes have passed since the last poll request.

   Use the options listed below to modify what this command returns.
   Make sure to write the command as follows:
   `temporal task-queue describe [command options]`

Resolved in #167

We're still rendering markdown on non-leaf commands.

This is resolved in the rewrite


Authentication ,authorization(session management ), Caddy configuration for restricted routes

Here are set of features which could make authentication and authorization pieces easier for developers
Social Login
Enabling social login for easy authentication
Caddy configuration could be something like this

login facebook  {
    facebook_api_key        FB APP ID
    facebook_api_secret     FB API SECRET
    login_page_redirect     http://localhost:3000/auth/facebook
    callback_url            http://localhost:3000/auth/facebook/callback
    host                    localhost
    sucess_redirect         /
   failure_redirect         /login
}

After login sessions management has to be made easy , the login middle should force implementation of a User struct which will be  directly injected as session data , the session management tool like Gorilla will unable  the usage of wide variety of storage options for sessions
Restricted routes made easy
Once authentication is provided it should become easier for developers to identify whether the a given request is authenticated and graceful handling of authenticated and un-authenticated cases . This is equivalent to setting up routes which will only be served if the user is authenticated and equivalent redirection for non-authenticated users
Caddy configuration could be something like this
authorize  all {
    failure /login
}

authorize /api1 /api2 /api2  {
        failure /login
}

authorize   {
       route /api1
       failure /api1guest

}

Cool idea. Let me hold off on deciding on it until we figure out whether to grow Caddy's middleware collection - and if so, how best to do it. In the meantime, I'll leave this open for discussion.

Sure .....

I would love it if Caddy added additional support for some kind of authentication layer.  Our (internal-ish) app currently protects all backend services with a homegrown Python reverse proxy that also connects to an LDAP server for user/pass authentication.  We had to write that ourselves after various deployment constraints forced us to abandon using Apache for those tasks.  I would love it if there was some way to use Caddy as a replacement for that homegrown code, particularly since I'm hoping that we might be able to use Websockets in our next development cycle and I see that Caddy just added support for proxying WS connections.

I forgot to update this issue since we rolled out custom builds. @Karthic-Hackintosh, this is a possibility now. Perhaps you and @markerikson could come up with something that is suitable for both of you and the largest possible user base. I'll be happy to provide some feedback along the way. One thing I'd recommend initially is to try to keep it all under a single directive.

@mholt  , I shall start working on that and come with a proposal

In what way is it intended to limit access?
Note that if limitation is "must have a facebook account", well, that's anyone. What should this social login accomplish?

@coolaj86 , I'd agree that it's mostly useless if you're just checking that a user has an  unless you're just using it to provide some kind of personalized experience.
I'm interested in using oauth for authorization. In a corp environment, one could use one's companies own OAuth infrastructure and limit access to certain routes to members with specific roles, organization id, etc.  For my personal use, I could use this whitelist specific github, google, etc. users so that they're able to access certain restricted resources, or perhaps they can edit resources, where others can only read. This prevents me from having to build a full block authentication provider... which is really easy to get wrong.

Closing this in favor of #246 which is a little more general and also has further discussion on the same topic.


Allocate objects adaptively in SliceDictionaryStreamReader

Issue #2644

@dain Are you reviewing this? Or should I assign it to @cberner instead?

Addressed comments. For review again.

Looks good, but re-run the benchmark to make sure this is still an improvement after the copying change


feat: APPLICS-468 - Welsh translation - have your say journey 5/6

Describe your changes
https://pins-ds.atlassian.net/browse/APPLICS-468?atlOrigin=eyJpIjoiMjk3ODFmMGI4NmQ1NDg1ZGE5NTRjYThiNzZjYjdkODAiLCJwIjoiaiJ9
Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[x] I have performed a self-review of my own code
[ ] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[ ] I have referenced the ticket number above
[ ] I have provided a description of the ticket
[ ] I have included unit tests to cover any testable code changes

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

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

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

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


feat!: Incorporate upstream breaking changes and update stellar deps

See breaking changes here:
https://github.com/stellar/soroban-rpc/pull/280
Close https://github.com/stellar/rs-stellar-rpc-client/issues/16

How is this coming along? We are about to release RPC rc1 and end-to-end tests are failing because of this (see https://github.com/stellar/soroban-rpc/actions/runs/11171362010/job/31055922343?pr=308 )

We are about to release RPC rc1 and end-to-end tests are failing because of this (see stellar/soroban-rpc/actions/runs/11171362010/job/31055922343?pr=308 )

The system tests won't pass until the CLI is updated I think? The CLI also runs system tests, so each time we break them it's like this chicken and egg problem.
classDiagram
    direction RL
    RPC <-- RPCClient
    RPCClient <-- CLI
    CLI <-- SystemTest
    SystemTest <-- RPC
    RPC <-- QuickStart
    QuickStart <-- SystemTest
    SystemTest <-- CLI

@2opremio @leighmcculloch
Can we use the getNetwork endpoint to know the API? Then we could have and From trait to convert the responses.
And @2opremio besides the TransactionInfo flattening do the new types reflect the API. It seemed to me that there were more changes than the document @leighmcculloch is referencing in his issue.

with an enum that contains the differing fields

Nice. Can we do one enum for each field? I think that's more true to how we want serde to fill and select fields.

@willemneal For fields which are just a rename, we can use aliasing in serde, see:
https://serde.rs/field-attrs.html
#[serde(alias = "old", alias = "new")]

Because the RPC wound back it's changes, and are first deprecating old fields then adding new fields, we can reduce this PR to adding the new fields.


search npub gives nothing

from @RongxinZhang:

hi man - I just searched for user npub1nrk6szpv9wprt6xm8q303usdd06juzv6mhptncvasvttjnr22ftqpe3fxj but it's showing up empty

this can be improved by parsing the npub and trying to load the profile for users. right now we just do search like sub string matching, need special process for npub

https://github.com/digi-monkey/flycat-web/pull/340


Missing link to data analysis example

In the README-USECASES.md, I can't find the link to the data analysis example.
In fact, I had trouble finding the example in the codebase as well.
I am referring to this sentence in the readme file:
"Here is a GPTScript that reads the content of a large SQL database and produces a summary of the entire database. [Link to example here]"

Hi, we'll update this soon.

That would be great!!  Thank you!


Wrong positioned searchview.

I am implementing this as a searchview in my app and after setting up things I find that, the searchview does opens when I click options menu (a search icon) but it is wrong positioned about 20-30 dp below as expected. I tried everything but couldn't figure out, though in the sample app I find menu item searchview placed correctly.
It is not a bug report but I would like to know if I am missing something..

https://drive.google.com/file/d/0BzPFlYPNGMANTkY0QVFnSXpCbWM/view?usp=drivesdk
See the searchview is about 20-30dp below ideal position.

Hi, I think you should check margins in your layout. It looks like this kind of issue...and take a look on sample layout xml.

I did had the padding for AppbarLayout after removing it , the things have gone even worst.
Now the Searchview does not even overlap the toolbar but is mispositioned I have already check the sample and I am following the same.

https://drive.google.com/file/d/0BzPFlYPNGMANcmJqQTl4SEN5akE/view?usp=drivesdk
Here is the screenshot..

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:animateLayoutChanges="true"
    android:fitsSystemWindows="true"
    tools:context="com.softminds.educator.BaseActivities.MainActivity">

    <android.support.design.widget.AppBarLayout
        android:id="@+id/appbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
<EMAIL_ADDRESS>
        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="?attr/colorPrimary"
            app:layout_scrollFlags="scroll|enterAlways"
<EMAIL_ADDRESS><EMAIL_ADDRESS>
        <android.support.design.widget.TabLayout
            android:id="@+id/tabs"
            android:layout_marginEnd="8dp"
            android:layout_marginStart="8dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

    </android.support.design.widget.AppBarLayout>

    <android.support.v4.view.ViewPager
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="@string/appbar_scrolling_view_behavior" />

    <com.lapism.searchview.SearchView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/search_content"
        app:layout_behavior="com.lapism.searchview.SearchBehavior" />

</android.support.design.widget.CoordinatorLayout>

Setting this attribute for searchview solves my issue
android:layout_marginTop:"-21dp"

But this is not the correct method, I also saw many other issues related to it
Hope it gets fixed soon...


Released binaries do not work on Debian stable (11.6)

Version
Other
What happened?
Trying to run the released binary does not work anymore on the latest debian stable release (11.6):
$ tar -vxf ~/Downloads/sqlc_1.17.2_linux_amd64.tar.gz
sqlc
$ ./sqlc
./sqlc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./sqlc)
./sqlc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./sqlc)
./sqlc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./sqlc)

This used to work with sqlc 1.16.  This could be fixed by compiling with CGO_ENABLED=0 or maybe by building with the  go build -tags osusergo,netgo. See [1] and [2] for more information.
[1] https://utcc.utoronto.ca/~cks/space/blog/programming/GoAndGlibcVersioning
[2] https://www.arp242.net/static-go.html
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go

This is how we currently build the sqlc binaries for Linux
go build -ldflags="-s -w -X github.com/kyleconroy/sqlc/internal/cmd.version=$VERSION" ./cmd/sqlc

Note that this is different from the command we use in the Dockerfile and Snapcraft
go build -a -ldflags "-extldflags \"-static\" -X github.com/kyleconroy/sqlc/internal/cmd.version=v1.17.2" -o $GOBIN/sqlc ./cmd/sqlc

Let me try that command and upload it here.

	-a
		force rebuilding of packages that are already up-to-date.
	-ldflags '[pattern=]arg list'
		arguments to pass on each go tool link invocation.
	-extldflags flags
		Set space-separated flags to pass to the external linker.

Also may be because of this? https://github.com/golang/go/issues/58550

@schmir-at-bb Can you please try this release? I think it should work.
sqlc_1.17.2_linux_amd64.tar.gz

@schmir-at-bb Can you please try this release? I think it should work.
sqlc_1.17.2_linux_amd64.tar.gz

This one does work.

Also seeing failures updating to any of 1.17.x pre-built binaries. Can also confirm the one linked above works on our CI. We download the binary in CI as needed, so we're reverting to 1.16 for now.

@mastercactapus I've re-uploaded the Linux pre-built binaries for 1.17.2. Could you please try those now?

@kyleconroy Just tested in CI; all good, thank you!

Great, closing this out.


Upgrade Particle page

Added a complete tutorial to start with Particle Connect and AA features on Cyber.

Hi! Any chance this can get reviewed? Thank you!

Merged, thank you! @soos3d


Cannot connect to signal for GstURIDecodeBin

I tried to implement the dynamic pipeline in tutorial part 3. Then, adding the signal handler does not work here.
We get

Error: Metadata for GType "GstURIDecodeBin" was not found. You might need to load additional required modules.

Maybe there's some module to load. Maybe I'm missing something else. But maybe there's some introspection issue as the error comes from
https://github.com/wotzlaff/node-gtk/blob/4fccb8c06e3da236cca06d530462c2a6d4efefc1/src/gobject.cc#L252-L259
Again, the problem is related to g_irepository_find_by_gtype returning NULL. Is no GIBaseInfo available for GstURIDecodeBin or are we trying to get it in the wrong manner?

The core of the question lies in the problem whether we are able to derive the signature of the signal callback function without GI. This is necessary to define the marshal function of a closure using g_closure_set_marshal in closure.cc.
In PyGObject the marshal function looks like this.
It seems that type interference is also possible at runtime (which would be fine from the perspective of js).


Menu bar not closing when you click a menu item. Happens on mobile browser.

Ah thanks! Will get this fixed 🙏

Thanks again for flagging this, a fix went out last week!


Start pins are cleared after each restart.

Moin,
kann es sein, dass diese StartPins Einstellungen ("HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start") dafür sorgen, dass jedesmal nach dem Neustart alle manuell gesetzten StartPins wieder entfernen?

Hi there,
Is it possible that these StartPins settings (‘HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start’) ensure that all manually set StartPins are removed each time after a restart?

Cannot reproduce. Testing with an original Win11_23H2_English_x64v2.iso image and an autounattend.xml file that removes most bloatware components. When a user logs on for the first time, there are no shortcuts in the Pinned section of the Start menu as expected (and only the Get Started shortcut in the Recommended section).
Nevertheless, adding shortcuts (via the Pin to Start command) works, and those shortcuts remain after a restart.


MediaUriElement stops maintaining position and does not raise MediaEnded after restart

This is an open issue floating around the internet.  Does not look like the latest source addresses the issue.
What I'm trying to do is manually loop the player at specific time-codes.  this works one time for me, and after that happens, checking position no longer is in-sync with actual playback.  I've also noticed that after I stop and start the player, it will not ever raise MediaEnded.
The solution seems to be in part adding a call to StartGraphPollTimer() inside MediaPlayerBase.Play().

+1. Yep, after the player reaches the end, the timer stops, so the MediaPosition is not maintained. I suggest to start the timer again in Play() method.
Workaround is to use MediaUriElement Loop="True" and then:
video.MediaUriPlayer.MediaPositionChanged += MediaUriPlayer_MediaPositionChanged;
// ...
        private void MediaUriPlayer_MediaPositionChanged(object sender, System.EventArgs e)
        {
            if (video.MediaUriPlayer.MediaPosition >= video.MediaUriPlayer.Duration)
                this.Dispatcher.BeginInvoke(new Action(() => video.Stop()));
        }

Thanks xmedeko.  Yeah, putting another call to StartGraphPollTimer() inside the Play() method of MediaPlayerBase does seem to get everything I need working.  I'm just not sure if that has other unintended effects.  I suppose just as long as I make sure it is always stopped at some point should be fine.


Replace nullish coalescing operator with default function parameters

Nullish coalescing operator has been supported since nodejs 14, so replaced with default function parameters to support in previous nodejs versions. (e.g. nodejs12)
(see https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator)

@thomaschaaf could you merge it so it would be possible to use plugin on older versions of nodejs?

@chrisands @seokju-na released as 0.3.0 sorry for not seeing the pr.


update vendor

[+]: update "portable-utf8" from 2.x -> 3.x
[+]: update "anti-xss" from 1.x -> 2.x

Coverage increased (+0.01%) to 96.336% when pulling 383e9c87b84d8c6cf143e63d259a666381320549 on voku:update_portable_utf8 into 9421636fe7b96e8bff3fad553d987686fcd57d44 on phpgearbox:master.

Coverage increased (+0.01%) to 96.336% when pulling 383e9c87b84d8c6cf143e63d259a666381320549 on voku:update_portable_utf8 into 9421636fe7b96e8bff3fad553d987686fcd57d44 on phpgearbox:master.


Modified: classifiers.py , Adam lr to learning_rate and LeakyReLU alp…

…ha to negative_slope

oh nice, thanks


Tc sfnl integration updates

Updated the UID2 Snowflake Integration Guide to include the marketplace listing info and access instructions.

Merging updates to Snowflake integration to include Snowflake Marketplace options.


Switch from useDapp to ethers in example

A draft of using a ethers as web3 provider connector

@Szymx95 is it still a draft?


Streamline terminology for switching a diff editor into inline mode

From
https://github.com/Microsoft/vscode/issues/54967#issuecomment-407653722:

GUI toggle: Toggle Inline View
Setting switch:  renderSidebySide
Keyboard toggle: editorMode.

✅ I've changed the GUI toggle: Toggle Side By Side View
✅ I've left unchanged in Settings (avoid migration): diffEditor.renderSideBySide
I suggest we add a new command and leave the old one doing the same thing for keybinding compatibility purposes. @bpasero You introduced toggle.diff.editorMode, what id would you suggest to better align with the other two names?

I added toggle.diff.renderSideBySide and deprecated the old one.


Increase Overall Unit Test Coverage - ECMPS UI - files w/50% to 70% coverage

Unit Test cases to address include:
Components 50 to 70%
src/components/Preloader/Preloader.js  - coverage at  50%
src/components/datatablesContainer/SelectFacilitiesDataTable/SelectFacilitiesDataTable.js - coverage at 61.5%
src/components/MonitoringPlanEvaluationReport/MonitoringPlanEvaluationReport.js -coverage at 52.2%
src/components/MonitoringPlanHome/MonitoringPlanHome.js - coverage at 53.3%
src/components/Tabs/Tabs.js - coverage at 53.1%
src/components/ModalDetails/ModalDetails.js - coverage at 57.3%
src/components/SubHeader/LeftNavToSubHeader.js -  coverage at 58.8%
src/components/ReportGenerator/ReportGenerator.js - coverage at 67.6%


Rewrite CONTRIBUTING.md to make it clear we are NOT using Leaked Code

Summary
Given recent events regarding leaked source code, it's important for SEGS to make it clear that we are running a CLEAN ROOM environment and NOT utilizing any source code in our endeavors.
Our Contributing doc should reflect this:
https://github.com/Segs/Segs/blob/develop/docs/CONTRIBUTING.md

I'll pick up this issue!


Problem pasing daily forecast

Describe the bug
Daily forecast using the script bellow returns puts a long string in the entity, hourly is getting processed correctly
Script
#weather forcast daily sensor
- trigger:
    - platform: time_pattern
      minutes: 55

    - platform: homeassistant
      event: start
  action:
    - service: weather.get_forecasts
      data:
        type: daily
      target:
        entity_id: weather.home
      response_variable: daily

  sensor:
    - name: Weather Daily
      state: "{{ states('weather.home') }}"
      attributes:
        temperature: "{{ state_attr('weather.home', 'temperature') }}"
        dew_point: "{{ state_attr('weather.home', 'dew_point') }}"
        temperature_unit: "{{ state_attr('weather.home', 'temperature_unit') }}"
        humidity: "{{ state_attr('weather.home', 'humidity') }}"
        cloud_coverage: "{{ state_attr('weather.home', 'cloud_coverage') }}"
        pressure: "{{ state_attr('weather.home', 'pressure') }}"
        pressure_unit: "{{ state_attr('weather.home', 'pressure_unit') }}"
        wind_bearing: "{{ state_attr('weather.home', 'wind_bearing') }}"
        wind_speed: "{{ state_attr('weather.home', 'wind_speed') }}"
        wind_speed_unit: "{{ state_attr('weather.home', 'wind_speed_unit') }}"
        visibility_unit: "{{ state_attr('weather.home', 'visibility_unit') }}"
        precipitation_unit: "{{ state_attr('weather.home', 'precipitation_unit') }}"
        forecast: "{{ daily['weather.home'].forecast }}"

I have practcally the same script for hourly. T problem lies with the last line:   forecast: "{{ daily['weather.home'].forecast }}"
Working hourly: {{ state_attr('sensor.weather_hourly','forecast') }}
Output is a array:

Not working Daily: {{ state_attr('sensor.weather_daily','forecast') }}
Ouptus is a string:

So the following template "{{ state_attr('sensor.weather_daily','forecast')[3]}}" returns the 4th char: d, and not the 4th day.
So something is broken to parse the json into an array I guess? Maybe the single quotes in forecast text? like 's morgens?
Version

Home Assistant: 2024.6.3
IRM KMI integration 0.2.17

Love the integration by the way ;-)
Thanks Wouter

Thanks for the feedback!  I did not reproduce the bug yet, I'll try when I have some time and keep you posted.

So something is broken to parse the json into an array I guess? Maybe the single quotes in forecast text? like 's morgens?

This seems like a reasonable guess, the only differences between daily and hourly forecast are: sunset, sunrise and text.  Probably one of them is not serializable to JSON as intended

Love the integration by the way ;-)

Thanks!  It seems that people love to know when it is going to rain in Belgium :)

No problem, take your time.
Let me know if I can do something. ;-)
Yes, to see when it will get sunny here is useless :-D

I managed to reproduce the bug and fix it.  The fix is included in 0.2.18
The problem was the time of sunset and sunrise not being serialized correctly (it was a datetime object instead of a string as expected by Home Assistant)

Just updated here. Working perfectly again!
Many thanks!!


Sony PSP (PlayStation Portable) Browser not detected

The PSP Internet Browser is a version of the NetFront browser and came with the system via an update.
Link: https://web.archive.org/web/20140327074216/http://us.playstation.com/psp/
Link: https://en.wikipedia.org/wiki/PlayStation_Portable#Web_browser
Regex:
/(PlayStation Portable)([\)\s\;]+)(\d+[\.\d]+)/

Example UA's:
Mozilla/4.0 (PSP (PlayStation Portable); 2.00)
PSP (PlayStation Portable); 2.00
PSP (PlayStation Portable); 5.70
Mozilla/5.0 (PSP (PlayStation Portable); 2.00)
Mozilla/4.0 (PlayStation Portable); 2.00)
MSIE PSP (PlayStation Portable); 2.00
Mozilla/4.0 (PSP PlayStation Portable); 2.00)
Mozilla/4.0 (PSP; (PlayStation Portable);; 2.60; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2)
Mozilla/5.0 (PSP (PlayStation Portable); 4.00)

This issue expands the regex code for issue: https://github.com/WhichBrowser/Parser-PHP/issues/176