how to get the device notify value

I connected to the device ,and  i need to get the message from the device which it notify ,
what should i do?

Hi, @spd-heshuip!
You want to get a notification from a characteristic, correct?
After connecting to peripheral you can use peripheral.monitorCharacteristic() or filter peripheral.characteristics() result to get the characteristic you're interested in and call characteristic.monitor().
Take a look at the example. https://github.com/Polidea/FlutterBleLib/blob/master/example/lib/test_scenarios/peripheral_test_operations.dart#L207

Hi, @spd-heshuip!
You want to get a notification from a characteristic, correct?
After connecting to peripheral you can use peripheral.monitorCharacteristic() or filter peripheral.characteristics() result to get the characteristic you're interested in and call characteristic.monitor().
Take a look at the example. https://github.com/Polidea/FlutterBleLib/blob/master/example/lib/test_scenarios/peripheral_test_operations.dart#L207

Hi  @mikolak ,
there is my code

when i  connected to the devices,i use peripheral.monitorCharacteristic(),but it failed;
this is the error message:
D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(27613): on native side observed method: createClient D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(27613): on native side observed method: startDeviceScan D/BluetoothAdapter(27613): STATE_ON D/BluetoothLeScanner(27613): onClientRegistered() - status=0 clientIf=5 I/flutter (27613): Scanned Peripheral Zephyr, RSSI -61 I/flutter (27613): find device D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(27613): on native side observed method: stopDeviceScan D/BluetoothAdapter(27613): STATE_ON I/flutter (27613): onDone I/flutter (27613): start connect.... D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(27613): on native side observed method: connectToDevice D/BluetoothGatt(27613): connect() - device: 54:59:EA:CC:50:7F, auto: false D/BluetoothGatt(27613): registerApp() D/BluetoothGatt(27613): registerApp() - UUID=3143e654-db03-4efc-b501-559cab8586e2 D/BluetoothGatt(27613): onClientRegistered() - status=0 clientIf=5 D/BluetoothGatt(27613): onClientConnectionState() - status=0 clientIf=5 device=54:59:EA:CC:50:7F D/BluetoothGatt(27613): configureMTU() - device: 54:59:EA:CC:50:7F mtu: 23 D/BluetoothGatt(27613): onConfigureMTU() - Device=54:59:EA:CC:50:7F mtu=23 status=0 I/flutter (27613): Peripheral 54:59:EA:CC:50:7F connection state is PeripheralConnectionState.connected D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(27613): on native side observed method: isDeviceConnected I/flutter (27613): connect device successs D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(27613): on native side observed method: discoverAllServicesAndCharacteristics D/BluetoothGatt(27613): discoverServices() - device: 54:59:EA:CC:50:7F D/BluetoothGatt(27613): onSearchComplete() = Device=54:59:EA:CC:50:7F Status=0 D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(27613): on native side observed method: monitorCharacteristicForDevice D/BluetoothGatt(27613): setCharacteristicNotification() - uuid: 12345678-1234-5678-1234-56789abcdef1 enable: true D/BluetoothGatt(27613): setCharacteristicNotification() - uuid: 12345678-1234-5678-1234-56789abcdef1 enable: false I/flutter (27613): monitor value:Error while monitoring characteristic  I/flutter (27613): BleError (Error code: 403, ATT error code: null, iOS error code: null, Android error code: null, reason: Cannot write client characteristic config descriptor (code 3) with characteristic UUID 12345678-1234-5678-1234-56789abcdef1, internal message: null, device ID: null, service UUID: 12345678-1234-5678-1234-56789abcdef0, characteristic UUID: 12345678-1234-5678-1234-56789abcdef1, descriptor UUID: null)
if i use peripheral.monitorCharacteristic(),it always report the error ,and then i can not  write the devices, this is the error message:
FlutterBleLibPlugin(27613): on native side observed method: writeCharacteristicForDevice I/flutter (27613): error: I/flutter (27613): BleError (Error code: 4, ATT error code: null, iOS error code: null, Android error code: null, reason: GATT exception from MAC address 54:59:EA:CC:50:7F, with type BleGattOperation{description='CHARACTERISTIC_WRITE'}, internal message: null, device ID: null, service UUID: null, characteristic UUID: null, descriptor UUID: null)
please help me ,thank you very much!!

D/BluetoothGatt(27613): setCharacteristicNotification() - uuid: 12345678-1234-5678-1234-56789abcdef1 enable: false I/flutter (27613): monitor value:Error while monitoring characteristic I/flutter (27613): **BleError (Error code: 403**, ATT error code: null, iOS error code: null, Android error code: null, reason: **Cannot write client characteristic config descriptor (code 3) with characteristic UUID 12345678-1234-5678-1234-56789abcdef1**, internal message: null, device ID: null, service UUID: 12345678-1234-5678-1234-56789abcdef0, characteristic UUID: 12345678-1234-5678-1234-56789abcdef1, descriptor UUID: null)

403 is CharacteristicNotifyChangeFailed.
It seems the characteristic you're attempting to monitor does not support it. Could you try the following?
  List<Characteristic> characteristics =
      await peripheral.characteristics("12345678-1234-5678-1234-56789abcdef0");
  Characteristic characteristic = characteristics.firstWhere(
      (e) => e.uuid == "12345678-1234-5678-1234-56789abcdef1",
      orElse: () => null);

  if (characteristic == null) {
    print("Characteristic not found");
  } else {
    print("Characteristic ${characteristic.uuid} can be monitored: "
        "${characteristic.isNotifiable || characteristic.isIndicatable}");
  }

How do initiObtaining(Peripheral) and monitorCharacteristicForPeripheral(Peripheral) look?

initiObtaining(Peripheral) and monitorCharacteristicForPeripheral(Peripheral):

and i try your code:

initiObtaining(Peripheral) and monitorCharacteristicForPeripheral(Peripheral):
`
initObtaining(Peripheral peripheral)async{
await peripheral.discoverAllServicesAndCharacteristics();

}
StreamSubscription monitoringStreamSubscription;
Future monitorCharacteristicForPeripheral(Peripheral peripheral) async {
await _runWithErrorHandling(() async {
_startMonitoringTemperature(
peripheral
.monitorCharacteristic(
serviceUUID,
charUUID,
transactionId: "monitor")
.map((characteristic) => characteristic.value),
(value){
print("monitor value:" + value);
});
});
}`
and i try your code,the log is:
D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin( 9187): on native side observed method: characteristics I/flutter ( 9187): Characteristic 12345678-1234-5678-1234-56789abcdef1 can be monitored: true

Can you try running:

List<Characteristic> characteristics =
      await peripheral.characteristics("12345678-1234-5678-1234-56789abcdef0");
  Characteristic characteristic = characteristics.firstWhere(
      (e) => e.uuid == "12345678-1234-5678-1234-56789abcdef1",
      orElse: () => null);

  if (characteristic == null) {
    print("Characteristic not found");
  } else {
    print(
      "Characteristic:\n"
      "uuid: ${characteristic.uuid}\n"
      "isReadable: ${characteristic.isReadable}\n"
      "isWritableWithoutResponse: ${characteristic.isWritableWithoutResponse}\n"
      "isWritableWithResponse: ${characteristic.isWritableWithResponse}\n"
      "isIndicatable: ${characteristic.isIndicatable}\n"
      "isNotifiable: ${characteristic.isNotifiable}\n",
    );

and attaching the print?

Can you set log level to LogLevel.verbose, run your scenario and attach the logs?

BTW for long snippets use triple back ticks, instead of single:

it is work for now! the reason is that device notification data is too long,now we change the data's length,it work fine;

Cool, happy to hear that. Hope you have a good time with the library!


Unable to run coverage on module

Describe the bug
Can't run on single module
To Reproduce
python -m coverage run --source image_matching.py -m pytest

tests\test_image.py ..................

18 passed in 0.40s

Coverage.py warning: Module image_matching.py was never imported. (module-not-imported)
Coverage.py warning: No data was collected. (no-data-collected)
No data to report.

test_image.py ONLY imports  image_matching.py, all the tests passed, so it was definitely imported
This works:
python -m coverage run --source . -m pytest

but it coveres absolutely everything, venv, and all.
interestingly, omitting the --souce and running:
python -m coverage run  -m pytest

causes it to cover everything in site packages on C: but none of the actual code in the directory its run from (on V:).
questions below:

What version of Python are you using?
3.7

What version of coverage.py are you using? The output of coverage debug sys is helpful.
5.1

What versions of what packages do you have installed? The output of pip freeze is helpful.

        "connexion==2.7.*",
        "environs==8.0.*",
        "fire==0.3.*",
        "flask==1.1.*",
        "flask_migrate==2.5.*",
        "flask_sqlalchemy==2.4.*",
        "kombu==4.6.*",
        "numpy==1.18.*",
        "opencv-contrib-python==<IP_ADDRESS>",
        "pandas==1.0.*",
        "pillow==7.1.*",
        "psycopg2-binary==2.8.*",
        "scipy==1.4.*",
        "waitress==1.4.*"

What code are you running?  Give us a specific commit of a specific repo that we can check out.

What commands did you run?
'python -m coverage run --source image_matching.py -m pytest'

Expected behavior
Coverage to run as normal, but on a single module
Additional context
Am on windows 10

Hi, sorry this has taken so long.  The --source setting should be a directory or module name.  image_matching.py is not a directory, and it's not importable as import image_matching.py.   It should work if you use --source=image_matching.


Visualizing Results

Hi,
I was trying to retrain this model locally, while the model trains successfully and I am able to store the index, meta and data files, I am unable to figure out how to visualize the results. I was trying to use the following command to plot the results:
python -m baselines.run --alg=a2c --env=PongNoFrameskip-v4 --num_timesteps=0 --load_path=my-model-72000.data-00000-of-00001 --play
I put the index, meta and data files generated in the root folder along with PongNoFrameskip-v4 folder to avoid path issues.
The issue is that baselines folder does not have any run.py file. I tried copying the openAi baseline run.py file here but that doesn't seem to work. Can you please help me with how to visuzalize the results of the trained model?

Hello! Usually we use tensorboard to visualize results, as most of our scripts will create a logs directory that records a bunch of training metrics. There's also some code (for example in a2c.py) that saves videos of the model during training. It currently syncs to aws, but you can probably change it to just save locally. Hope this helps :)

Thanks a lot for your reply. I will take a look at it.


Run bin/pre-compile and/or bin/post-compile if they're -x

Fixes #78 (sort of)
78 was initially about running migrations, which shouldn't be done
during a build. For that use release phase.
But it's useful to be able to do other things when the go tools are
around without having to install them into your slug (see
GO_INSTALL_TOOLS_IN_IMAGE).

cc @jmorrell

I read through the linked PR, it seems like we're trying to address a lot of functionality via one mechanism and deriving some guidelines on that from the python buildpack - I don't necessarily recommend following that particular pattern though, as sub_env has unexpected outcomes when users try to use the hooks, and at least in Python was a broad stroke that tried to do too many things and only sort of resolves some of the things
I'm having trouble grokking the specific use cases where users would want to use tools in a throwaway process and not include them in the slug or main process though, so that's context I'm missing

PS: Sorry for the late responses, I've been sick for the last 3 days.

I think I overall still prefer the idea of using a directive in go.mod for this purpose, link since it prescribes less about the user's directory structure and requires less work from the user.
But this also solves the problem for people who haven't or can't move to go modules yet, so I'm +1

@jmorrell FWIW: I've only implemented this for go modules and have no intent on "backporting" it to work with other tools.

If there is a consensus that my // +heroku go.mod hack is better then I can do that instead.
But ...
I don't feel that it's less work for the user, in fact I feel that it's the complete opposite: more work for the user. They need to not only create a file somewhere, but also have to know to add the magic comment to go.mod, make sure there aren't any typos, etc.

@jmorrell Made a point to me (offline) that the // +heroku comment hack doesn't require a seperate file, but could embed random commands.
While that's fine and many tools do that: I'm against that as there are a bunch of hidden implications related to executing whatever is in that string. For instance commands that use shell bits like && imply that a shell is being used to execute the script (which is true for now; but may not always be). I also don't want to have to figure out and fight for all the limits of // + comment handling in the go.mod/go parser.


Cypress test for issue 1368.

Cypress test for issue 1368.
Motivation and context

How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[ ] I have added description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

Pull Request Test Coverage Report for Build 7324

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 70.809%

Totals

Change from base Build 7319:
0.0%

Covered Lines:
12498

Relevant Lines:
17258

💛  - Coveralls


How to extract with the CSV agent - only one row?

How to extract with the CSV agent - only one row? what should be the name of this object? somebody know?

The CsvAgent always parses the whole csv and emits all rows as Events. You could send the events to a DelayAgent and let it only save one Event.

Thanks a lot!


lint-staged: init at 13.0.3

Description of changes

Add the lint-staged package @ v13.0.3
Add myself to the list of maintainers

lint-staged provides a graceful workflow for linting partially-staged or fully-staged files in a git repo, usually in a pre-commit hook. It can even manage formatting-related side effects to partially-staged files. Oftentimes I see these tasks handled in a very fragile and bespoke way across many projects, but this tool is the only approach I've worked with that hasn't been prone to frustrating bugs while I commit individual hunks of files. At the moment, lint-staged is the only reason I prefer keeping a package.json around in my non-JS repos. I think it would be great if it were available as a Nix installable since perhaps it could then find greater usage outside of the JS ecosystem.
It appears as though this is the first package to use buildNpmPackage! I initially attempted to add lint-staged to the list in node-packages.json, however I was unable to update the generated file due to an npm package that failed to fetch.
Re: functionality: I've removed lint-staged from my personal configs' package.json and swapped it out with the package from this branch.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This is prohibitively slow on MacOS.

Yeah I see the builds timed out while building Node from source. My local build completed in a very short period of time without issue. Shouldn’t Node be pulled from a binary cache here?

Or I guess the better question: what can I do to move this along? Could this be related to using buildNpmPackage?

@ofborg build

Looks like the x86_64-darwin build is hanging while trying to build llvm-11.1.0:
...
[ 53%] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILowerControlFlow.cpp.o
building of '/nix/store/j72dsvdipj95bpi46j0vd7zpwa95hysv-llvm-11.1.0.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/hb2ja2irh6f8jfjncb4782psbs51z2j2-cctools-binutils-darwin-973.0.1.drv': 1 dependencies couldn't be built
...

aarch64-darwin seems a bit more vague to me:
  c++ -o /private/tmp/nix-build-nodejs-18.12.1.drv-0/node-v18.12.1/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/codegen/assembler.o ../deps/v8/src/codegen/assembler.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DV8_TARGET_ARCH_ARM64' '-DV8_HAVE_TARGET_OS' '-DV8_TARGET_OS_MACOS' '-DV8_EMBEDDER_STRING="-node.12"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-DV8_ATOMIC_OBJECT_FIELD_WRITES' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH' '-DV8_SHARED_RO_HEAP' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DV8_SNAPSHOT_COMPRESSION' '-DV8_ENABLE_WEBASSEMBLY' '-DV8_ENABLE_JAVASCRIPT_PROMISE_HOOKS' '-DV8_ALLOCATION_FOLDING' '-DV8_ALLOCATION_SITE_TRACKING' '-DV8_SCRIPTORMODULE_LEGACY_LIFETIME' '-DV8_ADVANCED_BIGINT_ALGORITHMS' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' -I/nix/store/h2dyr6yhym9hlfn9vhirqyy71y1nlsnv-zlib-1.2.13-dev/include -I/nix/store/p5bx0faa7byic5l0hi06pmxvh9d5ixv6-libuv-1.44.2/include -I/nix/store/bij3hx9n4frj37michhc01zr09pl3lip-openssl-3.0.7-dev/include -I/nix/store/s728i9jzghxhyjq7gbb3qwyz7dwfqf17-icu4c-72.1-dev/include -I../deps/v8 -I../deps/v8/include -I/private/tmp/nix-build-nodejs-18.12.1.drv-0/node-v18.12.1/out/Release/obj/gen/inspector-generated-output-root -I../deps/v8/third_party/inspector_protocol -I/private/tmp/nix-build-nodejs-18.12.1.drv-0/node-v18.12.1/out/Release/obj/gen -I/private/tmp/nix-build-nodejs-18.12.1.drv-0/node-v18.12.1/out/Release/obj/gen/generate-bytecode-output-root -I../deps/v8/third_party/zlib -I../deps/v8/third_party/zlib/google  -O3 -gdwarf-2 -fstrict-aliasing -mmacosx-version-min=10.15 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF /private/tmp/nix-build-nodejs-18.12.1.drv-0/node-v18.12.1/out/Release/.deps//private/tmp/nix-build-nodejs-18.12.1.drv-0/node-v18.12.1/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/codegen/assembler.o.d.raw   -c
error: building of '/nix/store/q1l4mxls25k6kzpkn89dfwy44iss1qnz-nodejs-18.12.1.drv!out' from .drv file timed out after 3600 seconds
error: 1 dependencies of derivation '/nix/store/phg38m931y4lnlm3lihf7f8bd4pl088k-npm-install-hook.drv' failed to build
error: 3 dependencies of derivation '/nix/store/7rhy3wd1r0v87vnlpf0aj67wfj539a10-lint-staged-13.0.3.drv' failed to build

@montchr This should probably target master rather than staging, since it doesn't have a large rebuild count or anything
Targeting staging could also be why OfBorg was trying to build nodejs and stuff on Darwin, if it was building from the staging branch before the Hydra builds were cached during staging-next (not sure if OfBorg rebases before evaluating like nixpkgs-review or not)
There are instructions here for how to rebase between branches while avoiding accidental pings: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging (the example instructions are for master -> staging, so make sure to swap those before copying commands)

@montchr Could you update to the latest version and switch to master branch?

Superseded by https://github.com/NixOS/nixpkgs/pull/260524


Bootstrap table example?

Hello
is there any demo of how to "clusterize" Bootstrap table, please?
Thank you.

How bootstrap's table differs from common table?
..correct, it has additional classes. So that just add bootstrap's classes to table's layout that provided in Clusterize' docs.
JS will be same as at example in docs

Thank you but if I know how to do that then I will not ask.
If you can provide some example, I will be grateful.


Possible Bug in  NegativeBinomial()

Hi, Thank you so much for this package.
The potential issue is with https://github.com/scverse/scvi-tools/blob/2779a3244a6265a3a5c7bc2f174914b684e57350/scvi/distributions/_negative_binomial.py#L564
There gamma_d is being calculated by _gamma(mu, theta)
While _gamma function is defined as:
def _gamma(theta, mu):
    concentration = theta
    rate = theta / mu
    # Important remark: Gamma is parametrized by the rate = 1/scale!
    gamma_d = Gamma(concentration=concentration, rate=rate)
    return gamma_d

It looks that mu and theta are flipped in the function call
This is in the main branch.

Indeed this looks like a bug, but it's restricted to NegativeBinomialMixture sample method, which is only used by one method of totalVI


SSMS leaves the user with no clue - docs don't help either.

Where is it?  I just installed SSMS - there are no desktop shortcuts or anything to indicate WHERE these tools are.  The docs seem to omit that information as well.  windows search finds nothing locally for SSMS or "Management Studio",
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3a6234d9-12fa-7843-5abf-79cefc84b167
Version Independent ID: fff09871-4ea5-aa72-6365-1539b2ed03bc
Content: SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS)
Content Source: docs/ssms/sql-server-management-studio-ssms.md
Product: sql
Technology: ssms
GitHub Login: @markingmyname
Microsoft Alias: maghan

@sanfordstaab -- Sanford, thank you for your feedback.  Please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow

@markingmyname -- Mark, please look into this issue.

@sanfordstaab
We apologize for this experience.
However, once installed you should be able to just go to the Start button and just scroll till you see it available.

Thank you!  I did eventually found it in the menu.  It's a shame search
couldn't find anything with "SQL" in it.
I get an error that sqlsvr.exe is corrupted when I try to run it.
I have switched to SQLite for my current needs.
On Mon, Dec 27, 2021 at 3:06 PM Mark Ghanayem @.***>
wrote:

@sanfordstaab https://github.com/sanfordstaab
We apologize for this experience.
However, once installed you should be able to just go to the Start button
and just scroll till you see it available.
[image: image]
https://user-images.githubusercontent.com/22989000/147512656-be35aa27-5267-4243-b2c5-efdcd6eaafac.png
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/sql-docs/issues/7139#issuecomment-1001792197,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5N37PEOGXHOQBYCSSSHMTUTDWOXANCNFSM5KVSX2HQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Sandy (Sanford) Staab

@sanfordstaab
I do apologize that the search did not recognize SSMS for you.
Another suggestion is, you can search for SSMS as well and it should appear.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion, and we will reopen the issue. To see what the community is wanting, please visit the SQL Server User Feedback site.


Remove vizceral project?

Should we remove the vizceral project since it's no longer supported by telemetry team and also I believe deprecated by netflix as well? @eloots

@kikiya
👍
Indeed! Submit a PR for it?

does this mean just removing exercise_016_es_vizceral folder and corresponding project from build.sbt?

yes, and I'll renumber the activities then submit the PR @agolubev

Ok

Implemented as part of #119


VRTK_BasicTeleporter: destination marker registration timing issue

Due to the delay in registration with destination markers, if a teleporter is disabled during its first tick, it registers with all listeners at the end of the frame even though it's supposed to be deregistered.  This causes trouble with, for example, having multiple teleporters and swapping between them at runtime via enabling/disabling the components.  The timing issue can be resolved by changing the init coroutine as follows:
private IEnumerator InitListenersAtEndOfFrame()
{
    yield return new WaitForEndOfFrame();
    if (enabled)
    {
        InitDestinationMarkerListeners(true);
    }
}

how does that co-routine even run if the teleporter script is disabled?

It's already started when the script gets disabled.  The other answer is "Unity"

Oh right, so the teleport script is enabled on start, you disable it via a script also on start, but because it started enabled it will still cause the co-routine? is that right?

Yup.  And the enabled check fixes the issue.  Another thing that would work is putting StopAllCoroutines() in OnDisable

I think both are valid. No harm in double checking :)

True that

PR to fix the issue: https://github.com/thestonefox/VRTK/pull/889


Update ontology docs to mention CURIEs?

Our current main ontology documentation page does not have any mention of the need for users to use CURIEs when referring to ontology terms.
https://docs.airr-community.org/en/stable/ontovoc/introduction_ontovoc.html
I think this should be changed, as it not very clear that the data within a AIRR compliant file should be a CURIE with an uppercase prefix (as per the spec) and the ontology ID (e.g. NCBITAXON:9606).
I would suggest having the following headers for this page:

Summary
Using CURIEs
Approved Ontologies
Sprint Reports

Also, in the approved ontologies section, should we mention the AIRR CURIE prefix explicitly (probably with an example), as this it what is expected to be in the AIRR files?
@bussec thoughts?

I agree that it should be mentioned on the main page for ontologies. Just not sure whether it is the only principle that should be mentioned there. But the text is all in the sprint reports, we just would need to condense it into one or two paragraphs.
And yes, the CURIE prefix should be listed in the Approved Ontologies list. If anyone has ideas how to present this list in a more appealing way, I would be open to change the current layout.

I agree that it should be mentioned on the main page for ontologies. Just not sure whether it is the only principle that should be mentioned there. But the text is all in the sprint reports, we just would need to condense it into one or two paragraphs.
And yes, the CURIE prefix should be listed in the Approved Ontologies list. If anyone has ideas how to present this list in a more appealing way, I would be open to change the current layout.

I will take a stab at making some changes on the https://github.com/airr-community/airr-standards/tree/doc-fixes branch and get you to review... I have had two questions about this in the last week or two, so I think we need something...

@bussec have a look at the new docs: https://github.com/airr-community/airr-standards/blob/doc-fixes/docs/ontovoc/introduction_ontovoc.rst

