[bom] Fix xgboost package name

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report

Merging #876 (41dfdd9) into master (4e5d8f7) will decrease coverage by 0.08%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #876      +/-   ##
============================================
- Coverage     70.38%   70.30%   -0.09%
+ Complexity     5082     5073       -9
============================================
  Files           501      501
  Lines         22408    22408
  Branches       2325     2325
============================================
- Hits          15771    15753      -18
- Misses         5397     5415      +18
  Partials       1240     1240

Impacted Files
Coverage Δ
Complexity Δ

...djl/training/listener/LoggingTrainingListener.java
83.18% <0.00%> (-5.31%)
22.00% <0.00%> (-6.00%)

...gine/src/main/java/ai/djl/dlr/engine/DlrModel.java
53.12% <0.00%> (-3.13%)
4.00% <0.00%> (ø%)

api/src/main/java/ai/djl/training/Trainer.java
91.83% <0.00%> (-3.07%)
33.00% <0.00%> (-1.00%)

api/src/main/java/ai/djl/inference/Predictor.java
87.50% <0.00%> (-2.89%)
23.00% <0.00%> (-1.00%)

api/src/main/java/ai/djl/util/Platform.java
46.51% <0.00%> (-2.33%)
8.00% <0.00%> (ø%)

api/src/main/java/ai/djl/repository/Artifact.java
89.65% <0.00%> (-1.73%)
36.00% <0.00%> (-1.00%)

...g/src/main/java/ai/djl/serving/util/Connector.java
55.40% <0.00%> (-1.36%)
21.00% <0.00%> (ø%)

...ngine/src/main/java/ai/djl/mxnet/jna/LibUtils.java
44.73% <0.00%> (-1.32%)
15.00% <0.00%> (ø%)

...rc/main/java/ai/djl/paddlepaddle/jni/LibUtils.java
51.14% <0.00%> (ø)
14.00% <0.00%> (ø%)

...rc/main/java/ai/djl/ndarray/internal/NDFormat.java
86.78% <0.00%> (+0.57%)
18.00% <0.00%> (ø%)

Continue to review full report at Codecov.

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


Capturing logs: unable to connect to child process & game crash

I'm currently using renderdoc 0.31 64bit on Windows 8.1 (12GB RAM, NVIDIA GT650M), and I want to capture logs by launching "GTAVLauncher.exe" and then hooking into child process "GTA5.exe". I have disabled the system firewall and don't have other firewall softwares installed. The symptoms are:

renderdoc successfully injected into "GTA5.exe", and I'm able to capture logs in game by pressing F12. However the logs are not shown in the renderdoc UI after capturing. When double clicked the child process, a new window popped up for a few sec, and then closed. In the logs I found:

RENDERDOC:  [23:12:08]            hooks.cpp(  49) - Log     - Loaded and hooked into vulkan-1.dll, PID 4740
RENDERDOC:  [23:12:08]    win32_network.cpp(  88) - Warning - accept: 10038
RENDERDOC:  [23:12:08]    remote_access.cpp( 253) - Error   - Error in accept - shutting down server
RENDERDOC:  [23:12:08]     dxgi_wrapped.cpp( 518) - Warning - Querying IDXGIObject for interface: GUID {7abb6563-02bc-47c4-8ef9-acc4795edbcf}
RENDERDOC:  [23:12:08]      d3d11_hooks.cpp( 255) - Log     - Created wrapped D3D11 device.

    I can now only get the log files in the temporary folder.

2. The game crashes after several minutes, no matter I captured any logs or not. When I started the game without renderdoc injected, the RAM usage is about 2GB and stable. With renderdoc, the RAM slowly grows to 4GB, and further playing or capturing logs will cause the game to crash. The capture options are all set to default except the "hook into children" option.

Regarding 1. there have been a few reports of this before - see #362 for example. Unfortunately I've not been able to reproduce the problem, and the network error isn't very illuminating.
As mentioned in that issue I've pushed a branch debug-logging which has a lot more verbose logging around the socket communication. Can you build from source on that branch, and get the logs for both the UI side and particularly the game side, to see if there's any more information about what's going wrong? Without a repro case I'm limited in what I can do to investigate or fix.
About 2. this is also not really enough information to go to. It's certainly expected that RenderDoc will add memory overhead, and since it generally scales with VRAM usage which isn't typically shown when running without RenderDoc the 2GB extra figure seems quite plausible. In itself it doesn't explain the crash - I'd need to get a crash dump or callstack or log or something from when it crashes, or be able to reproduce the problem myself.

I runned the code under debug-logging branch. The relative logs are:
RENDERDOC:  [17:00:09]   target_control.cpp( 249) - Log     - Starting TargetControlServerThread with socket, connected and valid 1
RENDERDOC:  [17:00:09]    win32_network.cpp(  90) - Log     - getsockopt returned -1, error 10038
RENDERDOC:  [17:00:09]   target_control.cpp( 276) - Log     - After accept - socket is not connected or not valid at iter 6

I don't know the details of the code, just did some little experiments. I printed logs in win32_network.cpp: Socket::AcceptClient function, to show the int err = WSAGetLastError();.
(I googled the error 10035, it should be normal)
After I clicked the "Capture" button, two log files appeared. I think one of them was from the launcher and the other was from the child. The two logs are:
(launcher)
RENDERDOC:  [17:58:03]   target_control.cpp( 249) - Log     - Starting TargetControlServerThread with socket, connected and valid 1
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:03]    win32_process.cpp( 480) - Log     - Injecting renderdoc into process 5652
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:03]    win32_network.cpp( 106) - Log     - s != INVALID_SOCKET // (I also printed log here)
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:03]    win32_network.cpp( 118) - Log     - err: 10035
... This repeats forever

(child)
RENDERDOC:  [17:58:04]             core.cpp( 319) - Log     - RenderDoc v0.32 x64 (NO_GIT_COMMIT_HASH_DEFINED) capturing application
RENDERDOC:  [17:58:04]   win32_libentry.cpp(  66) - Log     - Loading into D:\Games\GTAV\Grand Theft Auto V\GTA5.exe
RENDERDOC:  [17:58:04]            hooks.cpp(  49) - Log     - Loaded and hooked into kernel32.dll, PID 5652
...
RENDERDOC:  [17:58:04]            hooks.cpp(  49) - Log     - Loaded and hooked into vulkan-1.dll, PID 5652
RENDERDOC:  [17:58:04]   target_control.cpp( 249) - Log     - Starting TargetControlServerThread with socket, connected and valid 1
RENDERDOC:  [17:58:04]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:04]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:04]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:04]    win32_network.cpp( 118) - Log     - err: 10035
RENDERDOC:  [17:58:04]    win32_network.cpp(  90) - Log     - getsockopt returned -1, error 10093
RENDERDOC:  [17:58:04]   target_control.cpp( 265) - Log     - Before accept - socket is not connected or not valid at iter 5
RENDERDOC:  [17:58:04]     dxgi_wrapped.cpp( 518) - Warning - Querying IDXGIObject for interface: GUID {7abb6563-02bc-47c4-8ef9-acc4795edbcf}
RENDERDOC:  [17:58:04]      d3d11_hooks.cpp( 267) - Log     - Created wrapped D3D11 device.
...
RENDERDOC:  [17:58:05]      d3d11_debug.cpp( 389) - Error   - Couldn't create pixel shader for RENDERDOC_CopyMSToArray 80070057
...
You can notice that the error has changed. I've also seen (error 10038 & after iter 4) and (error 10038 & iter 6). I haven't found a pattern for this...

I'm not sure why I wasn't able to earlier, but I was able to actually repro this with GTA 5. It turned out to be a GTA 5 specific bug, the application was calling WSACleanup() before it had ever called WSAStartup() - which meant that it destroyed the sockets I had created while hooking in initially.
I fixed it just by hooking those two functions and preventing broken applications from doing anything - it just returns an error value without actually doing the cleanup. Hopefully that should fix it now.
As a side note, I really strongly recommend against capturing by trying to inject into GTAVLauncher.exe fast enough to then capture the GTA5.exe process. Use the global hook as this is the exact case it's intended for, and it makes hooking very easy.

Thanks! I've tried the new version and everything works fine. I haven't used global hooks before, but now I found that it doesn't suffer from this problem, even with versions before this fix.
As for the memory issue, I haven't seen the game crash now. However I found another problem when I tried to open multiple log files. The system RAM usage kept increasing, about 500mb per file (the log file itself is about 200mb). Is this normal?

It's expected that there will be much more memory used than the log file - it's compressed already, and there's more memory needed than just a 1:1 copy of what's on disk.
Are you seeing a continual increase that never stops/slows? I've seen cases where it won't necessarily go back down to the same memory usage after closing a log, but it eventually reaches a steady state. Do you see leaking behaviour where the usage just grows indefinitely?

Yes. Previously there was no problem on my laptop (Win 8.1), but now I'm working on a Win 10 desktop computer. When opening the same log file repeatedly, RAM grows from 300MB to 10GB, after that the OS warned low memory.

The image above is the performance monitor of VS 2015 when running from source. I opened a log, closed it, and re-opened it many times. RAM usage dropped a little when closing, but kept growing each time opening.

OK that's definitely a bug. My guess would be some D3D11 resource isn't properly released and so the d3d device etc all stays around keeping memory usage after the log is closed.
I'll try reproducing on my own captures of GTA5, but if you are able to upload the exact capture you are seeing the leak that would be helpful. It depends on how specific the bug is.
To keep things easier to follow, I split this into issue #406. I'm going to close this one since the original bug about being unable to connect is fixed now.


Replace bower with yarn and fix shell strategy explorer bower module 404s.

Two points:

bower seems deprecated. Our install/build process outputs log messages recommending move to yarn.
The shell Selenium tests (and running locally with a clean build, even after installing things per ./tools/install) report JS errors and 404 attempting to load some bower modules for the copy of the strategy explorer in shell.

I figure we should just swap yarn in for bower. On the second point, maybe we should stop copying in the strategy explorer, or we could disable it when running in test mode somehow, or we could fix the build to actually install the required modules whether via yarn or bower.
FYI @sjmiles @smalls

https://github.com/PolymerLabs/arcs/pull/687 should address the second, at least in the context of running the tests.

OK, yeah, and in addition to that change we should delete the copy in shell/strategy-explorer and un-wire the hotkey that toggles its visibility.

The bower deprecation message for posterity:
npm WARN deprecated<EMAIL_ADDRESS>...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

