The deeppavlov docker says in tutorials is unavailable

Hi, I'm beginer  of tf learner and have encountered a problem when I try to do according the tutorials.
Here is the tutorials page:
https://github.com/deepmipt/DeepPavlov/blob/master/examples/tutorials/00_deeppavlov_intro.ipynb
When I try to follow the tutorials and run docker pull altinsky/convai:deeppavlov, it tells me the docker is not found.
So I go to docker hub and only find one docker under this user altinsky, so I try to run that docker, but the result is disaccord with  the tutorials.
Who can help me how to go on?

Hi, Woolh! Recently we have finished with updating our Docker Hub repository. Now you are welcomed to explore DeepPavlov with Jupyter Docker image or interact prebuilt configs via REST API. All images will be updated along with further DeepPavlov releases.


Problem installing 8.3 on macOS Monterey on M1 Max

The end of the build log:
codesign --remove-signature "/Users/yrashk/.asdf/installs/racket/8.3/bin/racket"
strip "/Users/yrashk/.asdf/installs/racket/8.3/bin/racket"
codesign -s - --entitlements "./../../mac/entitlements.plist" "/Users/yrashk/.asdf/installs/racket/8.3/bin/racket"
cp ./../../start/starter-sh "/Users/yrashk/.asdf/installs/racket/8.3/lib/starter-sh"
cp starter "/Users/yrashk/.asdf/installs/racket/8.3/lib/starter"
cp: starter: No such file or directory
make[5]: *** [common-install] Error 1
make[4]: *** [macos-install] Error 2
make[3]: *** [plain-install] Error 2
make[2]: *** [install-cs-common] Error 2
make[1]: *** [install-racketcs] Error 2
make: *** [install] Error 2
/Users/yrashk/.asdf/plugins/racket/bin/install: line 48: /Users/yrashk/.asdf/installs/racket/8.3/bin/raco: No such file or directory
Installed Racket 8.3

And when I try to run racket:
$ racket
dyld[79810]: Library not loaded: @executable_path/Racket.framework/Versions/8.3_CS/Racket
  Referenced from: /Users/yrashk/.asdf/installs/racket/8.3/bin/racket
  Reason: tried: '/Users/yrashk/.asdf/installs/racket/8.3/bin/Racket.framework/Versions/8.3_CS/Racket' (no such file), '/Library/Frameworks/Racket.framework/Versions/8.3_CS/Racket' (no such file), '/System/Library/Frameworks/Racket.framework/Versions/8.3_CS/Racket' (no such file)
fish: Job 1, 'racket' terminated by signal SIGABRT (Abort)

Any thoughts on what might have gone wrong? Thank you!

same here.
Monterey/M1 pro

it’s the same for 8.2


RuntimeError: Given groups=1, expected weight to be at least 1 at dimension 0, but got weight of size [0, 4, 1, 1] instead. in UNet