Looks good. Did some minor changes (doc-fixes branch) and created a PR (#443).


compatible with Mautic 4.x

tested with 4.3.x

@indorock Can you make these changes against the 1.2 branch. There are some additional changes in there as well for pixel tracker.

Closing since most of this is already included in the 1.2 branch


Update quickstart notebook to indicate that JAX has TPU support today.

Well, we have TPU support internally at Google, but JAX doesn't work with Cloud TPUs yet for arcane infrastructure reasons. That's why we left this as "coming soon!" for the external-facing docs.
WDYT? Should we indicate that JAX works with TPUs, even though it doesn't work with Cloud TPUs?

Ah, I didn't realize that!  I will keep an eye out for other parts of the docs that suggest that TPU support is there.


Update auth0 to 1.32.0

Updates com.auth0:auth0 from 1.27.0 to 1.32.0.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.auth0", artifactId = "auth0" } ]

labels: library-update, semver-minor

Superseded by #226.


Move codecoverage over to coveralls

Codecov.io doesn't work without sudo access, which travis-ci disabled for the new container based packages
Ref #148

Note that numbers are lower than jacoco because cobertura doesn't currently instrument integration tests, only unit tests.   We can move back to using jacoco only once this issue is resolved:
https://github.com/trautonen/coveralls-maven-plugin/issues/60


Fix nested defaults usage

Pull Request Test Coverage Report for Build 78

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 73:
0.0%

Covered Lines:
125

Relevant Lines:
125

💛  - Coveralls


whizzml api REST methods

to compare changes. After that, it will substitute next.

rebased to next.  closing manually, thanks!


Add pallet names to Events

This PR changes the pallet events variants from tuples to structs with named fields
Part implementation for #9903, #9993, #10184, #10206, #10257
Pallets with changes

scheduler
society
system
treasury
transaction-storage
utility

I also made a few changes to the following pallets after I changed the pallet events variants from tuples to structs with named fields in the system pallet. i.e NewAccount, KilledAccount, Remarked.

balances
contracts
offences
transaction-payment

Polkadot address: 13g44iYtkxLZ2tkp6iTJiqs7yEiEr4bVsPZTueWDjd6Bor1P

CI isn't happy. You need to fix up some tests. I think those are the ones which aren't run when you run tests from the repo root.

It seems that some of the events are also used by polkadot. You will need to create a companion in order to pass CI.

I have made the changes @athei @bkchr.

cargo +nightly fmt

I have made those changes, Thanks @athei.

@ECJ222 CI is still failing on cargo fmt, did you use the latest nightly rust to run it?

@ECJ222 CI is still failing on cargo fmt, did you use the latest nightly rust to run it?

@KiChjang yes I did, I used rustup update for updating immediately before running cargo +nightly fmt for formatting.

What CI is telling you right now is that your companion for polkadot is failing to compile.

What CI is telling you right now is that your companion for polkadot is failing to compile.

All the checks in my (Polkadot)companion pr passes, but the Polkadot CI check in this pr is still failing.
@athei please is it still for the same reason you mentioned earlier?

@athei please is it still for the same reason you mentioned earlier?

I seems that I misunderstood how the companion CI works these days. It appears that the failing job is expected when applying a breaking change. I will need to check whether it is OK to merge.

I seems that I misunderstood how the companion CI works these days. It appears that the failing job is expected when applying a breaking change. I will need to check whether it is OK to merge.

Okay @athei.

CI is not making any damn sense to me, I've restarted it multiple times but it still errors on the event types on the companion PR, but then the companion PR CI is all passing! I've no idea what's going on here, it's all arcane magic to me. cc @paritytech/ci

bot merge

bot merge force

bot merge

Hi @bkchr,
Hope you are having a great day, please do you know why this error occurs Error: Response error (status 404 Not Found) when you try the bot merge command?

bot merge

/tip medium

/tip medium


docs: How to updated related entity id?

Suppose there are 2 entities like Author and Book.
Simplified code looks like below:
@Entity()
class Author {
  @PrimaryKey()
  id: number

  @Property()
  name: string
}

@Entity()
class Book {
  @PrimaryKey()
  id: number

  @Property()
  name: string

  @ManyToOne(() => Author)
  author: Author
}

Imagine that frontend sends a payload for updating Book and contains authorId field for updating author field, for example
{ name: 'new name', authorId: 2 }

I found similar issue for type-orm
https://stackoverflow.com/questions/67212239/typeorm-update-entity-column-with-relation-joincolumn-via-repository
Using similar approach to mikro-orm gives double author_id field in migration generator and schema generator.
How to update author (or authorId field) using a minimum code and keep type safety?

Are you updating the name of the book or the author? Have you checked this page? https://mikro-orm.io/docs/entity-helper


Add Money exchange

Support money exchange services with third-party data sources.
Added https://github.com/florianv/swap as a default implementation.
This also seem to solve florianv/swap#15. Although it is not a separate library, but I think still flexible from Money point of view: one is not tied to a specific implementation.

/cc @florianv @umpirsky

:+1:

:+1:


ETL: minimal solution for approval

There's a PR coming up for Mentor Notes for ETL
This is the Minimal Solution for Approval that I currently have:
class ETL

  def self.transform(source)
    source.each_with_object({}) do |(score, letters), destination|
      letters.each { |letter| destination[letter.downcase] = score }
    end
  end
end

Or with inject  and invert
def self.transform(source)
  source.invert.inject({}) do |destination, (letter, score)|
    letter.each { |letter| destination[letter.downcase!] = score }
  end
end

There's not a lot of recent examples. Are these equally approvable? Are there other approaches equally approvable? Other thoughts?
(ETL is meant to become a core exercise. Directly after Word Count, which is the first practice with each_with_object)
Edit (insti): ETL Readme

A variant on this has already been mentioned, but I prefer:
module ETL
  def self.transform(old)
    old.flat_map { |score,letters| letters.map(&:downcase).product([score]) }.to_h
  end
end

There's nothing wrong with nested blocks, but I find this a little easier to read. But, perhaps I value concision unduly.

I'm going to go ahead and close this. If someone would like to move forward with anything in this discussion I would recommend opening a PR to add mentor notes in https://github.com/exercism/website-copy.


UTM for Windows

Hello! I’ve just discovered this app and wanted to try it. I only have a windows laptop but no MacBook. I wanted to try this app but I can’t do it, can you make a UTM for windows? Thanks!

UTM is simply a very well designed frontend for qemu, the computer emulator, with optional virtualization support supplied depending on the operating system. You can use qemu on Windows without a frontend, but it will need to be configured via batch files or similar if you want to save the command you use to start the machine.
I’m not aware of any good frontend for qemu on Windows. AQEMU may work but I found it to be less than ideal on other operating systems. virt-manager on Linux is fantastic but limited to that platform.
Keep in mind there are other virtualization options available on Windows such as VMware Workstation Pro (now free), Virtualbox, and the low level emulators PCem and 86box. For emulation of other modern architectures, qemu is still the most ideal.
While it would be cool if UTM was available on Windows or Linux, I don’t see this happening due to project goals. However, I’m just a fan of the project however, so take my response with a grain of salt.

There are no plans to bring UTM to non-Apple platforms as it's designed from the ground up with Apple technologies.


Comments beautified in DelegatableVotes

Comments in DelegatableVotes are beautified

Codecov Report

Merging #72 (ef28fe6) into master (72e3aaa) will increase coverage by 0.89%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   86.51%   87.41%   +0.89%
==========================================
  Files          34       34
  Lines        2129     2129
  Branches      313      313
==========================================
+ Hits         1842     1861      +19
+ Misses        287      268      -19

Impacted Files
Coverage Δ

contracts/powerindex-mining/DelegatableVotes.sol
91.78% <ø> (ø)

contracts/PowerIndexPool.sol
100.00% <0.00%> (+6.15%)
:arrow_up:

contracts/PowerIndexPoolController.sol
97.61% <0.00%> (+35.71%)
:arrow_up:

Continue to review full report at Codecov.

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


Move git-preview from scoop-extras to scoop

If you need to install git, the git app available in scoop list is git which install msysgit 1.9.5-preview, which I think is a really old version of git.
scoop-extras bucket has a git-preview app which install git for windows 2.4.0, a much for newer version  (the latest git version is 2.4.1).
The only problem I found is that if you wish install git-preview you need add scoop-extras bucket first and you need git for this, so in my case, I need to install git (1.9.5), add scoop-extras, then remove git and install git-preview (2.4.0).
So I ask you if you could move git-preview app to scoop list instead of scoop-extras bucket, so it will be needed only on install.

You're right. 1.9.5-preview is a very old version of git. However for a long time it was the only stable version available.
We have been testing the newer builds of git under git-preview in scoop-extras to make sure it is ready to move to the main bucket.
Check out our discussion here: https://github.com/lukesampson/scoop-extras/pull/86

@lukesampson Does the latest version of git-preview solve your issue with ssh-agent?

No it still doesn't work, unfortunately. I'd be ok with making the preview version the new git and moving the current version to git19 though, if you want?

Yeah @lukesampson I'm happy to as well. Would @cng-thg be happy to submit the PRs?

Fixed in fc9b7f9308a15f6e2a1334f26e3727e00bd4298b


ModuleNotFoundError when trying to download the Shakespeare data with the script you provided

This repository seems promising, but I was running into an error very early in the walkthrough... I was hitting ModuleNotFoundError when trying to run the script to download the Shakespeare data. I tried also passing the -m flag, but still to no avail. Any tips?

Hello @KatlehoJordan
Thanks for spotting this issue. Honestly I didn't test loading of the dataset for quite a while :)
The issue was in the name of the download script: it was download_tiny_shakespear.py and in README file download_tiny_shakespeare.py. The difference is in the letter e in the end ( oops 😃 ).
I also noticed one more issue with type check guard and fixed it also.
In a minute I'll merge changes to the main branch. Please test it.

Thanks for responding.
This  did not solve the problem (I used tab-completion from terminal to direct to the path, rather than copying-and-pasting from the README.md).
When running the script as it's own entrypoint, it is not finding the src module that is referred to in the first line.
Here is a fork where I've added at the top of the README.md the exact steps I took and the error I encountered.
https://github.com/KatlehoJordan/nanoGPTplus?organization=KatlehoJordan&organization=KatlehoJordan
For completion, I've copied the relevant details here:
Steps taken

Fork the repository
Start up a GitHub Codespace in the browser.
Run poetry install from the terminal in the codespace.

@KatlehoJordan ➜ /workspaces/nanoGPTplus (main) $ poetry install
The currently activated Python version 3.10.4 is not supported by the project (~3.10.8).
Trying to find and use a compatible version.

Poetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command.

Modify pyproject.toml to indicate 3.10.4
Run poetry install from the terminal again. This time the installations work, but a warning is given:

Warning: poetry.lock is not consistent with pyproject.toml. You may be getting improper dependencies. Run `poetry lock [--no-update]` to fix it.

Run poetry lock to update poetry.lock
Run python src/data/scripts/download_tiny_shakespeare.py from the terminal to download the data.

@KatlehoJordan ➜ /workspaces/nanoGPTplus (main) $ python src/data/scripts/download_tiny_shakespeare.py
Traceback (most recent call last):
  File "/workspaces/nanoGPTplus/src/data/scripts/download_tiny_shakespeare.py", line 1, in <module>
    from src import config
ModuleNotFoundError: No module named 'src'

Thanks for such a rich description of a problem.
I see what the problem is.
When you do poetry install it install packages and also the project itself.
You can see it in the pyproject.toml file:

[tool.poetry]
...
packages = [{include = "src"}]
version = "1.0.0"

After successful install the output should look like this:

• Installing tensorboard (2.12.0)
• Installing torch (1.13.1)
• Installing tqdm (4.64.1)
Installing the current project: nanogpt (1.0.0)

Now I see that I forgot to rename nanogpt to nanogptplus 😄
Anyway, back to your problem. It seems that something prevented from installing src package. I assume that this is because of the change of python version in pyproject.toml file. I assume that after you did poetry.lock you should have run poetry install one more time.
In a short that how it suppose to be done:

Change python version in pyproject.toml
poetry lock (or even better poetry lock --no-update since you only changed bugfix version of python)
poetry install

I could not replicate your issue on my machine.
I've cloned my repo in a separate folder, installed python 3.10.4, activated it, tried to run poetry install, got the error, changed python version from 3.10.8 to 3.10.4, run poetry install and it worked without error (only mentioned that poetry.lock is not consistent with pyproject.toml).
I tried to do the same in github codespaces (though I've never used it before, so I might did something not correctly).

I've created blank codespace
cloned my repo
changed directory: cd nanoGPTplus
created virtual environment: python -m venv venv
activated it: source venv/bin/activate
as there is no poetry on the codespaces machine, I installed it in the venv: pip install poetry
and the rest is the same: poetry install, got error, changed python version in pyproject.toml file, poetry install, after that all three scripts (download data, train and generate) worked without problems.

Anyway, I am planning to change required python version since there is so much hustle to change it manually. I am thinking to downgrade it to python3.8 (in order to work on Google Colab). Some changes in the code are required since I used some new functionality that was introduced in python3.10.

I will try to revisit this in the next 48 hours to see if I get it working with your feedback.
Thank you!

I've created blank codespace
cloned my repo
changed directory: cd nanoGPTplus
created virtual environment: python -m venv venv
activated it: source venv/bin/activate
as there is no poetry on the codespaces machine, I installed it in the venv: pip install poetry
and the rest is the same: poetry install, got error, changed python version in pyproject.toml file, poetry install, after that all three scripts (download data, train and generate) worked without problems.

Here we did things in a slightly different order; I forked the repository first, then from the repository created a codespace on the main branch. The default codespace configuration was smart enough to detect that poetry would be needed and installed it for me once the codespace was launched.
In any case, with your instructions, I was able to get the script to work, 😄 .
After starting the codespace, I followed your tips up to the poetry install step. Thereafter I did poetry shell, then python src/data/scripts/download_tiny_shakespeare.py... Success! 🥳
Thank you for your work and your help!

Glad that it worked for you.
That reminded me that I wanted to add at least smoke tests, but never did.
Now the repo includes simple smoke tests for dataset download, train for bigram and gpt models and new tokens generation. Plus I added a github workflow for each pull requests, so it will run these smoke tests on linux/macos with python 3.8/3.9/3.10. Seems like for python3.11 pytorch is available only on linux platform. And as for windows ... I didn't manage to make it work with github actions and I don't have windows locally, so I guess I have to assume that everything is fine 😸


Bubbleshowcase Screenshot

This weird behavior happens sometimes can't seem to put a finger on it..

This weird behavior happens sometimes can't seem to put a finger on it.

@PrashantTiwari123 you're experiencing this too I see

Yes App crashed and not able to find out this at my end. getting this
error.
partial apply forwarder for closure #2 () -> () in
BubbleShowCase.BubbleShowCase.(takeScreenshot in
_6C61E71B2EB682DC290B23F96E92C494)() -> () BubbleShowCase.swift:1009
Could you please help me out with this error.  Because this crash is
happened  many of the users.
Regards,
Prashant Tiwari
On Tue, May 19, 2020 at 5:58 PM Jude<EMAIL_ADDRESS>wrote:

@PrashantTiwari123 https://github.com/PrashantTiwari123 you're
experiencing this too I see
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ECLaboratorio/BubbleShowCase-iOS/issues/6#issuecomment-630785219,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHZUHD2VY42FTYMDZQVTMRLRSJ3OTANCNFSM4MYWA66A
.

I have the same problem too... anyone seems to figure out the cause please?
I need some help.

Hi @invisibleBully @lohithkorp I fixed this by applying a nil checker making sure that the self.target is not nil, before executing the code. I hope this helps
        if let parent: UIView = self.target.superview {
            if let screenshot = parent.resizableSnapshotView(from: self.target.frame, afterScreenUpdates: false, withCapInsets: UIEdgeInsets.zero) {
                screenshot.backgroundColor = self.sreenshotContainerBackground
                screenshot.translatesAutoresizingMaskIntoConstraints = false
                screenshot.isUserInteractionEnabled = false
                screenshotShadow.addSubview(screenshot)

                let centerXImage = screenshot.centerXAnchor.constraint(equalTo: screenshotShadow.centerXAnchor)
                let centerYImage = screenshot.centerYAnchor.constraint(equalTo: screenshotShadow.centerYAnchor)
                let widthImage = screenshot.widthAnchor.constraint(equalToConstant: targetFrame.width)
                let heightImage = screenshot.heightAnchor.constraint(equalToConstant: targetFrame.height)
                screenshotShadow.addConstraints([centerXImage, centerYImage, heightImage, widthImage])
            }

        }


Live config reloading + logging level

Most indepth logging level can include full raw log output

Probably linked with https://github.com/goshuirc/bnc/issues/15

Yeah this is the sorta stuff I wanna get accomplished by copying Oragono's logging. The way Oragono does it is flexible and quite nice imo, so it'd be cool to clone that directly. I can migrate this over for the 'core' and then we can pass it along to the components as well.
It should be kept in mind, logging for history (ala message logging) and logging to a log file / to the terminal are completely separate. We can continue with the current differentiator by just calling the former "message logging" and this... "debug logging" or something similar.


The VisualNOS group is unreadable

The light themes all end up as black on purple which is unreadable, at least on my monitor it is.
At the moment I'm using hi! link VisualNOS Visual as a workaround but I think someone out there may want to know when vim doesn't own the selection anymore.

Yep, I never use that, will fix -- make it close to normal highlight.

I tried just adding an underline to it when VisualNOS -- not sure if a great solution.


Error occurred: Status: invalid, Detail: , Type: http-01

We recently started having errors occur when attempting to renew certs. In the past I have deleted the old key Via WHM and then simply renewed.  But this time around I get the following error: "Error occurred: Status: invalid, Detail: , Type: http-01"  I checked the log and see the same response.
After some time I was able to get it to renew properly, but in order to avoid the issue recurring I'm curious if theres somewhere else I should look for what may have gone wrong.

That issue is caused by the .well-known folder, in the README there's a apache .htaccess file with a fix for it.

i have add .htaccess
RewriteRule ^.well-known(.*)$ - [L,NC]
under public_html/
but the error still same.

http://www.mochasupport.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=783&nav=0,64
If you see the error below in our cPanel Let's Encrypt plugin for both shared or VPS/Cloud:
Error occurred: Status: invalid, Detail: , Type: http-01
The error means that the your domain name is not pointed to us and can not be validated. The domain needs to be pointed to your account hosted with us in order for Let's Encrypt to validate it and SSL to be installed.


add missing pipeable definition for xxx3EC variants -  fixes #27

@mikearnaldi I've kept commented the unhandled cases to ease exchange


Update to scalacheck 1.16.0

About this change - What it does
Updates scalafmt to the latest 1.16.0 release
Why this way
Just a standard version bump

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 76.728%

Files with Coverage Reduction
New Missed Lines
%

core-s3/src/main/scala/io/aiven/guardian/kafka/s3/Config.scala
1
82.98%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
333

Relevant Lines:
434

💛  - Coveralls


Delete a service.

Delete a service never seams to return anything even when using the site "Try It Out" feature.

Moved to https://github.com/Pushjet/Pushjet-Server-Api/issues/2


HTTP status: 502 Bad Gateway

docker pull k8s.m.daocloud.io/kube-apiserver:v1.28.2
Error response from daemon: received unexpected HTTP status: 502 Bad Gateway

测试了下，好像多个域名 m.daocloud.io 都 502 了。

+1 still can't work.

是的挂了, 由于磁盘满了, 以及清理并恢复了

/close


Fix network setup page

Has to have different stake per city (all nodes per city have same stake)

stake, votingPower, electionAlgo, antiMaliciousAlgo, blockSize is already filled from simulation settings page
please set the react redux state for:
numNodes, numMaliciousNodes, throughput, finality, nakomotoCoeff


MeasureAxis typo thickLength used instead of tickLength

Hello,
Thanks for this great package.
Could you please correct the typo in MeasureAxis property thickLength.
Thank you

tickLength is property used inside community_charts_flutter. Then i use
same property name
Pada Jum, 16 Agu 2024 21.14, BS-Wissem @.***> menulis:

Hello,
Thanks for this great package.
Could you please correct the typo in MeasureAxis property thickLength.
Thank you
—
Reply to this email directly, view it on GitHub
https://github.com/indratrisnar/d_chart/issues/33, or unsubscribe
https://github.com/notifications/unsubscribe-auth/APTLYD6QGRBCOIRVVW4AKO3ZRYCMFAVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TAMZWGMYTGNQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Reference to "tick" / plot point. Not "thick" AS wide
Pada Sab, 17 Agu 2024 01.06, Indra Trisna @.***>
menulis:

tickLength is property used inside community_charts_flutter. Then i use
same property name
Pada Jum, 16 Agu 2024 21.14, BS-Wissem @.***> menulis:

Hello,
Thanks for this great package.
Could you please correct the typo in MeasureAxis property thickLength.
Thank you
—
Reply to this email directly, view it on GitHub
https://github.com/indratrisnar/d_chart/issues/33, or unsubscribe
https://github.com/notifications/unsubscribe-auth/APTLYD6QGRBCOIRVVW4AKO3ZRYCMFAVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TAMZWGMYTGNQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

You can check the property it is named thickLength which is not correct.
On Fri, Aug 16, 2024, 19:08 Indra Trisna Raharja @.***>
wrote:

Reference to "tick" / plot point. Not "thick" AS wide
Pada Sab, 17 Agu 2024 01.06, Indra Trisna @.***>
menulis:

tickLength is property used inside community_charts_flutter. Then i use
same property name
Pada Jum, 16 Agu 2024 21.14, BS-Wissem @.***> menulis:

Hello,
Thanks for this great package.
Could you please correct the typo in MeasureAxis property thickLength.
Thank you
—
Reply to this email directly, view it on GitHub
https://github.com/indratrisnar/d_chart/issues/33, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/APTLYD6QGRBCOIRVVW4AKO3ZRYCMFAVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TAMZWGMYTGNQ>

.
You are receiving this because you are subscribed to this
thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
https://github.com/indratrisnar/d_chart/issues/33#issuecomment-2293939263,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2DV2ZKZ6OGJWZHSULPP4XLZRY5Y5AVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTHEZTSMRWGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Which dchart version you use?
Pada Sab, 17 Agu 2024 01.46, BS-Wissem @.***> menulis:

You can check the property it is named thickLength which is not correct.
On Fri, Aug 16, 2024, 19:08 Indra Trisna Raharja @.***>
wrote:

Reference to "tick" / plot point. Not "thick" AS wide
Pada Sab, 17 Agu 2024 01.06, Indra Trisna @.***>
menulis:

tickLength is property used inside community_charts_flutter. Then i
use
same property name
Pada Jum, 16 Agu 2024 21.14, BS-Wissem @.***> menulis:

Hello,
Thanks for this great package.
Could you please correct the typo in MeasureAxis property
thickLength.
Thank you
—
Reply to this email directly, view it on GitHub
https://github.com/indratrisnar/d_chart/issues/33, or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/APTLYD6QGRBCOIRVVW4AKO3ZRYCMFAVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TAMZWGMYTGNQ>

.
You are receiving this because you are subscribed to this
thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/indratrisnar/d_chart/issues/33#issuecomment-2293939263>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/A2DV2ZKZ6OGJWZHSULPP4XLZRY5Y5AVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTHEZTSMRWGM>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/indratrisnar/d_chart/issues/33#issuecomment-2293990424,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APTLYD4HPRCISV22TH4QYB3ZRZCINAVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTHE4TANBSGQ
.
You are receiving this because you commented.Message ID:
@.***>

dchart: line 23
https://github.com/indratrisnar/d_chart/blob/master/lib/commons/axis/measure_axis.dart
community_chart_flutter: line 105
https://github.com/juliansteenbakker/community_charts/blob/master/community_charts_common/lib/src/chart/cartesian/axis/draw_strategy/small_tick_draw_strategy.dart

I am using version 2.6.9. Looks it was corrected in version 2.8.0 which I can't use in my project because of Dart version.
Anyway thanks again.

Pada Sab, 17 Agu 2024 03.36, BS-Wissem @.***> menulis:

I am using version 2.6.9. Looks it was corrected in version 2.8.0 which I
can't use in my project because of Dart version.
Anyway thanks again.
—
Reply to this email directly, view it on GitHub
https://github.com/indratrisnar/d_chart/issues/33#issuecomment-2294203082,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APTLYD7KMALA4I5UYH7XXS3ZRZPE7AVCNFSM6AAAAABMUES2BCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGIYDGMBYGI
.
You are receiving this because you commented.Message ID:
@.***>


mobile: add flag to build Swift with -enable-experimental-cxx-interop

The Swift project has had experimental C++ interoperability support for a few years now. For example, a workgroup was started in early 2022. C++ interop is considered experimental because it requires passing an additional flag to the Swift compiler (-enable-experimental-cxx-interop) and the feature has no source or ABI stability guarantees.
Envoy Mobile in particular would benefit greatly from Swift / C++ interop because it would allow us to shed the intermediate Objective-C layer that only exists to bridge Envoy's C++ APIs with the consumer-facing Swift API.
This change proposes a build flag to optionally build the Swift parts of Envoy Mobile with C++ interop enabled, and enables it by default.
Future changes will gradually add Swift code that interacts directly with C++ APIs.
Please read the C++ Interoperability Status if you'd like to learn more about the current state of things.
Commit Message:
Additional Description:
Risk Level: Medium to the Swift Envoy Mobile library. Low to everything else.
Testing: Existing.
Docs Changes: None. Not user-facing.
Release Notes: None. Not user-facing.
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

/assign @Augustyniak

/retest

/retest

/retest

/retest


ENH Avoid mem build-up in default log storage

Description
The use of RedBird to store logs can easily lead to unexpected memleaks, and it is both a difficult problem to debug, and a little awkward to handle that on the side of the client.
Consider the following script:
import tracemalloc
from rocketry import Rocketry
app = Rocketry(execution="main")
tracemalloc.start()
last_count, _ = tracemalloc.get_traced_memory()

@app.task("every 1 second")
def do_things() -> None:
    global last_count
    new_count, _ = tracemalloc.get_traced_memory()
    print(new_count - last_count)
    last_count = new_count

if __name__ == "__main__":
    app.run()

Which results in the following input:
145402
14344
6636
6604
6668
6604
6604
6604
6677
7290
6604

So every run causes a memory build-up of around 6.5KB even if no logging is made, other than the default Rocketry logging. In 24h that would be over 500MB.
Using tracemalloc.take_snapshot() it is easy to check that this is caused by the RedBird in-memory log store.
This is solvable, but in an arguably awkward way:
import tracemalloc

from redbird import BaseRepo
from redbird.repos import MemoryRepo
from rocketry import Rocketry
from rocketry.log.log_record import LogRecord
logger_repo = MemoryRepo(model=LogRecord)
app = Rocketry(execution="main", logger_repo=logger_repo)
tracemalloc.start()
last_count, _ = tracemalloc.get_traced_memory()

@app.task("every 1 second")
def do_things() -> None:
    global last_count
    logger_repo.filter_by().delete()
    new_count, _ = tracemalloc.get_traced_memory()
    print(new_count - last_count)
    last_count = new_count

if __name__ == "__main__":
    app.run()

The reason why I say this is awkward is that it requires:

Knowing that a memory build-up is a potential problem in the basic use-case of Rocketry. I think most developers won't think about that.
Debugging after coming across the problem, potentially after it having undesired consequences on a real-world application.
Coming up with this (or some other) solution, which is not very trivial.

Potential solution
Ideally, Rocketry's default log repo has some mechanism to evict old records automatically, which would be configurable. So for example, if we simply did:
app = Rocketry()

We would get a logger repo that would keep, for example, the last 100 log messages only. If we wanted to keep all records, we'd just pass the basic MemoryRepo as in my example above. If we wanted to control the amount of records kept, we could do something like:
from redbird.repos import FIFOMemoryRepo
from rocketry.log.log_record import LogRecord

app = Rocketry(logger_repo=FIFOMemoryRepo(model=LogRecord, size=50))

The FIFOMemoryRepo class would have to be implemented in RedBird, of course.

A bit background: The rational for the default logging is that it's easy to prototype and get started with Rocketry. Wasn't meant for production and the assumption was there would be some thousand records max in generic cases.
But I think you have a very valid point: there should be a hard limit by default and I think your proposal would be the way to go. I'm thinking maybe the limit could be like 1000 or so.
Thanks for the idea and I really appreciate the time you spent on investigating the issue and the solutions. I think there was another similar issue but due to lack of elaboration there I didn't get the grip on the whole issue from that.

Thanks for your reaction! I'm glad my suggestion resonated with you.
As for the default limit, yes, 1000 log entries seems reasonable. It means that Rocketry's default mem requirement for a task that doesn't produce any logs by itself is capped at around 6.5 MB, which seems ok.
Let me know if you'd like some help with it in case you decide to go forward with an implementation.

I'll do!
I'm currently working on adding optional timezone as that seems to be quite important for quite many people. After that I either try to progress on the event system or then I focus on Red Bird issues possibly including this issue. I'll notify you then if you wish to participate (like in the discussion at least, would be great to have your opinions).

Hello!
I had this issue in production and fixed it with a LimitedMemoryRepo. Also implemented a NullRepo which does not track any logs whatsoever (is this going to break anything, e.g. if query_data does nothing?)
I can push my changes to be included in Rocketry as alternative log repos to the list offered by redbird


Added support for Synology DSM 6

@borismus please merge and make new release

We have another maintainer for that.
On Sat, Feb 1, 2020 at 1:43 AM c1tru55<EMAIL_ADDRESS>wrote:

@borismus https://github.com/borismus please merge and make new release
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/borismus/keysocket/pull/342?email_source=notifications&email_token=AACDZAEYXVRWKKKW7L5OMDTRAU745A5CNFSM4KKV2CZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQY3YY#issuecomment-581012963,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACDZACQLP5NW2WMX3NDKTTRAU745ANCNFSM4KKV2CZQ
.

@borismus and who is maintainer?


Custom Ore Generator generate in loaded chunks

Is it possible to create a feature that generates ores in already existing terrain? I have a map, and I would really appreciate it if you could add functionality that allows the plugin to generate ores in loaded chunks.

I hope you will add it cuz i really love my map and it will fit so well with my custom ores

If you like the idea, could you let me know?


3X: Begin laying out UI module skeleton

What's new

A rough draft of how the UI flows from main to opening the main window.

Current state of the UI:

Future PR's will revolve around adding actual content to the main region and additional features adjacent to the logging tab


TAble 4 switch columns

Table 4 for consistency could have colums 6 and 7 switched (makes reading table easier)

Yeah that makes sense. Done in commit d2ecd0156a1cb36793239c51637aca4f9d847e67


add chinese fonts to installer

Add Chinese fonts to the installer so that sites with Chinese characters are rendered properly in the phantomjs sketch images.

Nice addition, thanks!


When not properly exiting editable box in text_input.rb - arrow movement to the sides fails

When in text_input.rb
If you type in text into a text_field_box and proceed to click on another tutorial/example without exiting the box you cannot move to the sides in cptn_ruby.rb or tutorial.rb

Good catch :)


Jupyterlab naming collision using text file tooltips

Description
When editing .py text files with an attached console using kedro jupyter lab the kernel used by the console will continually restart when trying to autocompletion and tooltips, during spaceflight tutorial.  This is because of the tutorial requiring creating an io module.
Context
I was trying to edit python text files and was wondering why the console attached to the file was constantly dying when I was trying to make use of tooltips (shift + tab).  Having read up on the issues I believe its because
Steps to Reproduce

Run kedro jupyter lab (jupyterlab==1.0.2)
Open a .py text file
Open console by right-clicking
Try getting a tooltip for any arbitrary function like print() usign shift+tab

Expected Result
Tell us what should happen.
Actual Result
Tell us what happens instead.
`[I 19:34:54.854 LabApp] KernelRestarter: restarting kernel (4/5), new random ports
Fatal Python error: init_sys_streams: can't initialize sys standard streams
AttributeError: module 'io' has no attribute 'OpenWrapper'

Current thread 0x00007fd301fbe740 (most recent call first):

[W 19:34:57.874 LabApp] KernelRestarter: restart failed

[W 19:34:57.875 LabApp] Kernel c1a79a1c-6ec1-44fb-b5c4-f18e6156ee19 died, removing from map.

Your Environment
Include as many relevant details about the environment in which you experienced the bug:

Kedro version used (pip show kedro or kedro -V): v0.14.3
Python version used (python -V): 3.7.3
Operating system and version: Ubuntu 18.04
conda version: conda version : 4.6.14
jupyterlab version: 1.0.2 installed from conda-forge (conda install -c conda-forge jupyterlab==1.0.2)

@marcusinthesky Firstly, I'm super amped that you're at UCT 🇿🇦!
Secondly, I've placed this bug report onto our backlog to get addressed. In the meanwhile, you can check out a completed version of the tutorial project in kedro-examples.
And, thirdly, you should also check out kedro-viz and visualise the pipeline when you're ready.

Hi @marcusinthesky! I'm trying to reproduce the issue, no luck so far. But it really looks like the conflict between the original io module and something in kedro or your project.
I can do just
touch io.py
kedro jupyter lab```
And it fails to start with the same error.

Can you please check your code, is there a module called `io` anywhere?

What does `python -c 'import io; print(io.__file__)'` print?

I've updated the PR title with our internal ticket number to keep track of this more easily. :)

@marcusinthesky It is likely that global io variable in ipython config file was causing the problem, which we deleted in https://github.com/quantumblacklabs/kedro/commit/571bb8009b930e67c073115c23ae2d03942f6499#diff-5e39d56e37d29581584e70f13c8c607fL14 with the replacement of context variable. I am closing this issue for now, but feel free to re-open it if you are still having the problem.


Does not work with Docker

If you cd to some dir, that is managed with impermanence, and do
docker run --rm -it -v $(pwd):/src alpine

Then you will get a error like docker: Error response from daemon: error while creating mount source path '/home/eyjhb/projects': mkdir /home/eyjhb/projects: file exists.
This seems to be a problem with the bindfs method, as it worked just fine with symlinks (and works fine if I use the actual dir, not the one it bindfs).

This probably happens because fuse mounts can't be read by other users by default. You could try to fix this by setting the programs.fuse.userAllowOther to true in your NixOS configuration and removing the --no-allow-other flag given to bindfs. It would be nice to have this configurable and inform about it.

This probably happens because fuse mounts can't be read by other users by default. You could try to fix this by setting the programs.fuse.userAllowOther to true in your NixOS configuration and removing the --no-allow-other flag given to bindfs. It would be nice to have this configurable and inform about it.

I've opened #39 to fix this. Please try it out when you have the time :)

I've opened #39 to fix this. Please try it out when you have the time :)


Update Korean translation "ko-KR"

Add Korean translations for Number base converter, String escape and unescape tool and Timestamp converter tool.
Also, I translated not yet translated things in other tools and update some expressions.

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] UI change (please include screenshot!)
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[x] Internationalization and localization
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Update Korean translation (ko-KR)