I looked at moving to yarn but it appears to me it's premature as the node Polymer libraries seem stale. For example https://www.npmjs.com/package/@polymer/iron-overlay-behavior was last updated two years ago and shows version 0.0.3 (though not clear if that's the right version to look at) whereas our devtools currently is using something like version 2.x.x.
I worked through using bower-away as noted in https://github.com/sheerun/bower-away but I had to fix up missing version numbers manually, and I don't think the resulting set of code is workable.
So I'd say stick with bower for foreseeable future and ignore the migration warning. Polymer 3.0 is supposed to include moving to npm so if we're still using Polymer at that point we can maybe shift then.

I will definitely remove shell/strategy-explorer once it's available in DevTools, which will be very soon (I think).
Thanks for looking into updating as away from bower, I didn't even know it's deprecated-ish...

Explorer was moved in https://github.com/PolymerLabs/arcs/pull/687 and https://github.com/PolymerLabs/arcs/pull/764


Adding bn.json5 for 'Bengali Language Transalation'

'en.json5' translated to 'bn.json5' for (bengali language)
DSpace is one of the most used software for Institutional Repository in Bangladesh, adding 'bengali' support will have a huge impact on user interaction and satisfaction.
I have just added 'bn.json5' file to src/assets/i18n and language code to environment.test.ts file (all commented out)
{
"code": "bn",
"label": "বাংলা",
"active": true
}
This is my first contribution to DSpace, if there are any mistake and need to update kindly let me know.
Regards...
Md. Topu Raihan
Graduate Dept. of Information Science & Library Management
University of Dhaka

@tdonohue is there any updates about my work? I did everything as you said and make a PR. If you need anything else kindly let me know...
thanks.....

@tdonohue oh!!! that's great. Hope everything goes well and I'm very much excited to have Bengali language feature in the next release of DSpace.
Thanks for your quick reply...

@tdonohue  Thank you very much for merging my PR.
It means a lot to me.
Looking forward to continuing this in the future and also in the actual code.


[Node.js Evaluate] ...

Extension
https://www.raycast.com/Selfish/node-js-evaluate
Description

Error:

Steps To Reproduce
No response
Current Behaviour
No response
Expected Behaviour
No response

When I type "global" with auto-execution it fails

Interesting. I'll look into it.


Remove chooseDynamicEncodingInfoForHost

In #11819 we are introducing a chooseDynamicEncodingInfoForHost function to perform tile sizes queries on host, which we need to do in LowerDispatchWorkgroupCountFromSetEncodingOp in the VMVX case where tile sizes are dynamic.
It's uncomfortable because these tile sizes are normally determined by a microkernel querying the CPU, but that's device code that we are not supposed to be calling from host, and trying to do so would violate design, and require manually loading the VMVX module (see #11643, #11644).
Earlier I thought that the workgroup count might as well be determined based on the input shape before packing and sent #11811, but that didn't fly wrt the way that tile-and-distribute currently works.
So in #11819 we are assuming that whatever the exact dynamic tile sizes are, they must be a divisor of 16, so in LowerDispatchWorkgroupCountFromSetEncodingOp we can pretend that they are 16 and have something that's at least legal, if not optimal.
Can we do better? Ultimately, if we forget for a moment what the current code is doing and focus on what tiling should be doing, the tile-and-distribute tile size should not be concerned with the much smaller innerTileSize of the pack op.

#11819 never landed


Use lsb_release to calculate ubunto version

Thank you for your Pull Request, does this PR fix something or is there an issue with more details?

This pr just simplifies the way we calculate the Ubuntu version

@mxschmitt I think this approach is more simple and easy to understand

Closing for now, since it does not fix anything and we usually recommend npx playwright install —with-deps instead.


TypeError in NormalizeImage

I'm trying to train a model on ImageNet with FFCV. I created a conda environment as written in install.sh and wrote ImageNet to a .ffcv with ./write_imagenet.sh 500 0.50 90 from  ffcv-imagenet. This is the error that I get:
Exception in thread Thread-12:
Traceback (most recent call last):
  File "miniconda/envs/ffcv/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "miniconda/envs/ffcv/lib/python3.9/site-packages/ffcv/loader/epoch_iterator.py", line 80, in run
    result = self.run_pipeline(b_ix, ixes, slot, events[slot])
  File "miniconda/envs/ffcv/lib/python3.9/site-packages/ffcv/loader/epoch_iterator.py", line 134, in run_pipeline
    result = code(*args)
  File "", line 2, in stage_1
  File "miniconda/envs/ffcv/lib/python3.9/site-packages/ffcv/transforms/normalize.py", line 85, in normalize_convert
    return final_result.view(final_type)
TypeError: view(): argument 'size' (position 1) must be tuple of ints, not torch.dtype

I replaced the DataLoader of a working PyTorch training pipeline with this:
IMAGENET_MEAN = np.array([0.485, 0.456, 0.406]) * 255
IMAGENET_STD = np.array([0.229, 0.224, 0.225]) * 255
RES_TUPLE = (224, 224)
DEFAULT_CROP_RATIO = 224/256

def FFCV_ImageNet_loader(data_path, batch_size, device, train, workers=4, in_memory=False):
    """
    (param) in_memory (bool): Does the dataset fit in memory?
    """
    if train:
        decoder = RandomResizedCropRGBImageDecoder(RES_TUPLE)
        image_pipeline = [
            decoder,
            RandomHorizontalFlip(),
            ToTensor(),
            ToDevice(device, non_blocking=True),
            ToTorchImage(),
            NormalizeImage(IMAGENET_MEAN, IMAGENET_STD, np.float16)
        ]
    else:
        decoder = CenterCropRGBImageDecoder(RES_TUPLE, ratio=DEFAULT_CROP_RATIO)
        image_pipeline = [
            decoder,
            ToTensor(),
            ToDevice(device, non_blocking=True),
            ToTorchImage(),
            NormalizeImage(IMAGENET_MEAN, IMAGENET_STD, np.float16)
        ]

    label_pipeline = [
        IntDecoder(),
        ToTensor(),
        Squeeze(),
        ToDevice(device, non_blocking=True)
    ]

    order = OrderOption.QUASI_RANDOM if train else OrderOption.SEQUENTIAL
    loader = Loader(data_path,
                    batch_size=batch_size,
                    num_workers=workers,
                    order=order,
                    os_cache=in_memory,
                    drop_last=train,
                    pipelines={
                        'image': image_pipeline,
                        'label': label_pipeline
                    },
                    distributed=False)

    return loader

Any ideas on what is causing the problem?

Hi @PiaCuk ! Can you post the versions of Python, PyTorch, and NumPy you are using?

Hey, thanks for the quick reply! I've been meaning to post an update just now. I'm using Python 3.9.9, Numpy 1.21.5, and I just updated PyTorch from 1.7.1 to 1.10.1. Here's the new error message:
Traceback (most recent call last):
  File "/home/pcuk/distillistic/main.py", line 49, in <module>
    ImageNet_experiment(**params)
  File "/home/pcuk/distillistic/distillistic/imagenet.py", line 95, in ImageNet_experiment
    acc = distiller.train_student(**params, smooth_teacher=False)
  File "/home/pcuk/distillistic/distillistic/Tf_KD/virtual_teacher.py", line 123, in train_student
    student_out = self.student_model(data)
  File "/home/pcuk/miniconda/envs/ffcv/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/pcuk/distillistic/distillistic/models/resnet.py", line 35, in forward
    return self.resnet_model(X)
  File "/home/pcuk/miniconda/envs/ffcv/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/pcuk/miniconda/envs/ffcv/lib/python3.9/site-packages/torchvision/models/resnet.py", line 249, in forward
    return self._forward_impl(x)
  File "/home/pcuk/miniconda/envs/ffcv/lib/python3.9/site-packages/torchvision/models/resnet.py", line 232, in _forward_impl
    x = self.conv1(x)
  File "/home/pcuk/miniconda/envs/ffcv/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/pcuk/miniconda/envs/ffcv/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 446, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/home/pcuk/miniconda/envs/ffcv/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 442, in _conv_forward
    return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Input type (torch.cuda.HalfTensor) and weight type (torch.cuda.FloatTensor) should be the same

Oh ok! I think this error now has nothing to do with NormalizeImage, and instead the problem is just that your model is in full-precision mode while FFCV is loading the data in half-precision format. You can either convert the training code to work with half-precision (which I would recommend as you will see significant speedups even outside of data loading), or  you can load the data in full-precision mode, by replacing np.float16 with np.float32 in the pipeline.
For information about using half-precision training, see e.g., https://pytorch.org/tutorials/recipes/recipes/amp_recipe.html

Thank you, this makes a lot of sense now! I will look into it.


Add info button for line/shabad

I don't think this box is used for anything really:

Perhaps we can replace it with an info button that includes writer, source, permalinks for shabad and line, as well as a link to our db-viewer for corrections.

I was so-so on this before, but to be honest, i think an info button will add more value.
DId we have an issue though for quick-scrolling to sections?

I don't believe we do. We can close it later if we find it.
Do the arrows bring any value either? Perhaps we should get rid of those as well. It was originally for lazy clicking / tapping on mobile to next line. But given it's small size on mobile and hiding controller to click through lines, I don't think the arrows serve any purpose either.
In which case I would propose the new bottom bar to be:

Search, History, Bookmarks, Navigator on left side (activities)
Info and autoselect on the right side (activity specific buttons)

Not sure where "esc/alt" screen button should go. It's not an activity and it doesn't pertain to any one specific activity (or arguably pertains to all of them? so could be the far right most icon, which it already is).

Also helpful to allow copying of the entire shabad instead of individual lines like #188

Link to DB viewer to correct

Use popover etc

Copy shabad etc

Raag, Author, Source, Page

Where should the i be?

Correctly placed in your image


AWS S3 binding as Stable

Create a certification test plan.
Implement certification tests (must cover all component metadata options)
Mark component as "Stable".

Hi @johnewart Are you still working on this? if not, please let me know so I can assign to myself.

/assign


Add support for suspending/resuming compactions

Actually this would require patching LevelDB as was done in fusesource's leveldbjni, so it might not be a good idea after all.


Listening on same port twice does not fail on Windows

Test suite for v0.4.4 fails on Windows, using both 5.6.29 and 7.0.13, with PHPUnit 4.8.31
PHPUnit 4.8.31 by Sebastian Bergmann and contributors.

...............F

Time: 21.31 seconds, Memory: 8.00MB

There was 1 failure:

1) React\Tests\Socket\ServerTest::testListenOnBusyPortThrows
Failed asserting that exception of type "React\Socket\ConnectionException" is thrown.

FAILURES!
Tests: 16, Assertions: 15, Failures: 1.

Edit: expanded information to include full phpunit output

@shaunbramley do you have some more information about ? Like "what happens if the exception is not throwned" ? And "how did you run test suite" ?

@shaunbramley thanks for reporting back and no worries, family time is precious :) :+1:
Thanks for the steps to reproduce this, I've updated the issue title and hope anybody else may have some ideas here :+1:

I'd like to make this actionable in order to resolve / close this ticket. It looks like this may be a Windows-only issue, so we may also skip this test on affected versions.
Does anybody else happen to have installed PHP on Windows and can help to reproduce the following does indeed not emit any errors?

<?php
$a = stream_socket_server('tcp://<IP_ADDRESS>:1337');
$b = stream_socket_server('tcp://<IP_ADDRESS>:1337');

Any input would be appreciated here :+1: (Please note Windows and PHP version)

I tested that on Windows 7 with PHP 5.6.30 and 7.1.1 and both do not emit an error but return a resource for $a and $b.


Research on how we can expose the dashboard under a public domain

We aim to expose the dashboard metrics into a public domain (for example metrics.hashport.network or dashboard.hashport.network).
The best approach is to avoid the login and additional clicks for the end-user, more or less we need to find a way to display directly the charts.
Options (Both Embedded app and API are preferred options from the FE team):

Embedded app
API
Iframe - possible cross issue.

Useful links:

Permissions https://grafana.com/docs/grafana/latest/permissions/
Share-dashboard https://grafana.com/docs/grafana/latest/sharing/share-dashboard/
Share-panel https://grafana.com/docs/grafana/v7.5/sharing/share-panel/
Dynamically embed Grafana dashboards in a React Component
https://thenishchalraj.medium.com/dynamically-embed-grafana-dashboards-in-a-react-component-483b9ecd1dcd
Video https://www.youtube.com/watch?t=363&v=Ct9PjmrExzo&feature=youtu.be

Example implementation of embedding Grafana panel in a React app.
Repo link

Additional configuration for Grafana required:
GF_SECURITY_ALLOW_EMBEDDING=true # This allows panels to be embedded on pages
GF_AUTH_ANONYMOUS_ENABLED=true # This allows anonymous user access
GF_AUTH_ANONYMOUS_ORG_NAME=Main Org. # This assigns a default organization for the anonymous users
GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer # This assigns a default role for the anonymous users


⚠ Processors has degraded performance

In 8799851, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 79 ms

Resolved: Processors performance has improved in 0a03181.


Cache leaks deletions over time

Now this may be tricky to resolve, I am merely posting this issue to start the discussion.

Could you elaborate on the description? This sounds like something we were seeing in certain edge cases in angular2, but I didn't dig too much into the underlying cause

https://github.com/caitp/cauliflower-filter/blob/master/filter.js#L35 is only appended to but is never evicted.

Also note, this is a bug in regular broccoli-filter as well.