I'm trying to train a UNet as shown in documentation, but I got an error relating to input shape?
Here is my code:
encoder = 'timm-resnest14d'
aux_params = {
'classes': 3,        # Example: 2 classes for binary segmentation
'pooling': 'max',    # Use average pooling
'dropout': 0.5,      # 50% dropout
'activation': 'identity'  # Softmax activation for multi-class output
}
self.model = smp.Unet(encoder_name=encoder,
encoder_depth=5,
decoder_use_batchnorm = False,
decoder_attention_type = 'scse',
decoder_channels = [4, 16, 32, 64, 128],
encoder_weights='imagenet',
in_channels=2,
classes = 3,
activation = 'identity',
aux_params = aux_params)
My error:
Traceback (most recent call last):
Traceback (most recent call last):
File "traininglightning.py", line 54, in
trainer.fit(model, train_loader, val_loader)
File "trainer.py", line 538, in fit
call._call_and_handle_interrupt(
File "call.py", line 47, in _call_and_handle_interrupt
return trainer_fn(*args, **kwargs)
File "trainer.py", line 574, in _fit_impl
self._run(model, ckpt_path=ckpt_path)
File "trainer.py", line 981, in _run
results = self._run_stage()
File "trainer.py", line 1023, in _run_stage
self._run_sanity_check()
File "trainer.py", line 1052, in _run_sanity_check
val_loop.run()
File "utilities.py", line 178, in _decorator
return loop_run(self, *args, **kwargs)
File "evaluation_loop.py", line 135, in run
self._evaluation_step(batch, batch_idx, dataloader_idx, dataloader_iter)
File "evaluation_loop.py", line 396, in _evaluation_step
output = call._call_strategy_hook(trainer, hook_name, *step_args)
File "call.py", line 319, in _call_strategy_hook
output = fn(*args, **kwargs)
File "strategy.py", line 411, in validation_step
return self.lightning_module.validation_step(*args, **kwargs)
File "traininglightningfunc.py", line 166, in validation_step
outputs, _ = self(images.float())
File "module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "traininglightningfunc.py", line 151, in forward
return self.model(x)
File "module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "model.py", line 39, in forward
decoder_output = self.decoder(*features)
File "module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "decoder.py", line 122, in forward
x = decoder_block(x, skip)
File "module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
...
RuntimeError: Given groups=1, expected weight to be at least 1 at dimension 0, but got weight of size [0, 4, 1, 1] instead.
I don't understand? my input is two-channel, 512 by 512

I reread the documentation .... decoder channel list must be ordered. My bad


Private Rolls are not recoloured/themed.

Private Rolls retain their default colour scheme. This has the compounding issue of making rolls when using a dark theme illegible as the white text cannot be read against the default light grey.
Pictured below (left) default view and (right) Cobalt theme.

EDIT: Possibly useful to note that when using Twilight UI and Lib Themer the issue occurs in reverse as Twilight UI defaults to a darker background which makes dark text illegible. This may also need to be resolved with another update to improve compatibility.
Pictured below Twilight UI and Lib Themer will the Core Foundry Theme and all settings enabled to enable recolouring.

Where were you a month ago when I needed people testing all of these UI things? LOL
But yeah, I am actually pretty new to foundry, like started using it in July new. So I probably missed a lot of UI colors so if you catch them, just let me know so I can keep track of them and update them as I go.

Fixed in v0.1.0b for Foundry v10.
Current beta found: https://github.com/mouse0270/lib-themer/releases/download/0.1.0b/module.json


Feat/mmapfs

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


Error in training acoustic model for my own wav files

While training my acoustic model with:
./scripts/submit.sh ${MerlinDir}/src/run_merlin.py conf/acoustic_${Voice}.conf
in run_merlin.sh, I encountered this error.
2017-06-22 14:15:52,141 INFO           main    : saved 425 vectors to /home/ubuntu/pynb/TFplay/merlin/egs/build_your_own_voice/s1/experiments/my_voice/acoustic_model/data/label_norm_HTS_425.dat
2017-06-22 14:15:52,141 INFO           main    : creating acoustic (output) features
2017-06-22 14:15:52,142 INFO      acoustic_comp: processing file    1 of  131 : /home/ubuntu/pynb/TFplay/merlin/egs/build_your_own_voice/s1/experiments/my_voice/acoustic_model/data/nn_mgc_lf0_vuv_bap_199/myvoice_0000.cmp
Traceback (most recent call last):
  File "/home/ubuntu/pynb/TFplay/merlin/src/run_merlin.py", line 1172, in <module>
    main_function(cfg)
  File "/home/ubuntu/pynb/TFplay/merlin/src/run_merlin.py", line 693, in main_function
    acoustic_worker.prepare_nn_data(in_file_list_dict, nn_cmp_file_list, cfg.in_dimension_dict, cfg.out_dimension_dict)
  File "/home/ubuntu/pynb/TFplay/merlin/src/frontend/acoustic_base.py", line 122, in prepare_nn_data
    self.prepare_data(in_file_list_dict, out_file_list, in_dimension_dict, out_dimension_dict)
  File "/home/ubuntu/pynb/TFplay/merlin/src/frontend/acoustic_composition.py", line 157, in prepare_data
    delta_features = self.compute_dynamic_matrix(features, self.delta_win, frame_number, in_feature_dim)
  File "/home/ubuntu/pynb/TFplay/merlin/src/frontend/acoustic_base.py", line 193, in compute_dynamic_matrix
    dynamic_matrix[:, dim:dim+1] = self.compute_dynamic_vector(data_matrix[:, dim], dynamic_win, frame_number)
  File "/home/ubuntu/pynb/TFplay/merlin/src/frontend/acoustic_base.py", line 178, in compute_dynamic_vector
    temp_vector[w, 0] = vector[0, 0]
IndexError: index 0 is out of bounds for axis 0 with size 0
Lock freed

Any ideas what may have caused this?

the order of acoustic parameters does not match the system. you mast make your mgc 60,bap 1,lf0 1,if you use WORLD. .......you are supportsd to try      merlin-master/misc/scripts/vocoder/world/extract_features_for_merlin.sh


Batch Normalization should squeeze mean/var/beta/gama tensors when calling tf.nn.fused_batch_norm

Summary
BatchNormalization layer, mean/var/beta/gama tensors may be broadcast.
input = Input(shape=(3, 1001, 1001), dtype='float32')
x = Conv2D(filters=64, kernel_size=(3, 3), strides=1, padding='same')(input)
x = BatchNormalization(axis=1)(x)

In the above example, as you set axis=1, the mean/var/beta/gama tensors would be reshaped as [1,64,1,1]. For TF backend, it will try to call the optimized tf.nn.fused_batch_norm if possible. But tf.nn.fused_batch_norm only accept mean/var/beta/gama as 1 dimension tensor, we need to squeeze them ahead.
Actually we have did same preprocessing for CNTK backend.
Note: This bug should only happened when TF-GPU as backend, since TF-CPU FusedBatchNorm doesn't support NCHW format, and it will fall back to the default tf.nn.batch_normalization.
Related Issues
https://github.com/keras-team/keras/issues/10648
PR Overview

[ ] This PR requires new unit tests [y/n] (make sure tests are included)
[ ] This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
[x] This PR is backwards compatible [y/n]
[ ] This PR changes the current API [y/n] (all API changes need to be approved by fchollet)

Is there a workaround for this?

@fchollet It's not necessary to add new unit test, actually the existing one already cover this case. As Travis CI does not run on GPU, so it passed. I have run pytest ./tests/keras/layers/normalization_test.py on a GPU node with TF-GPU installed, the master code doesn't pass(same error as mentioned in this PR), and passed after this fix. Thanks.


LDAP Plugin nested Group Membership

Hello,
is there a way to add AD-Users to local groups, when the group is nested in another group?
For example, we have User1, Group1 and Group2.
User1 is a member of Group1. Group2 only gets other groups as members. Now we want that if Group1 is a member of Group2, all members of Group1 should be added to the local Administrators group.
How can I realize this with pgina fork?

most likely
but you need to create a more complex ldap query
https://technet.microsoft.com/en-us/library/aa996205(v=exchg.65).aspx

Thanks for your reply.
I solved my problem with the following query:
(&(objectCategory=Person)(sAMAccountName=%u)(memberOf:1.2.840.1135<IP_ADDRESS>1:=cn=Group2,ou=TestOU,dc=example,dc=com))
With the matching rule object identifier "1.2.840.1135<IP_ADDRESS>1" the query will look up the ancestry of the object Group2 till it finds (or possibly not) the correct user.
Further information: https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx


Add files via upload

Faketest 1 account address: 4eTH7C1mmMUGH6BnMe5G1kWFZQyAdiA4YEtyjbmV9wLwKBVNXk
Identity Document Issuer: denmark
National ID number: N-1234
Country of natiolanlity: Denmark
Identity Document Type: Passport
Date of birth: 01 january, 1900
First Name: jame
Last Name: jimi
Sex: NA
Country of residence: Denmark
Tax Id number: T-1234
Identity Document number: 239846
ID Valid from: 31 december, 2020
ID Valid to: 1 january ,2021
Faketest 2 account address: 4E5A42aG2Wind8H91RxJHJHE4QgbT8UKV3ApNHBkEygDJ7Xdg3
Identity Document Issuer: denmark
National ID number: N-1234
Country of natiolanlity: Denmark
Identity Document Type: Passport
Date of birth: 01 january, 1900
First Name: Jubi
Last Name: jini
Sex: NA
Country of residence: Denmark
Tax Id number: T-1234
Identity Document number: 239846
ID Valid from: 31 december, 2020
ID Valid to: 1 january ,2021
Umidigia5 pro ; Android 9

confirmed:ID1
account1:4eTH7C1mmMUGH6BnMe5G1kWFZQyAdiA4YEtyjbmV9wLwKBVNXk
account2:4E5A42aG2Wind8H91RxJHJHE4QgbT8UKV3ApNHBkEygDJ7Xdg3

confirmed:ID2
account1:43LLtWvEUaSgLt4b4dgtH969vYhMG1gqfA8mnZUkYtK57yXL4f
account2:4Wo3PH6bDNwWq1J67ZAQ4pWx5fw7GL3FSss2U2nNtHKPw7e6VZ
PublicDataAttributes:Verified
DeviceMake&Model:Verified

confirmed:ID2
account1:43LLtWvEUaSgLt4b4dgtH969vYhMG1gqfA8mnZUkYtK57yXL4f
account2:4Wo3PH6bDNwWq1J67ZAQ4pWx5fw7GL3FSss2U2nNtHKPw7e6VZ
PublicDataAttributes:Verified
DeviceMake&Model:Verified

confirmed:ID4
AccountAddress:2xx7GPC2DBn5LgjNxgXsp3iZs9okKf7WrJEHvWvMbkgGCee2HZ
DeviceDetails:verified

confirmed:ID4
AccountAddress:2xx7GPC2DBn5LgjNxgXsp3iZs9okKf7WrJEHvWvMbkgGCee2HZ
DeviceDetails:verified

pending:T1
account:screenshot-TBC
devicedetails:screenshot-TBC
reason:We cannot fully verify this submission. Please assist us in typing out the account addresses for T1 in full as text in a comment on this PR. Thank you!
@vivalldi25

pending:T1
account:screenshot-TBC
devicedetails:screenshot-TBC
reason:We cannot fully verify this submission. Please assist us in typing out the account addresses for T1 in full as text in a comment on this PR. Thank you!
@vivalldi25

confirmed:B4
address:4HB6SFm4S1uxQHmcZsfrPXuc8bMokKpSFMr3Nqx9eR3nzfyWNN
baker:1044

confirmed:B4
address:4HB6SFm4S1uxQHmcZsfrPXuc8bMokKpSFMr3Nqx9eR3nzfyWNN
baker:1044

confirmed:T1
account1:4eTH7C1mmMUGH6BnMe5G1kWFZQyAdiA4YEtyjbmV9wLwKBVNXk
account2:4E5A42aG2Wind8H91RxJHJHE4QgbT8UKV3ApNHBkEygDJ7Xdg3
devicedetails:verified

confirmed:T1
account1:4eTH7C1mmMUGH6BnMe5G1kWFZQyAdiA4YEtyjbmV9wLwKBVNXk
account2:4E5A42aG2Wind8H91RxJHJHE4QgbT8UKV3ApNHBkEygDJ7Xdg3
devicedetails:verified

rejected:B5
address:3ZieTj3Nm8jzXHmFocf3H489m8LD9AmPTwVqevedtSVVfa3eis
reason: no 'update baker account' or 'update baker key' transactions found on-chain

Form Submitted" 18:03 UTC


47 dashboard page

Changes made:
Added dashboard page fetching product data on the server side.
Added mobile view to navbar.
Screenshots
Desktop view:

Mobile view:

Related Issue
Resolves #47

the styling does not match the design requirements in the Figma file , please fix them , plus the page should be functional don't display dummy data

The requested changes have been implemented. Dummy data now needs to be replaced by new server data.


Live Share session fails to connect when window.openFoldersInNewWindow: on

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

VS Code Version:1.67.1
OS Version: RHEL8.5 / Win10

Steps to Reproduce:

Set "windows.openFoldersInNewWindow": "on" in user settings
Attempt to join a Live Share session
Live share window opens, but workspace never loads
Close new Live Share window
Remove windows.openFoldersInNewWindow setting
Reload VSCode window
Attempt to join the same Live Share session
Session is joined successfully

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.
Happy Coding!


How to get the input json file  with the selected functions for IDA ACFG disasm?

Hi, I would like to know how to generate the input JSON file mentioned in IDA ACFG disasm：
Input: a JSON file with the selected functions (-j) and the name of a folder in output (-o).

Hi @Hwwg
for Dataset-1 you can check the last cell of this notebook: https://github.com/Cisco-Talos/binary_function_similarity/blob/main/DBs/Dataset-1/Dataset-1 creation.ipynb


Update project to use .NET 7

Updating project to use .NET 7 as older versions are no longer supported by training module sandbox environment.

@patridge Are you able to help with approving/merging this PR? I see you're a contributor on the repo, but not sure who owns it. This is intended to fix errors in the sandbox environment for the related training module.
Thanks so much for any help!

#sign-off


Ignore SIL Files in Swift Syntax Parser Validation

Validating these files creates a load of false positive error cases since the new Swift parser doesn't handle SIL. Disable validating these files.

@swift-ci smoke test


[SPARK-43140][SQL][TESTS] Override computeStats in DummyLeafNode

What changes were proposed in this pull request?
This PR makes DummyLeafNode override computeStats.
Why are the changes needed?
To avoid UnsupportedOperationException if we add a rule(for example: the following TestRule) use statistics even the rule after the Early Filter and Projection Push-Down.
object TestRule extends Rule[LogicalPlan] {
  def apply(plan: LogicalPlan): LogicalPlan = plan.transform {
    case f: Filter if f.stats.rowCount.nonEmpty =>
      f
  }
}

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual test.

cc @HyukjinKwon

Merged to master.


[libjxl] Modify the header files that libjxl needs to generate

Changes in this PR will be delayed


Fix zombie process when querying TE install path

This is a modification of the bugfix in https://github.com/NVIDIA/TransformerEngine/pull/120, with some small changes for safety and style.
Pinging @ngoyal2707. Closes https://github.com/NVIDIA/TransformerEngine/pull/120.

Thanks, I was on slightly older version of TE,
now we also need same fix here: https://github.com/NVIDIA/TransformerEngine/blob/main/transformer_engine/pytorch/transformer.py#L45

/te-ci

/te-ci

/te-ci

/te-ci


Create Bep3 BNB swap from Binance to Kava

Problem
Looks like there will be no easy way for users to create bep3 claim from Binance directly. If the users create bep3 swap from other wallets like Frontier and Cosmostation, they will not be using Ledger to do so. We better have our own solution for this.
Solution
We can create a user flow which the user input required information and a swap will be initiated. It works like a separate tool rather than using the Ledger directly.

Save Kava, Binance deputy accounts, Binance endpoint in the settings.json
After user login with Ledger, a BNB Swap button is shown
We get the address from the LocalStorage and this is the receive address on Kava
The user needs to input

address on Binance
seed phrase of the account

Warn the user that we nothing will be stored on our server
Send the request to Binance endpoint
Display the random number hash and swap id
Initiate the claim

Items 5 & 6 do present a solution, however we might expect the user submits a seed phrase whose account balance is low. Consider the Ledger user segment often has higher balances, so this solution only works for a subset of that segment.

@gr8scott06 as mentioned before, we have built this solution
https://github.com/forbole/big-dipper/blob/monika/kava-testnet/imports/ui/bep3/CreateSwapButton.jsx#L198
but seems not quite fit the whole ideology behind using Ledger on Big Dipper and we haven't deployed it.


How do I fill in the address for the HP Reverb G2 Omnicepts webcam?

https://docs.vrcft.io/docs/hardware/Project Babble/babble-omnicept
I was watching the VRCFaceTracking tutorial and noticed that OBS was having problems after creating the virtual camera. Not sure how to proceed to the next step.
The main thing is that the camera address is not known how to be filled in.

You have to set it to 0, or try different numbers (0, 1, 2, 3 etc) till the camera pulls up. Also! babble + omnicept isn't amazing atm! we are working on improving it (and here is the server link! https://discord.gg/8EHrxkH77G)

Thanks for the help.


Javascript and Native code are out of sync (version 2.4.2)

Hey Applovin, thanks for the module. I've been using it with good success for the better part of a few months and plan to bring it into production in coming days. Unfortunately I ran into a snag on ios when upgrading from 2.3.2 to 2.4.2 today though. I installed 2.4.2 and upgraded the pod and when rerunning some tests I'm getting consistent errors when running AppLovinMax.showRewardedAd. The trace is below:
AppLovinMAX.showRewardedAd was called with 1 arguments but expects 2 arguments. If you haven't changed this method yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.

-[RCTModuleMethod invokeWithBridge:module:arguments:]
    RCTModuleMethod.mm:549
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0

I nuked node modules and pods and made sure that the react-native package and the pod package were both referencing 2.4.2 but after resetting caches and trying on numerous devices I'm seeing the following error across the board

Hi, could you try AppLovinMAX.showRewardedAd( <Ad Unit ID>, null );?

@alexfigliolia - please ignore my previous comment, there will be more context here: https://github.com/AppLovin/AppLovin-MAX-React-Native/issues/48

@thomasmso thanks! This was helpful


GO_REL remove 'regulates_transcription_of'

We'd like to remove the relation 'regulates_transcription_of' from GO_REL. The relation can be replaced by 'has_input'.  The annotations review ticket is here: https://github.com/geneontology/go-annotation/issues/2598
BHF, SGD and WormBase have annotations using this extension.

Done in #18804 18758


add support for Big Sur

I have tested manually to create a virtualbox-based vm. and it works. The script does not accomodate for it.
May create PR to add it.

i modified the script for Big Sur
https://gist.github.com/addynaik/1ba5e1c4a4ddd962f71ada2fdaf97375


feat(functions): add traces

Just for fun and to get back into the grafana stack 😁

https://github.com/vercel/next.js/tree/canary/examples/with-opentelemetry
https://vercel.com/docs/concepts/observability/otel-overview/quickstart
https://grafana.com/orgs/startupnights
https://opentelemetry.io/docs/instrumentation/js/exporters/

For future reference, here is the code for debugging the exporter:
/*instrumentation.ts*/
import { diag, DiagConsoleLogger, DiagLogLevel } from '@opentelemetry/api';

// For troubleshooting, set the log level to DiagLogLevel.DEBUG
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);

