Race condition between native browser state and VDom

When hitting a checkbox, there is race condition where the native browser state will set the checkbox to checked: true and Snabbom fails to set checked: false. Here is a minimal complete example
var inBetween; // holds the intermediate vnode

const vnode1 = hh('div', {}, [ // vnode1 has the div with 2 checkboxes set to false
  hh('input', { on : { change : () => patch(inBetween,vnode2)}, // when the first checkbox is changed, we change to vnode2
                props : { checked : false, type : "checkbox" } }, []),
  hh('input', { props : { checked : false, type : "checkbox" } }, [])
])

const vnode2 = hh('div', {}, [
  hh('input', { props : { checked : false, type : "checkbox" } }, []) // vnode2 has the div containing 1 checkbox set to false
])

inBetween = patch(container, vnode1); // works as expected

Reproduction
You can see this bug occur live here: https://plnkr.co/edit/TyvcMBT0F3TQ5YDq
document.getElementsByTagName("input").length == 2
document.getElementsByTagName("input")[0].checked == false
document.getElementsByTagName("input")[1].checked == false

Click the first checkbox

Expected Result
document.getElementsByTagName("input").length == 1
document.getElementsByTagName("input")[0].checked == false

Actual Result
document.getElementsByTagName("input").length == 1
document.getElementsByTagName("input")[0].checked == true

ok, so I've investigated this a little more. I took a look at your example (the one on plnkr) and I think this is actually expected behavior. Here is what's happening:

you render 2 checkbox elements, but without any id attribute or key set.
upon clicking the first checkbox patch gets called, passing in vnode2 as the new node to diff.
because there's no way to identify that vnode2 matches the first node in the initial list, it obliterates the first checkbox and keeps the 2nd one which is unchecked.

I tweaked the code slightly, and this works as expected (notice the ids):
const vnode1 = hh('div', {}, [
  hh('input', {  attrs: { id: 'bleep1' },   on : { change : () => patch(inBetween,vnode2)},
                props : { checked : false, type : "checkbox" } }, []),
  hh('input', {  attrs: { id: 'bleep2' },  props : { checked : false, type : "checkbox" } }, [])
])

const vnode2 = hh('div', {}, [
  hh('input', {  attrs: { id: 'bleep1' },  props : { checked : false, type : "checkbox" } }, [])
])

@jvanbruegge  or @paldepind  would love another set of eyes, do I have this wrong?

I deleted my previous comment because I was investigating this late last night, with a fatigued 🧠 .
In looking at this again this morning I definitely think there is a bug here. I re-packaged the PR that @Fresheyeball  submitted in #955
Mostly I just re-structured the logic in an attempt to make it more clear why the value and checked properties are handled a bit differently from the other props.
Something that I'm wondering though...is this issue more widespread? I would think any/all boolean properties on DOM elements would be similarly affected (disabled, required,  open, hidden, autoplay, etc.)
@jvanbruegge  @paldepind would still love another set of 👀  on this and your thoughts.

I think the special casing on value and checked in #951 and #955 is a bit worrying. One might worry that there are other cases where this is needed (of course, the current code is already special casing on value – but perhaps that too was a mistake).
I'm wondering to what extent this is a bug. The diffing process is fundamentally about comparing the previous state of the virtual DOM with the current state of the virtual DOM and applying any differences to the DOM. With this in mind, it is not surprising that problems arise when the state of the DOM is modified both by the browser and by Snabbdom. The current fix for value (that #995 extends to checked), in a sense, changes the scope of the diffing process to also inspect the DOM.
React has a notion of an uncontrolled input and a controlled input and one can choose between the two by choosing between value and defaultValue. As far as I can see, our current behavior doesn't match either of them but is something in between. And there is no way to get the controlled behavior in Snabbdom as far as I can think.
Inspired by what React does, one could have a different subobject in props or a separate module for when one wants this semi-managed behavior. Then one would use that for value, checked, and perhaps other properties.

Also related #418 (thanks @iambumblehead).


Package request:  discord-screenaudio

Project description
A custom discord client that supports streaming with audio on Linux.
(because combining screen audio and mic audio is cringe)
Metadata

homepage URL: https://github.com/maltejur/discord-screenaudio
source URL:https://github.com/maltejur/discord-screenaudio
license: gpl3
platforms: linux

see #199379 :)

oh sick, good to know.
closing.

can this issue be reopened pls

sure, i assume you want to request a package for this too, since https://github.com/NixOS/nixpkgs/pull/199379 was abandoned

Adding a +1 on this package request. Very sad to see it's not available at this time.

Relevant PR: https://github.com/NixOS/nixpkgs/pull/249670


sebastian sosa profile

https://github.com/CakeCrusher/ufssd-website/blob/01ee84324505fb701760c6d8e0e6d479c6b8fd7b/src/app/about/officer-data.ts#L154-L165
Spring 2024 needs the info for all of the other officers - or none of them will show up.
Listing all of the officers will (the same way as Fall 2023) fix this.

@yonasbahre mb, I should have asked as I wasnt 100% on who the officers were this semester. Fixed.


Cipherlab RS30 and my application crashes when I start initialise function

When I'm trying run this code:
 cordova.plugins.CipherlabRS30CordovaPlugin.initialise(function ()  {           cordova.plugins.CipherlabRS30CordovaPlugin.requestScan(function()             {            });           cordova.plugins.CipherlabRS30CordovaPlugin.setReceiveScanCallback(function (data)             {                  console.log(data);           });         });
My application unexpectedly crashes. Once in a while the application scans the code correctly. My cordova version is 6.2.0. In the image sending error log which could preview in the Eclipse.

Hi @sebastianor,
Your issue looks similar to #1 and #3 which were caused by the BarcodeAPI.jar file becoming out of date with the firmware of the target device.
Can you try to update them in your local repo of the plugin and see if that resolves.
You will need to overwrite this:
cordova-plugin-cipherlab-rs30/src/android/BarcodeAPI.jar
With the BarcodeAPI.jar that you have obtained from your Cipherlab supplier.
Currently the plugin supports BarcodeAPI_V1_0_35.jar
You might have an older version, you could also try this branch
https://github.com/mribbons/cordova-plugin-cipherlab-rs30/tree/BarcodeAPI_v1.0.31
It really depends which version of the BarcodeAPI you have and know works with your device. You might also want to try updating your firmware, although I am unsure where to obtain updated firmware.
Just a note, if you want to provide logs from eclipse or other IDEs, please provide text version of the output. I know it's possible but I can't see any documentation.
Not sure about eclipse itself, but try this:
http://stackoverflow.com/a/2888222/3739540
adb shell logcat > log.txt

Ok. That works after install old version of BarcodeAPI.jar. Thanks for help.

Thanks for getting back to me.


SavedModelBundle.java's load() method is not working with RandomForest Saved Model

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS 10.12
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): Tried with both 1.1.0 and 1.2.0-rc1
CUDA/cuDNN version: Running on CPU

I have SavedModel using TensorForestEstimator (RandomForest) by using export_savedmodel() it was saved successfully and able to load from SavedModel-cli too. But when trying to load using
val SAVED_MODEL_PATH =
      "/Users/Documents/tensordata/1496652787";
    val bundle = SavedModelBundle.load(SAVED_MODEL_PATH, "serve");

It's giving following error -:
Exception in thread "main" org.tensorflow.TensorFlowException: Op type not registered 'TreePredictions'
	at org.tensorflow.SavedModelBundle.load(Native Method)
	at org.tensorflow.SavedModelBundle.load(SavedModelBundle.java:38)
	at ai.tenten.ml.ClassifyITCase$.main(ClassifyITCase.scala:59)

I am able to load Other saved models like HalfPlusTwo Regression and mnist dense Predict model successfully. Only in RandomForest It's giving error I thing some op is missing from build or Java API is not updated.

@shashank734 : Alas, at this time, any ops defined in the Python tf.contrib namespace are not supported in the release binaries of other languages. This stems from the fact that these ops are implemented in their own binaries (in their own shared libraries) and we currently do not support loading custom ops.
That's something we're looking into (making custom operations in tf.contrib available to other binary distributions), but there is no timeline on that.
In the mean time, if you're willing to build from source, I can suggest a workaround, which would involve compiling from source. Something like:

Checkout the source and install bazel:

git checkout github.com/tensorflow/tensorflow
cd tensorflow
git checkout r1.2 # Just so that you're in the release branch

brew install bazel

Setup the build system to statically link the contrib ops into the JNI library by adding:

        "//tensorflow/contrib/tensor_forest:tensor_forest_ops_op_lib",
        "//tensorflow/contrib/tensor_forest:tensor_forest_kernels",

to the deps section of the libtensorflow_jni.so build target

Build the JNI library:

yes "" | ./configure
bazel build -c opt //tensorflow/java:libtensorflow_jni.so

Now, you'd want to make this library instead of the one packaged in the release binary distributions. You can do that by adding -Djava.library.path=bazel-bin/tensorflow/java to the java command.
Do let us know if this works or not.
Hope that helps.
(FYI @allenlavoie @girving @martinwicke )

I will try this. But still wait for changes before deploying to production.

This should now be doable with TensorFlow 1.4. See https://stackoverflow.com/questions/47276624/issue-while-loading-serving-tensorflow-model-in-java-using-estimators/47277367#47277367
You'll have to adjust the arguments to TensorFlow.loadLibrary() to correspond to the shared libraries included in the tf.contrib.tensor_forest module.
I'm closing this bug out since I believe the process described in the stackoverflow thread will work (albeit it could be made smoother). Please feel free to re-open if you run in to trouble or have comments.
Thanks!


Make etcd value preview panel vertical-scrollable

Hi. Thanks for your work of this plugin.
It seems that the value preview panels are not scrollable if the lines of etcd value exceeds the limits of preview panel.
This PR makes the panel scrollable and shows scrollbar if it is required.

LGTM！Thanks for the PR🍻🍻🍻

1.4.1-rc2, with this PR merged, has been published on EAP channel, see https://plugins.jetbrains.com/plugin/19924-etcdhelper/versions/eap.
A stable version will be scheduled recently.


Demo integration tests

Move work from #3166 to integration tests

Not done yet

@rabbitonweb It's because you used the phrase "partially resolves" in the PR description, so github auto-closed it.

@djspiewak yeah, i know, i just put comment so we know why i'm opening it


⚠ ClamAV has degraded performance

In 1621980, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 568 ms

Resolved: ClamAV performance has improved in b4ee8c7.


python code still working in your Minecraft server?

I was able to connect to <IP_ADDRESS>:25565 - 1.10.2 but unable to run any of your python excersices.

@AngelAlvarado The port you posted isn't quite right.
The server is hosted at <IP_ADDRESS>:25570 and runs Minecraft 1.8.8
But yeah, it's still up and running Python (I was on it yesterday)