Other information

Quality check
Before creating this PR, have you:

[x] Followed the code style guideline as described in CONTRIBUTING.md
[x] Verified that the change work in Release build configuration
[x] Checked all unit tests pass

Hi,
Thank you, it looks great :)


Add PHP-Parser 4 support

PHP-Parser 4.0.0 has been released 17 days ago.
When I'm trying to use PHP Magic Number Detector and PHP-Parser 4 together, I run into error:
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - povils/phpmnd dev-master requires nikic/php-parser ^3.0 -> satisfiable by nikic/php-parser[3.x-dev, v3.0.0, v3.0.0alpha1, v3.0.0beta1, v3.0.0beta2, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5] but these conflict with your requirements or minimum-stability.
    - povils/phpmnd dev-master requires nikic/php-parser ^3.0 -> satisfiable by nikic/php-parser[3.x-dev, v3.0.0, v3.0.0alpha1, v3.0.0beta1, v3.0.0beta2, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5] but these conflict with your requirements or minimum-stability.
    - Installation request for povils/phpmnd dev-master -> satisfiable by povils/phpmnd[dev-master].

Solved with release 2.0.0


docs: update docker build instructions

:+1: :disappointed:

Soon we will have rocket building rocket.


Re-export all relevant structs in verifier-crate

Fixes https://github.com/0xPolygonMiden/miden-vm/issues/680