// const sdk = new NodeSDK({...

Also important to note - tempo does only support grpc for now.

On a side note:

tina.io can be self hosted (or it's at least in progress)
the nextjs app can be self-hosted (question: what about the functions?)

Both would make it less expensive since the costs are currently mainly based on the allowed number of users. With the added benefit, that we could use Grafana Loki for the logs 😉


finalized block definition in VotingRoundImpl::update() seems to be wrong

The definition commented in the function doesn't match the definition of finalized in the spec:
     //finalized blocks are those which have both
     // 2/3  prevote and precommit weight.

Also has not been implemented in the next block, so maybe it should be corrected (blocks gets finalized with the number precommit regardless of number of prevote they have gathered).
(this is just the comment being wrong). This also questions why checking on finalization when new prevote is being processed. Though is not wrong but is weird to check finalization on receving every prevote.

IMO this is not weird to check on every prevote. Network could be laggy and some prevote messages could arrive during precommit stage as well. I will fix comments though


NotNullAttribute error in Unity

Hi,
after importing the dll from the Artifacts section in Unity, I am getting a lot of errors related to NotNullAttribute:
Library\PackageCache\com.unity.services.core@1.4.2\Runtime\Core.Internal\Components\Threading\IUnityThreadUtils.cs(4,39): error CS0433: The type 'NotNullAttribute' exists in both 'Flecs-cs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.CoreModule, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'

I realise this might be strictly Unity issue tho.

I don't use Unity so unfortunately I wouldn't know how to reproduce this to get a clear picture of the problem.
Does this have to do something with #nullable enabled?

@lithiumtoast In addition to NotNullAttribute, there are many Attributes that also conflict, such as PublicApiAttribute
These Attributes should be provided by JetBrains.Annotations.cs under Msbuild.Tools
Unity defines many Attributes with the same name in the UnityEngine namespace, and the conflict occurs when the dll compiled by flecs-cs is imported into unity
There are about 12 errors with attribute conflicts
Library\PackageCache\com.unity.timeline@1.6.4\Editor\Signals\SignalEventDrawer.cs(10,6): error CS0433: The type 'UsedImplicitlyAttribute' exists in both 'Flecs-cs, Version=<IP_ADDRESS>, Culture =neutral, PublicKeyToken=null' and 'UnityEngine.CoreModule, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'

I found out that Msbuild.Tools is deprecated, I'm not very familiar with c#, but is JetBrains.Annotations necessary? Can I delete it or rename the property?
By the way, the compilation process of flecs-cs is really smooth, and I can easily get the dll I want.
It's just that I doubt whether the dll supports unity, and unity only supports .NET Standard 2.1 and .NET 4.x
https://docs.unity3d.com/Manual/dotnetProfileSupport.html

Hello @UradaSources,
Thanks for the information.

is JetBrains.Annotations necessary?

No but then the used attributes would need to be removed at the usage sites in the code. The purpose of using these attributes is for Rider (and thus ReSharper) giving additional hints to the developer if something is weird/wrong/incorrect.

https://docs.unity3d.com/Manual/dotnetProfileSupport.html

Is there a C# compiler preprocessor variables for Unity? According to this page https://docs.unity3d.com/Manual/PlatformDependentCompilation.html there is. Something like UNITY_5_3_OR_NEWER?
Could then do conditional compilation based on this information; what do you think?

@lithiumtoast Thanks for your reply. Yes, the macros work fine, I did a simple test just now, no problem.
However, after resolving all conflicts, unity reports
Assets\Tmp\FlecsProgram.cs(38,21): error CS1705: Assembly 'Flecs-cs' with identity 'Flecs-cs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version =<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11 d50a3a'

The net runtime supported by unity is very old, like something from the 19th century
It seems unrealistic to ask a .net7 project to be upward compatible to .net4, anyway thanks for your help.
I'm not very familiar with .net, let alone .net in unity. I found some documentation if you're interested
This is an overview of .net in unity
https://docs.unity3d.com/Manual/overview-of-dot-net-in-unity.html
I don't know why unity calls it 'API Compatibility Level' instead of 'runtime'
https://docs.unity3d.com/Manual/dotnetProfileSupport.html
The latest version of unity supports .NET Standard 2.1 and .NET 4.x
This document describes the scripting backend for Unity to run C# code
https://docs.unity3d.com/Manual/Mono.html
According to some information I have, at first, unity was written in c++, but a mono was bound so that c# could be used as a script
In order to meet various needs, they forked a mono version to make changes, which is why the supported runtime is so old
The unity team promises to gradually migrate the core code to c# in the future, and the runtime supported by that time should become more and more modern

Thanks @UradaSources
I updated the code base with a new C# project targeting .NET Standard 2.1: Flecs.Unity. The .NET7 project has been renamed to Flecs.Core.
Can you check if the Flecs.Unity C# project would work for you?

Thanks @lithiumtoast I took some time to test
It seems that flecs-cs wants people to add flecs.Core or Flecs.Unity projects directly in the vs solution
This makes it easy to handle dependencies, but it seems impossible in unity
The vs solution generated by unity is not complete, you can only view the project reference
I can only use dll, which should be the most common way to use external libraries in unity projects
I got it
Flecs.Unity.dll
flecs.dll
and I managed to get 2 dependencies
C2CS.Runtime.dll
System.Runtime.CompilerServices.Unsafe.dll
Put them directly into the Unity project, and add a Unity asmdef file to allow unsafe code
This also generates a separate project for them in the VS solution
The dependencies of these dlls should have been satisfied, the C# runtime version has no errors, and unity will no longer report any errors at runtime
But when actually calling the API, the report
NotImplementedException: The method or operation is not implemented.
System.Globalization.CompareInfo.IndexOfCore (System.String source, System.String target, System.Int32 startIndex, System.Int32 count, System.Globalization.CompareOptions options, System.Int32* matchLengthPtr) (at <605bf8b31fcb444b85176da963 870aa7>:0)
System.Globalization.CompareInfo.IndexOf (System.String source, System.String value, System.Int32 startIndex, System.Int32 count, System.Globalization.CompareOptions options, System.Int32* matchLengthPtr) (at <605bf8b31fcb444b85176da96387 0aa7>:0)
System.String.ReplaceCore (System.String oldValue, System.String newValue, System.Globalization.CultureInfo culture, System.Globalization.CompareOptions options) (at <605bf8b31fcb444b85176da963870aa7>:0)
System.String.Replace (System.String oldValue, System.String newValue, System.StringComparison comparisonType) (at <605bf8b31fcb444b85176da963870aa7>:0)
Flecs.World.GetFlecsTypeName (System.Type type) (at <d9ff5331e70d4e02bad026dfeac47078>:0)
Flecs.World.RegisterComponent[TComponent] (System.Nullable`1[T] hooks) (at <d9ff5331e70d4e02bad026dfeac47078>:0)
Test.Awake() (at Assets/Test.cs:62)

And vs issued some warnings, it seems to be related to stylecop.analyzers.unstable, I ignored it
When generating Flecs.Unity, some files generated by msbuild, such as the assembly attribute in Flecs.Unity.AssemblyInfo.cs, will report an error
After commenting them out there is no problem
I also noticed that Flecs.Unity generates some cs files besides dll files, what are they for?

I didn't know that it's not possible to add a C# project reference to the solution in Unity like it's possible in .NET Core. The documentation could be updated with the correct steps but I don't know what those are specifically. Perhaps someone else can update the README.md with instructions for Unity?

I also noticed that Flecs.Unity generates some cs files besides dll files, what are they for?
There is pre-generated files in the /Generated folder. Is that what you mean?

Thank you for your patience, getting flecs to unity seems to take more effort than expected
In addition to Generated/, there are also some cs files in bin/, like World.cs, I am not sure if they are necessary, I also noticed that they use C#10
namespace xxx;

The latest unity only supports c#9, but this should be easy to fix
After a quick search, I found some documentation
About the dll plugin
https://docs.unity3d.com/Manual/UsingDLL.html
https://docs.unity3d.com/Manual/NativePlugins.html
And some notes on the project assembly
https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html#reference-another-assembly
I'll check later, I just woke up now
and thanks again for your patience, my english is poor, these texts are translated by google translate

I conducted further tests, I created a standard .Net 6 console project, added the Flecs.Unity project to the solution, and added a project reference, everything was fine, and the modified HelloWorld code worked fine , printed the correct output. This should be how Flecs-cs expects people to use it
Then I reset the project to use my compiled dll instead,
C2CS.Runtime.dll
flecs.dll
Flecs.Unity.dll
System.Runtime.CompilerServices.Unsafe.dll
Everything works fine (except I need to copy the unmanaged flecs.dll to the bin folder)
In short, there is no problem with the project and dll itself, it should be some weird mechanism of unity that caused the problem
It is worth noting that NotImplementedException is thrown when calling world.RegisterComponent, and the constructor successfully creates a world object
//Create the world
var world = new World(new string[0]);
world. RegisterComponent<Position>();

The latest unity only supports c#9

Hmm. Okay, that's good to know. I would need to make some adjustments to how code is generated by default so the changes are not applied manually; that being just the namespace with curly braces.
The additional links especially this one https://docs.unity3d.com/Manual/UsingDLL.html and the section about "Debugging a DLL in Unity" would be quite topical. I'll see about downloading Unity sometime this weekend and trying it out myself.
Looking more at the stack trace posted earlier, the code that causes the exception: https://github.com/flecs-hub/flecs-cs/blob/be2d03040ca6eeee37a68eb9717919d89b756fbe/src/cs/production/Flecs.Core/World.cs#L194. My guess is that string.Replace is not supported with 3 parameters where the 3rd parameter is the CultureInfo object instance. It would probably be worth trying to see if changing that code to just the simpler 2 parameters version would fix it.

oh! At first I thought that C2CS would use some kind of magic to call the functions in the dll. Due to a certain limitation of unity, the function signature exported in the dll could not find the implementation, so the NotImplementedException was thrown. Now it seems not so terrible, Monday I'll test some other functions. Regarding c#10, I think since only the exported dll will be used, maybe there is no need to change it to c#9?

I see, flecs_hub.flecs
not magic, just a 9000 line long DllImport file
c2cs is an amazing tool
but will DllImport seriously degrade performance?

@lithiumtoast
Great! I manually modified the Replace call and recompiled, and now it works

@UradaSources Thanks! I updated the README.md and the code with fixes for all problems mentioned so far.

Regarding c#10, I think since only the exported dll will be used, maybe there is no need to change it to c#9?

I changed it anyways so it uses the non-scoped file namespace for Unity generated files.

but will DllImport seriously degrade performance?

There is a very small overhead regarding calling into the C native library from C#; some folks on the Discord text channel have calculated it out to be in the nanoseconds.

@lithiumtoast Later I may add a more detailed description of "how to use flecs-cs in unity". And I'm still thinking about how to do ecs-style programming in unity, such as how to interact with unity components

I tried to write some code and found that Flecs.World lacks functions like ecs_lookup, is this Flecs.world autogenerated? Or is it a manually written wrapper? and I think this issue is completely off topic, I will study how to join the discord of flecs

Flecs.world autogenerated?

The high-level wrappers over top the bindings are not auto-generated; it's only the bindings right now that are generated.
Closing this out as using Unity is solved.


refactor(sqlite): add possible failure handling around sqlite multith…

Fixes possible sporadic/rare multithreading issues around sqlite db.
Proposed Changes

Set Sqlite config to use serialized mode.
Open DB connection using full mutex/serialized mode.
Adds try/catch around method implementation

Can one of the admins verify this patch?

test this please

test this please


Feature/sub collection experiment

Variant of https://github.com/digitalliving/firedantic/pull/30

Resolves #27
@joakimnordling @fbjorn Anything else before merge?


📝 doc: add doc for SSO

Motivation
We need a document for SSO on iOS.
JIRA: [https://issues.jboss.org/browse/AEROGEAR-2129]
Description
Add a documentation for SSO on iOS
Progress

[x] Add doc

@rachael-oregan @TommyJ1994 mind reviewing this?

@TommyJ1994 @rachael-oregan FYI, I did a few more tests and I believe the "Remember Me" step is actually required to get SSO working on iOS.
I created 2 apps, and tried SSO with both "Remember Me" on & off. When "Remember Me" is off, I always have to re-login again in another app. But if it is enabled, I don't need to.


Crash after typing "sp"

Issue Description
[ Flow Launcher crashed ]
Functionality Affected
Please mark the functionality of the plugin that is affected by the issue:

[ ] Controlling the local Spotify client (changing track, pausing, skipping, muting)
[x] Searching Spotify for albums, artists or songs

Software Versions
Please fill in the following information:

Spotify client version (Help > About Spotify): Spotify for Windows <IP_ADDRESS>3.g4f94bf0d
Flow Launcher version (Flow Settings > About): 1.14.0

Please also make sure you're running the latest version of Flow.Launcher.Plugin.SpotifyPremium
Exception:
SpotifyPremium Exception:
Websites: https://github.com/fow5040/Flow.Launcher.Plugin.SpotifyPremium
Author: Frank W. (@fow5040)
Version: 1.1.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Service unavailable
---> SpotifyAPI.Web.APIException: Service unavailable
at SpotifyAPI.Web.Http.APIConnector.ProcessErrors(IResponse response)
at SpotifyAPI.Web.Http.APIConnector.DoRequest(IRequest request)
at SpotifyAPI.Web.Http.APIConnector.DoSerializedRequest[T](IRequest request)
at SpotifyAPI.Web.Http.APIConnector.SendAPIRequest[T](Uri uri, HttpMethod method, IDictionary2 parameters, Object body, IDictionary2 headers)
at Flow.Launcher.Plugin.SpotifyPremium.SpotifyPluginClient.CheckTokenValidityAsync() in C:\Users\fpwal\Repos\Flow.Launcher.Plugin.SpotifyPremium\SpotifyPluginClient.cs:line 110
at Flow.Launcher.Plugin.SpotifyPremium.SpotifyPlugin.QueryAsync(Query query, CancellationToken token) in C:\Users\fpwal\Repos\Flow.Launcher.Plugin.SpotifyPremium\SpotifyPlugin.cs:line 104
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 839
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 840
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2023-04-05.txt

I'll see what I can do about catching these Exceptions correctly so they don't crash the plugin


generic reedline menus

Changes the completion and history menu to become generic templates that can be used with different sources. These templates can be used in nushell and they could be fed using a nushell block

I predict this will be fun to play with. :)


Send email on successful repair request

Basic Information
Send confirmation email to client when a repair request is created. The template is already created in src/email/emails.
Additionally, to avoid spam during testing, make this feature togglable. Consider adding a metadata attribute to the clerk user like disableEmailConfirmations or add some environment variable
Other Information
We are using AWS SES to send emails with React Email. Let me know if you have any issues with the access key.

Initial thoughts:

When and how to trigger the sending action.
Avoid sending duplicate emails; perhaps, recording the sending status is necessary.
How to trace what was actually sent to clients after the sending action.
If the sending action failed, should we make up for it? How many times should we retry?
What if a client requests a resend?
What if the template changes?

In the POST of /api/repair-request
We could store the created email contents in the database, but I think this can be left to a separate issue
Same thing here, logging isn't a huge concern for MVP
Not sure about this, we'll have to do some research on what AWS SES can give us. Otherwise, if the email isn't received, we can add a button on the client's repair requests page to resend the email
Leave it to a separate email
Given we only have one template right now, I don't think it's justified to store the email template in a database so we don't have to redeploy every time the template changes.

What have done:

adding aws ses document in email readme;
adding ses service in /service/sendEmail.ts;
adding sending email after create repaire-request in .../repair-request/index.ts.

Todo:

adding sending switch;
handling sending error;
testing.

Email sent successfully.
Todo:

Fix the email template; the HTML content for the email doesn't work currently.
Add a unit test for creating requests, including sending emails.
Implement SES mock in the test environment.

Template Email sent successfully.
Todo:

Implement SES mock in the test environment.

Mock Email:

Real Email:

Completed in #193


Add reference to Ulauncher port

I created a port of the theme for Ulauncher. An application launcher for Linux.
I thought it would be nice to reference it here for other people to discover more easily.

Thanks!


Some questions with NYU datatset

Thanks for your sharing.
I have changed your msra_hand.py to nyu_hand.py fitting NYU dataset and keep all other parts of your code unchanged. However, the result of NYU dataset is bad. The all mean error is 180mm after training. (epoch=14, batch_size=64, nGpus=4, optimizer =Adam, cubicSize=250, keep orignal_size and crop_size the same as yours.
While the results on NYU is about 13mm or less after epoch ensemble with nGPU=1 and batchSz=16.
Here is my question. Why with the increase of batch size the results becoming worse?
Is there any way to solve such a problem?
Thanks again!

Hi, Limoran18,
I faced same situation when I train MSRA hand dataset and my own smaller dataset(not about hand) with this PyTorch implementation. I see that the author set batchSize=1 in his code. I wonder if he trained his models with the very small batchSize. I added an issue on his repo.
For your question, I think it's still an open question about how to set batchSize. Larger batchSize or common settings(e.g. 32, 64) may not perform that good on some models or datasets. And I noticed that some researches also show that the models trained with smaller batchSize can be more roubust and generalized.
So, for your current model and dataset(and if they are correct), you can fine tune the hyper-parameter, or, experiment some related techniques about batchSize, e.g. GroupNorm, but I'm not sure if those help.

The author sets batchSize=8.

Thanks very much for your detailed explanation!


Two common viewpoints added

Viewpoints
Common-Terms-And-Abbreviations-Viewpoint.md
Common-Standards-Definition-Viewpoint.md
added.

Thanks for the contribution.
We have changed the location and naming of viewpoint examples:

Location : https://github.com/GfSE/SAF-Specification/tree/main/vp-examples
Naming: "<vp name with spaces replaced by dashes>-example <numbering>.svg"

Numbering is nothing for the first example, -1 for the second example and so on.
See existing files.


[See You In Hell] Layout and page poster update

Changes / Comments
[See You In Hell]
Minor fixes for layout and update with new poster picture, all things tested in Roll20 sheet sandbox
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[x] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


Ledger signtx NOOP is not an error?

https://hwi.readthedocs.io/en/latest/examples/bitcoin-core-usage.html
Followed the directions to signtx a PSBT. Ledger Nano X displayed the output, amount, and fees. No error message appeared on the Ledger screen or HWI stdout/stderr and return code is 0. After confirmation the PSBT output from the Ledger is identical to the input.
How? Accidentally use the wrong Ledger and HWI does not recognize any error had happened. Wouldn't getting the same output as your input PSBT be unexpected behavior where HWI should display a warning at least?
Tested both 1.1.2 and 2.0.0rc2.

do we have a standard error we use for this?

I think only ColdCard throws an error(internally).
            # Second may have nothing to sign (1 input case)
            # and also may throw an error(e.g., ColdCard)

from tests.
We should sync it for follow-on release.

Most device implementations behave the same when there's nothing to sign. Since this is not a regression, I think we can fix this for a future release.

actually this seems like a duplicate of https://github.com/bitcoin-core/HWI/issues/201


BUG: Launching embedding or reranking models from commandline fails due to PEFT issue

Describe the bug
I am testing Xinference==0.10.2.post1 (before running 0.10.1) but launching Embedding or Reranking models through command line files now due to an update to the peft_model_config object. This does not happen when launching the models through the UI so I assume the error is, that through the UI the peft_model_config is correctly defaulted to None whereas in the cmd setting it is defaulting to a dict with three keys but empty values cmdline.py:739.
Error message is the following:
Launch model name: bge-reranker-large with kwargs: {}
2024-04-19 12:02:39,812 xinference.api.restful_api 9 ERROR    [address=<IP_ADDRESS>:28062, pid=187] PEFT adaptors cannot be applied to embedding or rerank models.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/xinference/api/restful_api.py", line 731, in launch_model
    model_uid = await (await self._get_supervisor_ref()).launch_builtin_model(
  File "/opt/conda/lib/python3.10/site-packages/xoscar/backends/context.py", line 227, in send
    return self._process_result_message(result)
  File "/opt/conda/lib/python3.10/site-packages/xoscar/backends/context.py", line 102, in _process_result_message
    raise message.as_instanceof_cause()
  File "/opt/conda/lib/python3.10/site-packages/xoscar/backends/pool.py", line 659, in send
    result = await self._run_coro(message.message_id, coro)
  File "/opt/conda/lib/python3.10/site-packages/xoscar/backends/pool.py", line 370, in _run_coro
    return await coro
  File "/opt/conda/lib/python3.10/site-packages/xoscar/api.py", line 384, in __on_receive__
    return await super().__on_receive__(message)  # type: ignore
  File "xoscar/core.pyx", line 558, in __on_receive__
    raise ex
  File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.__on_receive__
    async with self._lock:
  File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.__on_receive__
    with debug_async_timeout('actor_lock_timeout',
  File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.__on_receive__
    result = await result
  File "/opt/conda/lib/python3.10/site-packages/xinference/core/supervisor.py", line 850, in launch_builtin_model
    await _launch_model()
  File "/opt/conda/lib/python3.10/site-packages/xinference/core/supervisor.py", line 814, in _launch_model
    await _launch_one_model(rep_model_uid)
  File "/opt/conda/lib/python3.10/site-packages/xinference/core/supervisor.py", line 796, in _launch_one_model
    await worker_ref.launch_builtin_model(
  File "xoscar/core.pyx", line 284, in __pyx_actor_method_wrapper
    async with lock:
  File "xoscar/core.pyx", line 287, in xoscar.core.__pyx_actor_method_wrapper
    result = await result
  File "/opt/conda/lib/python3.10/site-packages/xinference/core/utils.py", line 45, in wrapped
    ret = await func(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/xinference/core/worker.py", line 650, in launch_builtin_model
    raise ValueError(
ValueError: [address=<IP_ADDRESS>:28062, pid=187] PEFT adaptors cannot be applied to embedding or rerank models.
Traceback (most recent call last):
  File "/opt/conda/bin/xinference", line 8, in <module>
    sys.exit(cli())
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/xinference/deploy/cmdline.py", line 761, in model_launch
    model_uid = client.launch_model(
  File "/opt/conda/lib/python3.10/site-packages/xinference/client/restful/restful_client.py", line 892, in launch_model
    raise RuntimeError(
RuntimeError: Failed to launch model, detail: [address=<IP_ADDRESS>:28062, pid=187] PEFT adaptors cannot be applied to embedding or rerank models.

Would you like to create an PR to address this issue?

take


fix: sign windows exe

Reference: https://github.com/decentraland/launcher/pull/65
This PR fixes the issue we currently have where the Windows .exe file is being signed after the artifacts are published, so they are not being part of the GitHub release and auto-updater.
The issue with electron-builder is that it cannot generate the artifacts and publish them later, the process cannot be 'paused' in the middle, so we can't run the eSigner GitHub Action to sign it in between.
The electron-builder configuration provides an escape hatch to sign the executables in a custom way before publishing them, so what I did is the following:

Moved the config from the package.json into an electron-builder.cjs file so we can define the custom win.sign function.
Checked out the SSLcom/esigner-codesign repo in an earlier step into the root.
Within the win.sign function I execute a sync child process that runs the GitHub Action's script using node.
Removed the steps that signs the windows .exe afterwards.

The eSigner GitHub Action is not intended to be used programatically, so I had to do some ugly wiring for it to pick up the configuration (pass some values into the process.env) but it works, and it takes care of downloading Java, the CodeSignTool, and perform the signing just fine.

Could we also bump version of the launcher, so we can get a new release when merged?


HostedZone might be different from the domain name.

Hi,
https://github.com/seeebiii/ses-verify-identities/blob/main/src/verify-ses-domain.ts#L109-L113 this contains a bug.
HostedZone might be different from the domain name.
Let's assume we have a hosed zone named with (example.com), it's highly possible that user may use (aws.example.com) to send out mail.
this package: https://github.com/mooyoul/aws-cdk-ses-domain-identity/blob/master/src/dns-validated-domain-identity.ts#L16-L28 use two separate parameter to make it slightly more configurable.
KL

@mthenw Sure! I don't have enough time right now to do this but if anyone wants to implement a solution, feel free and I'll merge it :)

PR created on https://github.com/seeebiii/ses-verify-identities/pull/195, feel free to comment.


[Issue] Typing "-" in offset box shrinks subtitles

Typing "-" in offset the subtitles should make the offset a negative number. My solution right now is to hit the decrement arrow to get to my desired offset but it would be much easier if "-" in the offset box just made the number negative

Huh, I thought this was fixed in https://github.com/animebook/animebook.github.io/commit/d1dc77903385b3e969e0393a8fc24c76d9d704d7 a few days ago, and typing "-" works for me now. Maybe the bugged version of the site is still cached for you? (which would be weird since Github should be invalidating any caching on update)

Yeah I just had to refresh the page and that solved the issue. Thanks!


Banner titles

New/Edited features

Command to add a title to a note
Command to remove the title
Edit title by clicking on it
Embed support
Slower dragging of the banner image
Below and next to icon placement support

Bug fixes
Now the icon/title has almost the same height in reading and source mode
Old
https://user-images.githubusercontent.com/70213368/210142632-095cb27a-3911-44f8-beeb-c02d0c5f4a40.mp4
New
https://user-images.githubusercontent.com/70213368/210142862-eec09a2b-0b1f-4ad1-ae88-439173f55251.mp4
Banner dragging bug
Old
https://user-images.githubusercontent.com/70213368/210148435-f17c0a1a-fdc2-45ee-b238-ea63d7a77287.mp4
New
https://user-images.githubusercontent.com/70213368/210148539-fd2a573b-acda-4d0b-a6c4-135972aae71c.mp4

👍 Would love to see this get merged.

Yo Bro, I don't think that the owner of this plugin still develop it.
Maybe publish your own community plugin of this version.
We need someone who actively commits and updates.

i disagree with not having a proper dist folder for pumping out to distribution. is this obsidian requirement to pump out artifacts into root?

Closing this PR due to the complete 2.0 rewrite. Pardon me that I didn't get the chance to review and see if this can be merged before, but as I did the rewrite, I took into consideration your banner title implementation for the "headers" part of v2, so thank you very much for your contribution to add those headers into Banners


global rate limit: supported ratelimits  in the typed per filter config

Commit Message: global rate limit: support per descriptor custom hits addend
Additional Description:

implemented the rate_limits in the RateLimitPerRoute. Now, we can configure the global rate limit filter in the type_per_filter_config of route.
added the per descriptor custom hits addend support (only for rate_limits in the RateLimitPerRoute for now).

Risk Level: low.
Testing: unit.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

/wait https://github.com/envoyproxy/envoy/pull/37567 to be landed first.

/wait #37548

This PR implemented the rate_limits in the RateLimitPerRoute that added by @tyxia

Addressed offlinely, the API change is fine for @tyxia

/retest


Filter specification: an alternative to binarize

abstract type BinarizationAlgorithm end
struct Otsu <: BinarizationAlgorithm end

The current design is

(Design A)

binarize(algo::Otsu, img) = println("binarize img with Otsu")

The usage is
julia> algo = Otsu()
julia> binarize(algo, img)
binarize img with Otsu

Actually, there's an alternative design, which is commonly used in Flux.jl AFAIK

(Design B)

(binarizer::Otsu)(img) = println("binarize img with Otsu")

The usage is:
julia> binarizer = Otsu()
julia> binarizer(img)
binarize img with Otsu

In design A, two different algorithms are connected in two ways: BinarizationAlgorithm and binarize. In design B, they're only connected by BinarizationAlgorithm.
According to the naming guide https://github.com/JuliaImages/Images.jl/issues/767,  we should use binarize

for functions that compute something or perform an operation, start with a verb (e.g., warp)

But I guess there would be some cases Design B is more natural.
Any ideas?

I like that a lot!

I will work on refactoring the code incorporating all the suggestions from this and related issues.

The idea behind design B is that we treat Otsu() as a filter instead of an algorithm, and since a filter filters some signal, it doesn't necessarily need to be a verb
More generally, we can support both of the following two specifications -- I can't see a reason to support one and deprecate another one.

Filter specification

abstract type Filter end
abstract type Binarizer <: Filter end
struct Otsu <: Binarizer end

function (filter::Otsu)(img)
...
end

functional specification

abstract type Algorithm end
abstract type BinarizationAlgorithm end
struct Otsu <: BinarizationAlgorithm end

function binarize(algo::Otsu, img)
...
end

Based on current codebase, it would be quite trivial to support the other
(filter::Otsu)(img) = binarize(filter, img)

But a more natural way to write code, IMO, is
# ImageBinarization.jl
abstract type Filter end
abstract type Binarizer <: Filter end
binarize(filter::Binarizer, img) = filter(img)

# otsu.jl
struct Otsu <: Binarizer end
function (filter::Otsu)(img)
...
end

If I have to say, there do exist a minor difference: binarize doesn't spread over all the implementation files.

I guess we should consider how many other image processing operations can be cast in this form. Ideally, we would like to have a consistent way of doing things for different operations, i.e. edge detection, contrast adjustment etc.

ping @timholy @evizero @juliohm

Except, there does exist a minor difference: binarize doesn't need to spread over all the implementation files in design B.

Just came up with another difference:

If some_name(img) works, the only thing we can know about it is that it's callable in the sense isempty(methods(some_name)) === false(not necessary Function or Base.Callable)`
if binarize(some_name, img) works, we immediately knows that some_name isa BinarizationAlgorithm

So to be more accurate,
binarize(some_name, img)

is equivalent to
if some_name isa BinarizationAlgorithm
    some_name(img)
end

For this reason, the filter specification might be slightly more bug-prone and slightly less-understandable to end-user.

closed by #29


Make loading of PFInstallation.currentInstallation() fully async.

A crash was reported which was caused by an exception thrown by Parse SDK 1.12.0.
It originates from a simple call to PFInstallation.currentInstallation().
Here's the relevant stack trace from the crash log:
+[NSException raise:format:] (NSException.m:140)
-[PFObject(Private) _setObject:forKey:onlyIfDifferent:] (PFObject.m:1485)
__56-[PFCurrentInstallationController getCurrentObjectAsync]_block_invoke35 (PFCurrentInstallationController.m:127)

(different thread)

-[BFTask(Private) waitForResult:withMainThreadWarning:] (BFTask+Private.m:125)
+[PFInstallation currentInstallation] (PFInstallation.m:136)

The offending line PFCurrentInstallationController.m:127 is
installation.installationId = installationId;

So installationId is likely nil for some reason.

InstallationId is guaranteed to be non-nil at all times, so this should never happen.
You run into some really weird inconsistency in this case.
Any chance you can trace PFInstallationIdentifierStore and look at why the installationId inside of it becomes nil?

Unfortunately we cannot reproduce the bug. It was one lone user out there in the wild who caused and reported that crash.
I'm digging through the sources but the installation ID retrieval looks quite complex :/

What happens if the installationId file is inaccessible (probably locked)? Can that happen?
Can anything suddenly become nil? The strongified selfs maybe?
Since this is Objective-C code it's not necessarily the installationId being nil but any variable used during the process of retrieving it. Difficult to tell.
Sneaky race condition maybe?

Here's more of the stack trace - all from Bolts. It indicates that there were errors earlier in the task chain. I have no idea though how to read this trace.
+[NSException raise:format:] (NSException.m:140)
-[PFObject(Private) _setObject:forKey:onlyIfDifferent:] (PFObject.m:1485)
__56-[PFCurrentInstallationController getCurrentObjectAsync]_block_invoke35 (PFCurrentInstallationController.m:127)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:336)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetResult:] (BFTask.m:223)
-[BFTaskCompletionSource setResult:] (BFTaskCompletionSource.m:50)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_3 (BFTask.m:352)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:336)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetResult:] (BFTask.m:223)
-[BFTaskCompletionSource setResult:] (BFTaskCompletionSource.m:50)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_3 (BFTask.m:352)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:360)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetResult:] (BFTask.m:223)
-[BFTaskCompletionSource setResult:] (BFTaskCompletionSource.m:50)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_3 (BFTask.m:352)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:336)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetResult:] (BFTask.m:223)
-[BFTaskCompletionSource setResult:] (BFTaskCompletionSource.m:50)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:366)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetResult:] (BFTask.m:223)
-[BFTaskCompletionSource setResult:] (BFTaskCompletionSource.m:50)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_3 (BFTask.m:352)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:360)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetError:] (BFTask.m:242)
-[BFTaskCompletionSource setError:] (BFTaskCompletionSource.m:57)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_3 (BFTask.m:352)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:360)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetError:] (BFTask.m:242)
-[BFTaskCompletionSource setError:] (BFTaskCompletionSource.m:57)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_3 (BFTask.m:352)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:336)
__29+[BFExecutor defaultExecutor]_block_invoke_2 (BFExecutor.m:63)
-[BFExecutor execute:] (BFExecutor.m:129)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke (BFTask.m:328)
-[BFTask runContinuations] (BFTask.m:308)
-[BFTask trySetError:] (BFTask.m:242)
-[BFTaskCompletionSource setError:] (BFTaskCompletionSource.m:57)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_3 (BFTask.m:352)
__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:360)