I was able to connect using port 25570  and version 1.8.8, cannot execute the python code yet though.
Thank you!


Issues in conversion of caffe model to mxnet

I have been trying to convert squeezenet architecture (https://github.com/songhan/SqueezeNet-Deep-Compression) to mxnet. While I was able to convert the model successfully; model gives 9000 classes in output as against 1000 in the original model. Also tried converting another model based on the same architecture with 2 classes and got 18 classes (again 9 (3X3) times the expected) in mxnet converted model.
converting layer conv1, wmat shape = (96, 3, 7, 7), bias shape = (96,) converting layer fire2_squeeze1x1, wmat shape = (16, 96, 1, 1), bias shape = (16,) converting layer fire2_expand1x1, wmat shape = (64, 16, 1, 1), bias shape = (64,) converting layer fire2_expand3x3, wmat shape = (64, 16, 3, 3), bias shape = (64,) converting layer fire3_squeeze1x1, wmat shape = (16, 128, 1, 1), bias shape = (16,) converting layer fire3_expand1x1, wmat shape = (64, 16, 1, 1), bias shape = (64,) converting layer fire3_expand3x3, wmat shape = (64, 16, 3, 3), bias shape = (64,) converting layer fire4_squeeze1x1, wmat shape = (32, 128, 1, 1), bias shape = (32,) converting layer fire4_expand1x1, wmat shape = (128, 32, 1, 1), bias shape = (128,) converting layer fire4_expand3x3, wmat shape = (128, 32, 3, 3), bias shape = (128,) converting layer fire5_squeeze1x1, wmat shape = (32, 256, 1, 1), bias shape = (32,) converting layer fire5_expand1x1, wmat shape = (128, 32, 1, 1), bias shape = (128,) converting layer fire5_expand3x3, wmat shape = (128, 32, 3, 3), bias shape = (128,) converting layer fire6_squeeze1x1, wmat shape = (48, 256, 1, 1), bias shape = (48,) converting layer fire6_expand1x1, wmat shape = (192, 48, 1, 1), bias shape = (192,) converting layer fire6_expand3x3, wmat shape = (192, 48, 3, 3), bias shape = (192,) converting layer fire7_squeeze1x1, wmat shape = (48, 384, 1, 1), bias shape = (48,) converting layer fire7_expand1x1, wmat shape = (192, 48, 1, 1), bias shape = (192,) converting layer fire7_expand3x3, wmat shape = (192, 48, 3, 3), bias shape = (192,) converting layer fire8_squeeze1x1, wmat shape = (64, 384, 1, 1), bias shape = (64,) converting layer fire8_expand1x1, wmat shape = (256, 64, 1, 1), bias shape = (256,) converting layer fire8_expand3x3, wmat shape = (256, 64, 3, 3), bias shape = (256,) converting layer fire9_squeeze1x1, wmat shape = (64, 512, 1, 1), bias shape = (64,) converting layer fire9_expand1x1, wmat shape = (256, 64, 1, 1), bias shape = (256,) converting layer fire9_expand3x3, wmat shape = (256, 64, 3, 3), bias shape = (256,) converting layer conv10, wmat shape = (2, 512, 1, 1), bias shape = (2,)
Also, in trace last layer seems to be creating 2 classes (not 18)
Where am I possibly going wrong? Any help appreciated.
Thanks

I was able to solve the above issue.
There was some issue due to kernel_size in global pooling layer. Extra padding in convolution layer was causing more no. of filter maps than required.
Now, I am stuck at another issue in the same architecture which causes the all the probabilities to be 1.0 for all the classes, what could be the possible reason? Any help appreciated!

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Select relations with where condition in populate option

Mikro-orm select with relations

find(
  {
    roles: {
      isActive: true
    }
  },
{
  populate: ['roles'] //, 'roles.permissios', 'profiles']
})

That will not return result if all roles are not active. But is need something what will return user with property roles equal to []
https://sequelize.org/master/manual/eager-loading.html
Eager loading filtered at the associated model level
When eager loading, we can also filter the associated model using the where option, as in the following example:

User.findAll({
  include: {
  model: Tool,
  as: 'Instruments'
  where: {
    size: {
       [Op.ne]: 'small'
    }
 }
}
});

Generated SQL:

SELECT
user.id,
user.name,
Instruments.id AS Instruments.id,
Instruments.name AS Instruments.name,
Instruments.size AS Instruments.size,
Instruments.userId AS Instruments.userId
FROM users AS user
INNER JOIN tools AS Instruments ON
user.id = Instruments.userId AND
Instruments.size != 'small';

Note that the SQL query generated above will only fetch users that have at least one tool that matches the condition (of not being small, in this case). This is the case because, when the where option is used inside an include, Sequelize automatically sets the required option to true. This means that, instead of an OUTER JOIN, an INNER JOIN is done, returning only the parent models with at least one matching children.
Note also that the where option used was converted into a condition for the ON clause of the INNER JOIN. In order to obtain a top-level WHERE clause, instead of an ON clause, something different must be done. This will be shown next.

You need to populate separately if you want different conditions for the root entity:
const items = await em.find(RootEntity, {}); // we want entities regardless of what is in their roles collection
await em.populate(items, ['roles'], { roles: { isActive: true } }); // we only use the condition here when loading the relation

Is not nice, that make another query?

You need to populate separately if you want different conditions for the root entity:
const items = await em.find(RootEntity, {}); // we want entities regardless of what is in their roles collection
await em.populate(items, ['roles'], { roles: { isActive: true } }); // we only use the condition here when loading the relation

Is not nice, that make another query?

You need to populate separately if you want different conditions for the root entity:
const items = await em.find(RootEntity, {}); // we want entities regardless of what is in their roles collection
await em.populate(items, ['roles'], { roles: { isActive: true } }); // we only use the condition here when loading the relation

And why so big difference form method to method.


🎉 2.0.2

ℹ About this release

Version: 2.0.2
Type: patch
Last Release: 2.0.1 (12/13/2021, 10:48:35 PM) [?]
Commits to merge: 8 [?]

🐛 Bug Fixes

Xiaomi Bluetooth: Fix battery reporting (6c9dd79), closes #106

📦 Dependencies

Update @sentry/node from ^6.15.0 to ^6.16.1
Update mqtt from ^4.2.8 to ^4.3.2

📦 Development Dependencies

Update @semantic-release/exec from ^6.0.2 to ^6.0.3
Update eslint from ^8.2.0 to ^8.4.1
Update rollup from ^2.60.1 to ^2.61.1

:tada: This PR is included in version 2.0.2 :tada:
The release is available on:

v2.0.2
GitHub release
Docker container (sebbo2002/ble2mqtt:2.0.2)
v2.0.2

Your semantic-release bot :package::rocket:


General Question

first of all thank you for your git it's really useful, second I would like to ask if I can sell multiple account using the same title as in a stock, does the one delivered gets automatically disabled and moved to deliver the next account or that is not possible ?

You can have multiple accounts for the same listing title when you receive an order it will look for the target_title in the file and if found it will pick the details that are closest to the top and delete the account details from the file so it will not pick them again. The same thing repeats when you receive an order again. In conclusion yes it will work.

Oh sorry I don't know about multiple accounts per listing like listing stock, this program is only meant for and tested for single-account listings, maybe it will work I haven't tried it.

okey thank you so much ! also for the refresh token do I have to update it from 24 hours to 24 hours ?

I think the cookies expire after 2 weeks. You should get an error message if they are expired.


Added toolchain setup instructions

This has been sitting unreviewed for 10 days.
Sinking a few hours into an update and not getting feedback is unrewarding.
Starting work on something and having to shelve it for 10 days starts swapping out memories, so it's an ineffective workflow.
For these reasons I conclude:
Please feel free to merge or reject, but I don't care about this PR anymore.
(Actually I won't try to contribute to SLF4J again.)


Remove deprecated APIs from registry operator

Which area/kind this issue is related to?

/area registry
Issue Description

The registry operator has been recently updated to use Kubernetes v1.26 as of writing, with this update we need to ensure that all APIs are using up to date definitions and any that are deprecated (since v1.22 previously in use) are removed.

Might be some overlap with https://github.com/devfile/api/issues/1106

blocked by #1106

blocked by #1106

no longer blocked


feat: oonifindings service

This diff introduces the oonifindings revamp work with migration to fastapi and clickhouse support.

We can close this since this is from a fork not authorized to run tests on GH actions


Fix Windows compatibility with multithreading

Hi.
I've faced with some tests of Jupyterhub Notebook repo are failing:
Traceback (most recent call last):
  File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\tornado\web.py", line 1704, in _execute
    result = await result
  File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\tornado\gen.py", line 234, in wrapper
    yielded = ctx_run(next, result)
  File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\tornado\gen.py", line 162, in _fake_ctx_run
    return f(*args, **kw)
  File "D:\a\notebook\notebook\notebook\services\contents\handlers.py", line 237, in delete
    yield maybe_future(cm.delete(path))
  File "D:\a\notebook\notebook\notebook\services\contents\manager.py", line 279, in delete
    self.delete_file(path)
  File "D:\a\notebook\notebook\notebook\services\contents\filemanager.py", line 533, in delete_file
    send2trash(os_path)
  File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\send2trash\plat_win_modern.py", line 31, in send2trash
    shell.CLSID_FileOperation, None, pythoncom.CLSCTX_ALL, shell.IID_IFileOperation,
pywintypes.com_error: (-2147221008, 'CoInitialize has not been called.', None, None)

According to https://stackoverflow.com/questions/37258257/why-does-this-script-not-work-with-threading-python, it is important to call .CoInitialize() method to allow win32 API calls in multithread mode.

When I look into the information on .CoInitialize() I see that CoUninitialize() should be called for each call, this is shown in the example in the email thread: https://mail.python.org/pipermail/python-win32/2008-June/007788.html.  I need to look into understanding this a bit more but that seems to be what the Microsoft COM documentation suggests as well at https://docs.microsoft.com/en-us/windows/win32/api/objbase/nf-objbase-coinitialize and https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-couninitialize.

Sorry, I've missed a notification about your comment. Thank you for merging a fix!

Could you please release a fixed version?

@dolfinus 1.8.0 is now pushed.

Thank you, tests have been passed successfully:
https://github.com/dolfinus/notebook/runs/3278236460?check_suite_focus=true


Get-WindowsFeature is not available in mcr.microsoft.com/windows:ltsc2019

What is your question?
I have a C# code that is that using Telerik library. Our code is deployed on mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 but here it is not working.
We tried that code on mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2022 as well but here it was not also not working.
So I used mcr.microsoft.com/windows/server:ltsc2022 as base image and install all necessary features on this to run a website. After that the code is working on new Image.
Now I am trying to do same with mcr.microsoft.com/windows:ltsc2019. When I am trying to install Windows server features using command Get-WindowsFeature, it is saying that this command is not present.
So I have two questions

What are the features that are not present in the framework docker images but in server images
How can I install all required features in mcr.microsoft.com/windows:ltsc2019 to run my net framework/net core applications.

below is the docker file for windows:ltsc2019
# escape=
FROM mcr.microsoft.com/windows:ltsc2019
ENV     # Enable detection of running in a container     COMPLUS_RUNNING_IN_CONTAINER=1
COMPLUS_NGenProtectedProcess_FeatureEnabled=0
RUN     #  Install .NET Fx 4.8     curl -fSLo dotnet-framework-installer.exe https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe
&& .\dotnet-framework-installer.exe /q     && del .\dotnet-framework-installer.exe
&& powershell Remove-Item -Force -Recurse ${Env:TEMP}*
#  Apply latest patch
&& curl -fSLo patch.msu https://catalog.s.download.windowsupdate.com/c/msdownload/update/software/secu/2023/12/windows10.0-kb5033911-x64-ndp48_fd9c7de7eff3906ed882d2a338030d33ea373ba5.msu     && mkdir patch
&& expand patch.msu patch -F:*     && del /F /Q patch.msu
&& dism /Online /Quiet /Add-Package /PackagePath:C:\patch\windows10.0-kb5033911-x64-ndp48.cab     && rmdir /S /Q patch
    # ngen .NET Fx     && %windir%\Microsoft.NET\Framework64\v4.0.30319\ngen uninstall "Microsoft.Tpm.Commands, Version=<IP_ADDRESS>, Culture=Neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=amd64"
&& %windir%\Microsoft.NET\Framework64\v4.0.30319\ngen update `
&& %windir%\Microsoft.NET\Framework\v4.0.30319\ngen update
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Add-WindowsFeature Web-Server;     Add-WindowsFeature NET-Framework-45-ASPNET;
Add-WindowsFeature Web-Asp-Net45;     Remove-Item -Recurse C:\inetpub\wwwroot\*;
Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/<IP_ADDRESS>/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe;     &$Env:windir\Microsoft.NET\Framework64\v4.0.30319\ngen update;
&$Env:windir\Microsoft.NET\Framework\v4.0.30319\ngen update
RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile C:\microsoft.net.compilers.2.9.0.zip;     Expand-Archive -Path C:\microsoft.net.compilers.2.9.0.zip -DestinationPath C:\RoslynCompilers;
Remove-Item C:\microsoft.net.compilers.2.9.0.zip -Force;     &$Env:windir\Microsoft.NET\Framework64\v4.0.30319\ngen install C:\RoslynCompilers\tools\csc.exe /ExeConfig:C:\RoslynCompilers\tools\csc.exe |
&$Env:windir\Microsoft.NET\Framework64\v4.0.30319\ngen install C:\RoslynCompilers\tools\vbc.exe /ExeConfig:C:\RoslynCompilers\tools\vbc.exe |     &$Env:windir\Microsoft.NET\Framework64\v4.0.30319\ngen install C:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:C:\RoslynCompilers\tools\VBCSCompiler.exe |
&$Env:windir\Microsoft.NET\Framework\v4.0.30319\ngen install C:\RoslynCompilers\tools\csc.exe /ExeConfig:C:\RoslynCompilers\tools\csc.exe |     &$Env:windir\Microsoft.NET\Framework\v4.0.30319\ngen install C:\RoslynCompilers\tools\vbc.exe /ExeConfig:C:\RoslynCompilers\tools\vbc.exe |
&$Env:windir\Microsoft.NET\Framework\v4.0.30319\ngen install C:\RoslynCompilers\tools\VBCSCompiler.exe  /ExeConfig:C:\RoslynCompilers\tools\VBCSCompiler.exe
RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.3.6.0.nupkg -OutFile C:\microsoft.net.compilers.3.6.0.zip;     Expand-Archive -Path C:\microsoft.net.compilers.3.6.0.zip -DestinationPath C:\RoslynCompilers-3.6.0;
Remove-Item C:\microsoft.net.compilers.3.6.0.zip -Force;     &$Env:windir\Microsoft.NET\Framework64\v4.0.30319\ngen install C:\RoslynCompilers-3.6.0\tools\csc.exe /ExeConfig:C:\RoslynCompilers-3.6.0\tools\csc.exe |
&$Env:windir\Microsoft.NET\Framework64\v4.0.30319\ngen install C:\RoslynCompilers-3.6.0\tools\vbc.exe /ExeConfig:C:\RoslynCompilers-3.6.0\tools\vbc.exe |     &$Env:windir\Microsoft.NET\Framework64\v4.0.30319\ngen install C:\RoslynCompilers-3.6.0\tools\VBCSCompiler.exe /ExeConfig:C:\RoslynCompilers-3.6.0\tools\VBCSCompiler.exe |
&$Env:windir\Microsoft.NET\Framework\v4.0.30319\ngen install C:\RoslynCompilers-3.6.0\tools\csc.exe /ExeConfig:C:\RoslynCompilers-3.6.0\tools\csc.exe |     &$Env:windir\Microsoft.NET\Framework\v4.0.30319\ngen install C:\RoslynCompilers-3.6.0\tools\vbc.exe /ExeConfig:C:\RoslynCompilers-3.6.0\tools\vbc.exe |
&$Env:windir\Microsoft.NET\Framework\v4.0.30319\ngen install C:\RoslynCompilers-3.6.0\tools\VBCSCompiler.exe  /ExeConfig:C:\RoslynCompilers-3.6.0\tools\VBCSCompiler.exe
ENV ROSLYN_COMPILER_LOCATION=C:\RoslynCompilers-3.6.0\tools
EXPOSE 80
ENTRYPOINT ["C:\ServiceMonitor.exe", "w3svc"]`

I don't believe mcr.microsoft.com/windows:ltsc2019 is a valid image. Did you mean mcr.microsoft.com/windows/servercore:ltsc2019?

hi,
It is a valid image.
Please visit this URL
https://hub.docker.com/_/microsoft-windows
https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-base-images
Below is the text from above URL
Choosing a base image
How do you choose the right base image to build upon? For most users, Windows
Server Core and Nanoserver will be the most appropriate image to use. Each
base image is briefly described below:

Nano Server is an ultralight Windows offering for new application
development.
Server Core is medium in size and a good option for "lifting and
shifting" Windows Server apps.
Windows is the largest image and has full Windows API support for
workloads.
Windows Server is slightly smaller than the Windows image, has full
Windows API support, and allows you to use more server features.

On Wed, Jan 24, 2024 at 1:31 AM Nicole Trappe @.***>
wrote:

I don't believe mcr.microsoft.com/windows:ltsc2019 is a valid image. Did
you mean mcr.microsoft.com/windows/servercore:ltsc2019?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/Windows-Containers/issues/458#issuecomment-1906829784,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AELCPLSXK2DN7VSWJTAP3QTYQAJJRAVCNFSM6AAAAABCEHEXJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWHAZDSNZYGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Thanks and Regards
Sumit Kumar Gaud
8800593545

@ntrappe-msft any update on this. Should I raise it as an Issue?

Hey @sumit84mca, thank you for raising this with us.
Unfortunately we don't ship OS level fixes anymore for Windows Server 2019 because it is now out of mainstream support (only address security fixes): https://learn.microsoft.com/en-us/lifecycle/products/windows-server-2019

OK. I got your point.
Can you guide me to resolve this issue?

@sumit84mca Pinging this thread again for a response.

Closing issue because it's going stale


depthai: 2.19.0-1 in 'noetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository depthai to 2.19.0-1:

upstream repository: https://github.com/luxonis/depthai-core.git
release repository: https://github.com/luxonis/depthai-core-release.git
distro file: noetic/distribution.yaml
bloom version: 0.11.2
previous version for package: 2.17.4-1

depthai
* Stability improvements #616
* isUserBootloaderSupported API
* Device.setTimesync(true/false) convenience function to enable or disable subsequent timesyncing
* Windows improvements with listing BOOTED devices ("udev permissions" issue)
* Fix OV9282 as MonoCamera on RGB socket (issue was black image)
* Fix crash under high load (regression with camera events streaming)
* Fix YOLOv5/7 decoding in case of a single class
* Fix image size when decimation filter is enabled
* Fix for certain OV9782 and OV9282 permutations/configs
* Reset Device timestamp on boot to zero
* Reworded "No available devices" error message when there are other connected devices connected.
* Update CI to Node16 compatible actions

CLose and reopen to retrigger CI


Make it easier to override tool mappings

container_mapper_rules.yml allows you to manually remap tools to specific container overrides, or reassign their default resource allocations. However, because the rules are structured as an array, it's difficult to override the defaults in the helm chart when deploying in production. Therefore, turning it into a key based structure would greatly simplify administration in practice:
For example:
     mappings:
         - tool_ids:
            - toolshed.g2.bx.psu.edu/repos/iuc/jbrowse/jbrowse/1.16.5+galaxy6
          container:
            docker_container_id_override: cloudve/jbrowse:1.16.5
        - tool_ids:
            - sort1
            - Grouping1
          container:
            docker_container_id_override: {{ .Values.image.repository }}:{{ .Values.image.tag }}
            resource_set: small
        - tool_ids:
            - toolshed.g2.bx.psu.edu/repos/devteam/bowtie2/bowtie2/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/bwameth/bwameth/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/featurecounts/featurecounts/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/hisat2/hisat2/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/valet/valet/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/varscan_somatic/varscan_somatic/.*
            - toolshed.g2.bx.psu.edu/repos/nilesh/rseqc/rseqc_bam2wig/.*
          container:
            resource_set: medium

Would become something like:
     mappings:
        jbrowse:
          tool_ids:
            - toolshed.g2.bx.psu.edu/repos/iuc/jbrowse/jbrowse/1.16.5+galaxy6
          container:
            docker_container_id_override: cloudve/jbrowse:1.16.5
        galaxy_tools:
          tool_ids:
            - sort1
            - Grouping1
          container:
            docker_container_id_override: {{ .Values.image.repository }}:{{ .Values.image.tag }}
            resource_set: small
        medium_group:
           tool_ids:
            - toolshed.g2.bx.psu.edu/repos/devteam/bowtie2/bowtie2/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/bwameth/bwameth/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/featurecounts/featurecounts/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/hisat2/hisat2/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/valet/valet/.*
            - toolshed.g2.bx.psu.edu/repos/iuc/varscan_somatic/varscan_somatic/.*
            - toolshed.g2.bx.psu.edu/repos/nilesh/rseqc/rseqc_bam2wig/.*
          container:
            resource_set: medium

We've settled on
    galaxy_group:
        tool_ids:
            original_tools:
                - Summary_Statistics1
                - xyz
            additional_tools:
                - new_tool
        docker_container_id_override: cloudve/gsummary:latest
        resource_set: small
        extra_specs:
            k8s_node_selector: whatever
            k8s_service_account: whatever

mainly focusing on easily allowing 1) edits via helm and 2) injecting new tools to already existing groups via a helm.


