Is code/dll still generated for marshalling?

I saw this in one of the documentations:
✨ If you're curious, you can check out the generated marshalling code for exported APIs at
obj\{Configuration}\{TargetFramerwork}\{RuntimeIdentifier}\generated\  Microsoft.JavaScript.NodeApi.Generator\Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator

But I can't find the generated file.
I've tried with and without [JSExport].
Or does the marshaller generation happen on the fly during run time?

Aha, I see this warning:
Could not load file or assembly 'Microsoft.CodeAnalysis

There are just too many warnings

Tried this:
    <!-- <PackageReference Include="Microsoft.CodeAnalysis" Version="4.5.0" /> -->
    <PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.5.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>

Now the new error message (output of dotnet build) is:
CSC : error NAPI1001: TypeLoadException : Could not load type 'Microsoft.Extensions.Primitives.StringSegment' from assembly 'Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions_3, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.   at System.Reflection.Emit.TypeBuilder.CreateTypeNoLock()   at System.Reflection.Emit.TypeBuilder.CreateType()   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.AsType(ITypeSymbol typeSymbol, Type[] genericTypeParameters, Boolean buildType)   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.AsType(ITypeSymbol typeSymbol, Type[] genericTypeParameters, Boolean buildType)   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.BuildSymbolicMethod(TypeBuilder typeBuilder, IMethodSymbol methodSymbol, Type[] genericTypeParameters)   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.BuildSymbolicTypeMembers(ITypeSymbol typeSymbol, TypeBuilder typeBuilder, Type[] genericTypeParameters)   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.BuildSymbolicObjectType(INamedTypeSymbol typeSymbol, String typeFullName, Type[] genericTypeParameters, Boolean buildType)   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.AsType(ITypeSymbol typeSymbol, Type[] genericTypeParameters, Boolean buildType)   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.BuildSymbolicMethod(TypeBuilder typeBuilder, IMethodSymbol methodSymbol, Type[] genericTypeParameters)   at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.BuildSymbolicTypeMembers(ITypeSymbol typeSymbol, TypeBuilder typeBuilder, Type[] genericTypeParameters)

Update:

Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS> issue is gone after upgrading from .NET SDK 6 to .NET SDK 8
Could not load type 'Microsoft.Extensions.Primitives.StringSegment' seems to be the same issue as #201

Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>

Fixed by https://github.com/microsoft/node-api-dotnet/pull/215
I'm closing this issue since the other problem is tracked by #201


make coach default & removed no role

closes #401

to do that, we would need a list like ["", "Coach", "Admin"], because of COACH=1 and ADMIN=2, which I found ugly.


Unable to set up ibus-rime with cantonese input properly

問題描述
As I am a 傻瓜beginner, I tried to use the ibus-install.sh script but I can't see Cantonese input method in my ibus-rime. Before I started, I already had ibus-rime installed and also librime-data-jyutping. I don't know what is wrong so my search led me to this repo and I tried to use the script as mentioned above.
Script Output:
pc:~/Downloads$ ./ibus-install.sh
Installing IME files ...
bash: line 17: git: command not found
bash: line 22: plum/rime-install: No such file or directory
Done!
pc:~/Downloads$

What I see on my rime
Where is my cantonese input?

Hi, may I know your platform/OS? I think it is because you haven't installed git (which should be pre-installed in Ubuntu and Pop OS distros iirc)
On Ubuntu/Pop_OS, it's simply:
sudo apt-get install git

@tanxpyox , 多謝你呀！問提解決咗。 I'm on Kubuntu 20.04 but installing git fixed it.
I think it may be worth updating the script to install curl or git if the system doesn't have it.

:O The script should be installing curl, git and ibus-rime at line 10...
Did it return any error?

my dumb mistake, I actually removed that before I ran the script because I only saw 'ibus-rime' I thought I already got it installed so I don't need that line. But I missed curl and git.

@tanxpyox 睇嚟要喺安裝教程嗰度加一步嗌啲人裝 git，我原先以為用得 linux 嘅人都會識得 git，睇嚟唔係。

@tanxpyox 睇嚟要喺安裝教程嗰度加一步嗌啲人裝 git，我原先以為用得 linux 嘅人都會識得 git，睇嚟唔係。

睇漏眼啫，應該不成問題。行嗰個script嘅時候應該會裝晒啲prerequisite嘅

我好似見到唔止一個人都係因為冇git所以唔識裝，不過plum本身應該係將git當dependency嚟裝嘅，唔知點解plum冇裝到git

應該唔使啩, 係我自己搞錯咗 like @tanxpyox  said
I'll leave it up to you guys, I am thankful I found this input method though. Keep up the good work.


Create DynamicProgrammingdigit_dynamic_programming.cpp

Please accept the PR for Hacktoberfest 2022

Run the code and attach the screen shot of that screen.

If are unable to complete the task under 12 hrs then this PR will be closed.


The issue template of documentation doesn't exists

Describe the bug
click the link: https://internlm.readthedocs.io/en/latest/
the result is 404
Environment
any browser
Other information
No response

The link of 'Explore InternLM (官网)' also dones't exitst. Current result is: https://https//internlm.org/
There are double https

Thanks for the feedback. It is fixed in #65.


Where is start

Please describe in detail WHERE START IS..U SAID PLACE LINK IN START. BUT DIDNT SHOW WHERE THAT IS...
THE LINK INDEX.JS. DOES NOT DELETE OR ERASE..SO WHERE IS START PLEASE....NEED HELP..

The start button is at the top of the repl, it will be Green, and with a Play Button beside it.
The link stuff was for you to know how to format it. The format looks something like this: https://MYREPLNAME.MYREPLUSERNAME.repl.co
Hope this helped :D


Animation.currentAnimation.name "default"

Joel Mason:
Seems as though animation.currentAnimation.name always == "default"
despite naming it in the json
animation.getAnimation(name) seems to retrieve the animation correctly..

Cannot replicate. Might be just the default animation being in place.


Various fixes to Unix build system

The Unix build is essentially unusable. This patch makes it functional. It is applied to the Debian package.

@svillemot
When I run your PR with the command
make -f makefile_Unix lib FFLAGS="" BLASLIB="-L/usr/lib/x86_64-linux-gnu/blas -lblas" LAPACKLIB="-L/usr/lib/x86_64-linux-gnu/lapack -llapack"
I get a file "slicot.a".
If I run it without lib
make -f makefile_Unix FFLAGS="" BLASLIB="-L/usr/lib/x86_64-linux-gnu/blas -lblas" LAPACKLIB="-L/usr/lib/x86_64-linux-gnu/lapack -llapack"
the compilation gets stuck at
./TAB01ND <AB01ND.dat >AB01ND.exa
Do you have any advice on how to fully compile your PR on Ubuntu 22.04? What is my error?
Mabye for FFLAGS=?

I am only interested in building the library, so I only tested the lib target. It is possible that further fixes are needed when building the default target.

Thank you for pointing out the errors in the Unix-like makefiles.  I have had limited
possibilities to check these files, and I have now no access to Unix-like machines.
Unfortunately, your request to merge your commit into SLICOT cannot be accepted,
since other changes are still needed.  In my understanding, the link process is
still not working at this time.  Also, you have deleted some file names in
src/makefile_Unix, which appear in the new version 5.9, but also zelgtg,
which is referred to by some routines.
Therefore, I made changes in the makefiles to include your useful suggestions.
But I also wanted to minimize the number of these changes.  For instance, by
replacing FC by FORTRAN and FFLAGS by OPTS in make_Unix.inc, no changes are
needed in the makefiles from the examples and src_aux subdirectories.
The essential changes I made were:

make_Unix.inc: changed ARFLAGS to ARCHFLAGS, FFLAGS by OPTS and added a line for "LOADER";
makefile_Unix: added six references to make_Unix.inc;
src/makefile_Unix: added a reference to make_Unix.inc.
In addition, I used the Unix convention for the end of lines.

I replaced these makefiles on GitHub.
Could you please try these new versions to also link the example programs
(i.e., with the default make option) and let me know the results?
Thanks in advance.

Thanks, the changes in a037f7eb76134d45e7d222b7f017d5cbd16eb731 look good to me. Closing.


Added class to form to move back button down

Motivation and Context
Cancel button too close the close buttons
What has changed
Added margin to the form to form so as to push button down . Not added to button as button repeats top and bottom
How to test?
Run response ops and create message, see increased gap above cancel button

Before & after:


Add functionality to upload PYP's to the resources section (Rachel)

Will remove the test file shortly after testing it.

Will remove the test file shortly after testing it.


"Abs.lua:8: attempt to index field 'THNN' (a nil value)"

This is because THNN isnt implemented in clnn yet, ie https://github.com/torch/nn/pull/547
Started on adding it, in progress, branch adding_THNN https://github.com/hughperkins/clnn/commits/adding_THNN

Should be fixed in master now, mostly in https://github.com/hughperkins/clnn/commit/97ff2457bbf681515bf7c674fd7ab19e38454f34 , and a tiny, but critical, change-ette or two in https://github.com/hughperkins/clnn/commit/b0d39777bacf1ac169ae1494c1e8bd87368c7e9f

I'm getting this error from Sigmoid.lua:4 using the latest from branch distro.

I'm seeing this in MSECriterion.lua:14:
attempt to index field 'THNN' (a nil value)

Unfortunately distro is out of date.  I have raised an issue for this at https://github.com/torch/distro/issues/71  In the meantime, please do the following:
luarocks install torch
luarocks install nn
luarocks install cltorch
luarocks install clnn

...and try again

Did those steps, still seeing the same error:
/home/ubuntu/torch-distro/install/bin/luajit: ...untu/torch-distro/install/share/lua/5.1/nn/Container.lua:67:
In 4 module of nn.Sequential:
...u/torch-distro/install/share/lua/5.1/nn/MSECriterion.lua:14: attempt to index field 'THNN' (a nil value)
stack traceback:
...u/torch-distro/install/share/lua/5.1/nn/MSECriterion.lua:14: in function 'forward'
neural_style.lua:447: in function <neural_style.lua:444>
[C]: in function 'xpcall'
...untu/torch-distro/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
...ntu/torch-distro/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
neural_style.lua:204: in function 'main'
neural_style.lua:500: in main chunk
[C]: in function 'dofile'
...rch-distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
[C]: at 0x00406670

Can you provide me a short script to reproduce the issue please?

I run neural-style like this:
luajit neural_style.lua -backend clnn -model_file models/vgg_normalised.caffemodel -image_size 50