Yeah, unfortunately the stack traces from Bolts don't quite help :(
Let me try my best to answer the questions above, first:

What happens if the installationId file is inaccessible (probably locked)? Can that happen?

Since we have a single entry point for that file and it's consistency is managed runtime by a single dispatch queue - not sure it's a consistency problem here. What might be happening is it's failing on writing/reading data from disc, which might lead to this. I'll think about how we can guarantee more safety here.

Can anything suddenly become nil? The strongified selfs maybe?

Things can become nil, for sure, but we have an explicit guarantee on a single PFInstallationIdentifierStore and single PFCurrentInstallationController per entire runtime of the application, so unless you are changing applicationId inflight (which has undefined behavior), this shouldn't affect it.

Since this is Objective-C code it's not necessarily the installationId being nil but any variable used during the process of retrieving it. Difficult to tell.

Same, the entire pipeline is guaranteed to be non-nil, or we have bigger problems than installationId.

Sneaky race condition maybe?

Quite possibly, also things like moon-phase actually affect software. :stuck_out_tongue:
Overall, I think we can make the entire pipeline safer, by avoiding usage of synchronous blocking wait there and chaining the entire promise chain on another async task, which will guarantee graceful error handling in a scenario when disk i/o or anything like this fails. Turns out there is also a todo to make it not terrible, so this is pending anyhow. Marking this issue as enhancement.
Little more details on pending work:
We have a waitForResult() when requesting installationIdentifier, which already yields a task here. The work would require removal of waitForResult() and chaining the entire promise chain on loading the installation identifier, so in a case of nil installationId we don't crash the entire runtime.