Fix notification when feat is dropped into bonus feats category

I think category id should probably err closer to null for bonus, not away from null, but its not a very particularly important hill.


JavaScript Editor Changes Are Lost In Certain Cases

Steps to reproduce:

Open the code in javascript editor and make some changes
Click done. This will take you to the YAML file. You will see the changes you made in the javascript editor in the YAML file properly.
Switch to another page
Come back to the previous page and all the edits from the javascript editor are gone from this YAML file

@tanyareuben currently you need to explicitly save after closing the JS editor so I assume in the above case, the changes are always lost.
Are you saying even after hitting save, you lose some changes?

It doesn't allow me to save once I leave the javascript editor unless I make some change after, like adding an extra line with no code. Only then does it allow me to save.


Lots of warnings during compilation of v0.3.0

Building inside a docker using these commands I am getting a lot of warnings. Don't recall seeing these before? I know a lot has changed as well. I will be trying the dev branch and testing that as well.
RUN git clone --depth=1 https://github.com/br0kej/bin2ml.git && \
    (cd bin2ml && cargo build --release && cargo install --locked --path . && ln -s /bin2ml/target/release/bin2ml /usr/local/bin/bin2ml)

Compiling bin2ml v0.3.0 (/workspace/bin2ml)
warning: unexpected `cfg` condition name: `inference`
   --> src/main.rs:508:40
    |