...and seems to run ok for me.  My models directory:
md5sum models/*
6d3b0b00017ec30acc10d29101033be8  models/download_models.sh
b568958c0dcf1d97cbcff4c22b02a2be  models/nin_imagenet.caffemodel
8fbacb8dd696607876386e34ff68a84a  models/nin_imagenet_conv.caffemodel
2521163ca34ad45c6910912f9c873567  models/train_val.prototxt.lua
ccbbdda59210208be39f8974f5b5765e  models/VGG_ILSVRC_19_layers_deploy.prototxt
50510b9f43a178d12c017a54b6583f9a  models/VGG_ILSVRC_19_layers_deploy.prototxt.lua
6adcfbc93e8f6762e6421515940526f4  models/vgg_normalised.caffemodel

I've radically rolled back torch and cltorch to ~21 Februrary.  Plesa ecan you reinstall cltorch, using the instructions at https://github.com/hughperkins/cltorch#installation , and see if the issue is/isnt still there please.

@hughperkins after installing cltorch and clnn, I faced with such error :
/Users/apple/torch/install/share/lua/5.1/nn/Container.lua:67:
In 1 module of nn.Sequential:
...le/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:108: torch.ByteTensor.THNN backend not imported
stack traceback:
[C]: in function 'assert'
...le/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:108: in function <...le/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:107>
[C]: in function 'xpcall'
/Users/apple/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/Users/apple/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
...le/torch/install/share/lua/5.1/nn/StochasticGradient.lua:35: in function 'f'
[string "local f = function() return trainer:train(tra..."]:1: in main chunk
[C]: in function 'xpcall'
/Users/apple/torch/install/share/lua/5.1/itorch/main.lua:209: in function </Users/apple/torch/install/share/lua/5.1/itorch/main.lua:173>
/Users/apple/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'
/Users/apple/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'
/Users/apple/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'
/Users/apple/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'
/Users/apple/torch/install/share/lua/5.1/itorch/main.lua:381: in main chunk
[C]: in function 'require'
(command line):1: in main chunk
[C]: at 0x010d54ad50
Running this :
net = nn.Sequential()
net:add(nn.SpatialConvolution(1, 6, 20, 20)) -- 1 input image channel, 6 output channels, 5x5 convolution kernel
net:add(nn.ReLU())                       -- non-linearity
net:add(nn.SpatialMaxPooling(9,9,9,9))     -- A max-pooling operation that looks at 2x2 windows and finds the max.
net:add(nn.SpatialConvolution(6, 16, 3, 3))
net:add(nn.ReLU())                       -- non-linearity
--net:add(nn.SpatialMaxPooling(2,2,2,2))
net:add(nn.View(1673))                    -- reshapes from a 3D tensor of 16x5x5 into 1D tensor of 1655
net:add(nn.Linear(1673, 120))             -- fully connected layer (matrix multiplication between input and weights)
net:add(nn.ReLU())                       -- non-linearity
net:add(nn.Linear(120, 84))
net:add(nn.ReLU())                       -- non-linearity
net:add(nn.Linear(84, 5))                   -- 10 is the number of outputs of the network (in this case, 10 digits)
net:add(nn.LogSoftMax())                     -- converts the output to a log-probability. Useful for classification problems
criterion = nn.ClassNLLCriterion()
trainer = nn.StochasticGradient(net, criterion)
trainer.learningRate = 0.001
trainer.maxIteration = 5
trainer:train(trainData)
trainData is a byte tensor {data,label}
data is 7628x3x64x100

Normally training data will be floats, ie something like:
local inputs = torch.FloatTensor(batchSize, numPlanes, width, height):uniform()
local labels = torch.ByteTensor(batchSize):fill(1)

The following runs ok for me:
require 'nn'

local batchSize = 32
local numPlanes = 1
local width = 224
local height = 224

local net = nn.Sequential()
net:add(nn.SpatialConvolution(1, 6, 20, 20)) -- 1 input image channel, 6 output channels, 5x5 convolution kernel
net:add(nn.ReLU()) -- non-linearity
net:add(nn.SpatialMaxPooling(9,9,9,9)) -- A max-pooling operation that looks at 2x2 windows and finds the max.
net:add(nn.SpatialConvolution(6, 16, 3, 3))
net:add(nn.ReLU()) -- non-linearity
--net:add(nn.SpatialMaxPooling(2,2,2,2))
net:add(nn.View(16*20*20)) -- reshapes from a 3D tensor of 16x5x5 into 1D tensor of 1655
net:add(nn.Linear(16*20*20, 120)) -- fully connected layer (matrix multiplication between input and weights)
net:add(nn.ReLU()) -- non-linearity
net:add(nn.Linear(120, 84))
net:add(nn.ReLU()) -- non-linearity
net:add(nn.Linear(84, 5)) -- 10 is the number of outputs of the network (in this case, 10 digits)
net:add(nn.LogSoftMax()) -- converts the output to a log-probability. Useful for classification problems
net:float()

local criterion = nn.ClassNLLCriterion()
criterion:float()

local trainer = nn.StochasticGradient(net, criterion)
trainer.learningRate = 0.001
trainer.maxIteration = 5

local inputs = torch.FloatTensor(batchSize, numPlanes, width, height):uniform()
local labels = torch.ByteTensor(batchSize):fill(1)

local dataset = {}
function dataset.size()
  return batchSize
end
local dataset_mt = {}
function dataset_mt.__index(self, i)
  return {inputs[i], labels[i]}
end
setmetatable(dataset, dataset_mt)

trainer:train(dataset)

But note that I havent seen anyone use StochasticGradient module since ... as long as I can remember.  Everyone uses optim now.  Have a look at:
https://github.com/szagoruyko/cifar.torch/blob/master/train.lua
optim is confusing in its own way, but trying to understand StochasticGradient is both hard and pointless, since no-one uses it :-P

Hi @abachinskyi The example in nn has been updated now:
https://github.com/torch/nn/blob/master/doc/training.md#nn.traningneuralnet.dok
It's new, so might have a few buggettes, but it is up to date :-)

After all the steps above I am still getting the following error
torch/install/share/lua/5.1/nn/SpatialMaxPooling.lua:42: attempt to index field 'THNN' (a nil value)

Hi @xiao1228
Thanks!  The script above runs ok for me, on Ubuntu 16.04.  can you provide the following information please?

output of:

cd ~/torch-cl
git log -n 5 --oneline

output of:

which luajit

output of:

uname -a
cat /etc/lsb-release

the full script you are trying to run (eg via https://gist.github.com )
the full output from trying to run that script

@hughperkins Thank you for your quick reply.
The output are
9da3e6e remember to add test script for cutorch-cltorch clobbering 96bda1a prevent cutorch clobbering cltorch, if d afterwards fafd384 code highlighting in cltorch readme, and links to cutorch-rtc ed77d3a update readme for hctorch 712410c add hctorch reference

/home/xiao/torch-cl/install/bin/luajit

Linux xiao-All-Series 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

https://gist.github.com/xiao1228/2f2472e0723a226a5b0b7f35cda22936 this is the script I used for training.

`In 1 module of nn.Sequential:
In 2 module of nn.ConcatTable:
...iao/torch/install/share/lua/5.1/nn/SpatialMaxPooling.lua:42: attempt to index field 'THNN' (a nil value)
stack traceback:
...iao/torch/install/share/lua/5.1/nn/SpatialMaxPooling.lua:42: in function <...iao/torch/install/share/lua/5.1/nn/SpatialMaxPooling.lua:31>
[C]: in function 'xpcall'
/home/xiao/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/home/xiao/torch/install/share/lua/5.1/nn/ConcatTable.lua:11: in function </home/xiao/torch/install/share/lua/5.1/nn/ConcatTable.lua:9>
[C]: in function 'xpcall'
/home/xiao/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/home/xiao/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
4b-training-adadelta-cuda-stero.lua:156: in function 'opfunc'
/home/xiao/torch/install/share/lua/5.1/optim/adadelta.lua:29: in function 'optimMethod'
4b-training-adadelta-cuda-stero.lua:228: in function 'train'
4b-training-adadelta-cuda-stero.lua:352: in main chunk
[C]: in function 'dofile'
main-stanford-bg.lua:89: in main chunk
[C]: in function 'dofile'
...xiao/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
[C]: at 0x00406670

WARNING: If you see a stack trace below, it doesn't point to the place where this error occured. Please use only the one above.
stack traceback:
[C]: in function 'error'
/home/xiao/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors'
/home/xiao/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
4b-training-adadelta-cuda-stero.lua:156: in function 'opfunc'
/home/xiao/torch/install/share/lua/5.1/optim/adadelta.lua:29: in function 'optimMethod'
4b-training-adadelta-cuda-stero.lua:228: in function 'train'
4b-training-adadelta-cuda-stero.lua:352: in main chunk
[C]: in function 'dofile'
main-stanford-bg.lua:89: in main chunk
[C]: in function 'dofile'
...xiao/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
[C]: at 0x00406670
`
this is the output from the script.
Thank you

https://gist.github.com/xiao1228/2f2472e0723a226a5b0b7f35cda22936

Seems to be missing a bunch of lines from the start?  eg require 'optim', and probably some other stuff.

There's a zillion lines missing from this :-P  It also doesnt use OpenCL, as far as I can see?
Can you start by trying the examples at https://github.com/torch/nn/blob/master/doc/training.md#nn.traningneuralnet.dok please?  I wrote about ~30-50% of this page by the way, so please let me know anything strange/hard to understand in it, and I'll take a look.

@hughperkins I have a main lua file calling separate files. Therefore, I have all the require stuff there. Thank you

Please try to find a much shorter script that demonstrates the problem.  It's normally possible to create a 5-10 line script to demonstrate a problem.  I dont want to have to read through pages of code ideally :-)

@hughperkins ok sorry about that, thanks

@abachinskyi  Hi bro, I faced the same problem with you, do you find any solution?  If so, could you tell me hoe to fix it ?  Thanks very much!

Hi @fybaft2012 Can you confirm that you have intsalled using https://github.com/hughperkins/distro-cl ?  Can you give the full output of the instalation, the simplest lua script you can find to reprodcue the problem ,and the output from running this sirpt please?  You could paste these intto https://gist.github.com for example

Thanks very much for your reply. Yeah I reinstalled, it is working now .
Thanks a lot !
On Wed, Aug 10, 2016 at 4:12 PM, Hugh Perkins<EMAIL_ADDRESS>wrote:

Hi @fybaft2012 https://github.com/fybaft2012 Can you confirm that you
have intsalled using https://github.com/hughperkins/distro-cl ? Can you
give the full output of the instalation, the simplest lua script you can
find to reprodcue the problem ,and the output from running this sirpt
please? You could paste these intto https://gist.github.com for example
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hughperkins/clnn/issues/21#issuecomment-238784359,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AT9j-I-GqCrVZXUcpRoUGczwIELyMPHAks5qeXnGgaJpZM4G9gCm
.

Cool :-)


Write a new math example

The existing math example is broken (see #27; thanks @mrcosta!) so I removed it, but I think it's an important example to have.

I have started working on a new math example.

A new math example has been added.

Closing as done.


[Bug]: When binding a project to a data source, you cannot select a library administrator when creating a new database

ODC version
ODC4.3.0
OB version
no related
What happened?
When binding a project to a data source, you cannot select a library administrator when creating a new database

What did you expect to happen?
Data bound to the project can still be selected as a library administrator
How can we reproduce it (as minimally and precisely as possible)?
First, in the database editor, bind a project, then enter the data source menu, select the database of the bound project, and click New Database.
Anything else we need to know?
No response

Fixed In Commit 29528084deeb56f8d2a1bcf064198310000fbf79
------
畅晚
Fri May 31 13:55:27 2024 +0800


one() on multiple elements only unbind the activated element

I'm trying to remove an event handler given with one()  to 2 different elements, i'm basically trying to get both elements to unbind when either one of them gets called:
my code looks like this:
$('.elem1 , .elem2').one('click' ,function(){
// some code...
});

but when elem1 is clicked and gets unbind, elem2 does not, and clicking elem2 will fire the event. Same goes if i click elem2 first.
p.s. i don't want to remove all the previous click events from them, just this event.
any idea what would be the best solution here?

I also tried to use an event handler as so:
function foo(){
  var buttons = $(document.body).find('.elem1 , elem2');

  var myEventHandler = function(){
    //some code...
    buttons.off('click', myEventHandler);
  }

  buttons.on('click', myEventHandler);
}

but with no avail, the result was the same as i got with the one() function where only the pressed button got the event removed from it

Hi @RongBranovate, this is a hard question.
In the case of .once()/.one() .off() is not working for now. This is because I need to embed handler into a function autoDetach(handler) wrapper. So the handler is not the function that is attached.
Finally I've created a onceListeners collector and is passing tests for release: v0.2.11
please tell me if is working for you. And thanks, as always!!

Hi @jgermade, this is still an issue.
I am using the first method i describered and from what i'm seeing, in jqlite.js lines 1242-1245:
  var index = onceListeners.indexOf(listenerData);
          if( index >= 0 ) {
            onceListeners.splice(index, 1);
          }

if i have 2 elements with that event it only removes one of them(the one that got pressed), the other one is still assigned and will fire when pressed.

Hi @RongBranovate , I think this is the expected behavior (like jquery).
Maybe this snippet can help you:
demo in plunker

      <button class="once">Button 1</button>

      <button class="once">Button 2</button>

      <button class="once">Button 3</button>

      <button class="once">Button 4</button>

      <button class="reset">Reset</button>

$(function () {

  var jButtons = $('button.once');

  function clickOnce (e) {
    alert('clicked ' + e.target.textContent);
    jButtons.off('click', clickOnce);
  }

  jButtons.one('click', clickOnce);

  $('button.reset').click(function () {
    jButtons.off('click', clickOnce);
    jButtons.one('click', clickOnce);
  });

});

Hi @jgermade
YES! This worked! thanks alot!

thanks you @RongBranovate !!


Updating the next version

Description:  Updating the next version
General Checklist

[x] Updated Added functionality/ bug fix in release notes

/azp run


Add support for using cloudmunch as part of CI

It seems to be free for FOSS projects http://www.cloudmunch.com/hub/hublisting.html#free
https://beta.cloudmunch.com/newdashboard/onboarding
and the workflows/pipeline look very interesting

closing since not using cloudmunch


Unable to Log in due to connection refused on port 9000

Can't login to the software as nothing is listening on port 9000.
[HPM] Error occurred while trying to proxy request /socket.io/?EIO=3&transport=polling&t=NHEsT0A from localhost:3000 to http://localhost:9000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/accounts from localhost:3000 to http://localhost:9000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /socket.io/?EIO=3&transport=polling&t=NHEsTpG from localhost:3000 to http://localhost:9000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /socket.io/?EIO=3&transport=polling&t=NHEsUw3 from localhost:3000 to http://localhost:9000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
On login attemt:
Error occured while trying to proxy to: localhost:3000/auth/login?state=%2F
This is on Windows.   I did npm install in the src and src/client directory.
I tried running as admin too.  Netstat confirms nothing is listening on port 9000.
Thanks!

Did you run npm start in src? Or src/client? running in src should start up the backend on port 9000

I was running it in src/client.  If I do npm start in src, I get:

<EMAIL_ADDRESS>start C:\Users\Mike\Documents\GitHub\cloud-annotations-client\src
concurrently --kill-others-on-fail "yarn server" "yarn client"

[0] 'yarn' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'yarn' is not recognized as an internal or external command,
[1] operable program or batch file.
[0] yarn server exited with code 1
--> Sending SIGTERM to other processes..
[1] yarn client exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: concurrently --kill-others-on-fail "yarn server" "yarn client"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\Mike\AppData\Roaming\npm-cache_logs\2020-09-02T13_13_52_922Z-debug.log

Oh, so I did npm -g install yarn and it worked.  Thanks!


[0.13.0] - hOn Authentication Error

After updating to the new integration version, I'm receiving the error:
2024-02-12 11:38:35.074 ERROR (MainThread) [pyhon.connection.auth] hOn Authentication Error
File "/usr/local/lib/python3.12/site-packages/pyhon/connection/auth.py", line 96, in _error_logger
raise exceptions.HonAuthenticationError("Can't login")
Downgrading to the previous I figured out I had to change the password.
So, I changed the password via app and was re-able to log-in to both app and HA.
But updating again the integration, same error.

After investigating, I think the change password request was the problem. I had to delete and re-add the integration to make it works.
I guess it need a simple way to update the password.

Unfortunately, I'm still encountering the same issue. I have exactly the same errors in the logs as you do. I've tried three different accounts (Google, iCloud, Interia - a local Polish provider), and I still encounter the same error. I also changed my password, uninstalled, and reinstalled the integration, but it still doesn't work. I'm not sure how to fix this.


optionally include homologous structures in faceted browsing

(including serial homology as a separate option)

This is implemented within results (however not in the hierarchy).


Prettify Test Method Display Name

Friendly "Display Name" for test method names
[TestMethod]
void Method_names_should_be_readable_when_hinted()
{
}

"Method_names_should_be_readable_when_hinted" => "Method names should be readable when hinted"

[TestMethod]
void Say_What_You_Have_Spaces_in_Your_CSharp_Test_Names()
{
}

"Say_What_You_Have_Spaces_in_Your_CSharp_Test_Names" => "Say What You Have Spaces in Your CSharp Test Names"

similar to

Complements #466
This spec can be improved for other cases PascalCase, CamelCase.
and specified DisplayName should be favoured

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: ahmedalejo sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

There also been other specs #515
and [Proposal Support Automatic "Pretty" Display Name for Test Cases] by https://github.com/xunit/xunit/issues/759

I love this idea.  I was thinking about this same topic.

How do we "fix" all of the existing test names?  I'm thinking a lot of test method names are written in PascalCase.
Do method names matter anymore?  What conventions should we be using if using TestMethod(displayName: "Some name")?

[TestMethod("Now I can read my test names like a human not a computer 😜")]
public void Blah1()
{
}

@spottedmahn
I have two solutions

allow the DisplayName of the TestMethodAttribute to be extensible

a

[TestMethod("Consecutive authentication attempts with invalid credentials should fail")]
public void MyTest()
{ ... }
//or

[MyAppTestMethod]
public void Consecutive_authentication_attempts_with_invalid_credentials_should_fail()
{ ... }

//Given the following definitions
public class TestMethodAttrubte : Attribute
{
    public string DisplaName { get; set; }

    public virtual string GetDisplayName(System.Reflection.MethodInfo methodInfo) =>
        string.IsNullOrWhiteSpace(this.DisplaName)
        ? methodInfo.Name
        : this.DisplaName?.Trim();

   ...
}

public class MyAppsTestMethodAttrubte : TestMethodAttrubte
{
    public override string GetDisplayName(MethodInfo methodInfo) =>
        methodInfo
            .Name
            .Replace("_", " ")
            .Replace(".", ", ");
}

I like the general idea, and the extension point. But looking at the xunit spec, and the amount of work and iteration they did on it, I am inclined to keep the implementation at just that. No built in automatic rewrites.
That way you can provide your own implementation, which can be simple enough to cover just the conventions you use. This would get the change merged quicker because we will not have to provide a good generic implementation, and multiple configuration options to cater every possible edge case.

Java JUnit 5 Display Name Generators
#interesting 🤔

@spottedmahn could you elaborate a bit more on why you find that interesting? 🙂 as I read it it is basically the same concept as here, or am I missing something important?

Hi guys
cc: @spottedmahn
I plan to close this PR.  I prefer sending in one that satisfies the below use case.
What do you think as the following partially implemented this.
#410 issue
#466 PR
[TestMethod("Consecutive authentication attempts with invalid credentials should fail")]
public void MyTest()
{ ... }
//or

[MyAppTestMethod]
public void Consecutive_authentication_attempts_with_invalid_credentials_should_fail()
{ ... }

//Given the following definitions
public class TestMethodAttrubte : Attribute
{
    public string DisplayName { get; set; }

    public virtual string GetDisplayName(System.Reflection.MethodInfo methodInfo) =>
        string.IsNullOrWhiteSpace(this.DisplayName)
        ? methodInfo.Name
        : this.DisplayName.Trim();

   ...
}

public class MyAppsTestMethodAttrubte : TestMethodAttrubte
{
    public override string GetDisplayName(MethodInfo methodInfo) =>
        methodInfo
            .Name
            .Replace("_", " ")
            .Replace(".", ", ");
}
public class MyHappyAppsTestMethodAttrubte : MyAppsTestMethodAttrubte
{
    public override string GetDisplayName(MethodInfo methodInfo) =>
        base.GetDisplayName(methodInfo)
            .Replace("fails", "😢")
            .Replace("should succeed", "😅");
}

🙂 as I read it it is basically the same concept as here

Yep, seems like it.  It was interesting to me that another "team" came to the same "discovery" independently.
There might also be some ideas in their approach we could learn from

@nohwnd  I missing something important?
The main thing is that there is more traction in other libraries about this topic. Basically, they´ve implemented it one way or the other.
It's a common need that we have to pull off for testfx

@spottedmahn @nohwnd
Found a better extension point that could be baked into TestMethodAttribute with ease.
The below is what i´m currently using
cheers.
public class PrettyTestClassAttribute : TestClassAttribute
{
    public override TestMethodAttribute GetTestMethodAttribute(TestMethodAttribute wrappedTestMethodAttribute)
    {
        var attribute = base.GetTestMethodAttribute(wrappedTestMethodAttribute);

        return attribute is PrettyTestMethodAttribute
            ? attribute
            : new PrettyTestMethodAttribute(attribute);
    }
}

public class PrettyTestMethodAttribute : TestMethodAttribute
{
    private readonly TestMethodAttribute wrappedTestMethodAttribute;

    public PrettyTestMethodAttribute(){ }

    public PrettyTestMethodAttribute(TestMethodAttribute wrappedTestMethodAttribute) =>
        this.wrappedTestMethodAttribute = wrappedTestMethodAttribute;

    public override TestResult[] Execute(ITestMethod testMethod)
    {
        TestResult[] results;

        if (wrappedTestMethodAttribute is null)
            results = base.Execute(testMethod);
        else
            results = wrappedTestMethodAttribute.Execute(testMethod);

        if(results.Any())
            results[0].DisplayName = testMethod.TestMethodName
                .Replace("_eq_", " == ")
                .Replace("_neq_", " != ")
                .Replace("_gt_", " > ")
                .Replace("_gte_", " >= ")
                .Replace("_lt_", " < ")
                .Replace("_lte_", " <= ")
                .Replace("Bug_", "🐞");
        return results;
    }
}


Revert "Revert "Add postgresql-client to docker image""

Reverts dimagi/open-chat-studio#863

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!


Use new Console REST API for peer register and unregister

Now Vagrant Subutai plugin uses following REST API for peer register and unregister.
Because following REST API is deprecated.
/rest/v1/hub/unregister?sptoken=
/rest/v1/hub/register?sptoken=

We should use new Console REST API:
/rest/v1/bazaar/unregister?sptoken=
/rest/v1/bazaar/register?sptoken=

How to test:
Use following user parameters in vagrant-subutai.yml
SUBUTAI_ENV: master

Do following commands:
vagrant init subutai/stretch-master
vagrant up
vagrant subutai register
vagrant subutai unregister

Followed the steps above^
Ended up with working functionality:

Implemented on master

However, when I updated the vagrant subutai plugin it stopped working. It was mentioned that the reason is because bazaar side changes were not merged into master yet.
So, putting the issue back to backlog.

Fixed in master:

Fixed in prod


added function to type a own DNS server

I added the (for me) useful function to type a own dns server...
lg. lukas

I have considered this, but what @lukebarone mentions is exactly why I didn't go ahead and implement it.
My idea was to allow the user to input comma-separated IPs, since it's very common to see DNS with multiple IP addresses. I can get this implemented but I think that it can be a bit confusing to the user.
The input would be something like this:
7) Custom

Please enter one or more IPv4 addresses separated by commas.
Example: <IP_ADDRESS>,<IP_ADDRESS>
DNS :

What's the community sentiment? Would this be a desired feature? I hope that others can chime in and let us know their position.
I'm closing the pull request because if implemented, I'll do that my way.
PS: Raspbian is unsupported, even if it works.

I would love for that feature, but it needs to be easy, and reliable. I
like error checking, and would support changes that have proper error
checking.
On Wed, Dec 27, 2017 at 3:10 PM, Nyr<EMAIL_ADDRESS>wrote:

Closed #398 https://github.com/Nyr/openvpn-install/pull/398.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Nyr/openvpn-install/pull/398#event-1403002447, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGcIFvw7dyz-Xp4R9zFDVKupxpvf1bDaks5tEs5WgaJpZM4RN0UZ
.

Is the dialog I'm proposing intuitive enough to the user? I think it's not great... if anyone can think of a better way, it can be considered.
Let's see what others think about this :)

Hmmm...  I needed this feature for me, so i decided to program it...
I know at the moment it is not very user friendly programmed but in my opinion it would be a nice feature... (And  it worked for me) ((;
For the most incapable users it would be useful to check the entered ips...
If somebody of you knows a better way to implement this feel free and do it. ((;


Types with a type descriptor are not crated properly

Given a type with a type converter, where the type converter is used to correctly create the instance, TSC# does not consider the type converter, instead preferring the default constructor. For example, consider the following type:
[TypeConverter(typeof(ApiEndpointUrlTypeConverter))]
public readonly partial struct ApiEndpointUrl
{
    private ApiEndpointUrl(string value)
    {
        Value = value;
    }

    public string Value { get; }

    public static ApiEndpointUrl From(string value) => new(value);
}

The purpose of which is to stop it being created via new. In order to convert it from a string to an instance, for instance, in configuration (like appsettings.json), it has a type converter:
internal class ApiEndpointUrlTypeConverter : TypeConverter
{
    public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) =>
        sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);

    public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) =>
        value is string s ? ApiEndpointUrl.From(s) : base.ConvertFrom(context, culture, value);

    public override bool CanConvertTo(ITypeDescriptorContext? context, Type? sourceType) =>
        sourceType == typeof(string) || base.CanConvertTo(context, sourceType);

    public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) =>
        value switch
        {
            ApiEndpointUrl aiu when destinationType == typeof(string) => aiu.Value,
            _ => base.ConvertTo(context, culture, value, destinationType)
        };
}

The shape generated for this type is something like this:
        private global::TypeShape.Abstractions.IConstructorShape CreateConstructor_ApiEndpointUrl()
        {
            return new global::TypeShape.SourceGenModel.SourceGenConstructorShape<global::ApiEndpointUrl, object?>
            {
                DeclaringType = (global::TypeShape.Abstractions.IObjectTypeShape<global::ApiEndpointUrl>)ApiEndpointUrl,
                ParameterCount = 0,
                DefaultConstructorFunc = static () => new global::ApiEndpointUrl(),
                AttributeProviderFunc = static () => typeof(global::ApiEndpointUrl).GetConstructor(InstanceBindingFlags, global::System.Array.Empty<global::System.Type>()),
                IsPublic = true,
            };
        }

Maybe there should be a way (a shape?) to signify the  type is decorated with a type converter?
I'm happy to attempt this if you could validate my idea in the first place.

Thanks, I believe type conversion and type shapes are related concepts but ultimately they are orthogonal. That is, you can use shapes to define certain types of converters but at the same time not all shape applications require the concept of conversion. They absolutely do converge in specific applications though, for example the mapper sample:
https://github.com/eiriktsarpalis/typeshape-csharp/blob/6a6c68c76829fb26b8aaec42b8a3bdff02018423/src/TypeShape.Applications/ObjectMapper/Mapper.Builder.cs#L29-L39
It is conceivable that this could receive type converter support, but this wouldn't require any changes to the source generator itself, instead all you would need to do is to resolve the TypeConverterAttribute in the visitor implementation. The source generator should ensure that the relevant attributes wouldn't be trimmed in the context of Native AOT.


"Go to File" with line number doesn't respect line number any more

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.58.0 (update: also in 1.58.1)
OS Version: Windows 10 20H2

Steps to Reproduce:

Open "Go to File" (Ctrl+P)
Enter a filename followed by colon and line number

I expect that the file opens and the cursor jumps to the specified line (which used to work in the previous release), but it seems to be broken in 1.58.0. The file opens, but the cursor remains where it had been before (or where it remembered that the cursor was placed the last time the file was open).

I'm currently working around the issue by using "Go to File", pasting in my destination, then once I'm in the right file, running the command again with the same input to jump to the line number I want.

I can confirm this issue in 1.58.2, Go to file with a line number doesn't work properly,
but if you will enter the same file name with line number second time - it will jump to the correct line.

Hmm I can't seem to repro this. Here's my recording:

In the gif I:

open ctrl+p
type package.json:57
Enter

which takes me to line 57 in the package.json.
Couple questions:
@RikkiGibson and @viperet are also on Windows like @Boddlnagg?
Can you all send me a gif or recording of the repro so I can see exactly what you're doing?

I wonder if it was fixed in Insiders build on Windows.
I can reproduce it in zip installation of 1.58.2, but wasn't able to do it in Insiders build.
https://user-images.githubusercontent.com/1312662/126523183-c2b82d29-6374-498c-8585-1efd91375ee2.mp4
As you can see - when file opened for first time - cursor is placed to 1:1, however if same path:line:col are used again - it's placed to proper¹ position.
¹ I guess that cursor was shifted because of tabs vs spaces calsulations.

I can reproduce it in zip installation of 1.58.2, but wasn't able to do it in Insiders build.

This is a good sign! Can I get a few others to try Insiders and give it a test?

@TylerLeonhardt I'm on Mac, will try Insiders build today to see if I can reproduce bug there.

Glad to hear! I'll go ahead and close this then since it's fixed in insiders.


feat(identity): hardcoding address for ENS demo

Description
For the hackweek we are exploring a ENS resolver. Before I'm integrating an actual resolver I will ship this for us to demo. Planning on removing after hackweek.
How Has This Been Tested?
Not tested
Due Diligence

[ ] Breaking change
[ ] Requires a documentation update
[ ] Requires a e2e/integration test update

👍 We also have a plan for https://github.com/WalletConnect/blockchain-api/issues/363 as well.


License of fork

I tried to find an NPM package of this project and found: https://www.npmjs.com/package/sms-counter
I see this package is from a fork of this project here: https://github.com/matteogatti/sms-counter
It looks like the same code but the author has added his name to the license instead of yours: https://github.com/matteogatti/sms-counter/blob/master/LICENSE

I'm not sure how to properly handle this. It's not like I'm actively maintaining this project anyway, so I see no issue with the fork. However, it is a little weird that the author of the fork didn't use Github's fork feature and instead created a repo from scratch and copy / pasted a portion of the code.
The only requirement the MIT licence has regarding forks with modified code is this:

The MIT License text & copyright notice must still be included with any unmodified MIT-licensed code.

https://www.tawesoft.co.uk/kb/article/mit-license-faq
The author did refactor a big portion of the code, but there are portions that could be considered "unmodified". They have already added a mention of the original project under the fork's readme, I guess I would be ok with them simply adding a mention under the licence file too.
I would appreciate if you could bring this up with the author of the fork, thanks.


Lab 1 Fib

Fixes #290
Review of colleague's PR #196
Changes proposed in this PR:

Add fib function to print fibbonaci sequence in stout
Support positive and negative inputs
Add test cases for 100% code coverage

Codecov Report

Merging #291 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #291   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          18     19    +1
  Lines         303    317   +14
=====================================
+ Hits          303    317   +14

Impacted Files
Coverage Δ

01_fib/joshcarp/fib.go
100% <100%> (ø)

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 15b200b...65215e6. Read the comment docs.

Good implementation.

Please close merge or close.


Add drain provider label to LoadBalancers based on image version

This is added to make sure we send events during drain only to agents where the LB is listening for events. So LB's with older images are not sent the events.
https://github.com/rancher/rancher/issues/10013
@cjellick pls review.

LGTM. Waiting for build


Should we document typography elements under Foundation/Typography?

After resolving https://github.com/swisspost/design-system/issues/3584 with "follow the figma structure", it could be a possibility to document typography styles that are under styles/src/elements in the Foundations/Typography documentation page.
This PR (https://preview-3614--swisspost-design-system-next.netlify.app/?path=/docs/61faccd2-de2c-48f0-9a06-c051a56580ef--docs) would be a good example of such a docs page.

@alizedebray creates a proposal for a navigation structure.
https://comet.discoveryeducation.com/
https://m3.material.io/components
https://material.angular.io/components/categories


refactor: refine foreign call framework

Hi, could you specify with more details?

Better host circuit framework supported in https://github.com/DelphinusLab/zkWasm/pull/105


Post Ideas: Simulaciones Electronica con LTSpice

Buck converter simulator:
https://es.coursera.org/lecture/power-electronics/sect-1-4-simulation-of-a-buck-converter-using-ltspice-umaI2

https://www.electronics-tutorials.ws/diode/diode_7.html

http://ltwiki.org/index.php?title=Components_Library_and_Circuits#Diodes

Importar modelos:
https://adamsiembida.com/adding-spice-models-to-ltspice/

Voltage and Current Noise Sources in LTspice .noise Simulations
http://axotron.se/blog/voltage-and-current-noise-sources-in-ltspice-noise-simulations/

Simulate I2C cable comunication on LTSpice
Crosstalk Problems when Running I2C Signals in a Cable
http://axotron.se/blog/crosstalk-problems-when-running-i2c-signals-in-a-cable/#comment-19974

LTSPICE
Hotkeys
R: Place resistor
C: Place capacitor
L: Place inductor
D: Place diode
G: Place ground
F2: Component menu
F3: Draw wire
F4: Label net
F5: Delete (press F5 then click the component)
F6: Copy
F7: Move without wires
F8: Drag/move with wires
F9: Undo (shift + F9 to redo)
CTRL+R: Rotate (when component is selected)
CTRL+E: Mirror (when component is selected)
Note that CTRL+Z does not undo; rather, CTRL+Z and CTRL+B are used for zooming in and out, respectively. Pressing space is "zoom to fit"


Support Raspbian as Debian

:eyes: maybe this should be in CSH org...

Why is this even a fork? Are we actually using my fork of this? 😂


master won't compile

As of d70e68b  from earlier today
ADAM master won't compile for me
[ERROR] /home/jp/test_compile/v1/adam/adam-core/src/test/scala/org/bdgenomics/adam/rdd/ADAMContextSuite.scala:297: error: not found: value resourcePath
[ERROR]     val inputPath = resourcePath("HLA_DQB1_05_01_01_02.fa")
[ERROR]                     ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ADAM_2.10 .......................................... SUCCESS [  4.943 s]
[INFO] ADAM_2.10: Core .................................... FAILURE [ 37.906 s]
[INFO] ADAM_2.10: APIs for Java ........................... SKIPPED
[INFO] ADAM_2.10: CLI ..................................... SKIPPED
[INFO] ADAM_2.10: Assembly ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

As a control, the earlier commit b903cfd
does compile fine for me

Oh drat! Thanks for catching this @jpdna and thanks for the quick fix @ryan-williams. We merged a PR without retesting it after a previous PR merged. Good to be aware of this error model...

Funny, #1198 added a new call of a method (resourceFile) that was removed by #1142.
We didn't notice because GitHub/git just do a relatively simple lexical pass to determine whether two commits conflict, and this is a pretty reliable way to get that algorithm to generate false-negatives for conflicts, resulting in build breaks like this.
I sent the (trivial) fix in #1201.
 The longer term fix is to live in a world where programming tools exist that interpret commits at the AST level or higher, so that "remove resourcePath and reroute all calls to testFile" would be automatically inferred as conflicting with a commit that included new calls to resourcePath (or automatically resolved correctly), but alas, that's probably a few years out!

The longer term fix is to live in a world where programming tools exist that interpret commits at the AST level or higher, so that "remove resourcePath and reroute all calls to testFile" would be automatically inferred as conflicting with a commit that included new calls to resourcePath (or automatically resolved correctly), but alas, that's probably a few years out!

That would be pretty fantastic!


Possible to specify date format?

Is it possible to specify date format for date_publish when it is used as lib?
NewsPlease.from_url() returns a wrong date since it uses '%m %d %y' but some sites that I was trying to crawl returns in the format of  '%d %m %y' thus interchanging month's and date's values. Is there any way of specifying these while using the API?

you may need to adapt the code: news-please is using https://dateparser.readthedocs.io/en/latest/ which allows you to specify a date_formats list


Proposal: support GPU Utilization Metrics

What type of PR is this?
/kind feature

What this PR does / why we need it:
support GPU Utilization Metrics
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/kind feature

/lgtm


Provide more ways for middleware to interact with mail parts

Is your feature request related to a problem? Please describe.
For the OpenPGP middleware we are currently working on, we need more ways to interact with mail parts. For PGP/Inline for example, we can only support Plain text mails. Therefore we need a way to delete alternative body parts (like text/html).
This ticket does not yet provide what is all needed, so it will be used as collective issue for all enhancements that are going to be developed.
Describe the solution you'd like
We need ways to interact with/modify body parts.
Describe alternatives you've considered
No response
Additional context
No response

Closing this for now


how to pass items from Keychain between iOS project and watchOS extension app

i tried to use accessGroup but I have no idea why it's not working, maybe I did something wrong...could you explain how to share data from Keychain between iOS and watchOS targets pls?

+1, seeing this issue

Historically it was possible to share a keychain access group between your phone app and your watch extension because they both ran on the same device (the phone). This is no longer the case. Modern versions of watchOS run your watch extension on the watch, which is a different device from the phone app (the phone), and there’s no keychain access group sharing between devices.
One option here is to push your keychain items up to iCloud Keychain via the
kSecAttrSynchronizable

option.
If the user does not use iCloud Sync, this functionality is not available. In that case, consider using Watch Connectivity to send and receive data directly, for example.
See also:
https://damian.fyi/swift/2020/07/23/sharing-tokens-between-macos-ios-and-watchos-using-icloud-keychain.html
https://www.wwdcnotes.com/notes/wwdc21/10003/

Not using the SPM but actually importing the files inside the main app target made it possible to user shared keychain between the apps, i guess tehre is something with shared keychain and  SPM packages that makes this not possible


Allow flexible walker for unsupervised sampler using new base class RandomWalk

This introduces a new base class RandomWalk which is a more specific type compared to the existing GraphWalk class. A RandomWalk class is defined as having a run method which takes a list of node IDs and returns a list of random walks (list of list of node IDs). Currently these classes belong to this type:

UniformRandomWalk
BiasedRandomWalk
UniformRandomMetaPathWalk

It's useful to define this type, since these are all suitable for use with UnsupervisedSampler, and so we can introduce a new walker parameter to UnsupervisedSampler to allow for some flexibility instead of being hardcoded to use UniformRandomWalk.
Note: TemporalRandomWalk could theoretically belong in this family too with some adjustments - currently its run method does not take a list of nodes as input, so it might make sense for it to have two different run methods - one that follows the reference paper (i.e. takes "number of context windows", etc as parameters), and one that fits into our definition of a RandomWalk by making some assumptions (e.g. calculate the parameters based on set of nodes).
also Note: I did try to keep random refactoring to a minimum.. but I thought it was reasonable enough to update the error handling/messages for the classes that were brought into the new RandomWalk base class, instead of using the existing checks in GraphWalk.
See #919
Related https://github.com/stellargraph/stellargraph/pull/536#discussion_r400583830

We could consider looking at the repositories that use this (because I think there's quite a few) and see if they customise the parameters much to get a little bit of data about this.

Do you mean repositories in here...? https://github.com/stellargraph/stellargraph/network/dependents?dependent_type=REPOSITORY&package_id=UGFja2FnZS0xNjI2NTY5NDU%3D

It's fine by me for this to be follow up work too.

I've filed https://github.com/stellargraph/stellargraph/issues/1199

Do you mean repositories in here...? https://github.com/stellargraph/stellargraph/network/dependents?dependent_type=REPOSITORY&package_id=UGFja2FnZS0xNjI2NTY5NDU%3D

Yeah, but that's only 13 out of ~40. The spreadsheet that I'll link on slack is more complete.


Add dropPrivileges options for vault module

Motivation for this change
This would enable running vaul systemd unit as root if the option dropPrivileges is set to false.
running as vault would cause a lot of issue when deploying certificate using nixops.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

cc @rushmorem @LnL7

@PsyanticY Please ping me on the ticket or thread you make about this. I want to make sure this gets resolved for you!

@aanderse  Thanks for the followup. It is not that i don't have other way to fix it ( i can override the unit definition to ran as root, add the vault user to the keys group so it can access the keys under /run/keys, ...) i just thought this would be the best way. Thanks again :)


Add HTTPS to resolver.onename.com

TLS is available so let's not forget to update the code.

Also, I'd note that different resolver implementations are going to have different URL formats. One may be formatted like this:
https://resolver.onename.com/v2/users/{name}

Another may be formatted like this:
https://resolver.blockstack.org/v1/lookup?name={name}&timeout=2

Thus, I'd have the default resolver format be set to this:
https://resolver.onename.com/v2/users/{name}

Then you can just do a string replacement on {name}.
And any new resolver URL that a user puts in will have to have a valid domain and include {name} somewhere in the URL.

Also, one of my usernames has an underscore in it and it's not getting accepted.

What are all the valid characters for a Blockchain ID?

The short answer: alphanumerics and underscores.
The long answer:
The nearly universal standard for username characters is alphanumerics and underscores (Facebook decided to ignore this and allow dashes instead of underscores). The standard for domain names is alphanumerics and dashes.
Since the Blockstack server supports the registration of both usernames and domains, the superset of these sets is allowed (alphanumeric, underscores and dashes).
That said, with usernames / Blockchain IDs, only alphanumerics and underscores are allowed.

Also, right now the endpoint assumes that you're interested in the .id namespace. Very soon there are going to be other TLDs/namespaces. We'll keep the above endpoint live for backwards compatibility but will probably have another endpoint e.g., lookup, that lets you resolve names on any TLD. (keeping /users/ in the URL made sense when we were only concerned with users in the .id namespace).

:+1:

@cpacia can we leave this open until we

Until we... Until we?!

Hah I didn't realize i submitted that.


Error Retrieving GitHub API v4 Schema

I'm having issues retrieving GitHub's GraphQL schema using the following configuration:
{
  "schema": {
    "request": {
      "url": "https://api.github.com/graphql",
      "method": "GET",
      "postIntrospectionQuery": false,
      "options": {
        "headers": {
          "authorization": "bearer xxx"
        }
      }
    }
  },

  "endpoints" : [
    {
      "name": "GitHub v4",
      "url": "https://api.github.com/graphql",
      "options" : {
        "headers": {
          "authorization": "bearer xxx"
        }
      }
    }
  ]
}

Creating a .graphql allows me to perform queries just fine, but I get this error when trying to get the schema:
Error loading schema from 'https://api.github.com/graphql' Response {
  statusCode: 403,
  headers:
   { 'cache-control': 'no-cache',
     connection: 'close',
     'content-type': 'text/html' },
  body: <Buffer 52 65 71 75 65 73 74 20 66 6f 72 62 69 64 64 65 6e 20 62 79 20 61 64 6d 69 6e 69 73 74 72 61 74 69 76 65 20 72 75 6c 65 73 2e 20 50 6c 65 61 73 65 20 ... >,
  url: undefined } { url: 'https://api.github.com/graphql',
  method: 'GET',
  postIntrospectionQuery: false,
  options:
   { headers:
      { authorization: 'bearer xxx',
        'Content-Length': 0,
        'Accept-Encoding': 'gzip,deflate' } } }

Status code 403 is an authentication response, which leads me to believe that the request is not being sent with the right headers. The GitHub documentation says that all I need to do is sent a GET request to the GraphQL endpoint to get the schema. To get around the error above I curl the schema into a file:
curl -H "Authorization: bearer xxx" https://api.github.com/graphql > graphql.schema.json

Then I change graphql.config.json to use that file and that works beautifully:
{
  "schema": {
    "file": "graphql.schema.json",
  },
...
}

I might be doing things wrong, but there's no good way for me to debug and figure out where the request is going awry so that I can provide better debugging information.

same problem...

The 2.0 beta-1 release now works with the GitHub API. Installation instructions at https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/releases/tag/2.0.0-beta-1
Note the GitHub introspection result is not fully aligned with the GraphQL spec for default values, so follow the steps document in https://github.com/jimkyndemeyer/graphql-config-examples/tree/master/github-api-v4

Thank you!

Just got word from the GitHub dev team that they fixed the non-spec issues in their schema. I just introspected it using the plugin and it validates without errors 👍


✒Add environment field in jobs of workflow.

Try to fix this error: publish with OIDC.
It may caused by missing environment.


Using the master branch as a dependency and running the example is broken on M2.

Hello.
My machine is a MacBook Air M2.
I am on the latest Rust release (1.75.0).
This is my dependencies section in Cargo.toml
[dependencies]
harfbuzz_rs = { git = "https://github.com/harfbuzz/harfbuzz_rs.git" }

I am using the example code given in the crate. Regardless, this is my code:
use std::error::Error;
use harfbuzz_rs::*;

fn main() -> Result<(), Box<dyn Error>> {
    let path =
        "/Users/abdulrahmansibahi/Documents/rust/mimiron/mimiron/fonts/YanoneKaffeesatz-Medium.ttf";
    let index = 0; //< face index in the font file
    let face = Face::from_file(path, index)?;
    let font = Font::new(face);

    let buffer = UnicodeBuffer::new().add_str("Hello World!");
    let output = shape(&font, buffer, &[]);

    let positions = output.get_glyph_positions();
    let infos = output.get_glyph_infos();

    for (position, info) in positions.iter().zip(infos) {
        let gid = info.codepoint;
        let cluster = info.cluster;
        let x_advance = position.x_advance;
        let x_offset = position.x_offset;
        let y_offset = position.y_offset;

        println!(
            "gid: {:?}. cluster: {:?}. x_advance: {:?}, x_offset: {:?} y_offset: {:?}",
            gid, cluster, x_advance, x_offset, y_offset
        );
    }

    Ok(())
}

And this is the error I get :
error.txt
I asked in the Rust Community Discord server and it apparently works on other, non-Apple, systems. I haven't tried myself as I .. don't have other systems.
This same code works on the Crates.io version.
Edit: This is the last good commit that works for me : https://github.com/harfbuzz/harfbuzz_rs/commit/15d1c2a7b661c3a9f5f72132177f56ea19d2abdf , pre removing the harfbuzz_sys crate as a dependency.

Tried cloning the repo into my machine instead of linking from GitHub, and faced the same issue.
A bit of googling about the not found symbols, I found this Stack Overflow Answer, which seems related. but I don't know enough on how to solve it myself: https://stackoverflow.com/questions/18391487/compiling-with-glfw3-linker-errors-undefined-reference


CI: Check COVERITY_SCAN_TOKEN in coverity scan

This fixes the issue that has been fixed by 9.0.0937 in the different way (as I wrote in https://github.com/vim/vim/pull/11604#issuecomment-1326026151).
The patch 9.0.0937 may ignore actual errors also. I don't think it is a good way.

The patch 9.0.0937 may ignore actual errors also.

it is useless 'actual' error if it is in 'fork' repo, but it should be would not ignore error in main repo.
// but anyway, as the comment https://github.com/vim/vim/pull/11604#issuecomment-1326048294 said the really good way should be finding out if: ${{ !github.event.foo.bar.fork }} that var and ignore the cov process globally if that's a fork repo.
// but just so far i donot know what's that var, later maybe can refine that pr to that way or someone very knew ci var can tell what's the var is then early return the cov process if it is a forked repo.

The sound-dummy problem has been fixed, please sync to head to trigger the tests.


Unset CSS filters in IE for examples

Either override everywhere we're undoing gradients in the example CSS with filter: none as needed or use our own bg-gradient mixin that does not set an IE filter to begin with.

Agree; I'd probably go with the latter, if the gradients are similar enough. At least some, if not all, of these filters originate in BS (mixins.less).

Unset filters for now (46064cfdc39f6c2fd31efe68ea8fef17f29100fa); maybe we'll write our own bg-gradient at some point.


Development server

closes #50

Coverage remained the same at 100.0% when pulling dad4a39587649b0951d61c328351abb5f1b01ec2 on development-server into 0692a1661254ad39102ecd6f185be3a61d095d69 on master.

@sveroude fe

Coverage remained the same at 100.0% when pulling dad4a39587649b0951d61c328351abb5f1b01ec2 on development-server into 0692a1661254ad39102ecd6f185be3a61d095d69 on master.

Coverage remained the same at 100.0% when pulling a61e5ecc741062de8d210a5b3e9dd814db4ba8f0 on development-server into 0692a1661254ad39102ecd6f185be3a61d095d69 on master.


Clarify example bench command

Changes the example bench command in the pco CLI readme to include a codec with two options, so that it becomes apparent that options are separated by colons.
Links to BenchOpt for full documentation

oopsie


[UI][Android] Recording command never finishes

I'm unable to record a trace file using Perfetto UI. Tried with two different phones (Pixel and Pixel 4).
Steps:

Add a new ADB device
Select it
Enable "Scheduling details" under CPU
Press "Start recording"

Result: the command never finishes. "Stop" and "Pause" buttons are displayed along with the command line example.

What am I doing wrong?

Here are some errors I got in the JS console:

Also, running record_android_trace in the CLI works well:
./record_android_trace -o trace_file.perfetto-trace -t 10s -b 32mb \
sched freq idle am wm gfx view binder_driver hal dalvik camera input res memory

Try running adb kill-server before recording the trace from the UI.

When I tried today, the Perfetto UI just worked.

Try running adb kill-server before recording the trace from the UI.
I got a popup yesterday regarding this and I did kill the adb server. That didn't help yesterday. And today I cannot reproduce the issue,

I got the same issue again today.

adb kill-server doesn't help.

@octaviantu has been looking at adb recording a lot recently.

And the problem was fixed by disabling and reenabling "USB debugging" option in "Developer Options" on the tested phone. I had to authenticate the connected PC again.

Yes that will definitely mess with things - the UI needs exclusive access to the adb interface right now - see https://github.com/google/perfetto/issues/224 for work we're around relaxing this limitation.


Updated the timer cog outline string for the Tuya extension to a cons…

…tant

Proposed change

Improved the maintainability of the Tuya integration by changing the timer cog outline string to a constant.
Type of change

[ ] Dependency upgrade
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New integration (thank you!)
[ ] New feature (which adds functionality to an existing integration)
[ ] Deprecation (breaking change to happen in the future)
[ ] Breaking change (fix/feature causing existing functionality to break)
[x] Code quality improvements to existing code or addition of tests

Additional information

This PR fixes or closes issue: fixes #
This PR is related to issue:
Link to documentation pull request:

Checklist

[x] The code change is tested and works locally.
[x] Local tests pass. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[ ] I have followed the development checklist
[ ] I have followed the perfect PR recommendations
[x] The code has been formatted using Black (black --fast homeassistant tests)
[ ] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated for www.home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly.
Updated and included derived files by running: python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt.
Updated by running python3 -m script.gen_requirements_all.
[ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
[ ] Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

[ ] I have reviewed two other open pull requests in this repository.

Kishor Peneff Group 10:
2: The current solution requires one to update every instance of the string in case the icon is to be changed in the future. This adds unnecessary workload.
3: By updating the strings to a constant, the icon can easily be updated by replacing the value of the constant. This improves maintainability of the code as it simplifies the change.

looks good


Switch public genome processing to RASTtk

Set up new file space for keeping PATRIC data and run processing [Bob / Maulik]

Done.


flask-restplus error

Error: While importing "wsgi.wsgi_app", an ImportError was raised:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flask/cli.py", line 240, in locate_app
    __import__(module_name)
  File "/mnt/d/GitHub/jyotisha/wsgi/wsgi_app.py", line 18, in <module>
    from jyotisha.rest_api import run
  File "/mnt/d/GitHub/jyotisha/jyotisha/rest_api/run.py", line 9, in <module>
    from jyotisha.rest_api import api_v1
  File "/mnt/d/GitHub/jyotisha/jyotisha/rest_api/api_v1.py", line 3, in <module>
    import flask_restplus
  File "/usr/local/lib/python3.6/dist-packages/flask_restplus/__init__.py", line 4, in <module>
    from . import fields, reqparse, apidoc, inputs, cors
  File "/usr/local/lib/python3.6/dist-packages/flask_restplus/fields.py", line 17, in <module>
    from werkzeug import cached_property
ImportError: cannot import name 'cached_property'

Is there any easy fix for this @vvasuki ?

Is there any easy fix for this @vvasuki ?

Google search suggests https://github.com/noirbizarre/flask-restplus/issues/777#issuecomment-583374368


Problem creating graph from existing edge collections

Code:
networks = ["co", "mg", "ne", "no", "rj", "sul"]
edges = []
for network in networks:
edges_collection_name = network + "_edges"
node_collection_name = network + "_routers"
print
edges.append(EdgeDefinition(edges_collection_name, fromCollections=[node_collection_name], toCollections=[node_collection_name]))
class RSNac1(Graph) :
_edgeDefinitions = edges
_orphanedCollections = []
theGraph = db.createGraph("RSNac1", createCollections=True)
Output:
ValueError                                Traceback (most recent call last)
 in
16     _orphanedCollections = []
17
---> 18 theGraph = db.createGraph("RSNac1", createCollections=True)
/opt/anaconda3/lib/python3.8/site-packages/pyArango/database.py in createGraph(self, name, createCollections, isSmart, numberOfShards, smartGraphAttribute, replicationFactor, writeConcern)
159         for e in graphClass._edgeDefinitions:
160             if not COL.isEdgeCollection(e.edgesCollection):
--> 161                 raise ValueError("'%s' is not a defined Edge Collection" % e.edgesCollection)
162             _checkCollectionList(e.fromCollections)
163             _checkCollectionList(e.toCollections)
ValueError: 'co_edges' is not a defined Edge Collection
Data:
db.collections["co_edges"]
ArangoDB collection name: co_edges, id: 6814744, type: edge, status: loaded
What have I tried:
Used example to create collections and graphs. Collections and graphs use class templates. Works
Used the code above where the collection (edge and node) are already on the database. Not that error is a false negavite. The collection is an edge collection

Have you checked in the GUI that all edge definitions are the same as is in the python definition?
It seems that you are referencing an edge collection named "co_edges" that was not created before hand (i.e. not present in the database).
Also you cannot change definitions once the graph is created in ArangoDB.
If you add and edge collection to the code after the creation of the graph, that edge collection will not be added to the graph definition in ArangoDB.

Yes, I did. Unless the collections are created by the code, the COL.isCollection (or something like that fails) albeit the collection exists. Just so I could finish what I was working on, I simply removed the checks and it worked.
for e in graphClass._edgeDefinitions:
#if not COL.isEdgeCollection(e.edgesCollection):
#    raise ValueError("'%s' is not a defined Edge Collection" % e.edgesCollection)
#_checkCollectionList(e.fromCollections)
#_checkCollectionList(e.toCollections)
I know, I hacked it :)


fetching statistics

Companies:
a. Metrics
1. Total number of applications
2. Total number of jobs
3. total number of interviews
4. Total number of hired candidates
b. Graph
1. Fetching number of applicants of jobs posted by the particular company and interviews of each day in a specified date range (date range changes as per user input)
Admins
a. Metrics
1. Total number of registered users
2. Total number of registered companies
3. total number of applications
4. Total number of hired candidates
b. Graphs
1. Fetching number of applicants and interviews of each day in a specified date range (date range changes as per user input)
2. Number of companies registered of each day in a specified time range (date range changes as per user input)
3. Number of users registered of each day in a specified time range (date range changes as per user input)

Hello, @bmsteven as regards metrics, in the companies section, do we want interviews per job or the total number?

Per interviews per day, unless we wanna add more details on statistics

Request array datatype on graph data in this format,
[
    {
      date,
      value, // can be applicants, users as mentioned in the issue
    },
    {
      date,
      value,
    },
    {
      date,
      value,
    },
]


Exception in MsaAuthenticationProvider with "User.Read" scope

Can I use MsaAuthenticationProvider for receive token for both OneDrive and Microsoft Graph services ?
I need Microsoft Graph for reading information about current logged user (because OneDrive SDK hasn't such method). But, if I add scope "User.Read" to scope array, msaAuthProvider.AuthenticateUserAsync() will generate exception after user authentication.
string AppKey = "APP_ID";
string AppRedirect = "https://login.live.com/oauth20_desktop.srf";
string[] AppScopes = { "User.Read",  "offline_access", "onedrive.readwrite" };

var msaAuthProvider = new MsaAuthenticationProvider(AppKey, AppRedirect, AppScopes, new CredentialVault(AppKey));
await msaAuthProvider.AuthenticateUserAsync();  //!< produces Microsoft.Graph.ServiceException exception after authentication

var client = new OneDriveClient("https://api.onedrive.com/v1.0", msaAuthProvider);

Exception data:

Data	{System.Collections.ListDictionaryInternal}	System.Collections.IDictionary System.Collections.ListDictionaryInternal}
Error	{Code: generalException Message: Unexpected exception returned from the service. }	Microsoft.Graph.Error

Small addition. Such code (token for OneDrive) works fine.
var msaAuthProvider = new MsaAuthenticationProvider(AppKey, AppRedirect, new[] { "offline_access", "onedrive.readwrite" }, new CredentialVault(AppKey));
await msaAuthProvider.AuthenticateUserAsync();

Such code (token for access to User profile) works fine, too.
var msaAuthProvider = new MsaAuthenticationProvider(AppKey, AppRedirect, new[] { "User.Read" }, new CredentialVault(AppKey));
await msaAuthProvider.AuthenticateUserAsync();

But together it will generate exception. Why so?
var msaAuthProvider = new MsaAuthenticationProvider(AppKey, AppRedirect, new[] { "User.Read", "offline_access", "onedrive.readwrite" }, new CredentialVault(AppKey));
await msaAuthProvider.AuthenticateUserAsync();

hi @23W the MSA provider only works MSA OAuth which you can see it goes to login.live.com/oauth while unfortunately it won't work with Microsoft Graph Service which talks to Azure AD OAuth V2, I would suggest you use the MSAL library for talking with Microsoft Graph Service. Sorry for these confusing OAuth definitions, for detail you can see my answer here: https://github.com/OneDrive/onedrive-sdk-csharp/issues/216.


Improve GAN assignment

https://www.tensorflow.org/hub/tutorials/biggan_generation_with_tf_hub

Not needed any more.


Prediction of RMSE

How do I know that the value obtained from the RMSE(either from linear regression or Decision Tree or Random Forest etc.) is correct ( or the best)?
I know that a lower RMSE is better. I am also aware that a value too close to 0 might be a result of overfitting.
From the housing project in chapter 2, I do not follow why a RMSE of $ 68628 was underfitting, and the value of $ 52634 is [better.](url

)

Our RMSE of $68,628 clearly represents a model that won't produce accurate predictions. As Geron points out, the median_housing_values ranges between $120,000 and $265,000. He decides to use a more powerful model -- the RandomForestRegressor. The RandomForestRegressor model has a RMSE of $22,542, an improvement! However, the RandomForestRegressor is still overfitting, like the DecisionTreeRegressor, because its score on the training set is still much lower than on the validation sets.


Replace vue.extend with defineComponent in Rancher Components

Summary
closes #10104
This replaces the usage of Vue.extend with defineComponent throughout multiple components located under pkg/rancher-components. defineComponent provides better type inference, improved TypeScript support, and will be the recommended way to define components when Dashboard migrates to Vue 3.

Occurred changes and/or fixed issues

Replaced instances of Vue.extend with defineComponent for components located under pkg/rancher-components
Refactored code as necessary to maintain to take advantage of the better TypeScript support

Areas or cases that should be tested

This has a broad reach across dashboard. Ideally, we will want to test multiple cases where the following components have been altered:

BadgeState.vue
Banner.vue
Card.vue
Checkbox.vue
RadioButton.vue
RadioGroup.vue
TextAreaAutoGrow.vue
ToggleSwitch.vue
LabeledTooltip.vue
StringList.vue

@codyrancher I'm requesting a review from you because you previously reviewed #10226. I opted to make use of your suggested change^1 from our previous conversation. After doing some investigation, I found that this behavior is reproducible in new Vue 2/TypeScript applications using Vue test utils. It also looks like new Vue 2 projects using Vite exclude tests from the tsconfig in the same way. So, it seems that maybe this is indeed a problem that we can revisit after the Vue  3 migration 🙂


Automation to allow rancher2 provider TF cluster resources to be tested with Terratest + Go

Automation to allow rancher2 provider TF cluster resources to be tested with Terratest + Go:

refactored away from static .tfvars files to be dynamically created/destroyed with each test;
refactored away from config.go to supply configurations via yml

Issue:
Automate tests for terraform rancher2 provider clusters' for terraform releases
Problem
No automation exists for this
Solution
Created a framework w/ Go to allow testing automation of rancher2 provider cluster resources
Testing
All tests have been thoroughly tested during development.
GKE module has been implemented, however, when implementing future GKE tests, it will be necessary to observe behavior, and modify functions to account for GKE module. [e.g. waitForActiveCluster()]
Engineering Testing
Manual Testing
N/A
Automated Testing
Ran each test, ensuring expected behavior and accurate results
QA Testing Considerations
N/A
Regressions Considerations
None

To address https://github.com/rancher/qa-tasks/issues/386

w.r.t. can you add a readme at the root of the tests/terratest/tests/ folder describing what the config.yaml will look like when running the go tests?
Yes! I have updated internal documentation on this, but will add a README.md with these configurations defined as well!

Upon further review by the team, it has been decided to remove static, hardcoded components and set functions, to be replaced with one of the following:

hclwrite w/ terratest
corral - [to provide rancher2 provider terraform resources]

This PR became a conflicted mess and so i've closed this out.
New draft has been submitted for review, here:
https://github.com/rancher/rancher/pull/39945


Is there a way to get auto-generated ids also on ,  etc?

I looked through the options but didn't find anything.

What do you mean? By default, ids are added to all headings. Check the fiddle

Sorry, I guess I filed this too hastily. Looks like it's something else in my codebase stripping them.


Update empty archive error message for more instructions on how to solve the issue

Via https://github.com/artsy/emission-nebula/commit/705a32d610a94831e049ca218b5e94d0890ab28b cc @orta

@googlebot it's ok.


Affinity Designer Assets pack

Summary

What is the change?
Provides an asset pack for Affinity Designer based upon the existing Sketch UI assets.

Why should it go in Clarity?
Gives designers an additional design outlet

Does this change impact existing behaviors? If so how?
No impact

If this change introduces a new behavior, is this behavior accessible?
No new behavior

Use case
Design end user web pages using Affinity Designer
Examples
N/A
API
N/A
Implementation plan
Attached!
ClarityDesign.zip

Thanks for the assets for Affinity! We don't have the bandwidth or capability to maintain another library format at this stage, but we hope that you'll share this to anyone who has need.
Closing as we won't be able to adopt this, but thanks for the assets pack!


Citrus can't be build with latest ctrulib

You can't build citrus with latest ctrulib from smealum

Fixed.


Feature - Show PreInstall Notes on Install Modal

Collapse-o

Expand-y

after my last comment, I think this looks good!

👍

@mlunoe what do you think about this PR? I remember you had some comments before

Looks good and works great! :shipit:


Solution: simplify test setup and eliminate race condition

Fix #204
I ran master mix test 50 times in a loop and managed to reproduce the CI build error 4 times.
With this fix, I ran the loop again for 100 times and saw no failures.
Some notes regarding the current code structure:

Feels weird that the scheduler starts the supervisor, not the other way around
Runner and Executor probably can use some module docs, their names are so confusing
Data transformations (i.e. new job) could probably be separated from the code that belongs to running processes, hence you don't have to start up anything just to test configuration normalization
More separation could be used to isolate spawning processes, where some don't require the others in order to work

I intended to remove async: false from test/quantum_test.exs but found that there is too much correlation between Runner, Supervisor and Scheduler. Process naming isn't flexible enough to allow multiple instances of the same module to spawn at the same time. Client functions also be routed to a specific pid/name. Changing all those things would break the current API. I'm going to leave the code as is, maybe fight it on another day, 3.0?

@maennchen the first commit fixes it already, switching from setup to setup_all, since the processes aren't actually used in any interactive way. All the tests needed was the ability to fetch runtime configs.
This has the dependency chain: Scheduler.new_job -> Scheduler.config -> Supervisor.runtime_config which refers back to the Scheduler in the given otp app. This whole chain could be killed if we were to change the API and where things sit in, and jobs can load configs directly from the Application env with a Scheduler specified by the user.

Feels weird that the scheduler starts the supervisor, not the other way around

That's a common practice around libraries where you have to "Copy" an OTP Tree inside every App that uses the Lib. See ecto for example.
How would you change that?

Runner and Executor probably can use some module docs, their names are so confusing

@c-rack and I already talked about the namings. Do you habe a better suhhestion on how to name the modules?
I'd rsther not create a moduledoc for those two modules, becaise it is internal only and I want to be able to do changes without consodering it BC Breaks.
Normal comments shouöd be good though.

Data transformations (i.e. new job) could probably be separated from the code that belongs to running processes, hence you don't have to start up anything just to test configuration normalization

New Job specifically won't work without reading the config defaults.

More separation could be used to isolate spawning processes, where some don't require the others in order to work

I agree.

I'm going to leave the code as is, maybe fight it on another day, 3.0?

We haven't released v2 by now, we can still change things.
Can we move this whole discussion to #184 / into specific tickets?

New Job specifically won't work without reading the config defaults.

https://github.com/c-rack/quantum-elixir/pull/206#issuecomment-312186182
It's OK that it requires loading configs. It'd be better if this can be separated from having to spawn processes to do so.

We haven't released v2 by now, we can still change things.

I'm currently super busy. I wish I had more time so I could dive into this one, tear things apart and link them back together :)

Can we move this whole discussion to #184 / into specific tickets?

Sure thing!


Port gpload as s-c-t module

From @sabbyanandan on May 6, 2016 22:32
From @sabbyanandan on November 20, 2015 20:0
As a developer, I'd like to move gpload module from XD to s-c-t-m repo, so I can use it as task to build batch pipelines.
Acceptance:

gpload as task module (Spring Boot App) is available in spring-cloud-task-modules repo
maven coordinates include gpload with respective group/artifact/version

Copied from original issue: spring-cloud/spring-cloud-task-modules#7
Copied from original issue: spring-cloud/spring-cloud-task-app-starters#12

From @trisberg on March 11, 2016 22:14
Wonder if we should even do this one. The XD module depends on a binary install of  Greenplum utilities on the container that runs the job. Adds a lot of complexity, probably doesn't work on CF.


Update F12 developer tools article

Fixes issue #220 (and other minor problems with this article).

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/testing/debug-add-ins-using-f12-developer-tools-on-windows-10.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Bump HaskellNet version to <0.6

The current version conflicts (<IP_ADDRESS>) with the latest HaskellNet (0.5), although it compiles correctly with it.
(see fpco/stackage#960)

Thanks again @lemol!  Merged and uploaded to Hackage


Authenticating

Hello, could you send me the Authenticating images please? I can't understand the Trusted Intermediary User part without them. Thanks

Images back online, sorry.
https://github.com/ffilardi/AxaptaAPI/wiki/2-Setup

Thank you 🙏
Le dim. 2 juin 2019 à 13:44, Fabio Filardi<EMAIL_ADDRESS>a
écrit :

Closed #10 https://github.com/ffilardi/AxaptaAPI/issues/10.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ffilardi/AxaptaAPI/issues/10?email_source=notifications&email_token=AKOBCCJ4X34VSZPKEBVTL33PYOXAZA5CNFSM4HICID6KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGORYF7PCI#event-2383148937,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKOBCCIFVU2I75X42ZYOOJDPYOXAZANCNFSM4HICID6A
.

--
LANGAGNE Aurélien


Implement better password hashing

Follow this article https://www.scottbrady91.com/aspnet-identity/improving-the-aspnet-core-identity-password-hasher

Better Password Hashing
using bcrypt extension, we can make the password hashing better as given below:
const inputPassword = req.body.password
const salt = await bcrypt.genSalt(10)
let securedPassword = await bcrypt.hash(inputPassword, salt)

This leads to a high security of hidding the password by strong hashing of scrambled letters and numerics.
The genSalt is the cost of processing data whose default value is 10

Hi, thx to contribute.
The goll here is also to offer a way to choose the hash algorithm (Bcrypt, Argon2, Scrypt or PBKDF2). and to have a password migration.


⚠ Bofrost.lu has degraded performance

In 462d29c, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1276 ms

Resolved: Bofrost.lu performance has improved in 474b68c after 6 minutes.


.NET 4.5 projects pull in long list of .NET Standard assemblies as dependencies

Dependencies on NuGet for v4.0.0 list only NETStandard.Library (>= 1.6.1), whereas v3.0.1 also lists .NETFramework 4.5.
Is this an oversight or intended?

I have to use 4.6.2, not standard. Mediatr 4.0 will work fine with 4.6.2, so while I understand wanting to move away from 4.5, couldn't you bump to 4.6.2 or provide a package that doesn't bring in all the netstandard ones to a .Net 4.6.2 class library?

I thought it might be time to move away from targeting full .NET explicitly since .NET Standard already targets those frameworks. But maybe not. I'll push out a version today that targets net45

I pushed out a new release, 4.0.1 that adds the net45 target back.


HHH-12778 Register the cause when an exception occurs creating a proxy

https://hibernate.atlassian.net/browse/HHH-12778

To be backported to the 5.3 branch.

Merged!


Apple Notes: Internal links not matched to relevant note

Internal links (introduced in iOS 17) for Apple Notes importer appear as external links with the format
[Note name](applenotes:note/abc?ownerIdentifier=_xyz)
These should instead appear as
[[Note name]]

@mirnovov


Fix issue with subtraction

The Problem
When exponent representation of a double or float was used, gm:subtract fails
Solution description
Converting var2 from a string back to a double fixes this issue

does negate have the same issue? I checked it for the other thing I fixed and it was fine but this may also be an issue there

Unsure, but I can definitely check

It does not appear to do so, for some reason

Oh, I figured out why.
Subtract needed to use $(v2p)$(var2) in a tp, where as negate just uses it in a data modification.
It's the difference between
data modify storage gm:io out set value -1.234E-5
and
tp 91bb5-0-0-0-ffff 29999999 ~-1.234E-5 91665

First one is valid syntax, second is not

yea that was also the deal with the other case


fix closing connection on server shutdown

Hello, currently bunny incorrectly handling rabbitmq server shutdown.
Way to reproduce:

create async Bunny client instance and connect to rabbitmq server
stop rabbitmq application with rabbitmqctl stop_app

Expected result ClientException, that i can handle and call $client->disconnect().
Actual result ClientException, but when i try to call $client->disconnect() it produces new exception:
Broken pipe or closed connection.
#0 /home/tatikoma/PhpstormProjects/project/vendor/bunny/bunny/src/Bunny/Async/Client.php(297): Bunny\AbstractClient->read()
#1 /home/tatikoma/PhpstormProjects/project/vendor/amphp/react-adapter/src/ReactAdapter.php(44): Bunny\Async\Client->onDataAvailable()
#2 /home/tatikoma/PhpstormProjects/project/vendor/amphp/amp/lib/Loop/NativeDriver.php(183): Amp\ReactAdapter\ReactAdapter::Amp\ReactAdapter\{closure}()
#3 /home/tatikoma/PhpstormProjects/project/vendor/amphp/amp/lib/Loop/NativeDriver.php(96): Amp\Loop\NativeDriver->selectStreams()
#4 /home/tatikoma/PhpstormProjects/project/vendor/amphp/amp/lib/Loop/Driver.php(138): Amp\Loop\NativeDriver->dispatch()
#5 /home/tatikoma/PhpstormProjects/project/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick()
#6 /home/tatikoma/PhpstormProjects/project/vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run()
#7 /home/tatikoma/PhpstormProjects/project/src/project/project/Async/Server.php(166): Amp\Loop::run()
#8 /home/tatikoma/PhpstormProjects/project/bin/server.php(11): Project\Project\Async\Server->listen()
#9 {main}

This way client never run to state ClientStateEnum::NOT_CONNECTED and any attempts to close connection will produce new exceptions.
I using it with amphp with ReactAdapter, but i think it doesnt matter. This patch cant break something, so i guess it can be easily merged to upstream.
PS: $client->disconnect() is only place where "$this->eventLoop->removeReadStream($this->getStream());" is located. So i think that i should call this method when server closes connection.

I also added code to disconnect client from server, if server forced connection close. But i saved exception for backward compatability.
I working on cluster connection wrapper and this fix is important for me. I have multiple connections to rabbitmq in case of failures. If i dont close connection, then i dont know which client produced exception and cant handle. This way i just checking isConnected().

Way to reproduce:

create async Bunny client instance and connect to rabbitmq server
stop rabbitmq application with rabbitmqctl stop_app

Would be nice to add tests for this in a follow up PR

I working on cluster connection wrapper and this fix is important for me. I have multiple connections to rabbitmq in case of failures. If i dont close connection, then i dont know which client produced exception and cant handle. This way i just checking isConnected().

Are you making that into a package? Could be useful

Sorry, i'm not enough familiar with testing. Just checking my code plenty times.
Cluster wrapper is packaged, but i will ask my chief if i can publish it.

@Tatikoma no worries, will have a look soon. If you chief does let you publish it, please ping me here or open an issue. Alternatively, we can consider adding it to this package


branch like register fix, but with

Branch like register fix, but it's based on a newer version of main and experimental since I override some dj-rest-auth files that were not that easy to decipher. linked to issue #303

This branch allows users to be registered without being logged in + only admins can register them. The only thing I haven't been able to add is that is_active and is_admin get set properly.

I just noticed the pylint (no member) errors, I don't really know how to fix these as of yet.


Update v1.go

Use the right Media Type for JSON: "application/json" instead of "text/json" #165

Looks right to me👍 But I think MailHog isn't actively maintained anymore...

hi @tyndyll
can you merge this?


[v4] KeyboardDatePickers returning different time on keyboard input and touch click

KeyboardDatePickers is returning a different time when you do it via keyboard or with touch click.

[x ] The issue is present in the latest release.
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
Hours, minutes and seconds are different if I am typing the date with the keyboard or I am doing over touch with the symbol
Expected Behavior 🤔
Keyboard input and touch input should be the same. Hours, seconds to zero
Steps to Reproduce 🕹
Codesandbox example
Steps:

Type in a new Date with keyboard input
See in the console for the date. Seconds, hours have a time
Type in a new Date with the touch symbol, without keyboard, only with mouse
See in the console for the date. Seconds hours are now zero.

Your Environment 🌎
react 17.02
material-ui v4.11.4

Workaround:
         date.setHours(2);                                         date.setSeconds(0);                                         date.setMilliseconds(0);