@matthiasgoergens - could you add export for utils as mentioned in https://github.com/0xPolygonMiden/miden-vm/pull/683#discussion_r1096848907 - and I think we are good to go.

Thank you! I'll merge as is, and we can add utils export later if needed.

Thanks!  Sorry, I was a bit busy the last week.


Common Lisp Client

Continuing from the work greg's branch, I've implemented a fairly rudimentary but reliable (i hope) common lisp client.
Edit: 10th Jan
STDOUT now uses comment prefix to show up in the log. picture in this comment is what it looks like.
Old picture, not quite correct

I've tried to keep it atomic, compiled after every commit, etc.
I'm out on holidays at the moment, and I have to walk 1.5 kms to get reception, so I probably won't reply until monday, but feel free to have a look and poke as many holes in it as possible and I can get them fixed up next week.
What defines a "client" that is ready to use? I've just gone for eval / stdout / errors here.That should be enough to try and build upon in the future?

this should complete #97 in my estimation.
some questions:

Do you want some docs to go with this? I was thinking of writing out "what does a client need" sort of thing, and basic api info, but not sure what should be doc'd. (i just copied things) - this might be better in another PR.
How is stdout meant to be shown in the conjure log? I just used a string representation, which seems good enough.  (i didn't check escape values, whoops)
Is there any plans for stdin ? I was thinking something like the vim input command could work for simple cases, but could be hard to do

Thanks a lot for this! 😀

Added doc word and eval-file.

I've still never used common lisp in any capacity so I'm taking your word for it when it comes to UX and behaviour right now but this looks fantastic. Excellent work! I'll have a look through the code from a Fennel / maintainer point of view but I might end up "LGTM"-ing some of the more nuanced CL parts since it's not my area yet.
I'll try to at least get a Hello World eval working though! I'll resolve the conflicts too.

And thank you @rafaeldelboni for swooping in with early reviews and 👀 !

At the surface level you've nailed the general file structure and my rough architecture. I'm going to merge-aroo and try it out locally, if things look okay let's get people trying it out on the develop branch for a couple of days then time for a release. There's a lot on the develop branch I want to get out right now.

Took me a while to get a swank REPL up but it works for me! Nice! All the base features are there, I'll just knock up a basic help .txt but if someone wants to create the quickstart wiki page that'd be amazing. I think someone who actually knows some good CL install and setup tips would be best placed to do that though.

🚀  now let's let the dust settle slightly on develop and then I'll get this big ol' batch of commits tagged as stable soon.


not implemented: control in

Hiya!
I have an app exposing a usbip virtual device and getting the following when running sudo lsusb -v from Linux:
Control IN setup=SetupPacket { request_type: c0, request: a, value: 0, index: 1, length: 1 }
thread 'tokio-runtime-worker' panicked at 'not implemented: control in'

First, I'm not entirely sure what the 0xc0 request type is, any ideas? Second, it seems a bit harsh to simply panic - on a normal USB device I think it is conventional to stall? Is there a usbip equivalent that could be implemented instead?

Which USB devices are you using? This seems to be a device-specific request by Linux driver.

Hi @jiegec ,
I faced same issue. My usb device is USB uart  (0403:6010 Future Technology Devices International Limited Dual RS232-HS)
Did you test with usb serial device?

Hi @jiegec , I faced same issue. My usb device is USB uart (0403:6010 Future Technology Devices International Limited Dual RS232-HS) Did you test with usb serial device?

I see, the linux ftdi driver generates the request:
#define  FTDI_SIO_GET_LATENCY_TIMER_REQUEST_TYPE 0xC0
#define FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE 0xc0
#define FTDI_SIO_READ_PINS_REQUEST_TYPE 0xc0
#define FTDI_SIO_READ_EEPROM_REQUEST_TYPE 0xc0

Will try to fix this. Currently I don't have a FTDI serial at hand, I can access one later this month.

I pushed code to master branch, could you please test? I don't have testbed for now.

Thanks! I am indeed emulating an ftdi device.

yup - on it! Will contribute FTDI device handler when I have something that looks like it works...

Curious to know if this discussion went anywhere. I think I'm running into a related issue testing various IoT development boards. Most have either an FTDI, Silicon Labs (ex. CP2102) or compatible USB to serial adapter. These all have vendor subclasses, though they are common enough to be in tree.
When I try the host example, I see empty packets in tests when I would expect data. The exact same hardware worked correctly in my tests worked using the native usbip server.
Does that mean we need to implement handlers for every vendor subclass? Fortunately there's not that many, but mostly trying to understand if I'm going down the right path.

Curious to know if this discussion went anywhere. I think I'm running into a related issue testing various IoT development boards. Most have either an FTDI, Silicon Labs (ex. CP2102) or compatible USB to serial adapter. These all have vendor subclasses, though they are common enough to be in tree.
When I try the host example, I see empty packets in tests when I would expect data. The exact same hardware worked correctly in my tests worked using the native usbip server.
Does that mean we need to implement handlers for every vendor subclass? Fortunately there's not that many, but mostly trying to understand if I'm going down the right path.

The ftdi handler means to implement an emulated devices instead of sharing a real one. For the host example, there should be some missing pieces of USB/IP protocol not implemented good enough for it to work.


Easy to Misuse API For PEM Encoding ( On Master )

Hey there, I just noticed that it is extremely easy when using the PEM encoding traits to accidentally generate a public key when you mean to generate a private key PEM. For instance ( Key Pair is just a simple struct of mine ):
This works as expected:
let mut rng = rand::rngs::OsRng;
let private = rsa::RSAPrivateKey::new(&mut rng, 4096)?;
let public = rsa::RSAPublicKey::from(&private);

use rsa::PublicKeyPemEncoding;
use rsa::PrivateKeyPemEncoding;
Ok(KeyPair {
    private: private.to_pem_pkcs8()?,
    public: public.to_pem_pkcs8()?,
})

This actually generates two public keys:
let mut rng = rand::rngs::OsRng;
let private = rsa::RSAPrivateKey::new(&mut rng, 4096)?;
let public = rsa::RSAPublicKey::from(&private);

use rsa::PublicKeyPemEncoding;
// Say we accidentally forget to include the private key trait
// use rsa::PrivateKeyPemEncoding;
Ok(KeyPair {
    private: private.to_pem_pkcs8()?,
    public: public.to_pem_pkcs8()?,
})

Apparently the PublicKeyPemEncoding trait is implemented for private keys with the same function name: to_pem_pks8. I think an easy solution to this would be to name the to_pem_pkcs8 functions specific to the type of key you want to generate such as to_public_pem_pkcs8 or something like that.

What benefit to these traits provide over just having the methods on the RSAPrivateKey and RSAPublicKey structs?

The encoding API has since changed to use the pkcs1 and pkcs8 crates which have an API similar to what was suggested here


GenerateServerContext: Don't use a parent context if it's invalid.

Including if it wasn't present or couldn't be decoded.

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,390      Total (=)      2,019,390

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,180,037      Total (>)     11,180,031

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences


Allow the posting of Threads

Add Thread support
Also fixed the "Environment Variable" comment, to align the Environment Variable with the field it refers to (password, instead of access token).
Tested:

Just checked & tested it, looks good to me.


feat: update to OTel PR for latest design

Separated out for CR.

Merging this back into the main OTel PR.


How to let Mirage passthrough node modules access?

I am using SimpleMDE which seems send a request to /node_modules/typo-js/dictionaries/en_US/en_US.dic internally.

How to pass this GET request using Mirage?
I am using the following setting with no effect.
  this.passthrough('node_modules/**');
  this.passthrough('node_modules/typo-js/dictionaries/en_US/en_US.dic');

  this.passthrough('/node_modules/**');
  this.passthrough('/node_modules/typo-js/dictionaries/en_US/en_US.dic');

Try
this.passthrough();

at the bottom of your config to allow all same-origin requests through.

I did try this.passthrough() and the issue was persist.

Do you have a namespace defined?

yes i do have

Could you try the latest version of mirage and see if you're having this problem?

Also, the URL prefix might be the problem, if your Ember app is hitting localhost:4200

@ashrafhasson this.passthrough() should work for your case. A 404 means Mirage is letting the request pass through, and your backend doesn't have the route defined.
Closing this issue for now - if you have another question feel free to open a new issue or ping me on Slack!


Raspberry Pi USB boot wrong root= in cmdline.txt

RancherOS Version: (ros os version)
v1.5.4
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
Raspberry Pi 3 B with USB boot device
For improved reliability I'm booting a Raspberry Pi from USB SSD instead of SD-Card. This is supported on the PI after preparing it with special config options.
I can flash the USB disk with f.e. etcher on another PC just like I would with any SD-Card, and for Raspbian the normal image just works on USB boot.
For RancherOS to fully boot I had to mount the first partition after flashing and edit in cmdline.txt from "root=/dev/mmcblk0p2" to "root=/dev/sda2", which makes sense in this combination but won't work with both boot types.
Raspbian uses "root=PARTUUID=6c586e13-02" in the cmdline.txt, which just matches the second partition id in the image I guess set as part of their image build process.
I tested this with "root=PARTUUID=a0812e20-02" with rancheros-raspberry-pi64.zip v1.5.4 and was also able to boot both from SD-Card and USB. If this would be set in the official image USB booting would just work out of the box.

I can not verify if this issue is still relevant for current versions since I'm no longer using RancherOS right now.


HasOneField is locked to 3.0.1?

My project just updated this module to 1.0.0 and it downgraded HasOneField to 3.0.1 (was previously set as ~3.0).
This causes a warning to be flagged:
[Warning] filemtime(): stat failed for .../vendor/silvershop/silverstripe-hasonefield/templates/SilverStripe/Forms/GridField/GridFieldAddNewButton.ss
I believe this was a but in 3.0.1 and has been fixed in later versions. Is there a reason for locking this module to 3.0.1? It seemed to be working fine for me with later versions.

There was an error with the upstream hasonefield module that's been fixed and merged: https://github.com/gorriecoe/silverstripe-linkfield/issues/14. I think it's just awaiting a tag, which seems to have slipped through the cracks.

1.0.1 is tagged, so composer should pull in the latest version now

Cool, seems to be working now, cheers!


Golang CLI to generate passwords

Create a cli application using golang which helps a user generate a password
These should be the features

can be 10 or 16 characters based on input
combination of lower and upper case
should have special symbols like !@#$_

can you assign this to me?

done thank you


Freeze of the game

Bot in one moment just stops working (after 1 energy / 1 energy situations). + we play games in one channel, so when the first game is stucked on “1energy situation” - the second game just freezes in one moment. Bot just thinking

This is now resolved with the 10.19 Patch


Nested GroupBy query got wrong/empty result when using virtual column and filter

Description

We have a sql like this:
select
    code
from
    (
        select
            *
        from
            (
                select
                    *,
                    CASE
                        when code = 1 then 0
                        else 5.3
                    end as pay
                from
                    (
                        select
                            code,
                            __time as date_time

                        from
                            test_datasource
                        where
                            __time >= '2020-02-27 08:00:00+08:00'
                            AND __time < '2021-02-28 07:59:59+08:00'
                            AND code in (0)

                        group by
                            code,
                            __time
                    ) a
            ) b
        where
            pay > 0
    ) c
group by
    code
LIMIT
    10

Expected result is 0, but got empty result!
In order to reproduce this problem, we explain the above sql and add the following unit test into NestedQueryPushDownTest.java according to the explained plan (not the same but has the same pattern):
@Test
  public void testVirtualColumnFilterOnInnerQuery()
  {
    QuerySegmentSpec intervalSpec = new MultipleIntervalSegmentSpec(
        Collections.singletonList(Intervals.utc(1500000000000L,<PHONE_NUMBER>000L))
    );
    GroupByQuery query = GroupByQuery
        .builder()
        .setDataSource("blah")
        .setDimensions(new DefaultDimensionSpec("dimA", "dimA"))
        .setAggregatorSpecs(
            new LongSumAggregatorFactory("metASum", "metA"),
            new LongSumAggregatorFactory("metBSum", "metB")
        )
        .setGranularity(Granularities.ALL)
        .setQuerySegmentSpec(intervalSpec)
        .build();

    GroupByQuery nestedQuery = GroupByQuery
        .builder()
        .setDataSource(query)
        .setDimensions(new DefaultDimensionSpec("dimA", "newDimA"))
        .setContext(
            ImmutableMap.of(
                GroupByQueryConfig.CTX_KEY_FORCE_PUSH_DOWN_NESTED_QUERY, false
            )
        )
        .setVirtualColumns(
            new ExpressionVirtualColumn(
                "v0",
                "case_searched((CAST(metBSum, 'LONG') == 10),0,5.3)",
                ValueType.DOUBLE,
                TestExprMacroTable.INSTANCE
            )
        )
        .setGranularity(Granularities.ALL)
        .setDimFilter(new BoundDimFilter("v0", "0", null, true, false, null, null, StringComparators.NUMERIC))
        .setQuerySegmentSpec(intervalSpec)
        .build();

    ResultRow expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(
        nestedQuery,
        "2017-07-14T02:40:00.000Z",
        "newDimA", "mango"
    );

    ResultRow expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(
        nestedQuery,
        "2017-07-14T02:40:00.000Z",
        "newDimA", "pomegranate"
    );

    QueryRunner<ResultRow> runner =
        groupByFactory.getToolchest().mergeResults(groupByFactory.mergeRunners(executorService, getQueryRunnerForSegment1()));

    Iterable<ResultRow> queryResult = GroupByQueryRunnerTestHelper.runQuery(groupByFactory, runner, nestedQuery);
    List<ResultRow> results = new ArrayList<>();
    queryResult.forEach(results::add);

    Assert.assertEquals(2, results.size());
    Assert.assertEquals(expectedRow0, results.get(0));
    Assert.assertEquals(expectedRow1, results.get(1));
  }

Then we debug the above test.
The dimFilter from the outer query will be used to filter out result rows of inner query (in method RowBasedGrouperHelper.getResultRowPredicate()). However, virtual column 'v0' does not exist in the result row signature of inner query lead to the results are filtered out.

The virtual column should be process or null value is returned to predicate which lead to data loss.
The patch is solved this issue and added the unit test.

Key changed/added classes in this PR

NestedQueryPushDownTest
RowBasedGrouperHelper

This PR has:

[x] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[x] been tested in a test Druid cluster.

The failed test is irrelevant to this patch. Trigger the checks again.

(https://repo.maven.apache.org/maven2): Read timed out, trigger the checks again!

Travis CI failed due to too many docker requests.

@viongpanzi thank you! The latest patch LGTM. +1 after Travis passes. I will retrigger the CI if any flaky job fails.

@jihoonson Thanks for helping to delete the debug code.


Short solution needed: "How to select specific columns from data frame" (python-pandas)

Please help us write most modern and shortest code solution for this issue:
How to select specific columns from data frame (technology: python-pandas)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

How to select specific columns from dataframe


Yamlinclude moved to a new major version

This causes import errors when loading Draccus and in downstream libraries (e.g. Levanter).

I worked around this issue by running:
pip install pyyaml-include==1.4.1
then using the -U option for the following pip installs:
pip install -U .


Clean up pull-requests artifacts

Which area(s) are affected? (leave empty if unsure)
No response
To Reproduce
At some point the pull-requests job was creating new "repo" artifacts. It's very possible it created replicas GIT_REPOSITORY artifact types of what was already in the database because string comparisons weren't normalizing to lower case when we found those names in the responses from github. It's possible this wasn't the case but we should write a script to do clean up and fix any given relations that may need to be fixed.
The correct artifacts would be ones that are related a project. Also, there are cases were pull-requests return an unexpected artifact of a different repository for a given pull request. Those shouldn't pose a problem in this scenario.
Describe the Bug
See above.
Expected Behavior
Names for repos should match regardless of case. Same goes for things like addresses.

Currently running this to check

In the future, we're going to index everything from GitHub/npm etc. And we should clean up invalid artifacts at that time.
In the medium term, since everything is seeded an oss-directory project, we can remove any artifacts without a project associated.

@ravenac95 is this still relevant?

OBE


Fuzzilli Integration

This issue is to cover integration with Fuzzilli.
Design decisions:

What duktape branch should be targeted? I'm currently running against v2-maintenance, but currently believe it's branch agnostic. This should be tested either way.
What duktape builtins should be included? It's a tradeoff of efficiency of the fuzzer (Duktape.version is probably not going to produce a bug) vs coverage.

Additional issue, that I'm not sure how to resolve. Since the default build process for duktape puts everything into duktape.c, the resulting coverage number is poor and not representative of the actual engine coverage. The number given by the fuzzer includes the C/C++ API (https://duktape.org/api.html), of which Fuzzilli only uses a small portion.
For reference, after ~21 core-days, coverage is at 34%

It's probably easiest if the changes are made to master, and then cherry-picked to v2-maintenance if that's straightforward.

Regarding that coverage issue, it's (still) possible to build Duktape from separate source files, and with or without #line directives in the combined source (if that helps).
I've also run some coverage analysis on how much of the code base is covered by current tests. Coverage from both ECMAScript and API tests is pretty good, but from ECMAScript tests alone API test coverage is low, just like with fuzzing.

It's probably easiest if the changes are made to master, and then cherry-picked to v2-maintenance if that's straightforward.

I have it based on master now, and generally cleaned up. Shouldn't be an issue!
I'm working on the fuzzilli side, and should have something together shortly (it fuzzes fine locally, just want to get it into their docker build process).
From there, a round of iteration on which builtins are used/how its compiled/etc should help improve coverage.

The outstanding items:

Figure out the proper place for the assert (duk_fuzzillia.c needs to be able to intentionally fail an assert. as part of the startup checks
Consider how to improve coverage, both by removing dead code in the compilation target, and verifying which duktape unique builtins should be included (list here)
Clean up the lint errors

https://github.com/googleprojectzero/fuzzilli/pull/77 is the integration on the fuzzilli side. Only thing remaining is final make targets to easily run the fuzzer in this repo.


Use runtime.Version() instead of injected version

@fabxc @sdurrheimer

:+1:

@juliusv whoops missing removal here : https://github.com/prometheus/alertmanager/blob/master/scripts/build.sh#L37

@sdurrheimer Ah right, thanks! Pushed fix to master.


Patched Fix gRPC-Go HTTP/2

In affected releases of gRPC-Go, it is possible for an attacker to send HTTP/2 requests, cancel them, and send subsequent requests, which is valid by the HTTP/2 protocol, but would cause the gRPC-Go server to launch more concurrent method handlers than the configured maximum stream limit.
Along with applying the patch, users should also ensure they are using the grpc.MaxConcurrentStreams server option to apply a limit to the server's resources used for any single connection.

Fixes need to be made in the https://github.com/hyperledger/fabric-protos repository (to files in this directory). The contents of this repository is generated and populated by the build of the hyperledger/fabric-protos repository.


[hal] Add deny(missing_debug_implementations) to enforce debug printers

Fixes #2560
PR checklist:

[x] make succeeds (on *nix)
[x] make reftests succeeds
[x] tested examples with the following backends: vulkan
[x] rustfmt run on changed code

Note: one of the debug implementations is for a union and just prints out the name of the union. I'm not sure if it's desirable to transmute it and print its contents.


workflows/docker: add 22.04

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same change?
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

As recently proposed on Slack. Let's build our image on Jammy too.

Review period will end on 2022-04-26 at 00:00:00 UTC.

Needs to be installed before add-apt-repository.
Speaking of add-apt-repository, can we implement it in a different way? I'd like to get rid of the sytem Python dependency installed by software-properties-common if possible (or if not, at least try uninstall software-properties-common and all its dependencies afterwards).

Just to ask a couple things:

It appears Ubuntu 16.04 has gpg-agent installed by default and Homebrew/actions/setup-commit-signing uses that. Ubuntu 18.04+ doesn't so that's something we might want to consider keeping installed for when we migrate away from 16.04?
When do we want to migrate the Homebrew/brew image (line 58) from 20.04? Now or later?

Left gpg-agent installed. As for the migration I don't have any strong opinions on that, either we wait some time or we switch now. Let's wait and see what others think.

Review period ended.