likely something like:
Object.keys(cache).filter(function(entry) {
  return paths.indexOf(entry) === -1;
}.forEach(function(relativePath) {
  delete cache[relativePath];
});

here

would you be interested in sending a PR?

I think it's slightly more  complicated since you need to map the input file to the cache file, but something more or less like that would probably work

I think it's slightly more complicated since you need to map the input file to the cache file, but something more or less like that would probably work

isn't it already just relativePaths?

would you be interested in sending a PR?

Sometime in the future sure, right now pairing on other (although somewhat related points)

I mean i you want to actually delete the file in the cache directory also

I mean i you want to actually delete the file in the cache directory also

Ah, ya you are correct.

working on this shortly.


Automatically test README and scripts in examples/

This is an attempt to test with Travis every example in the examples/ folder and in the README.md file in the root directory (see #211).
I still have to add testing for the ipython notebooks, but I want to check that Travis finds the example files first.

It seems to work! I'll add the support for notebooks next.

Great, thanks!

Thanks!


Binance Part 2

Take a look, it is a start, we can do much better (Ticker Stream works, Market depth not yet)
depends on strong keys for Binance.NET and CryptoExchange.NET (I used yours)
commented out API key has been cancelled.
no need to merge,

Cleaned up subscriptions, depth now returns data, but need to think about how to maintain OrderBook

This gives us Binance Tick, OrderBook Depth, Aggregate Trades and Candles.
I am not happy with OPEN, CLOSE on BINANCE_24H as it is a blocking call, but everything else seems ok.

Next: Market Trade History
After That: Positions and User Trade History

Something for you to peruse, the test-history.xlsm has a bunch of VBA to return arrays via RTD, making history RTD is going to be a challenge, but this at least gets a snapshot  (I have thought about feeding TIME() into the RTD formula to get updates, but I would first have to create an RTD TIME function), also I think there are less complex ways of updating the sheet from C#, however the advantage of arrays, is a consistent snapshot of data

more stuff, cancel this


[VS Code] Joining collaboration session: The host's network conditions are poor or they are no longer connected to the Live Share cloud relay. Ask them to check their network conditions, restart the collaboration session, and try again.

Error:
Joining collaboration session: The host's network conditions are poor or they are no longer connected to the Live Share cloud relay. Ask them to check their network conditions, restart the collaboration session, and try again.
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS

extensionVersion
1.0.828

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.38.1

platformName
Windows

platformVersion
10.0.18362

Thanks for reporting this issue @sirsuccess! Can you tell me more about what you were doing when you encountered this error message? Were you able to rejoin the session? Also, your logs may provide us with helpful information. You can access them via the Live Share: Export Logs command from the command palette (ctrl + shift + p) and attach them to this issue #2695. I'm going to close this on out as a duplicate of this issue to consolidate the investigation. Please continue the discussion there!


Transition notes: Support limited transition from 5th > 6th in Somerville

Who is this PR for?
Students and families in 5th grade at once school, transitioning schools
What problem does this PR fix?
Help support counselors and admin in transitions across years and buildings.
What does this PR do?
Extends the 8th > 9th grade transition to be used in a similar way for counselors and admin in one school for students transitioning schools at 6th grade.  This maps mostly directly to the 8th > 9th grade transition, in particular with how restricted information is handled.
Separately, other schools with program shifts where students switch buildings will do this also, but in different ways (eg, Somerville Argenziano program, Bedford elementary schools), and those import processes can be tackled separately in the summer so they're all ready for the fall.  They may re-use parts of the model or UI here but for now this PR punts on that to the minimal change needed during the time before the end of the school year.
As a caveat, for folks working K5 with districtwide access, the "Jump to next student" isn't smart enough to know they are only doing this for a smaller subset of students, but they can workaround using the "School transitions page."
Checklists
Which features or pages does this PR touch?

[x] School transitions
[x] Student profile

Does this PR use tests to help verify we can deploy these changes quickly and confidently?

[x] Included specs for changes
[x] Manual testing made more sense here

selfie


Crash with the Network Gateway Probe, /fill, and Jade

The Network Probes causes a client crash when /filled and hovered over with Jade; Crash log found here https://mclo.gs/uNwcDiG
It also appears like that they cause server lag as well (when a 2640 cube of them is filled).

Lag problem can be seen in this discord message https://discord.com/channels/936370934292549712/1101506920268963871/1257150904440983582

Assuming you meant the Network Routing Index as the log indicates, was the problem "crashes when /filled, and also crashes when looked at with Jade", or "Indexes placed via /fill cause a crash when looked at with Jade"? (or something else I guess)
Also, I don't see any server lag from even a 13671 block of them, at least according to the alt-f3 screen. They don't even tick, so I don't know why they would cause much in the way of server-side lag.


long genesets are truncated

Tried a user geneset that was 9K file size, and it did not work correctly.
the geneset that's uploaded is stored in the web 'session' in a cookie, so that visitors are not required to log-in to use the site.   Because cookies are typically limited to 4Kb per site, "long" genesets get truncated or don't get uploaded at all.     "Long" means not really short.   The exact length limit depends on what else is stored on the cookie, and which browser, etrc.    But the limit is not long enough.
Solution is to store all session data such as geneset in the database, and use the cookie only to store the key to the session.

fixed by PR #257


Changing tick mark color

Hi!
First of all, I love your themes!
Great work, really well done and easy to alter.
We basically could alter anything we wanted, either editing the .tcl files or overwriting the pngs provided.
But... The tick mark (esp, in dark mode).
Is that something that's part of tKinter or your theme?
I couldn't find a way to alter it.

As you can see, even in your Simple Example.py the contrast with the dark background is kinda meh.
The tick mark icon next to Option 1, I'm refering to.
I'd love to have it bright, instead of dark for better contrast.
Or... maybe I'm barking up the wrong tree and this is a part of tKinter by default?
If so, do you know what I need to alter?
Thanks in advance!

I've seen, some ttk themes somehow got around this, I'll see, what I can do.


Scala Common Enrich: add Shopify webhooks

https://docs.shopify.com/api/webhooks/using-webhooks

Great idea! Here's the wiki page to get you started: https://github.com/snowplow/snowplow/wiki/How-to-integrate-a-webhook-into-Snowplow

(Note that adding webhooks to Snowplow is much, much simpler now that Schema Guru exists.)

@alexanderdean How would i start collecting JSON instances in the first place in the simplest way? Is there a piece of software to take POST requests and dump the JSON body payload to an S3 bucket? Or is this supported by AWS out of the box? Can you point me to a starting point to read on this?

Hey @christoph-buente - my suggestion would be to setup a Snowplow Clojure Collector in Beanstalk, then you'll get all the files landing in S3.
A nice trick is to do the POST to <<collector_uri>>/com.shopify/v1, because that means that later you can use these same log files to test the webhook adapter running inside your Snowplow code.

Ok, i set it up and registered several webhooks. Mainly add-to-cart, update-cart, create-customer, update-customer.
Now i get logs. I think we are interested in those types of logs: _var_log_tomcat8_rotated_localhost_access_log.txt1449763262
Is it wise to have a separete url for every web hook action like mentioned above? Like this http://<>/com.shopify/cart-create-v1 and http://<>/com.shopify/order-create-v1
And then i strip out the column with base64 encoded JSON payload and pass it to the schema guru? So i end up with a separate schema per webhook pub/sub topic?

Probably no need to have a separate URI for each webhook action - check out Schema Guru's schema-by CLI argument, which lets you use a property of each JSON instance to determine which JSON Schema this specific instance should help to derive.

And then i strip out the column with base64 encoded JSON payload and pass it to the schema guru?

Yes you will need to do that. Depending on volumes, you could write a shell script or Hadoop job to extract the payloads...

Ok, i'll keep collecting data now. But in the end i will have a schema for every singe webhook topic?
schemas/com.shopify/create_cart/jsonschema/1-0-0
schemas/com.shopify/update_cart/jsonschema/1-0-0
schemas/com.shopify/create_order/jsonschema/1-0-0
schemas/com.shopify/update_order/jsonschema/1-0-0
And so on? Now then what? How can i turn those schemas into a valid webhook implementation?

Correct - you'll have a schema for each webhook event type. Once you've got your schemas ready to go, open the PR into Iglu Central and we can then arrange some time on the phone to talk you through the Scala webhook adapter part of what's needed.

Hi @alexanderdean i'm still collecting, not sure if i have enough data from my own shop. Is there a rule of thumb how many events i need to see for a given endpoint?

Good question! It really depends on how complex the webhooks look to be, and how many edge cases they might have...

I collected over 27MB if gzipped event data now. The problem i see now: How can i see from the request, to which webhook endpoint this request belongs? A typical event looks like this:

2016-02-21	21:23:00	-	-	23.227.xxx.xxx	POST	23.227.xxx.xxx	/com.shopify/v1	200	-	Ruby	&cv=clj-1.1.0-tom-0.2.0&nuid=7ccf5558-4b87-45a5-b3e5-91bd42c4ba2d	-	-	-	application%2Fjson	eyJjcmVhdGVkX2F0IjoiMjAxNi0wMi0yMVQyMToyMzowMC4wNzFaIiwidXBkYXRlZF9hdCI6IjIwMTYtMDItMjFUMjE6MjM6MDAuMDcxWiIsImlkIjoiYTI4NDI5NGU3NjM3ZTMxYTlkYjI3Mzg1MDg4MTdkNDIiLCJ0b2tlbiI6ImEyODQyOTRlNzYzN2UzMWE5ZGIyNzM4NTA4ODE3ZDQyIiwibGluZV9pdGVtcyI6W3siaWQiOjE0MjM1NzkyMzI3LCJwcm9wZXJ0aWVzIjpudWxsLCJxdWFudGl0eSI6MSwidmFyaWFudF9pZCI6MTQyMzU3OTIzMjcsInRpdGxlIjoiQmlvIEVkZWxzY2hpbW1lbC1TYWxhbWkgdm9tIFNhdHRlbHNjaHdlaW4gLSBTY2h3ZWluIDIxMyBcLyAxODAgZyIsInByaWNlIjoiOS45MCIsImxpbmVfcHJpY2UiOiI5LjkwIiwidG90YWxfZGlzY291bnQiOiIwLjAwIiwiZGlzY291bnRzIjpbXSwic2t1IjoiRWRlbFNhLUhTVC1SUy1TTjIwMy0xODAiLCJncmFtcyI6MTkwLCJ2ZW5kb3IiOiJCYXVlciBIZW5yaWsgU3RhYXIiLCJwcm9kdWN0X2lkIjozNTk3MTY4MDcxLCJnaWZ0X2NhcmQiOmZhbHNlfV19

As i setup the webhooks to use the very same collector endpoint path, i cannot see what type of event i'm looking at. Is there a way of figuring out?
Thx, Christoph

Hey @christoph-buente - almost always, a webhook event payload will contain some field in it which tells you the event type. I've decoded your attached Base64 payload, and I can't see the event type. This is very unusual.
Do you agree that Shopify event payloads don't seem to specify what type of event they are? In that case, we may need to revert to an approach where you specify the path to each event type separately, eg:
<<collector_uri>>/com.shopify/v1/add-to-cart
<<collector_uri>>/com.shopify/v1/create-customer
<<collector_uri>>/com.shopify/v1/...

What do you think @christoph-buente ?

The payload is very different, depending on the type of event. So an actual transaction event is much longer and contains address, lineitems and transaction information.
So i guess my initial approach would have saved us a bit time. Ok, I'll setup the webhooks accordingly and delete old data.

Yes, sorry - that is a little unusual of the Shopify guys (haven't seen it before)...

Ok, i setup a little processing tool for all the log files. But i have an issue with some JSON files. When i try to base64 decode the log file, sometime parts of the JSON object is missing. Can i configure the clojure collector to not base64 encode in the log files?
This is how i create all the schemas:
./schema-guru-0.5.0 schema \
--enum 20 \
--vendor com.shopify \
--name $name \
--output schemas/$name \
$directory

Here is an example of the output. Would that be something useful?
create-cart.txt

Hey @christoph-buente - this is an excellent start! The best next step is to open a PR into Iglu Central with all of these schemas, so we can review them.
The most important thing to do will be for you to manually inspect the JSON Schemas and tune them by hand - basically if you don't have a huge sample size of JSONs to feed into Schema Guru, then the JSON Schemas generated will tend to be a bit over-prescriptive. For example:
          "vendor" : {
            "type" : "string",
            "minLength" : 17,
            "maxLength" : 29,
            "enum" : [ "Bauer Henrik Staar", "Bauer Bernd Schulz", "Bauer Jasper Metzger Petersen", "Bäuerin Kirsten Hänsel", "Bauer Hanno Offen" ]
          },

You probably want to "relax this" to become:
          "vendor" : {
            "type" : "string",
            "maxLength" : 256
          },

But yes - this is a great start. Exciting!

Thx for the feedback. Any idea about the non decodable base64 encoded text?
[encoded data, 4115 characters]
translates into this:
{"id":4102207111,"title":"Bio-Braten vom Sattelschwein (Keule)","body_html":"\u003cp\u003eBraten aus der Keule (ohne Knochen) vom Sattelschwein, geschossen auf der Weide von Gut Hirschaue: Ein Traum für jeden beWursten Genießer!\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eACHTUNG:\u003c\/strong\u003e Versand im Isolierkarton mit Kühlgel-Pads am Donnerstag, 25.02.2016! Du musst sicherstellen, dass du das Paket am 26.02.2016 entgegen nehmen kannst (95% aller DHL-Pakete kommen am nächsten Tag an, die Kühlung im Karton hält ca. 48 Stunden)\u003c\/p\u003e\n\u003cp\u003eGekühlt mindestens haltbar bis 05.03.2016.\u003c\/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/files\/bio_small.jpg?3104375712574746664\"\u003e\u003cimg alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/files\/EU_BioLogo_small.jpg?3104375712574746664\"\u003e\u003c\/p\u003e\n\u003cp\u003eDE-ÖKO-039\u003c\/p\u003e\n\u003cp\u003ePreis\/Kg: 29,00 € (inkl. MwSt.)\u003c\/p\u003e\n\u003cp\u003eVersand: 7,90 €\u003c\/p\u003e","vendor":"Bauer Henrik Staar","product_type":"Frischfleisch","created_at":"2016-01-21T13:46:54+01:00","handle":"bio-keule-vom-sattelschwein-ohne-knochen","updated_at":"2016-02-23T17:54:38+01:00","published_at":null,"template_suffix":null,"published_scope":"web","tags":"Schwein","variants":[{"id":14070988999,"product_id":4102207111,"title":"920 g","price":"26.68","sku":"BioKeu-HST-FF-SNX-920","position":1,"grams":1000,"inventory_policy":"deny","compare_at_price":null,"fulfillment_service":"manual","inventory_management":"shopify","option1":"920 g","option2":null,"option3":null,"created_at":"2016-01-21T13:49:21+01:00","updated_at":"2016-02-23T17:53:30+01:00","requires_shipping":true,"taxable":true,"barcode":"","inventory_quantity":1,"old_inventory_quantity":1,"image_id":null,"weight":1.0,"weight_unit":"kg"},{"id":16495010183,"product_id":4102207111,"title":"680 g","price":"19.72","sku":"BioKeu-HST-FF-SNX-680","position":2,"grams":1000,"inventory_policy":"deny","compare_at_price":null,"fulfillment_service":"manual","inventory_management":"shopify","option1":"680 g","option2":null,"option3":null,"created_at":"2016-02-23T17:52:09+01:00","updated_at":"2016-02-23T17:53:30+01:00","requires_shipping":true,"taxable":true,"barcode":"","inventory_quantity":1,"old_inventory_quantity":1,"image_id":null,"weight":1.0,"weight_unit":"kg"}],"options":[{"id":5034811207,"product_id":4102207111,"name":"Gewicht","position":1,"values":["920 g","680 g"]}],"images":[{"id":9752445511,"product_id":4102207111,"position":1,"created_at":"2016-02-23T17:54:38+01:00","updated_at":"2016-02-23T17:54:38+01:00","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/products\/SchweineBraten_Hirschaue.JPG?v=1456246478","variant_ids":[]}],"image":{"id":9752445511,"product_id":4102207111,"position":1,"created_at":"2016-02-23T17:54:38+01:00","updated_at":"2016-02-23T17:54:38+01:00","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/products\/SchweineBraten_Hirschaue.JPG?v=1456246478","variant_ids":[]
Note the missing closing bracket at the end of the JSON string.

Looks like some of the payloads might be getting truncated - we have a ticket to investigate this, here #2201

Well, if i use this url http://base64decode.com/ and paste in the aforementioned base64 decoded text, it turns out to be fine.
{"id":4102207111,"title":"Bio-Braten vom Sattelschwein (Keule)","body_html":"\u003cp\u003eBraten aus der Keule (ohne Knochen) vom Sattelschwein, geschossen auf der Weide von Gut Hirschaue: Ein Traum fÃ¼r jeden beWursten GenieÃer!\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eACHTUNG:\u003c\/strong\u003eÂ Versand im Isolierkarton mit KÃ¼hlgel-Pads am Donnerstag, 25.02.2016! Du musst sicherstellen, dass du das Paket am 26.02.2016 entgegen nehmen kannst (95% aller DHL-Pakete kommen am nÃ¤chsten Tag an, die KÃ¼hlung im Karton hÃ¤lt ca. 48 Stunden)\u003c\/p\u003e\n\u003cp\u003eGekÃ¼hlt mindestens haltbar bis 05.03.2016.\u003c\/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/files\/bio_small.jpg?3104375712574746664\"\u003e\u003cimg alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/files\/EU_BioLogo_small.jpg?3104375712574746664\"\u003e\u003c\/p\u003e\n\u003cp\u003eDE-ÃKO-039\u003c\/p\u003e\n\u003cp\u003ePreis\/Kg: 29,00 â¬ (inkl. MwSt.)\u003c\/p\u003e\n\u003cp\u003eVersand: 7,90 â¬\u003c\/p\u003e","vendor":"Bauer Henrik Staar","product_type":"Frischfleisch","created_at":"2016-01-21T13:46:54+01:00","handle":"bio-keule-vom-sattelschwein-ohne-knochen","updated_at":"2016-02-23T17:54:38+01:00","published_at":null,"template_suffix":null,"published_scope":"web","tags":"Schwein","variants":[{"id":14070988999,"product_id":4102207111,"title":"920 g","price":"26.68","sku":"BioKeu-HST-FF-SNX-920","position":1,"grams":1000,"inventory_policy":"deny","compare_at_price":null,"fulfillment_service":"manual","inventory_management":"shopify","option1":"920 g","option2":null,"option3":null,"created_at":"2016-01-21T13:49:21+01:00","updated_at":"2016-02-23T17:53:30+01:00","requires_shipping":true,"taxable":true,"barcode":"","inventory_quantity":1,"old_inventory_quantity":1,"image_id":null,"weight":1.0,"weight_unit":"kg"},{"id":16495010183,"product_id":4102207111,"title":"680 g","price":"19.72","sku":"BioKeu-HST-FF-SNX-680","position":2,"grams":1000,"inventory_policy":"deny","compare_at_price":null,"fulfillment_service":"manual","inventory_management":"shopify","option1":"680 g","option2":null,"option3":null,"created_at":"2016-02-23T17:52:09+01:00","updated_at":"2016-02-23T17:53:30+01:00","requires_shipping":true,"taxable":true,"barcode":"","inventory_quantity":1,"old_inventory_quantity":1,"image_id":null,"weight":1.0,"weight_unit":"kg"}],"options":[{"id":5034811207,"product_id":4102207111,"name":"Gewicht","position":1,"values":["920 g","680 g"]}],"images":[{"id":9752445511,"product_id":4102207111,"position":1,"created_at":"2016-02-23T17:54:38+01:00","updated_at":"2016-02-23T17:54:38+01:00","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/products\/SchweineBraten_Hirschaue.JPG?v=1456246478","variant_ids":[]}],"image":{"id":9752445511,"product_id":4102207111,"position":1,"created_at":"2016-02-23T17:54:38+01:00","updated_at":"2016-02-23T17:54:38+01:00","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1076\/4310\/products\/SchweineBraten_Hirschaue.Jÿÿÿv=1456246478","variant_ids":[]}}

Hmm - are you saying it was just a problem with your prior Base64 decoder?

Not sure. Neither Linux+Mac commandline, openssl nor ruby clients could decode it successfully. But this online decoder can. But ... it is screwing up the german umlauts with wrong charset.

I may found the answer to the faulty files. I have setup the webhook for each possible type of events in shopify like this: /com.shopify/v1/update-customer
And i saw in the log files, that the collector answered with a 404 response code. Yesterday i changed the path to this: /com.shopify.v1/update-customer Which leads to a 200 status code. And non of those files seem to be corrupted in terms of borked base64 encoded body payload. Maybe that helps.

Interesting - the first part makes sense: the collectors are wired to expect /foo/bar, not /foo/bar/bar, so you will get a 404. But the logging is orthogonal to the return code, so I wouldn't expect the 404 to result in a corrupted Base64 entry.

Neither Linux+Mac commandline, openssl nor ruby clients could decode it successfully

Most of these probably aren't using Url-safe Base64 decoding, which might account for the discrepancy.

I also tried the url_safe version from the ruby base64 library. But in case the string could not be parsed correctly it raises an exception. See here: http://ruby-doc.org/stdlib-2.3.0/libdoc/base64/rdoc/Base64.html#urlsafe_decode64-method
At least this way i can assure to have proper JSON object as result.

Alright, i sent a PR to see what you think. https://github.com/snowplow/iglu-central/pull/365

I have collected the data until today. I have ~6000 valid webhook calls. Some events, like cancel order just happened twice, and some events happened 600+ times. It's not evenly distributed. But i still have the issue with the crippled events from the closure collector. This means at least 30% of the data can not be base64 decoded and is garbage.

Hey @christoph-buente - this is a great dataset to get us started! I think we can progress with this - but we will probably want to wait until we have "schema matching" in place before we release it.
I am going to write an RFC on schema inference (of which schema matching is the slightly primitive first step) hopefully soon.

@alexanderdean have a look at my PR: https://github.com/snowplow/iglu-central/pull/365

Thanks @christoph-buente !

Migrated to https://github.com/snowplow/enrich/issues/163


Updated tuning options in README.md

Not yet. Please rework the following issues:
mkfs:
-m 0 is given multiple times
-O large_file  is suboptimal. It defines an inode for every megabyte. Giving the inode definition directly (e.g. -i 6291456 for a 6 MiB ratio - see https://wiki.archlinux.org/index.php/ext4) seems better.
What are -O sparse_super and -E lazy_itable_init supposed to bring to the table?
mount: For a disk full of plots, ro should be the 1st and foremost advice.
x-gvfs-show,noatime,nodiratime,nobarrier are not explained (their benefits)
Why the usage of /dev/sdX in mkfs then UUID in mount?


Noarch - Refresh Grayskull

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

https://github.com/conda-forge/pytest-robotframework-feedstock/pull/31

@conda-forge-admin, please rerender


remove redundant requirements

Remove unnecessary requirements of Towhee, Add corresponding dependencies for each operator in hub.

/approve
/lgtm


Makes the code more readable via early returns / fatal errors in guards

IMO the code reads better with guards instead of the nested if statements

@shto - Thanks for cleaning this up!

👍 You got it, good job on this interesting project!


The current provider only instantiates when used. but there are a few cases where I want it to be initialized before use, like lazy: false.

Mhhh but you can basically
runApp(ProviderScope(child:
HookBuilder(builder: (context) {
  useProvider(provider);
  return MyApp();
}))));`

Consumer version:
runApp(
  ProviderScope(
    child: Consumer(
      (context, watch) {
        watch(provider);
        return MyApp();
      },
    ),
  ),
);

The lazy parameter is simple impossible to implement for numerous technical reasons.
So the approach mentioned by @smiLLe and @mono0926 is the best

Yep. 😅


Add Georgian Translation

Added Georgian (ქართული) Language Translation Files For Testing, Updated and  Full Fixed Later.

Thanks for the PR! I have merged this, with a few changes:

join_with_shared_prefix() was not being used, so I removed it.
strip_prefix() was not being used, so I removed it.
I simplified a number of functions into templates.
I changed the file names to ka.js and ka.json, which are the correct language string for Georgian.


Contribution to enhance the repository

Contribution to enhance the repository adding:

image
description to README.md

Aproved
#hacktoberfest-accepted
#1


Upgrade to tonic 0.12

Up until now we keep the tonic crate version in sync with the core repo. There, we cannot upgrade because other crates are holding it back.
Is there a specific reason you'd like to see tonic 0.12 in the Rust client crate?

Thanks for the update. Makes sense!
Before we merge, can you rebase (or recreate) on the dev branch instead?


wgpu Implementation (Later)

This is mainly so we can give updates and plan on this for later.
As of now, seems Wgpu is getting a performance boost:
https://gfx-rs.github.io/2023/11/24/arcanization.html

We will support multi-backend the same as CPU. The first priority will be Vulkan because it give the best performance so we don't end up rewriting the graphic backend if we hit the limitation of wgpu.

So... Wgpu's vulkan first, then potentially branch out later.

No, I mean pure Vulkan first while making our code support multiple backends. If someone interested to implement another backend they can work on it the same as @bayedieng currently working on LLVM.

Ah, fun x3


Invalid loading state

For button, mode bezeled, invalid spinner color. Label not hide.

Thank you, we fixed this issue in version 2.0.5 https://github.com/XeleneStudio/TelegramUI/commit/2ce0fb49304ae9d211094b5047e55c18150e95a6.


Add require sidekiq/web and add note to uncomment in order to enable

Looks like you already added in the frozen string literal line. So I just added back the require line with the comment instruction above. Would love any and all feedback on what perhaps I should do or have done differently.

Ahhh!! I see ok. I didn't remember it being there before but now that you say that..... the memory circuits are starting to fire off. Thanks for all the info and guidance!

@all-contributors-bot please add @cjilbert504 for code and bug

@all-contributors please add @cjilbert504 for code and bug


Print line number on validate metadata

Print line number when validating metadata file.
Sample output:
yarn:31 `gauge` is an invalid unit_name.
yarn:32 `gauge` is an invalid unit_name.
yarn:72 metric_type is empty in 1 rows.

Great for adding the line.
Would also suggest adding the file name. Otherwise, the line alone is less useful since there are multiple files for each integration.
yarn:yarn.py:31 `gauge` is an invalid unit_name.

That will also help finding the line, since yarn.py:31 is clickable in text editor/IDE or can be copied used to fine exact file+line in text editor/IDE.

Great for adding the line.
Would also suggest adding the file name. Otherwise, the line alone is less useful since there are multiple files for each integration.
e.g.
yarn:yarn.py:31 `gauge` is an invalid unit_name.

That will also help finding the line, since yarn.py:31 is clickable in text editor/IDE or can be copied to find the exact file+line in text editor/IDE.

Yes but the file name is "metadata.csv" which is the same for all integrations

Yes but the file name is "metadata.csv" which is the same for all integrations

Yes right. I got a bit confused.


api,cli: add identity range in status response & cli output

This information would help a lot in ClusterMesh environments.
Effect preview:
$ cilium status
...
Controller Status:      130/130 healthy
Proxy Status:           OK, ip <IP_ADDRESS>, 0 redirects active on ports 10000-20000
Identity Range:         min 262144, max 327679
...

/test

@joestringer thanks! Committed and rebased to master.

/test

/test

/test

Two of the test jobs had previously failed on this, but multiple others passed, and looking back over the changes, there's very low likelihood this introduces any sort of regression. Reviews are in, good to merge.

Thanks @joestringer !


Automated cherry pick of #2971: validators: 应对"listener"参数被重复Validate的情况

Cherry pick of #2971 on release/2.12.
#2971: validators: 应对"listener"参数被重复Validate的情况

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.12@fa3eaf8). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.12   #2972   +/-   ##
==============================================
  Coverage                ?   7.06%
==============================================
  Files                   ?     477
  Lines                   ?   76400
  Branches                ?       0
==============================================
  Hits                    ?    5396
  Misses                  ?   70552
  Partials                ?     452

Flag
Coverage Δ

#aFlag
7.06% <0%> (?)

Impacted Files
Coverage Δ

pkg/cloudcommon/validators/validators.go
61.18% <0%> (ø)

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 fa3eaf8...381f04b. Read the comment docs.

/lgtm

/approve


Use of internal API needed for blanket trait implementations

For the serde Serializer/Deserializer of my crate, I need the types to not only implement the Serialize/Deserialize traits but also another very simple one but I still want to provide blanket implementation wherever possible. Since bitfields are common place for this format, I would like to provide this implementation:
impl<V> VariantValue for enumflags2::BitFlags<V>
where
     V: VariantValue ,
{
     fn signature() -> Signature<'static> {
         V::signature()
     }
}

but this won't work:
error[E0277]: the trait bound `V: enumflags2::_internal::RawBitFlags` is not satisfied
   --> zvariant/src/variant_value.rs:130:9
    |
130 | impl<V> VariantValue for enumflags2::BitFlags<V>
    |         ^^^^^^^^^^^^ the trait `enumflags2::_internal::RawBitFlags` is not implemented for `V`
131 | where
132 |     V: VariantValue,
    |                     - help: consider further restricting type parameter `V`: `, V: enumflags2::_internal::RawBitFlags`
    |
    = note: required by `enumflags2::BitFlags`

I can of course solve this by following the suggestion in the error but I feel uncomfortable using internal API that could break any time. Could you please consider making this public API?

Sorry for taking so long to respond. This is quite perplexing, as I would rather avoid exposing the exact structure of the trait in the public API - adding new things to the trait can make implementing new features easier (or even possible). I am considering marking the trait unsafe and documenting the non-existent stability guarantees in the Safety section. Do you think this can break someone's workflow?

No worries about delays. However, I'm not sure how to answer your question and how it solves my problem at hand. You can decide which API is internal and which is external but I can't implement a trait for BitFlags without RawBitFlags currently.
Having said that, I think I'll be using flagset crate instead which isn't as nice as your API or and popular even but it only exposes stable public API to public.

Perhaps I wasn't clear enough - I was proposing exposing the trait such that you can name it, but not implement it manually (or at least, be discouraged from implementing it).

I have stumbled upon a particularly nice solution. You can now create blanket implementations on master. I aim to release this tomorrow unless a flaw is discovered.

I was proposing exposing the trait such that you can name it, but not implement it manually (or at least, be discouraged from implementing it).

Ah, yes that would solve my problem I guess. :)

I have stumbled upon a particularly nice solution. You can now create blanket implementations on master. I aim to release this tomorrow unless a flaw is discovered.

Cool, I'll check it out and try to test it too.

@NieDzejkob So I tested master against my crate and it seems to all work well: https://gitlab.freedesktop.org/zeenix/zbus/-/commits/bitflags . I'll merge once you've released.

@NieDzejkob Thanks so much for quick actions! I'm now a happy user :) https://gitlab.freedesktop.org/zeenix/zbus/-/merge_requests/40


which function return element or value selected?

how to get id element  li ?

The dropdown-before-select and dropdown-after-select callback events will return the selected item. The value and element can be retrieved from that;
$('.dropdown').on( 'dropdown-after-select', function( e, item, previous, dropdown ) {

    console.log( item );

    // Get the value
    var value = item.value;

    // Get the element
    var elem = item.elem;

});

Hey Dane,
Would be nice to have those events  documented or at least listed (as some are quite self explanatory) on the doc: http://dane.one/projects/jquery-dropdown/docs/
Same for the methods, listed in #20
I'm used to look in the code if there is no doc, but when I found one I tend to assume everything is listed (even more when it is pretty). Events are a nice feature it would be sad if people don't use your dropdown because they think the dropdown lacks a proper API.
Secondly, for those reading this ticket from a search, the name of the event has changed, it is now dropdown.select. Found it in the source:
_afterSelect: function( item, prev ) {
  var self = this;

  // Update <select /> value
  if ( 'SELECT' == self.$elem.prop( 'tagName' ) )
  self.$elem.val( self.inst.value );

  // Event
  self.$elem.trigger( self.name + '.select', [ item, prev, this ] );
},

Cheers


Imagewoof - Resnet18/34 Training

Hey,
I am trying to produce a baseline model for imagewoof as it is hard to find a pretrained model.
I trained both resnet-18/34 by using Adam optimizer. I have reached 81.55/82.62% for top-1 accuracy.
I found some papers reporting that imagenette and imagewoof are 13k samples for training, where I expect this is would be the first version.

Could anyone post a link for the 1st version of them? I want to reproduce their results.

Could we use both datasets to fine-tune the hyperparameters for any training algorithm to generalize it on ImageNet?

Is Imagenette and imagewoof training sets contains some samples from the training set? I checked the files content and I found some but I need someone to confirm this.

Ref: Data Efﬁcient Stagewise Knowledge Distillation

I know this is outdated, but as for Q2. I'm actually investigating training algorithms on ImageNet-1k and Imagenette and how their accuracies compare. So far I haven't found a good correlation between the results on both datasets, e.g. VGG-11 performs essentially onpar ResNeXt-32x4d-50 when benchmarked on Imagenette with the same fixed training parameters. ConvNeXt performs pretty poorly on Imagenette etc. Bias-Variance trade-off plays a huge role I imagine.
Obviously I'm looking more into this but it seems like a correlation between the two just doesn't exist. I'm also looking at ImageWoof moving forward, maybe the fine-grained classes provide indicative performance.


Fix tests due to change in language

Purpose

Language was modified so that a listener declared globally must be initialized then and there. Due to this reason the tests used in testing the samples has been for broken. This PR fixes the tests.

Goals

Fix tests.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@877c69a). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #201   +/-   ##
=========================================
  Coverage          ?   65.06%
  Complexity        ?      117
=========================================
  Files             ?       14
  Lines             ?      561
  Branches          ?       56
=========================================
  Hits              ?      365
  Misses            ?      167
  Partials          ?       29

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 877c69a...cb34af1. Read the comment docs.


Add function to set nullifiers

SSIA: Add a function to set nullifiers in a batch
Note: We don't actually need a legacyRegisterEntanglement function because anyone can call the function to register an entanglement. It's not linked to msg.sender at all.

Closed because we're not setting nullifiers anymore.


Brush with handle

Trying to follow this example to add handle to the brush using:
brushEl.selectAll(".handle").append("path").attr("d", _handlePath)  //_handlePath generates the handle graphic

The path doesn't show up since .handle element is a rect instead of g. As soon as I change the d3-brush source code here to handle.enter().append("g") it works.
Am I doing something wrong or the .handle needs a wrapping g?
Thank you

The example you’ve linked uses the v3 API. The structure of the brush changed in v4, as documented in the README. You can still add custom elements to the brush, but you should add them to the brush element itself, rather than adding it to the handle element. In addition, in v4 you are responsible for repositioning your handle whenever the brush moves (typically by listening for brush events); you can no longer rely on the brush moving custom handle elements for you. For interaction, you must also bind a data object with the appropriate type field (e.g., {type: "e"} for a left-edge handle) to any custom elements you add to the brush.

Here's a d3 v4 port of Mike's block
http://bl.ocks.org/Fil/013d52c3e03aa7b90f71db99eace95af
Bottom line: everything has changed.

extent() doesn't mean the same thing as before
getting the current values is different (you need to read it from the node that contains it, it's not in the brush itself anymore. Because a brush is now a factory that you apply to a selection (similar to d3.axis).
I couldn't see how to pass a scale, and had to apply it myself (am I missing something?)
you effectively need to move and possibly hide/show the handles yourself during the brush event

This was certainly the most difficult port to d3 v4 I've done.

Prodded by @Fil, I have updated my own example to v4. http://bl.ocks.org/mbostock/4349545

Thank you.


chore(deps): update dependency @typescript-eslint/parser to v5.58.0

This PR contains the following updates:

Package
Type
Update
Change

@typescript-eslint/parser
devDependencies
minor
5.57.1 -> 5.58.0

Release Notes

typescript-eslint/typescript-eslint
v5.58.0
Compare Source
Bug Fixes

update getLib for new TypeScript targets ES2021, ES2022 (#6782) (1c04664)

5.57.1 (2023-04-03)
Note: Version bump only for package @typescript-eslint/parser

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: package-lock.json
rm: cannot remove '/opt/buildpack/env.d/node.sh': Permission denied


VJB-91 Add method for get is member already verify fact

Pull Request Test Coverage Report for Build 29

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 89.535%

Totals

Change from base Build 27:
0.02%

Covered Lines:
311

Relevant Lines:
342

💛  - Coveralls


Fix #1396 - Navigation Quirks

This change hopefully addresses #1396 (and the navigation part of #1413 ), by disabling the init.vim loading of our SharedNeovimInstance. For the UI that depends on it, it's mostly canonical vim navigation (h, j, k, l, gg, G, etc), so hopefully that will be sufficient. Worst case, we could specify an alternate config later to use for those specific pieces of UI.
Instead of the NeovimProcessSpawner needing to check the configuration for the options, we've pushed that upwards. This lets the SharedNeovimInstance override the loadInitVim and useDefaultConfig options, and force them to false.
This should minimize conflicts in those pieces of UI, but we may need more work down the road in terms of extending or customizing the mappings for these components.

Fixes #1396 , by making the explorer navigation not dependent on a user's init.vim.


chore: v2.0.0-rc.0: update adversarial test: generator_container

next step in release process
https://github.com/slsa-framework/slsa-github-generator/blob/main/RELEASE.md#container-generator-verifier-test
slsa-framework/slsa-github-generator#3576

failed with expected error
Fetching the builder with ref: refs/tags/v1.10.0-rc.0
Builder version: v1.10.0-rc.0
BUILDER_REPOSITORY: laurentsimon/slsa-github-generator
verifier hash computed is 5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03
Error: Process completed with exit code 4.

now with the correct output
https://github.com/slsa-framework/example-package/actions/runs/8743800065/job/23995237504#step:2:208
Fetching the builder with ref: refs/tags/v2.0.0-rc.0
Builder version: v2.0.0-rc.0
BUILDER_REPOSITORY: ramonpetgrave64/slsa-github-generator
verifier hash computed is 5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03
Error: Process completed with exit code 4.


prometheus: prevent panic when incrmenting counter

The Prometheus Counter.Add() method panics if the value being added is negative. Even if care is taken by consumers to never pass a negative value the panic could still happen due to float conversion or overflow.
This change prevents go-metrics from causing consumers to crash.
A panic like this has been reported in https://github.com/hashicorp/nomad/issues/15861, but, as far as I can tell, Nomad only calls IncrCounter and IncrCounterWithLabels using positive values.

@lgfa29 as an alternative because this seems like such a weird case and a programmer error rather than a runtime error, what would you think about shipping a version of Nomad pinned to this branch to see if we can get reports on the error to fix the underlying cause?

Ah good idea. I will open a PR with this dependency update on Nomad tomorrow. I will probably rebase this as branch to v0.4.1 to make sure this is the only code change.


where to add the ui for user to login

Thanks for this awesome project,
Currently I am doing a static website in which I am trying to integrate a blog. But problem is I dont have any login for both blog and the website.
So when I add the package and go the pages its empty and says "This blog is looking pretty empty..." even after adding accounts-ui I am not getting a login button here.
lets say If I want to have a valid user I need to add accounts-ui and bring the user to that page before landing to blog page ? I dont want to have a login button to my website.
If I have to add a login, then where do I do this ?

The blog package doesn't know or care anything about how you authenticate. I'm afraid you are on your own to figure out where/when/how to allow your users to log in.  You could use accounts-ui, or useraccounts:core, or any of the few other authentication UI packages on Atmosphere.
It sounds you want to have a standalone login page. If so, I recommend useraccounts-core. It's the most popular right now, I believe.

do u think i should have a route to blog that where i can authenticate and can route to /blog after that ?

anyways thanks.. let me try it///


ImageMedium#derivatives now works with image filters

My original motivation for writing this PR was the problem described in #1016, where using the derivatives method on an image in a Twig template wouldn't work well in combination with the other method of producing responsive images in Grav - appending a pixel density indicator to the image's filename (eg. "@2x").
The underlying problem here also meant that image filters would not work in combination with image derivatives. They would work with image alternatives, which is what was generated from appending "@2x" to the filename of the image, but it wouldn't work with derivatives.
This commit fixes both the first and the second problem by making it so that the ImageMedium#derivatives method doesn't add image variants to a separate array, but rather to the same array as it would have if the filename method was used.
I've made some line comments to highlight a few things in the code as well!

Wow this is the nicest documented PR I've ever received. Love it!  Will review and test.

Thanks! :) The changes so far did fix the fact that general image operations weren't applied to derivatives, but I found that I stumbled a bit with the "@2x" filename plus the derivatives method, it's not working quite the way I wanted it to just yet. I'm working on it now, so will hopefully push another commit pretty soon!

@rhukster alright, I've pushed another commit. Hopefully that should do it!

Sorry got busy this past week.. will check this out soon.

@rhukster I've pushed another commit that accounts for the risk of the image derivatives being generated from a cached ImageMedium instance and the original file no longer existing. I've also verified that this works (it results in an "error" image in the browser). This should hopefully be good for a merge now!

One more fix! I've been testing out this patch a lot recently, and it's worked well for me. But I realized that with pre-generated responsive image alternatives, it would auto-generate an "@1x" alternative if such a file wasn't found. I've fixed that now so that the first image alternative it looks for is "@2x"

BTW you might want to merge in this commit: https://github.com/getgrav/grav/commit/31e358ca7c4e603a5517b27142fbffa64a22c9a3
It adds the correct 'prettyname' to the generated alternative images.
<img alt="Retina Image" src="/grav-retina/images/d/2/5/2/9/d2529b606ad3a797704c18099c574995d72b7eda-48a4355cc289c3a5f2520c1cf804c9e0b4e50078-sierra1x.jpeg" srcset="
/grav-retina/images/d/2/5/2/9/d2529b606ad3a797704c18099c574995d72b7eda-48a4355cc289c3a5f2520c1cf804c9e0b4e50078-sierra1x.jpeg 1706w,
/grav-retina/images/2/a/a/c/b/2aacb1f0128f13fec18ecc7105f09c2ffd83bb85-sierra3x.jpeg 5120w,
/grav-retina/images/5/d/f/f/6/5dff6396db4b21d969ede476ad209de8c876ebdc-05784e5c11e5ea1dc0770b0b75b520bd48cc9375-sierra2x.jpeg 3413w" sizes="100vw">

This is the same example as above.

Btw another commit (https://github.com/getgrav/grav/commit/92401de443c278fad29f06d3c53b9de73d74b2c6) fixes the issue with the increasing hashing when you append operations..results look better now:

I knew it was going to bite me sooner or later that I forgot to do this in a feature branch... I've pushed a fix for the problem you described as well as merged your changes from develop, but I did it in a separate branch, so I'll go ahead and open a new PR!


Loader + Workflow - Migrate Controller settings to Handler Settings or even different levels

Migrated from key: controller to key: task


Fix "undefining the allocator of T_DATA" error seen in Ruby 3.2

Description
A undefining the allocator of T_DATA warning was added for c extensions to ensure they adhere to the requirements explained in "doc/extension.rdoc".
Context and implementation can be found here: https://bugs.ruby-lang.org/issues/18007
This PR ensures that users of byebug don't have to deal with this warning.
Implementation
The objects created by rb_define_class_under need to have rb_undef_alloc_func called on them. Here is an example from another gem: https://github.com/swig/swig/pull/2527

@bitwise-aiden May I ask why this PR was closed? Seems like the issue is still present.

I was cleaning up my personal PRs and given nothing has been merged in 3 years to this repo, didn't feel like it was worth keeping around. Feel free to reopen if you'd like.


Invalid typings

Environment details

OS: irrelevant
Node.js version: irrelevant
npm version: irrelevant
@google-cloud/pubsub version: 0.26.0

It looks like the typings shipped with 0.26.0 are incorrect. I can't see any difference in actual implementation nor the changelog that would explain these changes:

Topic.exists has a required parameter - a callback. It should return void if provided with a callback, a promise otherwise.
Topic.get returns a Topic, not [Topic] as it used to. Although I'd gladly welcome this change to the interface, it seems that it actually didn't change and still returns an array.

There might be more, I just pointed out the ones I've came across and tested.

@callmehiphop could you please reopen? Still invalid in v0.27.0
I'll make a PR to fix it, at least the parts that I use. I don't have time to go through all of the types myself.

Sure thing, sorry about that @merlinnot, I'll make another pass through today.


Merge master into 0.next

git checkout master
git pull
git checkout 0.next
git merge master
git push

Interesting diff :)
https://github.com/cakephp/phinx/compare/0.next

Interesting that stickler did not complain about those quote marks when the original PR was merged.


Cannot use composer on WP Engine

I needed this on a client's site hosted on WP Engine, and they don't support composer (or just about anything else for that matter!).
Is there a way to get this working without installing dependencies on the WP Engine server?

I'm working on this one mate. I'll have a guide (it's a workaround that is needed to do this) ready soon!

Thanks. I may not still be using WPE by then. I was doing some freelance maintenance for a client.
Would never use them myself :p


Cost tracking not working for ChatAnthropic()

Feature request
Cost tracking not working for ChatAnthropic(). I think it's because no 'INVOCATION_PARAMS' are shown in LangSmith.
See the comparison between info for ChatAnthropic() and ChatOpenAI():

Motivation
The Anthropic ones are some of the best quality language models currently available. It's very important to have cost tracking working for it on the LangSmith platform.

No, it's in Python, not JS. The screenshots are from LangSmith.

I'm looking for this feature, but I cannot find it. Any workaround available?

What do you mean deskobar? This feature is in LangSmith: when you look at an LLM cal within a Trace, you'll see the Metadata section. BTW, this issue got resolved; now cost tracking for ChatAnthropic works well in LangSmith :-)

What do you mean deskobar? This feature is in LangSmith: when you look at an LLM cal within a Trace, you'll see the Metadata section. BTW, this issue got resolved; now cost tracking for ChatAnthropic works well in LangSmith :-)

Oh, could you please help me?
This is my code.

I have installed
langchain-anthropic = "^0.1.17"
langchain-core = "^0.2.11"

On smith.langchain.com I see after each request

So, what am I doing wrong?

Hi deskobar, I think this is not the place for 'help' with your code. Try discord, please. Thanks.


Server tried to update attributes of a non-living entity

Issue Description:
so it just casually crashes
cause of an entity from enderio having it's
attributes updated when it's a non living entity
What happens:
game freezes then closes leading
to the crash log being displayed on the launcher
like with most if not all crashes that happen with minecraft
What you expected to happen:
it to run as it has been for a quite awhile with out anything going wrong
Steps to reproduce:
1.waiting for it to happen or directly on world load
temporary fixes
going into mc-edit and deleting all loaded entitys in the area surrounding
the player for that world save

Affected Versions

EnderIO:1.7.10-<IP_ADDRESS>4_beta
EnderCore:1.7.10-<IP_ADDRESS>_beta
Minecraft: 1.7.10
Forge:<IP_ADDRESS>4-1.7.10-

log file
http://pastebin.com/NtPVy61y

do you have a world backup where you can try mcediting? I'm interested in knowing if deleting any specific modded entity in the area solves this, or if it is the rocket itself.

after using the crash log and mutiple copies of the world save to locate the location of the entity in question's location mc edit says theres only a vanila skeleton within a block or so distance to where the crash log places the rocket but after deleting all entities within a small 4 block radius of the rockets potential location i.e where the crash log says it is in minecraft coordinates x=-1805.88, y=30.00, z=1203.47 the save crashes on load giving me this crash log http://pastebin.com/6wxHuz76

the crash log references the rocket again but in a different location which i going to have to track down

besides not knowing what the actual cause may be @HenryLoenwind did you notice the origin of this call?
at weatherpony.pml.premain.ReplacementMainThread.run(ReplacementMainThread.java:104)

i have notified the author of the mod that is interacting with enderio like this and am waiting for a response have been tracking down the entity for awhile now using mcedit and trying to find exact coodinates in it is hard

yeah i was just hinting it may be a right call at the wrong time, my guess was the "illegalstate" resulting from calling a method at a time which it is not designated to be called or not given the neccesary informations to run like expected

The ReplacementMainThread thing is unrelated. That's way out in the game launcher area.
Just to be sure: Is there really a weather rocket where the crash says one should be?
Then: The relevant entities are listed with their locations in the crash log.

have located the rocket listed in the new crash log but there is no entity in it's location which is concerning cause if the crash is being caused a non existent entity im going to cry cause herobine is supposed to be a bad creepypasta that went meme staus

ok so is this rocket thing something im supposed have made/placed into the game world or is it a naturaly spawning thing? cause after some review of the rockets locations listed in the crash logs i have found nothing there but vanila skeletons but after deleting all the entities in a small 2 block radius of the entities locations the saves load fine and no longer crashes

It is an entity created by the weather obelisk after a player pressed a button in its GUI. So you'd probably know if there should be one.
Now that help the matter immensely. We know that there is no weather rocket on the server, but the client tries to update one. That means the client and server are not in sync about the available entities. Check the configs of all mods that add entities to the game between server and client. At least one entity is enabled on the server but disabled on the client (or the other way around). I'd start with Ender IO's WitherSkeleton, then EnderZoo. For those mods I know that disabling the entity also disables registering it.

ok i disabled all the ender zoo mobs via config and the wither skeleton replacement and that seems to have fixed it going to do some more tests with the other 5 identical world saves from when this first happened though it did fix itself at one point when i switched to peaceful for a bit to grab something in another world save  before i started doing stuff with configs  which should of indicated it was a problem with hostile mobs

Yes, that sounds like configs not being in sync between server and client.

judging by the fact it was skeletons/wither skeletons in the area of the false entity registration then it is probably the wither skeleton override doing it


Tests bot

What type of pull request is this?

[ ] Non-breaking code change
[ ] Breaking code change
[ ] Documentation change/addition
[x] Tests change

Description

Adds a testing bot to the repo. This bot will automatically connect to discord, and test various components of the library, and thanks to the pytest matrix, it will test multiple extras.
This test suite was originally used privately in the contributor test server, however it made sense to convert it into an automated test suite.
This bot does not make any effort to test the entire library, for example it cant test the commands framework completely, however it should serve as a good basis for automated testing.
Changes

Add test_bot.py
Add test resources
Update workflows and pytest ini
Add no cover flags to TYPE_CHECKING

Checklist

[x] I've formatted my code with Black
[x] I've ensured my code works on Python 3.10.x
[x] I've tested my code

This is currently achieving a 59.74% test coverage

Req review from sil as she is the test god


Add rendering for more leisure objects

This PR adds rendering for some more leisure objects. I hope it is okay that I just moved them to the normal "leisure dark green".
leisure=track

leisure=golf_course

leisure=garden

Thanks @hikemaniac 👍  Looks ok to me..


Make transport tests less racy

use an explicit Flush instead of a small reporting period
remove unnecessary options for clarity
one exception is CloseTracer tests, they still need to test with a
short reporting period instead of Flush.

@jmacd reassigning because #NoDolan. This PR is no biggie (just tests) so I'll just merge if you don't have time.

FYI I've created a branch named "v0.16.0" for post-0.15 feature development.

Closing because it's stale. Happy to reopen if desired!


Batch Write: Optimize Key Partition

@zhexuany
A optimized version of key partition. Use binary search instead of linear search.

/run-all-tests


Use the correct accountToken

I'm having troubles when sending the reports (lcov.info generated by JEST) to codacy-coverage:
Token incorrect
cat coverage/lcov.info | codacy-coverage [error] "2017-08-15T18:13:51.688Z"  'Status Code [404] - Error [{"error":"not found"}]' [error] "2017-08-15T18:13:51.691Z"  'Error sending coverage' [error] "2017-08-15T18:13:51.691Z"  Error: Expected Successful Status Code, but got [404]     at /usr/local/lib/node_modules/codacy-coverage/lib/reporter.js:101:23
In order to avoid this:
Go "Account" > "API Tokens" (copy the string in the input)
When triggering test action from package.json, the accountToken needs to be the correct one. Add the token copied above into this action:
"test": "node scripts/test.js --env=jsdom --coverage && cat ./coverage/lcov.info | codacy-coverage --accountToken <TOKEN> --username <USERNAME> --projectName <PROJECT_NAME>"
In the official docs, the account token that you add is the Project API Token, this is wrong!!!

Hi @enrtama, can you extend a bit more about exactly what is the problem you are experiencing?

Hi @rtfpessoa, I've edited the content above, I hope It's helpful

I am sorry that our docs were not clear enough. I made some changes to highlight the tokens and how you can get them.
Can you take a look and let me know if it is more clear now?

Yeah! Clear enough now, thank you very much for updating it.
I hope people don't have troubles with it anymore.

Thanks for your heads up.
Let us know if you have any other questions.


[BUG] am i blind or is there no multiple instances anymore? i got on my computer my bloxstrap wasnt working... i reinstalled now cant use more then one acc...

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
v.2.8.2
What problem did you encounter?
please help why is this happening.. i need to use multiple accs to test my server.
Bloxstrap Log
No response

i have tried just about everything can someone help

its removed


Cannot connect to host v3.0.5

I can't add the integration, because I can't login into my eWeLink account. I receive the message:
Cannot connect to host eu-apia.coolkit.cc:443 ssl:default [Try again]
I've tried various different suggestions that I found, for what I understand the similar issue should have been resolved in the latest version. Also tried different versions with same result.

I have the same issue

I can't add the integration, because I can't login into my eWeLink account. I receive the message:
Cannot connect to host eu-apia.coolkit.cc:443 ssl:default [Try again]
I've tried various different suggestions that I found, for what I understand the similar issue should have been resolved in the latest version. Also tried different versions with same result.

I have the same issue

same also

Had a similar problem and solved it by setting the DNS to one of Google's. You will need the "SSH & Web Terminal"  and the command is "ha dns options --servers dns://IP_ADDRESS ha dns restart", Google's DNS is <IP_ADDRESS> or <IP_ADDRESS>. You can test it by pinging the server that cannot be reached before and after the change.

Should be fixed in latest version

Hi @AlexxIT
I just installed today the latest version and I am getting the same error here when trying to configure the integration.

"Cannot connect to host eu-apia.coolkit.cc:443" it's just an your Internet problem. Integration can't do anything with it.

Sure, but it is a problem that blocks the integration. Maybe there is
something that can be done to solve it? No other integrations complain
about it.
On Fri, Dec 30, 2022, 11:43 Alex X @.***> wrote:

"Cannot connect to host eu-apia.coolkit.cc:443" it's just an your
Internet problem. Integration can't do anything with it.
—
Reply to this email directly, view it on GitHub
https://github.com/AlexxIT/SonoffLAN/issues/855#issuecomment-1367821601,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARNJ774OLMTY5ZYHKQVNBTWP2VFTANCNFSM5WSPYZOQ
.
You are receiving this because you commented.Message ID:
@.***>


Consider time based thresholds for CircuitBreaker

For example, where .5 executions fail over 1 minute period. See Polly's advanced circuit breaker as a reference:
https://github.com/App-vNext/Polly
Either requires windowing or inexact stats, neither of which are ideal.

Interesting idea, but I'd wait for more :+1:.

This was added to Failsafe.


Click item to print to console

Copy/pasting an item reported in the comments section for the ng-inspector listing in the Chrome extensions gallery:

Xinyao TanModified 2 days ago

Useful tool, but there's a bug with the "click item to print to console" feature.

ng-inspector allows you to click on the scope variables in the ng-inspector window to print the object to the Chrome console window.

This ng-inspector console print out in certain scenarios is out of sync (e.g. Boolean flag is false, while it’s actually true from the ng-insepctor window + console.log), therefore cannot be trusted.

I think this is easily reproducible, create a boolean variable, view the value in the window (which should be correct), toggle the value programatically and the ng-inspector window displays the updated value correctly. However if you click on the variable in the ng-inspector window, the printed value in the console has not been updated, and is therefore incorrect...

I'm able to replicate the issue with the steps provided in the last paragraph of the report. Super simple plnkr for demonstration purposes: http://plnkr.co/edit/LLi4JrVx7jurTbxIXDYC?p=preview

I believe the issue happens in the code below. When the model for a Treeview item is created, the click event is being bound with the initial value being passed in upon creation.
I haven't yet dug into where in the the UI value is changed after a mutation event triggers. @rev087, if you're able to help identify the best path for a solution, I'd be happy to submit a PR.
	// Creates a TreeViewItem instance, with styling and metadata relevant for
	// AngularJS models
	TreeView.modelItem = function(key, value, depth) {
		var item = new TreeViewItem(key + ':');
		item.element.className = 'ngi-model';
		item.label.className = 'ngi-depth-' + depth;

		item.label.addEventListener('click', function() {
			console.log(value);
		});

		return item;
	};


fix(ListItem, BlockQuote): fix colors respecting the Theme context

Issue: #1126
What I did

Fix colors respecting the Theme context
Screenshots:

Checklist

[x] changeset has been added
[x] Pull request description is descriptive
[ ] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works

How to test

Fix colors respecting the Theme context ✅


Better default for version

Right now, version defaults to the time and date of the last build. As the docs note, this is definitely not ideal: (emphasis mine)

Please note that if you use the default value (date and time), the version of service worker will change on each build of your project.

There should be a better default for this that doesn't update the cache on every single deploy, even if nothing changed. What about using a hash of all the filenames and the ServiceWorker file contents? This would mean the version of the cache only changes if the cached files or the ServiceWorker file changes, which seems like a sensible time to update the cache version to me.

Well, it might be done. But there no real problem in current situation. It's possible to change version to '[hash]' and it will use hash of the build as the version. Also, offline-plugin automatically calculates hashes for all your files (unless external, which can't be tracked) and updates only those what changed. Hence, it's kinda better to update more often. Unnecessary files won't be downloaded.


feat!: use wasm-opt -O (via wasm-opt-rs) as post-step of build

original goal of this pr is to mitigate Rust's breaking changes to stable toolchain, i.e. to
correct output wasm (with respect to nearcore runtime),  not optimize it
https://near.zulipchat.com/#narrow/stream/295302-general/topic/default.20wasm.20features.20in.20Rust.20.28.2Bmultivalue.2C.2Breference-types.29

this test with crates.io cargo-near-build version
passes on stable 1.81, and fails on 1.83-nightly
after modifying cargo-near-build to a commit from pr, the test passes

timing of running command (from scratch) on factory contract

command
main
pr

cargo check
19.3 s
2 min

cargo near build --no-docker
44 s
4 min

@race-of-sloths include

@dj8yfo Thank you for your contribution! Your pull request is now a part of the Race of Sloths!
Do you want to apply for monthly streak? Get 8+ score for a single PR this month and receive boost for race-of-sloths!

Current status: waiting for finalization
The pull request is merged, you have 24 hours to finalize your scoring. The scoring ends Thu Oct 17 13:59:49 2024

Reviewer
Score

@frol
8

Your contribution is much appreciated with a final score of 8!
You have received 80 Sloth points for this contribution
What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow
For contributors:

Tag @race-of-sloths inside your pull requests
Wait for the maintainer to review and score your pull request
Check out your position in the Leaderboard
Keep weekly and monthly streaks to reach higher positions
Boast your contributions with a dynamic picture of your Profile

For maintainers:

Score pull requests that participate in the Race of Sloths
Engage contributors with fair scoring and fast responses so they keep their streaks
Promote the Race to the point where the Race starts promoting you
Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands

For contributors

Include a PR: @race-of-sloths include to enter the Race with your PR

For maintainers:

Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called


Cannot rename temp ZIP file

λ wireshell new site

Welcome to the wireshell ProcessWire generator

Downloading ProcessWire...
   11.26 MB/11.26 MB ============================================================  100%

[Symfony\Component\Filesystem\Exception\IOException]
Cannot rename
"[...].150799541059e22f12d7ab8\pw.8780.tmp" to
"[...].150799541059e22f12d7ab8\pw.zip".

Interestingly, the file is actually renamed:
-rwxrwx---+ 1 user user 11810577 Oct 14 17:37 pw.8780.tmp*
-rwxrwx---+ 1 user user 11810577 Oct 14 17:37 pw.zip*

Running this on Windows 10. Could it have something to do with Distill?

Sorry I can't reproduce this. I'm not working with windows. Maybe a permission issue?


[CORE] Adds html-reporter plugin for gemini@latest

I figured out what the issue was, the html-reporter plug-in needs to also be installed globally (duh).
This PR will get us back on the latest gemini with html-reporter.

This worked on my Ubuntu VM but not here. Going to close this for now.