508 |                         } else if cfg!(inference) {
    |                                        ^^^^^^^^^ help: found config with similar value: `feature = "inference"`
    |
    = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(inference)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(inference)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: fields `file_type_one` and `file_type_two` are never read
  --> src/combos.rs:44:9
   |
42 | pub struct ComboJob {
   |            -------- fields in this struct
43 |     pub combo_type: ComboTypes,
44 |     pub file_type_one: ComboFileTypes,
   |         ^^^^^^^^^^^^^
45 |     pub file_type_two: ComboFileTypes,
   |         ^^^^^^^^^^^^^
   |
   = note: `ComboJob` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

warning: `bin2ml` (bin "bin2ml") generated 2 warnings
    Finished `release` profile [optimized] target(s) in 1m 12s
  Installing bin2ml v0.3.0 (/workspace/bin2ml)
    Updating crates.io index
warning: unexpected `cfg` condition name: `inference`
   --> src/main.rs:508:40
    |
508 |                         } else if cfg!(inference) {
    |                                        ^^^^^^^^^ help: found config with similar value: `feature = "inference"`
    |
    = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(inference)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(inference)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: fields `file_type_one` and `file_type_two` are never read
  --> src/combos.rs:44:9
   |
42 | pub struct ComboJob {
   |            -------- fields in this struct
43 |     pub combo_type: ComboTypes,
44 |     pub file_type_one: ComboFileTypes,
   |         ^^^^^^^^^^^^^
45 |     pub file_type_two: ComboFileTypes,
   |         ^^^^^^^^^^^^^
   |
   = note: `ComboJob` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

warning: `bin2ml` (bin "bin2ml") generated 2 warnings
    Finished `release` profile [optimized] target(s) in 0.79s
  Installing /root/.cargo/bin/bin2ml
   Installed package `bin2ml v0.3.0 (/workspace/bin2ml)` (executable `bin2ml`)

BTW. I am using latest version of cargo inside latest nvidia container
FROM nvcr.io/nvidia/pytorch:24.07-py3

# cargo
RUN wget -qO- https://sh.rustup.rs | CARGO_HOME=/etc/cargo sh -s -- -y -q --no-modify-path
ENV PATH=$PATH:/etc/cargo/bin

Thanks for raising this issue @cielonet. I will have a look into this. I think it may be something to do with the cargo/rust version you have. Could you confirm which version is being installed?

It looks like most of them are due to this. I'll fix this in dev!

@cielonet - I've fixed the above issues. It was down to recent additions to the cargo! Should be good to go now.

@cielonet  - FYI, I've merged all of the recent changes into main and created a v0.3.1 release. Try that and hopefully the issues above are fixed.


Give it a compact view

What's the Problem?
no problem. just a feature request. something that i would like to see.
Solution/Idea
Built-in file explorer in windows 11-like view>compact view would make the space between listed files and folders 0
Alternatives
none
Priorities

Capability
Priority

This proposal will allow literally everyone to accomplish ease of viewing by making the space between listed files and folders 0
Must

Files Version
Version: <IP_ADDRESS> OS Version: 10.0.22000.376
Windows Version
Windows 11 21H2 22000.376
Comments
No response

Merging with #1940


Refactoring para eliminar clase ScoreCalculator

Codecov Report

Merging #81 into master will decrease coverage by 0.16%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #81      +/-   ##
============================================
- Coverage     85.23%   85.06%   -0.17%
+ Complexity      140      139       -1
============================================
  Files            39       38       -1
  Lines           325      328       +3
  Branches         19       19
============================================
+ Hits            277      279       +2
  Misses           39       39
- Partials          9       10       +1

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/edu/fiuba/algo3/model/Game.java
94.44% <100.00%> (+2.77%)
23.00 <10.00> (+7.00)

...c/main/java/edu/fiuba/algo3/model/MatchResult.java
100.00% <100.00%> (ø)
6.00 <4.00> (-1.00)

src/main/java/edu/fiuba/algo3/model/Player.java
90.00% <0.00%> (-5.00%)
8.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b65b3ba...2b305d6. Read the comment docs.


2.0.4: Can not generate client's ip address from server

When pressing correspondent button following error occurs

2.0.3 version works well

What's the value of your server address?
CC: @xeptore

Now it's <IP_ADDRESS>/24
First i tried 10.something which was default on fresh install.
Also tried 2.0.2 and 2.0.3 - they generate like a charm from <IP_ADDRESS>/24

Thanks! Can you press Copy Details and paste the output here?

It gives another error:

BUT, if i first enter ANYTHING in that field and press "generate from server" then it works.

Hey @micahmo, I guess the issue is with these 2 lines, which when the input field is empty, the prop.Value is (strangely) null, and calling the .Split() causes a null reference error. And that's why @Weegley mentioned that having it filled with "something" resolves the issue. I suggest first having a default value for prop.Value, as I did in my PR, like var inputValue = prop.Value ?? ""; in the beginning of the validation fiunction, and use the inputValue in the rest of the function. Also, I can suggest using the StringSplitOptions.RemoveEmptyEntries option for all string.Split() calls, as I did in that linko too, as it eliminates the need for trimming IP addresses when they're separated by comma spaces, e.g., , .
Hope that it helps.

It gives another error:

@micahmo, also for this one I found this SO solution: https://stackoverflow.com/a/69081 (although I'm currently laughing at how/what MS is doing over there 😄).
I'm not sure whether the call to the clipboard in the application is done by you in case of unhandled exceptions, or it's the default behavior of .NET, but that might be helpful.

@Weegley This should be fixed in 2.0.5. Can you give it a try? Thanks!

Yep, will do a bit later

Yes. Client ip (fill up?) working good now. But can't say about clipboard.

Thanks for the update! No worries about the clipboard issue, that's just for troubleshooting anyway.


Adding a new School Domain

Golgotha English Medium School

@asif8bd First stage of verification passed, official domain for Golgotha English Medium School is gems.edu.bd as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@asif8bd Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


Lerna V2

Issue Description

Lerna v2 has been released
https://github.com/lerna/lerna/releases/tag/v2.0.0
Issue Type

[ ] New Feature
[x] Enhancement
[ ] Bug
[ ] Other

Build is failing, once that is stabilized, we can update to v2.0.0 https://travis-ci.org/lerna/lerna/builds


File download from OpenAI is returning corrupt files

When an OpenAI Assistant creates a file, we offer a download link to the user. Unfortunately, the contents of the file are corrupted. Viewing the same thread on the OpenAI site and downloading from there works correctly
See this slack thread for more details:
https://dimagi.slack.com/archives/C04VBQJ1DL3/p1722854203149329

https://github.com/dimagi/open-chat-studio/pull/582


Can't add repo

Getting this error from GraphQL
{
  "errors": [
    {
      "message": "Variable $repoId of type ID! was provided invalid value",
      "path": ["gitHub"],
      "extensions": {
        "service": "github",
        "upstream": {
          "errors": [
            {
              "extensions": { "value": {}, "problems": [{ "path": [], "explanation": "Could not coerce value {} to ID" }] },
              "locations": [{ "line": 2, "column": 17 }],
              "message": "Variable $repoId of type ID! was provided invalid value"
            }
          ]
        },
        "traceId": "ef20edb5-8c11-44a1-a919-f1f6d68a23a5"
      }
    }
  ],
  "data": { "__typename": "Mutation", "gitHub": null }
}

/cc @bdougie

This happens only for the first time after creating the repo! If we reload it works!

Ugh, this is probably a caching thing with the token. Thanks for reporting.


SCM viewlet publish button has icon accidentally localized

The $(cloud-upload) part of the button appears to be getting localized in the pseudo-language extension pack.

Verified by code review.


Redownloaded bot and now it keeps on crashing :S

Dear sir/madame
First of all thanks for this awesome bot! I have been using it for quite a while now but it broke down :( This is what happend: Like I said I have used the bot before so it worked perfectly for me. But for some reason it just stopped playing music while still being online and which point I needed to restard the bot. Because of this I looked around on the internet and found out that it would be solved if I updated the bot which I did afterwards. This was a big hassle since I downloaded the bot before the use of github and the bot feature from discord themselves. I re did everything following the instructions but it doesn't work for some reason. Me and a friend also have some experience with coding so we tried to solve it ourselves. But at the moment we have no clue what we should do. if I open the Runbot.bet it gives me this message:
No module named 'discord'
Attempting to install dependencies...
Collecting https://github.com/Rapptz/discord.py/archive/async.zip (from -r requirements.txt (line 1))
Downloading https://github.com/Rapptz/discord.py/archive/async.zip (452kB)
100% |████████████████████████████████| 454kB 747kB/s
Requirement already up-to-date: youtube-dl>=2016.4.24 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from -r requirements.txt (line 2))
Requirement already up-to-date: aiohttp<0.22.0,>=0.21.0 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from discord.py==0.10.0a0->-r requirements.txt (line 1))
Requirement already up-to-date: websockets==3.1 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from discord.py==0.10.0a0->-r requirements.txt (line 1))
Collecting PyNaCl==1.0.1 (from discord.py==0.10.0a0->-r requirements.txt (line 1))
Using cached PyNaCl-1.0.1-cp35-none-win_amd64.whl
Requirement already up-to-date: chardet in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from aiohttp<0.22.0,>=0.21.0->discord.py==0.10.0a0->-r requirements.txt (line 1))
Requirement already up-to-date: six in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from PyNaCl==1.0.1->discord.py==0.10.0a0->-r requirements.txt (line 1))
Collecting cffi>=1.1.0 (from PyNaCl==1.0.1->discord.py==0.10.0a0->-r requirements.txt (line 1))
Using cached cffi-1.7.0.tar.gz
Requirement already up-to-date: pycparser in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from cffi>=1.1.0->PyNaCl==1.0.1->discord.py==0.10.0a0->-r requirements.txt (line 1))
Installing collected packages: cffi, PyNaCl, discord.py
Running setup.py install for cffi
Complete output from command C:\Users\Gebruiker\AppData\Local\Programs\Python\Python35\python.exe -c "import setuptools, tokenize;file='C:\Users\GEBRUI~1\AppData\Local\Temp\pip-build-m2i9t0pj\cffi\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\GEBRUI~1\AppData\Local\Temp\pip-kskxlr9f-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\cffi
copying cffi\api.py -> build\lib.win-amd64-3.5\cffi
copying cffi\backend_ctypes.py -> build\lib.win-amd64-3.5\cffi
copying cffi\cffi_opcode.py -> build\lib.win-amd64-3.5\cffi
copying cffi\commontypes.py -> build\lib.win-amd64-3.5\cffi
copying cffi\cparser.py -> build\lib.win-amd64-3.5\cffi
copying cffi\ffiplatform.py -> build\lib.win-amd64-3.5\cffi
copying cffi\lock.py -> build\lib.win-amd64-3.5\cffi
copying cffi\model.py -> build\lib.win-amd64-3.5\cffi
copying cffi\recompiler.py -> build\lib.win-amd64-3.5\cffi
copying cffi\setuptools_ext.py -> build\lib.win-amd64-3.5\cffi
copying cffi\vengine_cpy.py -> build\lib.win-amd64-3.5\cffi
copying cffi\vengine_gen.py -> build\lib.win-amd64-3.5\cffi
copying cffi\verifier.py -> build\lib.win-amd64-3.5\cffi
copying cffi_init_.py -> build\lib.win-amd64-3.5\cffi
copying cffi_cffi_include.h -> build\lib.win-amd64-3.5\cffi
copying cffi\parse_c_type.h -> build\lib.win-amd64-3.5\cffi
copying cffi_embedding.h -> build\lib.win-amd64-3.5\cffi
running build_ext
building '_cffi_backend' extension
error: Unable to find vcvarsall.bat
----------------------------------------