Hey. Is there any news regarding this issue?
We got feedback from multiple users now that our app crashes on startup and we got several new crash reports related to PFInstallation.currentInstallation().
Any recommendation to work around this issue?

Hey @nlutsenko,
we released a new app version using Parse 1.13.0 where this issue was supposed to be resolved.
Unfortunately it isn't fixed and first day after launch we got another crash report:
https://gist.github.com/fluidsonic/723761772ef388c5b07f4dab5c951370

@fluidsonic Super sad to hear that. 1.14.0 is going to have the new API for getting the installation - getInstallationInBackground that gives you an option to handle the error.

Let me reopen this issue and verify that we have all the possible error handling there as well as we never get nil installationId.

Found another possible improvement - attached #901.
Will be released as part of 1.14.0

This is still an issue, even with the latest commit https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/commit/159c0d6a4313b2e0b82dee6b9360a4fc2b5900a5!
I tested that by simply removing read permission from Library/Private Documents/Parse/installationId file in the app's storage directory in the simulator. Should have thought of that earlier :)
In PFCurrentInstallationController, line 107 installationId is still nil, causing a crash in line 123:
installation.installationId = installationId;

The root cause of this is likely in PFInstallationIdentifierStore.m, line 109 where the previous task's error is ignored and the installation ID (nil in this case) is returned unconditionally as the task's result:
}] continueWithBlock:^id(BFTask <NSString *>*task) {
    [group endLockedContentAccessAsyncToDataForKey:PFInstallationIdentifierFileName];
    self.installationIdentifier = task.result;
    return self.installationIdentifier;  // error is ignored here
}];