Command "C:\Users\Gebruiker\AppData\Local\Programs\Python\Python35\python.exe -c "import setuptools, tokenize;file='C:\Users\GEBRUI~1\AppData\Local\Temp\pip-build-m2i9t0pj\cffi\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\GEBRUI~1\AppData\Local\Temp\pip-kskxlr9f-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\GEBRUI~1\AppData\Local\Temp\pip-build-m2i9t0pj\cffi
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
You may need to run as admin to install dependencies.
I have no clue what to do at this point and really want the bot back because it is awesome! Thanks for reading this and hopefully get a responce soon ^^
Yours sincerly,
Valerie

Try running it again.  I'm assuming this happened a little while ago.  One of the dependencies was updated and the precompiled windows binaries probably weren't uploaded when you tried it.

I ran the runbot.bat again and got the same message :S

If you open cmd and type pip install cffi does it print the same message?:

yeas it does

In that case run pip install cffi==1.6.0

C:\Users\Gebruiker>pip install cffi==1.6.0
Collecting cffi==1.6.0
Downloading cffi-1.6.0-cp35-none-win_amd64.whl (156kB)
100% |################################| 159kB 1.3MB/s
Requirement already satisfied (use --upgrade to upgrade): pycparser in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from cffi==1.6.0)
Installing collected packages: cffi
Successfully installed cffi-1.6.0
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I recieved this message after using that code

No module named 'discord'
Attempting to install dependencies...
Collecting https://github.com/Rapptz/discord.py/archive/async.zip (from -r requirements.txt (line 1))
Downloading https://github.com/Rapptz/discord.py/archive/async.zip (452kB)
100% |████████████████████████████████| 454kB 651kB/s
Requirement already up-to-date: youtube-dl>=2016.4.24 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from -r requirements.txt (line 2))
Requirement already up-to-date: aiohttp<0.22.0,>=0.21.0 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from discord.py==0.10.0a0->-r requirements.txt (line 1))
Requirement already up-to-date: websockets==3.1 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from discord.py==0.10.0a0->-r requirements.txt (line 1))
Collecting PyNaCl==1.0.1 (from discord.py==0.10.0a0->-r requirements.txt (line 1))
Using cached PyNaCl-1.0.1-cp35-none-win_amd64.whl
Requirement already up-to-date: chardet in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from aiohttp<0.22.0,>=0.21.0->discord.py==0.10.0a0->-r requirements.txt (line 1))
Requirement already up-to-date: six in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from PyNaCl==1.0.1->discord.py==0.10.0a0->-r requirements.txt (line 1))
Collecting cffi>=1.1.0 (from PyNaCl==1.0.1->discord.py==0.10.0a0->-r requirements.txt (line 1))
Using cached cffi-1.7.0.tar.gz
Requirement already up-to-date: pycparser in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from cffi>=1.1.0->PyNaCl==1.0.1->discord.py==0.10.0a0->-r requirements.txt (line 1))
Installing collected packages: cffi, PyNaCl, discord.py
Found existing installation: cffi 1.6.0
Uninstalling cffi-1.6.0:
Successfully uninstalled cffi-1.6.0
Running setup.py install for cffi
Complete output from command C:\Users\Gebruiker\AppData\Local\Programs\Python\Python35\python.exe -c "import setuptools, tokenize;file='C:\Users\GEBRUI~1\AppData\Local\Temp\pip-build-g_7rarsl\cffi\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\GEBRUI~1\AppData\Local\Temp\pip-hz9tuhgz-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\cffi
copying cffi\api.py -> build\lib.win-amd64-3.5\cffi
copying cffi\backend_ctypes.py -> build\lib.win-amd64-3.5\cffi
copying cffi\cffi_opcode.py -> build\lib.win-amd64-3.5\cffi
copying cffi\commontypes.py -> build\lib.win-amd64-3.5\cffi
copying cffi\cparser.py -> build\lib.win-amd64-3.5\cffi
copying cffi\ffiplatform.py -> build\lib.win-amd64-3.5\cffi
copying cffi\lock.py -> build\lib.win-amd64-3.5\cffi
copying cffi\model.py -> build\lib.win-amd64-3.5\cffi
copying cffi\recompiler.py -> build\lib.win-amd64-3.5\cffi
copying cffi\setuptools_ext.py -> build\lib.win-amd64-3.5\cffi
copying cffi\vengine_cpy.py -> build\lib.win-amd64-3.5\cffi
copying cffi\vengine_gen.py -> build\lib.win-amd64-3.5\cffi
copying cffi\verifier.py -> build\lib.win-amd64-3.5\cffi
copying cffi_init_.py -> build\lib.win-amd64-3.5\cffi
copying cffi_cffi_include.h -> build\lib.win-amd64-3.5\cffi
copying cffi\parse_c_type.h -> build\lib.win-amd64-3.5\cffi
copying cffi_embedding.h -> build\lib.win-amd64-3.5\cffi
running build_ext
building '_cffi_backend' extension
error: Unable to find vcvarsall.bat
----------------------------------------

Rolling back uninstall of cffi
Command "C:\Users\Gebruiker\AppData\Local\Programs\Python\Python35\python.exe -c "import setuptools, tokenize;file='C:\Users\GEBRUI~1\AppData\Local\Temp\pip-build-g_7rarsl\cffi\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\GEBRUI~1\AppData\Local\Temp\pip-hz9tuhgz-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\GEBRUI~1\AppData\Local\Temp\pip-build-g_7rarsl\cffi
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
You may need to run as admin to install dependencies.
C:\Users\Gebruiker\Desktop\MusicBot>
Still doesn't work :s

Ok, it seems to want to use the source version it has cached.  If you put the line cffi==1.6.0 in requirements.txt, it should use that version.  After that run it again.
cffi == 1.6.0
https://github.com/Rapptz/discord.py/archive/async.zip
youtube_dl >= 2016.4.24

Now I recieved this message:
No module named 'discord'
Attempting to install dependencies...
Collecting https://github.com/Rapptz/discord.py/archive/async.zip (from -r requirements.txt (line 2))
Downloading https://github.com/Rapptz/discord.py/archive/async.zip (452kB)
100% |████████████████████████████████| 454kB 268kB/s
Requirement already up-to-date: cffi==1.6.0 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from -r requirements.txt (line 1))
Requirement already up-to-date: youtube-dl>=2016.4.24 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from -r requirements.txt (line 3))
Requirement already up-to-date: aiohttp<0.22.0,>=0.21.0 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from discord.py==0.10.0a0->-r requirements.txt (line 2))
Requirement already up-to-date: websockets==3.1 in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from discord.py==0.10.0a0->-r requirements.txt (line 2))
Collecting PyNaCl==1.0.1 (from discord.py==0.10.0a0->-r requirements.txt (line 2))
Using cached PyNaCl-1.0.1-cp35-none-win_amd64.whl
Requirement already up-to-date: pycparser in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from cffi==1.6.0->-r requirements.txt (line 1))
Requirement already up-to-date: chardet in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from aiohttp<0.22.0,>=0.21.0->discord.py==0.10.0a0->-r requirements.txt (line 2))
Requirement already up-to-date: six in c:\users\gebruiker\appdata\local\programs\python\python35\lib\site-packages (from PyNaCl==1.0.1->discord.py==0.10.0a0->-r requirements.txt (line 2))
Installing collected packages: PyNaCl, discord.py
Running setup.py install for discord.py
Successfully installed PyNaCl-1.0.1 discord.py-0.10.0a0
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Ok lets hope it worked
Cleaning up... Done.
Restarting in 2 seconds...
An error has occured reading the config:
Problem:  OwnerID was not set.
Solution: Please set the OwnerID in the config.  If you don't know what that is, use the !id command
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000291B358ADA0>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000291B6FABE10>
C:\Users\Gebruiker\Desktop\MusicBot>

Ok there you go, it installed.  Now set up your config and you're good to go.


When using the liveReloadBaseUrl with an absolute URL, the non-path portion should be stripped when setting up middleware.

Plus. One.

Any chance this will get merged?

This PR fixes a regression mentioned in #38. The only workaround I found so far is to use an old version of ember-cli-inject-live-reload. It would be great to see this merged. /ping @rwjblue

Very sorry for the long delay here. Sorry for letting this fall through the cracks.

Better late than never @rwjblue! Thanks! 🍻

Yeah! Thanks @rwjblue.


Discover Page Pagination Breaks after Fourth Page

This was initially reported at, https://opencollective.slack.com/archives/C0HSLRNVC/p1636749289074000
It seems that trying to navigate through all the collectives in our discover page with the sort selected to newest after the 3rd page the search fails with the following error.
Int cannot represent non 32-bit signed integer value:<PHONE_NUMBER> Int cannot represent non 32-bit signed integer value:<PHONE_NUMBER>

I did some investigation and managed to recreate this in my local. This happens when we overflow the limit of GraphQLInt. To recreate select a collective and keep on adding funds to it and and when the fund amount exceeds the limit of `GraphQLInt we will not be be able to access the collective. There seems to be at least one collective in our prod db for which this has happened. Will investigate more on a fix. 🤔
Reference: https://github.com/graphql/graphql-spec/issues/73

There was some discussion about using float when communicating between front-end and api instead of integers. Maybe something we should look into prioritizing this or next sprint? Especially given that this occurred again at, https://github.com/opencollective/opencollective/issues/5017 🤔
cc: @opencollective/core-developers

There was some discussion about using float when communicating between front-end and api instead of integers at https://opencollective.slack.com/archives/G46PNRCGP/p1637603764449700. Maybe something we should look into prioritizing this or next sprint? Especially given that this occurred again at, #5017 thinking
cc: @opencollective/core-developers

That would be a way to solve it in the long run. As medium/long-term alternatives, we can think about:

Limiting the amounts for added funds
Find a way to not surface these spammy/test accounts in the discover/search pages

For search, we have a flag hideFromSearch that is ready to be used, we simply have to tag those profiles.

hideFromSearch

@znarf This flag is not used yet on the discover page. I've opened an API PR to change that: https://github.com/opencollective/opencollective-api/pull/6927.

Are the problematic profiles now flagged? If not, ca someone pass a list to me privately?

Are the problematic profiles now flagged? If not, ca someone pass a list to me privately?

I personally haven't flagged them nor built a list yet. @SudharakaP did you do that already?
Happy to help generate the list if we don't have anything.

Are the problematic profiles now flagged? If not, ca someone pass a list to me privately?

I personally haven't flagged them nor built a list yet. @SudharakaP did you do that already?
Happy to help generate the list if we don't have anything.

I've sent you both a DM with the collective IDs. 😉

A duplicate was created here but it's more focused on the root cause. Closing this one.


Use workshopper-adventure

Use workshopper-adventure instead of workshopper.
The main win of switching is to use a newer version of the msee dependency, since the version in use is not properly rendering links.

@delaguilaluis thank you. I think I merged your other pull request and now there's a conflict... it would be great if you could please resolve it.


chore: replace legacy timer

Related Issue(required)
Closes #120
Description(required)
replace legacy timer description.
Review Procedure(required)
confirm both planning simulation and rosbag simulation work.
Related PR(optional)

Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.

[ ] Read commit-guidelines
[ ] Assign PR to reviewer

If you are adding new package following items are required:

[ ] Documentation with description of the package is available
[ ] A sample launch file and parameter file are available if the package contains executable nodes

Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.

[ ] Commits are properly organized and messages are according to the guideline
[ ] PR title describes the changes

Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.

[ ] All open points are addressed and tracked via issues or tickets

CI Checks

Build and test for PR / build-and-test-pr: Required to pass before the merge.
Build and test for PR / clang-tidy-pr: NOT required to pass before the merge. It is up to the reviewer(s). Found false positives? See the [guidelines][clang-tidy-guidelines].
Check spelling: NOT required to pass before the merge. It is up to the reviewer(s). See here if you want to add some words to the spell check dictionary.

@wep21 I've tested this with the simulator, but it seems Trajectory is not published. Does it work in your environment?

@kenji-miyake I found the description below causes the problem at runtime. (but I have no idea why this causes the problem...)
auto on_timer = std::bind(...);
timer_ = rclcpp::create_timer(..., on_timer)

I fixed and rebased them, so could you try it again?

@Mergifyio rebase


[feat] Optimize context sending by using vector database

Right now we're sending all records to chatgpt to have full context - and it's super token consuming. Would be way better to dynamically send only those records which are relevant to current chat query

https://github.com/nitaiaharoni1/vector-storage


Moving an entry point function to a different (rust) module and then pub useing it namespaces the OpEntryPoint name and drivers don't seem to like that.

I have the following entry point function:
#[spirv(fragment)]
pub fn fragment_tonemap(...) {...}

if I move it from lib.rs in the shader to tonemapping.rs, and the pub use it (otherwise it doesn't show up as an OpEntryPoint at all) then it gets namespaced like this:
diff --git "a/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmpw0Uhcm\\a.dis" "b/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmpw0Uhcm\\b.dis"
index 8e68ce8..ce67daf 100644
--- "a/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmpw0Uhcm\\a.dis"
+++ "b/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmpw0Uhcm\\b.dis"
@@ -1,204 +1,204 @@
 ; SPIR-V
 ; Version: 1.3
 ; Generator: Embark Studios Rust GPU Compiler Backend; 0
-; Bound: 5465
+; Bound: 5467
 ; Schema: 0
                OpCapability RuntimeDescriptorArray
                OpCapability Shader
                OpExtension "SPV_EXT_descriptor_indexing"
           %1 = OpExtInstImport "GLSL.std.450"
                OpMemoryModel Logical Simple
-               OpEntryPoint Fragment %37 "fragment_tonemap" %13 %8
+               OpEntryPoint Fragment %2 "tonemapping::fragment_tonemap" %3 %4

Full shader diff here: https://gist.github.com/expenses/9521ae91b277a28cd1e60a32d6b1702c
This issue seems to cause a SEGFAULT/STATUS_ACCESS_VIOLATION on my intel GPU:
'error: process didn't exit successfully: target\debug\transmission-renderer.exe DragonAttenuation (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)'
I haven't ran a debugger on it yet, but it definitely crashes during vkCreateShaderModule.

If I disassemble the SPIR-V, change tonemapping::fragment_tonemap to fragment_tonemap and assemble it again, I get the error:
UNASSIGNED-CoreValidation-Shader-InconsistentSpirv(ERROR / SPEC): msgNum: 7060244 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object 0: handle = 0x21c76726a58, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x6bbb14 |  SPIR-V module not valid: Interface variable id <43> is used by entry point 'fragment_tonemap' id <2>, but is not listed as  an interface   %43 = OpVariable %_ptr_UniformConstant_93 UniformConstant

Hmm. We're doing the exact same thing in our internal engine - fully namespaced entry points in modules - and drivers are fine with it. The problem might be elsewhere?
As for the assembling it again, it seems like you reassembled under a different SPIR-V version. SPIR-V 1.3 (what's shown in the disassembly) requires things like UniformConstant variables (%43 here) to not be listed in the OpEntryPoint, but SPIR-V 1.4 and 1.5 do require them to be listed. I would expect that error to happen if the reassembled module was reassembled using version >=1.4.

Closing this for now, feel free to reopen if you find more information!


:sparkles: feat: 撤销重做中间件 Alpha 发布

https://github.com/ant-design/pro-editor/pull/74

Codecov Report
Patch coverage: 88.69% and project coverage change: +0.03% :tada:

Comparison is base (7a8e560) 87.66% compared to head (7699738) 87.69%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
+ Coverage   87.66%   87.69%   +0.03%
==========================================
  Files         338      349      +11
  Lines       21815    22451     +636
  Branches      977     1022      +45
==========================================
+ Hits        19124    19689     +565
- Misses       2691     2762      +71

Files Changed
Coverage Δ

src/IconPicker/features/PickerPanel.tsx
25.88% <ø> (+0.30%)
:arrow_up:

src/ProEditor/store/slices/general.ts
72.97% <72.97%> (ø)

src/ProEditor/middleware/pro-editor/index.ts
79.48% <79.48%> (ø)

src/ProEditor/ProEditorProvider/StoreUpdater.tsx
80.80% <80.80%> (ø)

src/ProEditor/utils/yjs.ts
90.24% <90.24%> (ø)

src/ProEditor/store/slices/config.ts
93.83% <93.83%> (ø)

src/ProEditor/ProEditorProvider/index.tsx
100.00% <100.00%> (ø)

src/ProEditor/hooks/useProEditor.ts
100.00% <100.00%> (ø)

src/ProEditor/index.ts
100.00% <100.00%> (ø)

src/ProEditor/middleware/index.ts
100.00% <100.00%> (ø)

... and 3 more

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Conference summary and conference oriented interface development and …

…integration with AI

Clean up obsolete files

Modify comments


Currency different than locale FRACTION_DIGITS - ICU bug workaround

There is a well known and long time hanging bug in ICU library.
http://bugs.icu-project.org/trac/ticket/10997
Because it is also affecting my current project I decided to patch it here.
Added new test case.
Also for more details, you can check my bug repository here:
https://github.com/tworzenieweb/broken-icu-test

So it looks like my original solution was missing case with currency at the end of formatted number. Now it is complete. Unit test was also adapted


Better structure for our CI

I've been very casually looking into how big projects do CI, and I think what rust-lang/rust does is really interesting
TL;DR: We could significantly reduce the pain involved in working on our CI by adopting a similar approach.
The rust-lang/rust approach consists of:

docker image for many arch/OS combinations
a bunch of bash/python scripts, typically one per job
a single job definition file
a script used to generate a job matrix
a workflow that runs the calculate-job-matrix.py script, and passes it onto another job to run that matrix, parallelized across many runners

For us, this could remove some major pain points of working with CI, without straying too far from GHA and requiring that we all learn Bazel instead. :sweat_smile:

Jobs could be far more structured, consistent, and easy to define than they currently are, using a little-known YAML feature called merge keys (https://yaml.org/type/merge.html) to deduplicate job definitions
For consistency, each job definition only includes a docker image, a script to run, and some environment variables (which by default are completely empty!!)
Job runtime dependencies are implicit in the docker image they use, and they are automatically cached inside the docker image. We could still separately use sccache and/or manually write to GH cache/artifact store to store built artifacts
Every job is now always runnable locally
Every job is completely isolated from whatever the runner happens to have installed on it, meaning we could swap to any service that provides faster/cheaper GHA runners with zero worry that something could break
We could share code between jobs by putting that shared code in a script, and between job definitions by merging in the same key. No more reusable_thing.yml!
We'd still get to take advantage of GHA's runner parallelism with a dynamic job matrix

Best of all, a transition to this approach could be very incremental, and we could reuse a lot of our existing code. All of the bits of bash/python/whatever else we have littered around the workflow files, we could consolidate into actual scripts.

Hi @jprochazk, stopping by here at Nikolaus's suggestion: I agree what you describe will produce an incrementally better CI workflow; I've lived with 30-50 developers at 3 previous companies that had setups as you describe, leveraging the Docker ecosystem and cloud image build systems in various ways (Drone, Kaniko, etc), deployed all via Kubernetes into all of the cloud providers. It works well enough, but I found it to be a significant maintenance burden, eventually requiring dedicated developers and even teams to keep it alive and build times fast enough for developer happiness. This was especially true for Rust builds, where the Docker layer cache really fails to deliver.
At Elodin, some of the developers from the previous team joined me with those lessons learned, and we've now settled on a setup using BuildKite, which is like Drone but "just works", and going all-in on NixOS. We use Nix to build our images and mount them into containers for use in our Kubernetes deploys. While learning Nix is a significant decision, the result is undeniable. We are building 10+ Rust binaries every commit and have fully deployed dev environments in under 3-4 minutes. It's easily the best setup I've used in 15 years of suffering with various CI setups, and the important aspect is the maintenance burden is significantly less. Working with Nix is a pain shared across the team, but the result is CI is truly tested by the individual developer, and so you don't need an upstream team to keep the pipelines moving.
Enough soapbox from me! Just happy to be helpful if at all useful. Happy to give you access to our repo for a time to take a look at how it all works in our case; otherwise I wish you luck at achieving developer happiness!

Hi @x46085, I'd love to snoop around your setup and see how you use Nix!
I definitely want to switch us over to Nix if/when possible. I have played around with it before, and I agree that despite the learning curve, it's ultimately a huge time saver, and just so nice to work with.
I've brought up the idea of switching to Nix to the team in the past, and the main issue we ran into was the lack of Windows support. We intentionally have people daily driving (at least part-time) all of Linux, Mac, and Windows, to ensure that what we're building actually works on those platforms. There's an on-going effort to support Nix on Windows via MinGW, and while I'm not too familiar with the status of that right now, it doesn't look like it's quite ready yet.


Add editorconfig

editorconfig automatically configures editors like vim, emacs, etc. so that they know how to save files, how long the lines should be (for examples, vim's automatic line width formatter), where to show the line length helper.

You can see a list of editors that support this file here: https://editorconfig.org/

Indeed, I'm familiar with .editorconfig.
My point is that if we care about such things then IMO it'd be better to have a single source of truth on such matters -- an autoformatter -- and allow anything at all whilst editing.
Anyway, not a strong opinion. *.py files are the only ones we attempt to format so trim this down to just that and I'd be happy to merge this.

My point is that if we care about such things then IMO it'd be better to have a single source of truth on such matters -- an autoformatter -- and allow anything at all whilst editing.

Yes, I see your point.  I guess I forgot that you've got the autoformatter enabled.
Anyway, updated as requested.

Alright, merged! :) Thank you for the contribution!

Thanks for being flexible about this.  Maybe we should propose to Ruff that editorconfig be the defaults to satisfy your "one source of truth" desire?

Seems not planned: https://github.com/astral-sh/ruff/issues/1530

Ah, nice find!


Merge Network-2018-05-01 to master

Merged updates from Network May branch to master

Automation for azure-libraries-for-java

Hi @dsgouda could you please approve merging to the master branch?

Automation for azure-sdk-for-python

Automation for azure-sdk-for-go

@dsgouda passed!

@sarangan12 the ruby builds seem to be failing PTAL, won't bock on this PR though


Add support for GHC 8.6

Solves #105.
LTS 13.28 was released a few days ago and it also contains all packages marked before as extra-deps on stack.yaml.

Thanks @ibarrae  It's good to know that it didn't broke.


Add NastyQueen.toml validator

Closed in favour of https://github.com/anoma/namada-testnets/pull/742, but tried to add to testnet-1 folder. Naughty naughty


BitmapText: kerning symbol ID divide into resolution.

Maybe this is a bug.
In BitmapText.registerFont
https://github.com/pixijs/pixi.js/blob/44c88cfe00f58fb36f6406215706a1741c8401b0/packages/text-bitmap/src/BitmapText.js#L637
first and second is kerning characters (decimal ID in Unicode).
There is no need to divide them.

pixi.js version: 5.0.4

@Re-Mind would it be possible to create a fiddle or playground that demonstrates this being wrong please? Thanks!

@themoonrat
For reproduce you can use https://pixijs.io/examples/#/text/bitmap-text.js
Just add PIXI.settings.RESOLUTION = PIXI.settings.FILTER_RESOLUTION = 2 at the first row

Need fix this.
With bug:
https://github.com/pixijs/pixi.js/blob/44c88cfe00f58fb36f6406215706a1741c8401b0/packages/text-bitmap/src/BitmapText.js#L637-L638
Without bug:
const first = parseInt(kerning.getAttribute('first'), 10);
const second = parseInt(kerning.getAttribute('second'), 10);

first and second vars is ID of characters from the Unicode table.
(column "Decimal" https://en.wikipedia.org/wiki/List_of_Unicode_characters)
Demo with bug:
https://www.pixiplayground.com/#/edit/cm1LD_a9oa4qsRILNvDDB
(change first line PIXI.settings.RESOLUTION to 1 or 2.)


Some elaboration on topics already detailed.

Minor changes and elaboration on some sentences, additional "zoom in" to storage API interface block
Signed-off-by: Michal Kalderon<EMAIL_ADDRESS>

@glimchb just noticed you pushed some changes, would be great if you can comment on this pull request even though it doesn't merge and if changes seem OK I can handle the merge and resubmit pull request. thanks

@mkalderon thank you for posting this, will review now

@mkalderon Can you make sure the API-GW-Layers.png file has a white background so it works on dark mode settings?

done


fix typo in README

Thanks for the PR !!
The DCO was not passing on this PR, hence pulled this commit in a different PR.
https://github.com/openebs/openebs/pull/3758
Closing the current one.


Firebase Analytics missing reset function

Firebase Analytics is missing the resetAnalyticsData option this is needed.

@rlee1990
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/600. Any further collaboration will be done there.


[Backport] NETOBSERV-915 skip reinterpret direction for conversations

Backport of https://github.com/netobserv/flowlogs-pipeline/pull/430

/lgtm

thanks @jotak !

/approve


Replace scenecuts-720p set with vimeo-corpus-10s

scenecuts-720p was oversized and had a lot of similar content, since clips were cut from only four different videos.
vimeo-corpus-10s fulfills the same purpose and more. It is sourced from Creative Commons-licensed videos on Vimeo.
It contains 15 clips trimmed to 10 seconds at timestamps chosen mainly for their complexity. Most of the clips contain at least one scene cut. Content includes 2D and 3D digital animation, screen content, sports, commercials, and misc. live action content. Resolution varies from 720p (if I recall correctly...) to 4K. As a result it is a useful data set for broad testing and performance comparisons, and specifically to evaluate rate control algorithms and keyframe placement/GOP structure decisions.
The set is hosted at https://media.xiph.org/sets/.

It's been raised that attribution is required for those clips, but most of them are missing that information, so I can't fulfill that requirement and therefore can't distribute that set. Closing.

The set was restored with proper attribution and license information, so I'm reopening this.

Do you need to remove that one video from the list?

What video?


Virtual cusor cant't click on the Jei mod and other mods, UI's.

In the fabric 1.20.1 you can't click on the JEI, Replaymod, Xaeros map, journey map, etc... with the virtual mouse.

BUMP. Buttons/menus from many mods don't seem to recognise the virtual mouse. EMI and Cherished Worlds are on that list. It makes playing on a Steam Deck a lil bit harder, cause then you either need to use right trackpad as mouse or use touchscreen.
Virtual mouse added by eg. Controlify are able to interact with those mods without a problem, so it seems like it might be related to the way vm is coded in Controllable. (the vm doesn't recognise item list from EMI as something it can interact with - the cursor does not slow down with option "Widget Hover Modifier" turned on)


docs(platform): organized and started to expand user guides

Split user guide into a few files
Outlined user guides
Organized, edited, and expanded FAQs; closes #3593

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


Implement 'Execute' for the Remaining Methods

There are still some methods that need to be converted for the 'Execute' pattern.
In the docs there are a lot of Actions/Functions.
I believe we can provide some mechanisms that enable the developer to execute custom call even if they are not implemented.
Perhaps exposing the current HttpCliente or some Interface tha can be implemente.
@zaha any help or thoughts are welcome :)

Hi @RafaelCavazza
shouldn't this already be possible? If a library consumer implements the IWebApiAction interface he can create his own custom action class. If it follows the same scheme as the actions implemented right now, the Execute method is already able to handle it in a general way (meaning it will serialize the action request and call the relative URL specified in the request class). Am I overlooking something?


Question about unaligned HDR+ datasets

Dear authors, thank you for your great work!
I have some questions about the HDR+ dataset you are using. I found that there are some misaligned image pairs in the original dataset downloaded according to the instructions on the page https://hdrplusdata.org/dataset.html, such as the reference image 20171106/results_20171023/3eb8_20151020_084104_198/final.jpg:

The corresponding input image 20171106/results_20171023/3eb8_20151020_084104_198/merged.dng:

I converted .dng to .jpg through rawpy postprocess(). This is my conversion function:
with rawpy.imread(input_dng_file) as raw:
    rgb = raw.postprocess(
        use_camera_wb=True,
        output_color=rawpy.ColorSpace.sRGB,
        output_bps=8,
        )

May I ask how you obtained the data that was ultimately used for training? Did you use some kind of filtering strategy? Or is there something wrong with my post-processing method?
I tried to find the answer from the link provided in your README file for 480p, unfortunately I was denied access.
Looking forward to your reply, thanks again!

I apologize for the broken dataset link, I'll update the new link immediately!

For the 4K resolution of HDR+, the original dataset indeed has a lot of unaligned data between the datasets, so we refer to [1] to filter the dataset, the details of filtering strategy can be found in [1].
For the 480p resolution of HDR+, we directly utilized the 480p dataset produced by 1, whose github link is as follows: https://github.com/HuiZeng/Image-Adaptive-3DLUT. You can directly download the 480p dataset from their link.
Since the 4K resolution  dataset is oversized, we can't upload our filtered 4K dataset to google drive in China, so we will update the Baidu Netdisk link.

[1] Wang T, Li Y, Peng J, et al. Real-time image enhancer via learnable spatial-aware 3d lookup tables[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision. 2021: 2471-2480.
[2] Zeng H, Cai J, Li L, et al. Learning image-adaptive 3d lookup tables for high performance photo enhancement in real-time[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020, 44(4): 2058-2073.

I see, thanks for the detailed reply!


hotfix/parking

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Add parsing for linking custom section

Closes #785. Only metadata version 2 is supported.
I'm not sure how to add tests for this. #1135 chose to invent a new WAST format for the custom section, which I'd rather avoid doing myself. I tried the parser locally on WASM_SYMBOL_TABLE and it works fine, but I don't know where to find wasm files with WASM_SEGMENT_INFO, etc.

Done!
By the way, now that we have more significant uses for symbol flags WASM_SYM_*, I'd like to change them to bitflags, as suggested in https://github.com/bytecodealliance/wasm-tools/pull/1135#discussion_r1275448580. But that'd involve breaking changes like pub flags: u32 to pub flags: <newtype>. Would that be okay?

I'd like to change them to bitflags

That'd be great, thanks! That's ok to happen at any time, this crate regularly has breaking API changes (e.g. we have an enum of all wasm opcodes and those change regularly as proposals are implemented).

Also I'm happy to merge this as-is if you'd prefer to leave those other items as follow-up PRs, or I don't mind holding this off if you'd like to implement them. Let me know which you'd prefer

Thanks for the explanation! I don't mind merging as-is if you don't mind flags: u32 being temporary. I just realized my use case actually needs reloc.* as well, so I'll probably do that next :joy:.

Sounds good!

@andylizi Are you still working on a Reloc section reader?  Otherwise I may submit one.  I assume it would be a welcome addition to this repo?

Are you still working on a Reloc section reader? Otherwise I may submit one.

@jbms I haven't made any progress on it for a long time since I've been busy with other projects. It'd be great if anyone wants to work on it instead!
Below is my unfinished take on this, feel free to build on it or start fresh. No citations necessary.

Click to expand: reloc.rs
use std::cmp;

use crate::{BinaryReader, FromReader, Result, SectionLimited};

// Credit: https://stackoverflow.com/a/57578431
macro_rules! back_to_enum {
  ($(#[$meta:meta])* $vis:vis enum $name:ident {
      $($(#[$vmeta:meta])* $vname:ident $(= $val:expr)?,)*
  }) => {
      $(#[$meta])*
      $vis enum $name {
          $($(#[$vmeta])* $vname $(= $val)?,)*
      }

      impl ::std::convert::TryFrom<u32> for $name {
          type Error = ();

          #[inline]
          fn try_from(v: u32) -> ::std::result::Result<Self, Self::Error> {
              match v {
                  $(x if x == Self::$vname as u32 => Ok(Self::$vname),)*
                  _ => Err(()),
              }
          }
      }
  }
}

// https://github.com/llvm/llvm-project/blob/llvmorg-17.0.6/llvm/include/llvm/BinaryFormat/WasmRelocs.def
back_to_enum! {
  /// Represent the type of relocation.
  #[allow(missing_docs)]
  #[repr(u32)]
  #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
  pub enum RelocationType {
      /// A function index used for the immediate argument of a `call` instruction.
      FunctionIndexLeb = 0,
      /// A function table index used to refer to the immediate argument of a `i32.const`` instruction, e.g. taking the address of a function.
      TableIndexSleb = 1,
      /// A function table index, e.g. taking the address of a function in a static data initializer.
      TableIndexI32 = 2,
      /// A linear memory index used for the immediate argument of a `load` or `store` instruction, e.g. directly loading from or storing to a C++ global.
      MemoryAddrLeb = 3,
      /// A linear memory index used for the immediate argument of a `i32.const` instruction, e.g. taking the address of a C++ global.
      MemoryAddrSleb = 4,
      /// A linear memory index, e.g. taking the address of a C++ global in a static data initializer.
      MemoryAddrI32 = 5,
      /// A type index, e.g. the type immediate in a `call_indirect` instruction.
      TypeIndexLeb = 6,
      /// A global index, e.g. the index immediate in a `get_global` instruction.
      GlobalIndexLeb = 7,
      /// A byte offset within code section for the specific function. The offsets start at the actual function code excluding its size field.
      FunctionOffsetI32 = 8,
      /// A byte offset from start of the specified section.
      SectionOffsetI32 = 9,
      /// An event index used for the immediate argument of a `throw` or `if_except` instruction.
      TagIndexLeb = 10,
      MemoryAddrRelSleb = 11,
      TableIndexRelSleb = 12,
      /// A global index.
      GlobalIndexI32 = 13,
      /// A 64-bit linear memory index used for the immediate argument of a `load` or `store` instruction on a 64-bit linear memory array. The counterpart of [`Self::MemoryAddrLeb`].
      MemoryAddrLeb64 = 14,
      /// A 64-bit linear memory index used for the immediate argument of a `i64.const` instruction. The counterpart of [`Self::MemoryAddrSleb`].
      MemoryAddrSleb64 = 15,
      /// A 64-bit linear memory index, e.g. taking the address of a C++ global in a static data initializer. The counterpart of [`Self::MemoryAddrI32`].
      MemoryAddrI64 = 16,
      MemoryAddrRelSleb64 = 17,
      /// A function table index used to refer to the immediate argument of a `i64.const` instruction, e.g. taking the address of a function in Wasm64. The counterpart of [`Self::TableIndexSleb`].
      TableIndexSleb64 = 18,
      /// A function table index, e.g. taking the address of a function in a static data initializer. The counterpart of [`Self::TableIndexI32`].
      TableIndexI64 = 19,
      /// A table number used for the table immediate argument in `table.*` instructions.
      TableNumberLeb = 20,
      MemoryAddrTlsSleb = 21,
      FunctionOffsetI64 = 22,
      MemoryAddrLocrelI32 = 23,
      TableIndexRelSleb64 = 24,
      MemoryAddrTlsSleb64 = 25,
      FunctionIndexI32 = 26,
  }
}