Simply returning the previous task instead of just the installation ID fixes the problem and [PFInstallation currentInstallation] will properly return nil without crashing:
}] continueWithBlock:^id(BFTask <NSString *>*task) {
    [group endLockedContentAccessAsyncToDataForKey:PFInstallationIdentifierFileName];
    self.installationIdentifier = task.result;
    return task; // forward error/result
}];

@nlutsenko ping

Sounds like an issue, indeed. Let me work out a patch here that will make it ultimately safer.


Create 118-Pascals-Triangle.rs

File(s) Modified: 118-Pascals-Triangle.rs
Language(s) Used: rust
Submission URL: https://leetcode.com/submissions/detail/826818820/

Thanks for contributing!


When switching themes, the border like TextBox will not update itself

As in the title, the Avalonia version used is 11.0.0, and the Material.Avalonia is 3.0.0-avalonia11-preview5.202-nightly. In fact, the ComboBox control that looks similar to the TextBox in the video also has similar problems.
https://github.com/AvaloniaCommunity/Material.Avalonia/assets/58357771/0a56a685-68ae-4a38-b480-467f3cdc7c28

Ehh, please not again!

Should be fixed with https://github.com/AvaloniaUI/Avalonia/issues/12408

I probably should try to find a workaround for this...

I probably should try to find a workaround for this...

Currently this issue partially resolved, @imJack6, @melsawy93, @seikosantana. I've disabled the animation and currently it works fine now.
But this GitHub issue will remain open till problem was fixed from Avalonia side.

Fixed in the avalonia master branch - use 11.1.999-cibuild0043160-beta or higher.


Would you consider I2I with Lora model as well?

https://fal.ai/models/fal-ai/flux-lora/image-to-image
This also has a strength option that would need to be added as well

@KINGLIFER
I missed the function. I will support it.

@KINGLIFER
I added support for image-to-image.


!!! 'morino' is not a valid formulation.

Hi dear MachLine team!
I started work with your software and received the follow error for the first one example:
Got input file: dev/input_files/half_wing_input.json

 Reading and analyzing surface mesh
     User has selected linear-doublet-constant-source panels.
     Reading surface mesh in from file dev/meshes/half_wing_right.vtk... Done.
     Surface mesh has     685 vertices and    1336 panels.
     Mesh set to mirror about xz plane.
     Locating adjacent panels...Done. Found    2020 edges.
     Calculating vertex geometric parameters... Done.

 Initializing based on flow properties
     Initializing flow-dependent panel properties... Done. Found       0 superinclined panels.
     Characterizing edges...Done. Found  19 wake-shedding edges.
     Determining where vertex clones are needed... Done.
     Cloning vertices at wake-shedding edges...Done. Cloned   19 vertices. Mesh now has     704 vertices.
     Initializing wake with a Trefftz distance of 7.9603E+01...Done. Created      76 wake vertices and      38 wake panels distributed between      19 strips.
     Setting up panel singularity distributions... Done.
 !!! 'morino' is not a valid formulation. Quitting...

I changed "formulation" parameter in .json from "morino" to "dirichlet-morino". Code works, but is it correct substitution?
P.S. Also, could you provide me papers of Core Goates from Literature section, please? I don't have access to these papers, but want to read them so much. I would be happy to stay in touch with you!

Yes your substitution is correct. Not all of the input files in dev/ have been updated to reflect the recent change.


error when get all rows from file

when i try to read the file i get the following error
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/360EntSecGroup-Skylar/excelize.(*xlsxC).getValueFrom(0xc08dc65c38, 0xc042088540, 0xc04208a190, 0xc09826c03c, 0x1, 0x0, 0x2)
        C:/Users/adm_Palyanichka/go/src/github.com/360EntSecGroup-Skylar/excelize/rows.go:165 +0x23d
github.com/360EntSecGroup-Skylar/excelize.(*File).GetRows(0xc042088540, 0xc04205e6f8, 0x7, 0x8, 0x0, 0x0)
        C:/Users/adm_Palyanichka/go/src/github.com/360EntSecGroup-Skylar/excelize/rows.go:60 +0x7b8
main.writeFile(0xc04204b440, 0xc04205c120, 0x12)
        C:/Users/adm_Palyanichka/go/src/carmoney.com/xlsx-converter/xlsxConverter.go:26 +0x238
main.main()
        C:/Users/adm_Palyanichka/go/src/carmoney.com/xlsx-converter/xlsxConverter.go:88 +0x210
exit status 2

Output of go version:
1.10

Thanks for your issue. Please provides file attachments if you can.

Hi
tmp.xlsx

I have found that the file name of shared string table in your attachment is special: xl/SharedStrings.xml (standard filename is xl/sharedStrings.xml) and I have fixed it now, Could you tell me which version of Excel that created this file?

This file was created by 1C software (very controversial software)


Humidity and Temp Sensor Depth Mismatched

On the following GA 2020 nodes temperature and humidity depths are incorrect.  humidity reading +0 and temp reading +29 and vice versa.  18000061, 18000022, 18000067, 18000047, 18000016.

@brianwdavis

I assume we move this to the data corrections repository?  Do we make the
change at the end of the season in the database?
Chris
Chris Reberg-Horton
Professor of Cropping Systems
Platform Director for Resilient Agricultural Systems of Plant Sciences
Initiative
University Faculty Scholar
Department of Crop and Soil Sciences, Campus Box 7620
NC State University
Raleigh, NC 27695-7620
919 515-7597
@.***
On Mon, Jul 26, 2021 at 5:26 PM annabirnbaum @.***>
wrote:

@brianwdavis https://github.com/brianwdavis
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/precision-sustainable-ag/On-farm-Protocols/issues/7#issuecomment-887039134,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALP7JSGA7G2WGT5FWPIARYDTZXHJNANCNFSM4NQE2JPA
.

Good question. Currently everything in the data corrections repo is highly structured, but it's also not monitored actively until we make big batch changes.
I guess we just need to figure out the appropriate tags if we transfer the issue


requireing base-elements leads to sheetify errors

something's not working like it should, we should investigate what. Blocking for dat-desktop styling

hmmm, seems to be working now.... :/

hmmm yeah ok so gonna close this and if it's an error down the road we can revisit this - gonna assume all systems are cool till then


Implement role-based access to API endpoints by HTTP method

We may need a more nuanced system in the future, but this strategy is simple to implement and may get us by for a long time.

Merged.


docker: cd: /workdir-rw: No such file or directory

Hi
I have tried example from README and got error:
gcp-tf $ docker run --cap-add=SYS_ADMIN -it --rm -p 5000:5000 -v $(pwd):/workdir:ro 28mm/blast-radius
mount: /tmp/overlay: cannot mount tmpfs read-only.
/src/docker-entrypoint.sh: line 14: cd: /workdir-rw: No such file or directory

@slayer what kind of system are you trying this on? Is gcp-tf itself a container? I am trying to understand why mount.tmpfs would fail as it does in this case.
I would be interested in the output of the following commands:
$ cat /proc/1/cgroup
$ uname -a
# docker -v

Thanks!

Hi
It is ubuntu 18.10 and gcp-tf is a working directory.
master vlad@red ~/dev/gcp-tf $ docker -v
Docker version 18.09.3, build 774a1f4
master vlad@red ~/dev/gcp-tf $ cat /proc/1/cgroup
12:hugetlb:/
11:rdma:/
10:devices:/
9:cpu,cpuacct:/
8:freezer:/
7:pids:/
6:perf_event:/
5:net_cls,net_prio:/
4:blkio:/
3:cpuset:/
2:memory:/
1:name=systemd:/init.scope
0::/init.scope
master vlad@red ~/dev/gcp-tf $ uname -a
Linux red 4.18.0-16-generic #17-Ubuntu SMP Fri Feb 8 00:06:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I'm having the dame issue. Ubuntu 18.04
$ cat /proc/1/cgroup
12:blkio:/
11:hugetlb:/
10:freezer:/
9:memory:/
8:rdma:/
7:pids:/
6:net_cls,net_prio:/
5:cpuset:/
4:devices:/
3:cpu,cpuacct:/
2:perf_event:/
1:name=systemd:/init.scope
0::/init.scope

$ uname -a
Linux grzegorz-carbon 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ docker -v
Docker version 18.09.6, build 481bc77

@gkapkowski nice catch, thanks!


Role of initial_flatfield

Here, I found there's a initial_flatfield parameter which is always set to be False .
https://github.com/peng-lab/PyBaSiC/blob/01d8fe1ae86f2a09ced2cd710bd3e043036deea0/pybasic/_background.py#L204
Is there any role for this? @tying84, if you remember something, would you mind commenting on this?

This looks like it might be related to what we were discussing during the meeting today, where you could supply a starting point for the flatfield component.

Pasting the reply from @tying84,

For initial_flatfield, I now remember at that time, I want to do estimate flatfield in a multi-resolution approach, so first estimate a rough flatfield for a small resized image, then go to higher resolution. I vaguely remember it is not that straightfoward in the iterative optimization loop. I will check it again when I rewrite the code in JAX.


Feature: Redis lock - Add sentinel support

In what area(s)?
/area runtime
What version of Dapr?
1.9.5
Expected Behavior
We've deployed redis with sentinel with 3 nodes.
According to the following documentation https://docs.dapr.io/reference/components-reference/supported-locks/redis-lock/ it's expected that it is possible to use a failover redis with sentinel for lock component.
Actual Behavior
However, dapr sidecar crashes several times until it starts with the following error:
time="2023-01-15T15:13:33.408791532Z" level=fatal msg="process component donum-lockstore error: [INIT_COMPONENT_FAILURE]: initialization error occurred for donum-lockstore (lock.redis/v1): [standaloneRedisLock]: InitLockStore error. Replication is not supported" app_id=donum-staging-donum-proxyinput instance=donum-proxyinput-5bffbfcd4b-szx57 scope=dapr.runtime type=log ver=1.9.5
Steps to Reproduce the Problem

Deploy redis+sentinels with 3 nodes:
helm upgrade redis bitnami/redis \
--install \
--namespace $DONUMNAMESPACE --create-namespace \
--set "architecture=replication" \
--set "sentinel.enabled=true" \
--set "sentinel.redisShutdownWaitFailover=false" \
--set "auth.enabled=false" \
--set "auth.sentinel=false" \
--set "pdb.create=true" \
--set "pdb.minAvailable=2" \
--wait

Apply lock.redis component:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: donum-lockstore
  namespace: {{ .Release.Namespace | quote }}
spec:
  type: lock.redis
  version: v1
  metadata:
  - name: redisHost
    value: redis:26379
  - name: failover
    value: true
  - name: sentinelMasterName
    value: mymaster
  - name: redisType
    value: cluster

Try to deploy some ASP.NET Core app with dapr sidecar:
    metadata:
      annotations:
        dapr.io/app-id: some-app-name
        dapr.io/app-port: "80"
        dapr.io/config: dapr-config
        dapr.io/enabled: "true"
        dapr.io/http-max-request-size: "1024"
        dapr.io/sidecar-readiness-probe-threshold: "20"

Moved to dapr/components-contrib
@seeflood would you be able to take a look at this please?

I think it's a mistake in the documentation. Currently the redis component doesn't support redis cluster (including those implemented with sentinel) . I didn't implement the cluster feature because fail-over can lead to lock loss.
@VuiDJi Can you introduce the usage scenario? For example, is it acceptable to lose locks caused by failover? If we are going to support redis cluster, using the redlock algorithm might be a better choice

Hi all, I just came across this issue by chance.
I have a redlock implementation combined with client-side caching that can detect and notify lock losses to clients.
The implementation might be useful to you: https://github.com/rueian/rueidis/tree/main/rueidislock

@seeflood can you please try to improve the documentation for this?
@VuiDJi please provide more details around your expectations here and the use case.
@rueian perhaps you and @seeflood can discuss a potential implementation.

@seeflood It is not acceptable for our cases to lose locks caused by failover.
We were going to use lock:

In combination with cron to be able to run some regular tasks (e.g. to generate and send daily reports), but so that they were executed only in one pod, even if deployment with multiple replicas was deployed for fault tolerance.
To perform some operation, the execution of which must be single-threaded. For example, updating a client's balance when receiving information (pub/sub) about the creation of a cash flow.

I also read the opinion that using Redis (RedLock) for distributed locks is not a good idea:

Based on the above considerations, in fact, the author of Redis also considered this problem. He proposed a RedLock algorithm. But it is unnecessarily heavyweight and expensive for efficiency-optimization locks, but it is not sufficiently safe for situations in which correctness depends on the lock.
Another flaw about RedLock is its dangerous assumptions about timing and system clocks and it violates safety properties if those assumptions are not met.
On the other hand, if you need locks for correctness, please don’t use Redlock. Instead, please use a proper consensus system such as Zookeeper.

Perhaps it would be better to implement in dapr a component for distributed locks using something like zookeeper?
Thanks!

Checking the helm command you use to install Redis looks like what you are doing is using Redis Sentinel (so failover) but not Redis Cluster which are 2 different things.
As per Dapr docs when using Redis Sentinel failover needs to be set to true but redisType kept to node.


[BUG] ResidualDouble regressor does not handle transforms correctly.

Describe the bug
In skpro.regression.residual.ResidualDouble, for the argument residual_trafo="squared", we should be taking the sqrt of the scale estimate before feeding it into the scale parameters, possibly followed by a further, distribution specific correction.
For instance, if we're using an error dist X~T(mu=0, dof=v) distribution, then for abs E[|X|] = ComplicatedFunc(dof) * sigma, and E[X^2]=Var(X)=sigma^2 * v / (v-2)
derivation from stack exchange
For arbitrary transformations, this quickly gets tricky, even for those limited distributions. Further, arbitrary transformations can't easily be checked for monotonicity or positivity. I would advise removing that capability.
To Reproduce
Running the following should yield uniform quantiles, but that totally breaks down for the squared transform.
from sklearn.model_selection import KFold
from matplotlib import pyplot as plt
import lightgbm as lgb
import numpy as np
import seaborn as sns
import pandas as pd
nn = 100_000
x_df = pd.DataFrame({"a":np.random.randn(nn), "b":np.random.randn(nn), "c":np.random.randn(nn)}).clip(-2,2)
degrees_of_freedom = 3.5
var_adj = (degrees_of_freedom / (degrees_of_freedom - 2))
# DGP
loc_param_vec = pd.Series({"a":-1, "b":1, "c":0})
log_scale_param_vec = pd.Series({"a":0, "b":0.01, "c":0.5})
loc_vec = x_df.dot(loc_param_vec)
log_scale_vec = x_df.dot(log_scale_param_vec)
dist = stats.t(df=degrees_of_freedom, loc=loc_vec, scale=np.exp(log_scale_vec))
y = pd.DataFrame(dist.rvs((2, nn)).T, index=x_df.index, columns=["y0", "y1"])
abs_reg = ResidualDouble(estimator=lgb.LGBMRegressor(verbosity=-1), estimator_resid=lgb.LGBMRegressor(verbosity=-1), distr_params={"df": degrees_of_freedom}, distr_type="t", residual_trafo="absolute", cv=KFold(n_splits=3))
sq_reg = ResidualDouble(estimator=lgb.LGBMRegressor(verbosity=-1), estimator_resid=lgb.LGBMRegressor(verbosity=-1), distr_params={"df": degrees_of_freedom}, distr_type="t", residual_trafo="squared", cv=KFold(n_splits=3))

abs_reg.fit(x_df, y["y0"])
sq_reg.fit(x_df, y["y0"])
abs_pred = abs_reg.predict_proba(x_df)
sq_pred = sq_reg.predict_proba(x_df)
abs_cdf = abs_pred.cdf(y[["y1"]])["y0"]
sq_cdf = sq_pred.cdf(y[["y1"]])["y0"]
cdf_df = pd.DataFrame({"abs": abs_cdf, "sq": sq_cdf})
sns.histplot(cdf_df, multiple="dodge", bins=10)

Confusion
I don't understand why it does yield uniform quantiles for the absolute transform for the t distribution. I would expect them to deviate from uniform because there is no degrees of freedom correction. Can anyone explain why that works?
Tacking the following code onto the end of the block above, we see that "raw" is the most uniform. That makes no sense to me.

from scipy.special import gamma
def abs_t_correction(dof):
    return 2 *np.sqrt(dof - 2) * gamma((dof + 1) / 2) / (np.sqrt(np.pi) * (dof - 1) * gamma(dof / 2))

dist = stats.t(df=degrees_of_freedom, loc=loc_vec, scale=np.exp(log_scale_vec))
dist_div = stats.t(df=degrees_of_freedom, loc=loc_vec, scale=np.exp(log_scale_vec) / abs_t_correction(degrees_of_freedom))
dist_mult = stats.t(df=degrees_of_freedom, loc=loc_vec, scale=np.exp(log_scale_vec) * abs_t_correction(degrees_of_freedom))
all_3_cdf = abs_pred.cdf(pd.DataFrame({"div":dist_div.rvs(nn), "mult":dist_mult.rvs(nn), "raw":dist.rvs(nn)}, columns=["div", "mult", "raw"]))
all_3_cdf.columns = ["div", "mult", "raw"]
sns.histplot(all_3_cdf, multiple="dodge", bins=10)

Working on a fix here: https://github.com/meh2135/skpro

After thinking about it a bit, I'm even more convinced that there really isn't a good way of reasonably estimating a scale parameter by allowing the user to specify an arbitrary transform of the residual, and modeling that.
I'm going to remove that option in my PR.
Re the adjustment for absolute for student's t, you can see the issue here:
from skpro.distributions import TDistribution
from scipy import stats
from matplotlib import pyplot as plt
import numpy as np
n_samples = 40_000
dof_vec = np.linspace(2.1, 7.0, 20)
ratio_vec = []
for dof in dof_vec:
    # Generate data from a t-distribution
    gen_dist = stats.t(df=dof, loc=0.0, scale=2.0)
    gen_samp = gen_dist.rvs(n_samples)
    # Estimate sigma from the data using the naive approach used in ResidualDouble, ie sigma = mean(abs(y))
    naive_sigma_est = np.abs(gen_samp).mean()
    # Plug that in to a skpro t-distribution'
    naive_skpro_dist = TDistribution(df=3.5, mu=0.0, sigma=naive_sigma_est)
    # Sample from that skpro distribution
    naive_skpro_samples = naive_skpro_dist.sample(n_samples)
    # Calculate the variance of the data and the variance of the skpro samples
    gen_var = gen_samp.var()
    naive_skpro_var = naive_skpro_samples[0].var()
    # print(f"Naive sigma estimate: {naive_sigma_est:.4f}")
    # print(f"Naive skpro var: {naive_skpro_var:.4f}")
    # print(f"Ratio of variances: {naive_skpro_var / gen_var:.4f}")
    ratio_vec.append(naive_skpro_var / gen_var)

plt.figure()
plt.plot(dof_vec, ratio_vec)

plt.figure()
plt.plot(dof_vec, np.sqrt(ratio_vec))

I don't see the correction being made anywhere in the ResidualDouble code. That said, the quantiles that come out of it look decent, so maybe I am missing something.
FYI: @fkiraly

@meh2135, thanks a lot for your report and work on this!
I agree that the inverse transform is missing in _predict - I think we should add this for all cases. This is very astutely observed, really great!
However, I would split work on adding back the missing inverse transform from modifications of the algorithm.
There is a simple software engineering reason for that, we should not change anything in the package that may break user code - at least not without giving warnings for a few months and then changing it.
Here is the change/deprecation management guide: https://www.sktime.net/en/latest/developer_guide/deprecation.html
Removing an option would be such a change that could break code of users that use the option.
On the content side, that is, regarding the algorithm itself, I get what you are saying about violated statistical assumptions, we should keep in mind though that the algorithm is a simple heuristic, and also a common "rule of thumb" estimator. Of course there are better ways to estimate the residual distribution, under statistical assumptions.
For this, I would recommend discussing more systematically the target state first. Perhaps writing down a mock docstring of what you think the "best end state" should be. Because if you implement first, we might end up writing unnecessary code if in the end we agree on a different docstring.

I don't understand why it does yield uniform quantiles for the absolute transform for the t distribution. I would expect them to deviate from uniform because there is no degrees of freedom correction. Can anyone explain why that works?

Regarding this, I think this is simply a model mismatch issue. Your data were not t-distributed residuals to start with, so it may or may not be that a deviation from an incorrect assumption (t-distribution with certain df) leads to a better fit!
That is also related to what I was saying about this algorithm being a heuristic. In case of model mismatch - and in real life nothing ever is exactly normally or t-distributed (for single samples, i.e., large sample statistics approximately do follow limit distributions etc). So, if you have model mismatch anyway, one or the other version of a heuristic with model mistmatch may be better.
The "machine learner" approach would be to take algorithms as they are and not be too concerned with "wrong statistical assumptions", but do stringent statistics for empirical performance evaluation.

@fkiraly hey sorry I've been so slow! I'm onsite at my job these past few weeks, but I'll be home next week and should have bandwidth to finish it then.

put up a draft PR but just realized I need to un-deprecate the arbitrary transform. Will do that now


bootstrap: Fix TLS, check if .entware exists, and improve error messages

This PR contains several fixes for the bootstrap script.

If the standalone wget binary cannot be fetched, a more helpful error message is printed instead of the catch-all error message (see #422).
The standalone wget binary is fetched over HTTP instead of HTTPS, since the implementation of TLS in Busybox’s wget causes issues with the latest version of nginx. This does not reduce security since the checksum is still verified after fetching the binary (fixes #422, I believe).
Abort installation if /home/root/.entware already exists. Previously, only the existence of /opt was checked, leading to #409.

Test plan (on rM1 and rM2):

Try to run the script normally. Issue #422 should be fixed and the install should proceed.
Try to run the script while not being connected to Wi-Fi. Expected output:

INFO:  Fetching secure wget
wget: bad address 'toltec-dev.org'
ERROR: Could not fetch wget, make sure you have a stable Wi-Fi connection

Try to run it with <IP_ADDRESS> toltec-dev.org in /etc/hosts. Expected output:

INFO:  Fetching secure wget
wget: can't connect to remote host (<IP_ADDRESS>): Connection refused
ERROR: Could not fetch wget, make sure you have a stable Wi-Fi connection

Starting from a complete Toltec install, unmount /opt (systemctl stop opt.mount) and remove the /opt folder. Try to run the script. Expected output:

INFO:  Toltec is already installed or partially installed
INFO:  To re-enable Toltec after a system upgrade, run 'toltecctl reenable'
INFO:  To reinstall Toltec, run 'toltecctl uninstall' first

Thanks!


Object spread : less jQuery more ES6

This PR will remove the use of $.extend in favor of this awesome ES6 feature : https://babeljs.io/docs/plugins/transform-object-rest-spread/ which will do the same as $.extend but without jQuery :smile:
Currently I only made the change for our Tooltips but if everybody is ok I'll do the same for our other plugins :+1:

Regarding the changes, LGTM, so yeah, I'd say go ahead and make the changes in the rest of the code.

It seems they are no beta 2 for this plugin @XhmikosR see : https://libraries.io/npm/@babel%2Fplugin-proposal-object-rest-spread
Which one should I choose ?

beta.5? I still hope @hzoo will help us update to the latest so it should be OK if the transpiled code is OK :)

@Johann-S: rebased. I don't get any changes in package-lock.json; is something wrong? Maybe we don't need the extra package?

@XhmikosR oh yeah this is because we added a new option in preset-env in v7 called shippedProposals https://github.com/babel/babel/tree/master/experimental/babel-preset-env#shippedproposals
anything that's Stage 3 in browsers including object rest spread

I removed the extra package and added shippedProposals: true in our .babelrc.js
is it what you suggested to us @hzoo ?

If you add shippedProposals then you don't need the    '@babel/proposal-object-rest-spread' in the plugins. Although if you are only going to use object rest spread I would just explicitly add that as a plugin and not use shippedProposals, just depends on what is easier to understand

I think it's ok to use shippedProposals because it will only add what we need on our dist files so as we don't use the other feature that's ok because no extra size will be added

Yeah totally I agree, it's just that it allows someone to use new syntax and it won't error (but I guess since you commit the dist files you will see the change anyway then 👍)

@XhmikosR ping

Special thanks to @hzoo for his awesome feedbacks :+1: and thank you @XhmikosR as always :+1:

Does the move to ES6 mean IE11 is no longer compatible?

Everything is currently transpiled via Babel so it works just fine for our
supported browsers.
On Nov 14, 2017 23:15, "Adam Shortland"<EMAIL_ADDRESS>wrote:

Does the move to ES6 mean IE11 is no longer compatible?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/twbs/bootstrap/pull/24665#issuecomment-344400212, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAVVtaOyblXJ3_8wKlf1iy3F8RqcbOHyks5s2gLmgaJpZM4QRMCF
.


Compiler: implement autocasting in a better way

I thought of a better, more resilient way to implement autocasting. This removes the existing hacks around it.
I added a big chunk of comment explaining how this is currently done, and what with_literals and analyze_all means, with a bunch of examples.
Makes #9492 obsolete.

Nice! Does this also fix #8973 ?

@jwoertink No, that has nothing to do with autocasting. #8973 can't be fixed without a major overhaul to how methods are looked up. And even then, I'm not sure how it should work. So it needs a bit more "thinking" time before it can be fixed.

CI is happy 🎉

@waj @bcardiff ping! It would be nice to have this in 1.0

@waj Thanks! I rebased this branch against master just to make sure CI passes... CI also seemed stuck.


Generate a new fat jar which solves the dependency conflict issues in some cases.

Both protoBuf and sleepyCat dependencies are now integrated into the fat jar.
Relocated the paths in case that there would be dependency conflict issue occurred.

I merged this with ammended commit message.
https://github.com/voldemort/voldemort/commit/abcf36a7c7fffdfd773d1131be93b946ec3923e4


Causes SIGSEGV in RSSOwl when enabled.

After enabling fresh player RSSOwl crashes instantly when attempting to view feeds. Disabling fresh player prevents the problem.
The console shows:
A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2938ff5bd6, pid=5751, tid=139817356359424
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libxul.so+0xb65bd6]  ffi_closure_unix64+0x3590
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/gcb/hs_err_pid5751.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

I posted this on classpath bugzilla but as they pointed out, the error is with native code, i.e. RSSOwl.
I have a full log file - very long - if needed.

i have same problem with Eclipse
NOT SANDBOXED
[ERROR:flash/platform/pepper/common/pep_process.cpp(19)] CHECK(g_process_type == PROCESS_TYPE_UNKNOWN) failed
using openjdk version "1.8.0_45"
with freshplayerplugin-git v0.2.4.r92.g96ba6ad-1