/// A reader for the `reloc.*` custom sections of a WebAssembly module.
///
/// This format is currently defined upstream at
/// <https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md>.
#[derive(Debug, Clone)]
pub struct RelocSectionReader<'a> {
  section: u32,
  entries: RelocationEntryReader<'a>,
}

/// Represents a relocation entry from `reloc.*` sections.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct RelocationEntry {
  /// The type of this entry.
  pub ty: RelocationType,
  /// The offset of the value to rewrite.
  ///
  /// Note: This is relative to the relevant section's contents.
  /// Offset zero is immediately after the id and size of the section.
  pub offset: u32,
  /// The index of the symbol used (or, for [`RelocationType::TypeIndexLeb`] relocations, the index of the type).
  pub index: u32,
  /// The addend to add to the address, zero if not applicable.
  pub addend: i64,
}

/// Represents a reader for relocation entries from `reloc.*` sections.
pub type RelocationEntryReader<'a> = SectionLimited<'a, RelocationEntry>;

impl FromReader<'_> for RelocationEntry {
  fn from_reader(reader: &mut BinaryReader<'_>) -> crate::Result<Self> {
      let ty_pos = reader.original_position();
      let ty = reader.read_var_u32()?;
      let ty = RelocationType::try_from(ty)
          .map_err(|_| format_err!(ty_pos, "invalid relocation type {}", ty))?;

      let offset = reader.read_var_u32()?;
      let index = reader.read_var_u32()?;

      let addend_pos = reader.original_position();
      let addend = if ty.has_addend() {
          let addend = reader.read_var_i64()?;
          if !ty.has_addend_64() && i32::try_from(addend).is_err() {
              bail!(addend_pos, "addend too large for var_i32");
          }
          addend
      } else {
          0
      };

      Ok(Self {
          ty,
          offset,
          index,
          addend,
      })
  }
}

impl PartialOrd for RelocationEntry {
  fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
      Some(self.cmp(other))
  }
}

impl Ord for RelocationEntry {
  fn cmp(&self, other: &Self) -> cmp::Ordering {
      self.offset.cmp(&other.offset)
  }
}

impl RelocationType {
  /// Returns the number of bytes being relocated for this relocation type.
  pub const fn size(self) -> u32 {
      // Values taken from:
      // https://github.com/llvm/llvm-project/blob/llvmorg-17.0.6/llvm/lib/Object/WasmObjectFile.cpp#L1043
      use RelocationType as R;
      match self {
          R::MemoryAddrLeb64 | R::MemoryAddrSleb64 | R::MemoryAddrRelSleb64 => 10,
          R::TableIndexI32
          | R::MemoryAddrI32
          | R::MemoryAddrLocrelI32
          | R::SectionOffsetI32
          | R::FunctionOffsetI32
          | R::FunctionIndexI32
          | R::GlobalIndexI32 => 4,
          R::TableIndexI64 | R::MemoryAddrI64 | R::FunctionOffsetI64 => 8,
          _ => 5,
      }
  }

  const fn has_addend(self) -> bool {
      // Values taken from:
      // https://github.com/llvm/llvm-project/blob/llvmorg-17.0.6/llvm/lib/BinaryFormat/Wasm.cpp#L66
      use RelocationType as R;
      matches!(
          self,
          R::MemoryAddrLeb
              | R::MemoryAddrLeb64
              | R::MemoryAddrSleb
              | R::MemoryAddrSleb64
              | R::MemoryAddrRelSleb
              | R::MemoryAddrRelSleb64
              | R::MemoryAddrI32
              | R::MemoryAddrI64
              | R::MemoryAddrTlsSleb
              | R::MemoryAddrTlsSleb64
              | R::FunctionOffsetI32
              | R::FunctionOffsetI64
              | R::SectionOffsetI32
              | R::MemoryAddrLocrelI32
      )
  }

  const fn has_addend_64(self) -> bool {
      use RelocationType as R;
      matches!(
          self,
          R::MemoryAddrLeb64
              | R::MemoryAddrSleb64
              | R::MemoryAddrRelSleb64
              | R::MemoryAddrI64
              | R::MemoryAddrTlsSleb64
              | R::FunctionOffsetI64
      )
  }
}

impl<'a> RelocSectionReader<'a> {
  /// Creates a new reader for the `reloc.*` section contents starting at
  /// `offset` within the original wasm file.
  pub fn new(data: &'a [u8], offset: usize) -> Result<Self> {
      let mut reader = BinaryReader::new_with_offset(data, offset);
      let section = reader.read_var_u32()?;
      let entries =
          RelocationEntryReader::new(reader.remaining_buffer(), reader.original_position())?;

      Ok(Self { section, entries })
  }

  /// Returns the index of the target section.
  pub fn section_index(&self) -> u32 {
      self.section
  }

  /// Returns the iterator for advancing through the entries.
  pub fn entries(&self) -> RelocationEntryReader<'a> {
      self.entries.clone()
  }
}

Thanks, created PR here: https://github.com/bytecodealliance/wasm-tools/pull/1511