Different results in caffe-android-lib and caffe-lib

Hi, All,
I'm so sorry that I got a  different result during using caffe-android-lib.
My task is Classification, and I got the result in softmax layer in my android device which is below:
Label 0,          Label 1,         Label2,           Label3
0.00697519,   0.0600692,    0.904507,      0.0284484
But meanwhile, I got the result in softmax layer in my computer by caffe-lib, is below:
Label 0,         Label 1,         Label2,            Label3
0.008724  ,    0.04197951,  0.93302566,   0.01627085
They both use the same model and the same test image.
I don't know if the dropout layer is useful during Test period.
So if there is a bug? Does any have the same problem?

@Syndrome777 Did u use Eigen to build caffe on your computer? And, dropout is not applied during test phase.

@sh1r0  Thank you for your response. No, I use caffe's default BLAS(OpenBLAS/CUDA). Is Eigen the reason of this different result ? It seems that this difference is unacceptable.

Oh, it could be related to the issue mentioned in https://github.com/BVLC/caffe/pull/2619#issuecomment-113224948. I think my wrappers in mkl_alternate.hpp and math_functions.cpp might be buggy somewhere. Sorry for that. If you want the result to be more precise, maybe you can refer to this to get pre-built OpenBLAS, which is much slower than Eigen,  as a workaround.

@Syndrome777
I tried to build caffe with both OpenBLAS and Eigen, and test on my pc with the script below.
./build/examples/cpp_classification/classification.bin \
models/bvlc_reference_caffenet/deploy.prototxt \
models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel \
data/ilsvrc12/imagenet_mean.binaryproto \
data/ilsvrc12/synset_words.txt \
examples/images/cat.jpg

And the results shows no difference between the two builds.

openblas.log

---------- Prediction for examples/images/cat.jpg ----------
0.3134 - "n02123045 tabby, tabby cat"
0.2380 - "n02123159 tiger cat"
0.1235 - "n02124075 Egyptian cat"
0.1003 - "n02119022 red fox, Vulpes vulpes"
0.0715 - "n02127052 lynx, catamount"

eigen.log

---------- Prediction for examples/images/cat.jpg ----------
0.3134 - "n02123045 tabby, tabby cat"
0.2380 - "n02123159 tiger cat"
0.1235 - "n02124075 Egyptian cat"
0.1003 - "n02119022 red fox, Vulpes vulpes"
0.0715 - "n02127052 lynx, catamount"

@Syndrome777 Finally, OpenBLAS is fully (?) supported, please refer to the latest master branch (3ac46b03dca71cd220f4f1529bc0a0f84068c9a2).

@Syndrome777 Finally, OpenBLAS is fully (?) supported, please refer to the latest master branch (3ac46b03dca71cd220f4f1529bc0a0f84068c9a2).

Hi, @sh1r0 , Thank you for your help.
Now I get the same result as you.
Thank you so much again.

@sh1r0 Hello, Could you tell me how do you get this result ? If this result is run in an android phone and if there is any scripts?
---------- Prediction for /sdcard/caffe_mobile/cat.jpg ----------
0.3134 - "n02123045 tabby, tabby cat"
0.2380 - "n02123159 tiger cat"
0.1235 - "n02124075 Egyptian cat"
0.1003 - "n02119022 red fox, Vulpes vulpes"
0.0715 - "n02127052 lynx, catamount"
Thank you !!!


Load balancing not working with ROUND_ROBIN_CONNECT strategy

OrientDB Version, operating system, or hardware.
v2.2.14
Operating System
Linux
Expected behavior and actual behavior
I have tried the steps given in Load Balancing section of http://orientdb.com/docs/2.2/Distributed-Configuration.html
final OrientGraphFactory factory = new OrientGraphFactory("remote:localhost/demo"); factory.setConnectionStrategy(OStorageRemote.CONNECTION_STRATEGY.ROUND_ROBIN_CONNECT.toString()); OrientGraphNoTx graph = factory.getNoTx();
Requests are going only one of the nodes though I have provides multiple orientdb nodes in the remote server url. Load balancing is not happening.
I tried to use a work around. I use the below code, as the connection strategy at Pool level is being used while creating connection, but still the same issue
OPartitionedDatabasePool pool = new OPartitionedDatabasePool(url, userid, pass);         pool.setProperty(PARAM_CONNECTION_STRATEGY.toLowerCase(),             OStorageRemote.CONNECTION_STRATEGY.ROUND_ROBIN_CONNECT.toString()); OrientGraphFactory factory = new OrientGraphFactory(url, userid, pass, pool);
Steps to reproduce the problem
Debug the method OStorageRemote.getNextAvailableServerURL. This always returns the same node irrespective of the strategy being used for Load balancing.

@lvca @tglman We are evaluating OrientDb. The use case is rule engine. We are using traverse out() in sql. Getting around 1000 qps on a 6 core machine. Memory settings are 4 GB heap, 7 GB of disk cache. And the data is much less than 1 GB.
We have a requirement of 3k qps. If we can use Round Robin for connections, then we can scale out horizontally. If you can fix this issue or provide a work for load balancing, we can go ahead with OrientDb.

Hi @cowboy4mhell,
I'm checking this.
Bye

hi @cowboy4mhell,
From what you say it seems that you are looking for the ROUND_ROBIN_REQUEST setting instead of ROUND_ROBIN_CONNECT, the difference  is that ROUND_ROBIN_CONNECT choose a server each new session is created (that in your case is limitated by the pool) instead ROUND_ROBIN_REQUEST each time you execute an remote operation (like a query).
Hope this help.
Regards

hi @tglman
I am looking for ROUND_ROBIN_CONNECT only. When the pool is initialised, db connections are made. For ex: with default pool settings, 4 partitions with min pool size of 2, there will be 8 db connections made. When db is opened, a session is created for that db. And then when network connection is made for the db, the url to be used is computed from the list of server urls. But for this computation, OStorageRemote uses the serverURLIndex in the session. To start with, this index is always -1 and so we end up connecting to the 1st url in the server list.
I have made some changes in the client and tested. For ROUND_ROBIN_CONNECT, the serverURLIndex should be maintained in the OStorageRemote and not in the session. I can make changes an raise a pull request, if you want to see the change.

hi @cowboy4mhell,
It seems you are pretty forward in the investigation so yes if you can do a pull request this will speedup a lot the fix.
Regards

are there any plans regarding fixing this issue?

Taking a look on the source code I discovered that using
factory.setProperty("connectionStrategy", StorageRemote.CONNECTION_STRATEGY.ROUND_ROBIN_CONNECT.toString()); instead using the normal way as in the docs, managed to do the work, but from three master instances in a cluster only two are getting the load , the third doesn't receive any query. Hope it for the moment helps someone.

hi @cowboy4mhell, @razvanjuravle
I got that some time the value setConnectionStrategy was not managed well, i fixed that, it will be released 2.219, closing.


fix: Fix components

Closes #116
Closes #117
Closes #118

:tada: This PR is included in version 1.0.0-alpha.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


python310Packages.screenlogicpy: 0.6.3 -> 0.6.4

Diff: https://github.com/dieselrabbit/screenlogicpy/compare/refs/tags/v0.6.3...v0.6.4
Changelog: https://github.com/dieselrabbit/screenlogicpy/releases/tag/v0.6.4
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 212737 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.screenlogic
python310Packages.screenlogicpy
python311Packages.screenlogicpy


Facebook Live Video Download not possible

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.12.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.12.01

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl   -v "https://www.facebook.com/NBCNews/videos/1603390213014336/"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.facebook.com/NBCNews/videos/1603390213014336/', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0-tessus, ffprobe 3.0-tessus, rtmpdump 2.4
[debug] Proxy map: {}
[facebook]<PHONE_NUMBER>014336: Downloading webpage
[facebook]<PHONE_NUMBER>014336: Downloading webpage
[debug] Invoking downloader on u'https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-md/1603390216347669.mpd?_nc_rl=AfC-JcMttEY5gCFO&oh=eb923e934df2ce88022a291c022b15e2&oe=5849FF3D'
[download] Destination: Joe Biden Honored on Senate Floor-1603390213014336.mpd
[download] 100% of 2.87KiB in 00:00
...
<end of log>

Description of your issue, suggested solution and other information
It is not possible to download live videos. It just downloads the mpd file which is not working with ffmpeg or vlc. I also have tried it this way
$ youtube-dl -g "https://www.facebook.com/NBCNews/videos/1603390213014336/"
I get the stream url "https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-abr/1603390216347669.mpd?_nc_rl=AfAC1NE-mOyaDki-&oh=48157680dc0dbb6e0a27c769788abd97&oe=584AFED9"
Which is still not playing with common players.
If I place this streamurl string into youtube-dl than I get this debug log:
---log begin---------------------------------------------------------------------
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-abr/1603390216347669.mpd?_nc_rl=AfAC1NE-mOyaDki-&oh=48157680dc0dbb6e0a27c769788abd97&oe=584AFED9', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0-tessus, ffprobe 3.0-tessus, rtmpdump 2.4
[debug] Proxy map: {}
[generic]<PHONE_NUMBER>347669: Requesting header
WARNING: Could not send HEAD request to https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-abr/1603390216347669.mpd?_nc_rl=AfAC1NE-mOyaDki-&oh=48157680dc0dbb6e0a27c769788abd97&oe=584AFED9: HTTP Error 502: Bad Gateway
[generic]<PHONE_NUMBER>347669: Downloading webpage
WARNING: Falling back on generic information extractor.
[generic]<PHONE_NUMBER>347669: Extracting information
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 357, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1644, in _real_extract
self._sort_formats(info_dict['formats'])
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 924, in _sort_formats
raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
---log-end----------------------------------------------------------------------------------------------------
Am I doing something wrong or is it just not supported?!
Meanwhile if you try this urls, maybe they are not active anymore because they were live.
Just try any live video from http://facebook.com/livemap

Works fine for me. Post the output of:
youtube-dl -v --dump-pages https://www.facebook.com/NBCNews/videos/1603390213014336/

@dstftw  Your example is downloading a recorded video (vod) in mp4 format. This not a "Live Video".
My point was that it is not processing live videos on facebook.
Pick some Live Video i.e. from www.facebook.com/livemaps and try to download that video. Or try to play the downloaded mpd file with vlc or ffplay. Some weeks ago this was possible as facebook has delivered hls and rtmp videos. But since a while it is delivering live videos in mpeg dash format which somehow can not be handled with the latest youtube-dl versions?!

Duplicate of #10787.

youtube-dl does download the file with the MPEG DASH url but the script is not able to recognize it yet.  I have to manually extract it.  The mpd file is using relative urls and needs to be converted to absolute url which should be taken in consideration when playing them.  You can see them with --write-pages.

orson@(none) ~/fbl $ youtube-dl -u<EMAIL_ADDRESS>-p "xxx" -v "https://www.facebook.com/cnn/videos/10155806047981509/"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-v', u'https://www.facebook.com/cnn/videos/10155806047981509/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.19-gentoo_no_offensive_sites
[debug] Python version 2.7.12 - Linux-4.4.26-gentoo-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.3
[debug] exe versions: ffmpeg 2.8.6, ffprobe 2.8.6, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] Downloading login page
[facebook] Logging in
[facebook]<PHONE_NUMBER>7981509: Downloading webpage
[facebook]<PHONE_NUMBER>7981509: Downloading webpage
ERROR: Cannot parse data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 694, in extract_info
ie_result = ie.extract(url)
File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/common.py", line 355, in extract
return self._real_extract(url)
File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/facebook.py", line 352, in _real_extract
video_id, fatal_if_no_video=True)
File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/facebook.py", line 276, in _extract_from_url
raise ExtractorError('Cannot parse data')
ExtractorError: Cannot parse data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

orson@(none) ~/fbl $ youtube-dl -v -o - -u<EMAIL_ADDRESS>-p "xxxx" "https://www.facebook.com/cnn/videos/10155806047981509/"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-o', u'-', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'https://www.facebook.com/cnn/videos/10155806047981509/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.15-gentoo_no_offensive_sites
[debug] Python version 2.7.12 - Linux-4.4.26-gentoo-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.3
[debug] exe versions: ffmpeg 2.8.6, ffprobe 2.8.6, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] Downloading login page
[facebook] Logging in
[facebook]<PHONE_NUMBER>7981509: Downloading webpage
[facebook]<PHONE_NUMBER>7981509: Downloading webpage
[debug] Invoking downloader on u'https://video.xx.fbcdn.net/hvideo-lla2/s3/v/dash-abr4/10155806047986509.mpd?_nc_rl=AfAz9UGEiWaXqqCZ&oh=951634ea097bd445039bd73508ec9665&oe=5861AE57'
[download] Destination: -

[download]  17.0% of 5.89KiB at Unknown speed ETA Unknown ETAplate
presentationTimeOffset="0"
timescale="1000"
media="../dash-md/10155806047986509-$Time$.m4v"
initialization="../dash-md/10155806047986509-init.m4v">

<Representation
id="live-hd_H264"
mimeType="video/mp4"
codecs="avc1.4d401e"
width="854"
height="480"
FBQualityClass="sd"
FBQualityLabel="480p"
frameRate="30"
sar="1:1"
startWithSAP="1"
[download]  50.9% of 5.89KiB at  1.29MiB/s ETA 00:00th="1000000">

[download] 100% of 5.89KiB in 00:00
orson@(none) ~/fbl $
The mpd file should be using absolute urls to feed to vlc.  vlc or mplayer doesn't know anything about the server or path if piped to it.  So it should look like:
cat t.mpd | sed -r -e "s|../|https://video.xx.fbcdn.net/hvideo-lla2/s3/v/|g"


Alias module build support

These need to be supported in SFX and normal bundles as part of configuration builds if we continue to support this feature.

This is no longer supported in SystemJS.


fixes the local registry and nameserver

Fixes local registry so you no longer need fully-qualified image paths (no need for docker.io/...)

@critterjohnson tag me in a request if you need attention on this


Add document API environment variables

Add environment variables to the Back Office API app with references to the Back Office Documents API hostname and port.
Add environment variable to the Back Office Documents API with reference to the Back Office Documents Storage Account primary blob endpoint.

there seems to be an issue with the checks


Upgrade jms library

Upgrade jms underlying library version to 0.0.2. Changes include:

expose a function to set clientID in connection factory

Hi, @yiliuTo ,
I'll close this PR, because this repo will retired soon.
Please created PR to new repo if necessary.


Toggle to disable scroll wheel or drag on the map

Is your feature request related to a problem? Please describe.
I often accidentally mess up the map. I'll hit the scroll wheel and accidentally zoom it, or I'll try to move a bean and accidentally drag it. This is frustrating because it's hard to get back exactly right. But I sometimes end up with beans off-screen, meaning I can't find them when I try to put them on the map (or look to see which beans aren't on the map).
Describe the solution you'd like
I never want to pan & zoom. I'd love a toggle in the settings where I could disable this functionality altogether.
Describe alternatives you've considered
Another alternative would be to add some kind of hotkey to automatically reset the map pan & zoom to the default mode. This could (should?) be part of the double click to reset the beans, but it probably wants to be its own button.
It might also be helpful to add a border around the maps canvas. It's kind of hard to drag the map back to the right place because you can't tell when you're about to hit the border.
Additional context

Thank you for your ideas, I think adding a setting to not allow pan or zoom should solve the problem.

I've verified that on the "next" version double clicking the map resets it to the correct place. That's good enough for me.


Introduce default-calendar-date option

This sets the default month for the date picker to appear with.

Otherwise it's always the current month.

This is separate and different from init-value.

It doesn't affect the field's value in the model, only the UI's default.

Closing this to get it off my list


Gallery, Shrine, Landscape: home layout doesn't show text

On iOS, open gallery, tap into shrine, go landscape.
Notice how the text for "beautiful little teapot" is "below the fold". We should move the text up so that it's visible in landscape.
Also, it looks like there's too much padding between the price in the upper right and the teapot. But maybe that will look better once the text is visible.

Confirmed still an issue on iPhone 6, Nexus 5, and Nexus 6P

Confirmed just now still true in 3a43fc88b66b042c612c04c3e2b8445ba1b27546

This is probably a very easy fix.  We had this same bug reported several times since it's so obvious.


Update token_handler.py

Type
enhancement, bug_fix

Description

Introduced error handling in _get_system_user_tokens to return -1 when an exception occurs, enhancing robustness.
Minor fix to ensure newline at the end of the count_tokens method.

Changes walkthrough
Relevant filesEnhancement

token_handler.pyEnhance Token Handling with Error Fallback

pr_agent/algo/token_handler.py
Wrapped token counting logic in _get_system_user_tokens with a try-except block.  Added a fallback return value of -1 in case of exceptions in _get_system_user_tokens.  Ensured newline at the end of the file in count_tokens method.

+10/-7

✨ PR-Agent usage:
Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

/help


[FEATURE]: tensor parallel microbenchmark changes to support microbenchmarking large models

Describe the feature
Problem
The intrahost microbenchmarking CLI tool executes the "None" (DDP) strategy first, and when it OOMs, the microbenchmark does not proceed to the tensor parallel strategies.
Desired solution/support
Intrahost tensor parallelism is most important for large models, relative to available memory, so the tensor parallel microbenchmark would ideally support benchmarking model sizes that do not fit in a single GPU's memory.
Potential fixes
(not mutually exclusive)

Use try-catch clauses to attempt all strategies even if some fail with errors.
Reorder of the strategy execution order.
Parameterize the strategy selection and potentially also the sequence of strategies executed.

Hi @MEllis-github Thanks for the suggestion, we will consider in the subsequent update.


Sticky scroll has no shadow

The default dark+ theme has a shadow for distinguishing sticky scroll from other content.

This theme currently does not.

It can be enabled by setting "scrollbar.shadow" to a color. Below is an example of it being #00000080. In dark+, it's set to full black.

It also adds a shadow to the scrollbar, but there seems to be no way to prevent that.

Asking @suppayami since @nullchilly opened a PR #77:
What's your take on shadows in the flat appearance? Since they also show up in Peek views, etc.

Hi, I think a soft shadow would work well here for clarity, though putting shadow on peek views looks not really good. I think we can either put this as an option, or see if we can change the bg color for sticky contents

Hi, I think a soft shadow would work well here for clarity, though putting shadow on peek views looks not really good. I think we can either put this as an option, or see if we can change the bg color for sticky contents

Since the shadow shows up on all places by default in VSCode (without custom CSS), I just changed the color for the shadow to mantle in the flat appearance, keeping the philosophy of only using 2 shades (base/mantle). If people care enough, they can override it with our catppuccin.customUIColors; not really interested in adding switches for every little thing 🙂


use docker image 0.5.84

Problem

Move forward to the latest docker images.

Change overview

Change all images to 0.5.84

Testing
CI will validate this

iMX docker image seems to be now too large to run CI on github. I believe we may be able to disable that.
Unsure about chef failure.

for chef, I believe something of the form subprocess.check_call(['git', 'config', '--global', '--add', 'safe.directory', CHIP_ROOT]) has to be called before any git operations. Newer git versions have extra validations.

Pushed a change to fix chef. If that works, I will disable iMX builds so we can merge this.


Command to whitelist addresses

The command should sync first with the already whitelistes addresses via events and only whitelists the missing addresses.
It should load whitelist addresses from csv file and then send out several transactions to whitelist all addresses.
Batch size should be configurable.
Gas price should be configurable.

The command should always wait for the last batch to finish before sending out the next.


run detect.py on yolov4-tflite - bbbox list index out of range

Hello!
I'm trying to run the basic tflite demo but running into the following issue:
  File "detect.py", line 96, in main
    pred_bbox = utils.postprocess_bbbox(pred_bbox, ANCHORS, STRIDES, XYSCALE)
  File "/Users/abc/object_detection/tensorflow-yolov4-tflite/core/utils.py", line 319, in postprocess_bbbox
    pred_xy = ((tf.sigmoid(conv_raw_dxdy) * XYSCALE[i]) - 0.5 * (XYSCALE[i] - 1) + xy_grid) * STRIDES[i]
IndexError: list index out of range

Here is the command I use to run the model:
python detect.py --weights ./data/yolov4.tflite --framework tflite --size 416 --image ./data/kite.jpg --tiny yolo-tiny --model yolov4
Anything I'm missing/doing wrong?

This issue are fixed in newest code

Hi @hunglc007
Thanks for making changes to address the issue. However I'm having a bit of issues running the tflite model:
Heres my flow:

Convert the weights to saved model:
python save_model.py --weights ./data/yolov4.weights --output ./checkpoints/yolov4-416 --input_size 416 --model yolov4 --framework tflite

Convert to tflite file 16bit quantized:
python convert_tflite.py --weights ./checkpoints/yolov4-416 --output ./data/yolov4-416-fp16.tflite --quantize_mode float16

Run the detect with the tflite file as the weights
python detect.py --weights ./data/yolov4-416-fp16.tflite --size 416 --model yolov4 --image ./data/kite.jpg --framework tflite

However I run into this error:
Traceback (most recent call last):
  File "detect.py", line 93, in <module>
    app.run(main)
  File "/Users/abc/miniconda3/envs/yolov4/lib/python3.7/site-packages/absl/app.py", line 299, in run
    _run_main(main, args)
  File "/Users/abc/miniconda3/envs/yolov4/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "detect.py", line 62, in main
    boxes, pred_conf = filter_boxes(pred[1], pred[0], score_threshold=0.25)
  File "/Users/abc/object_detection/tensorflow-yolov4-tflite/core/yolov4.py", line 258, in filter_boxes
    box_xy, box_wh = tf.split(class_boxes, (2, 2), axis=-1)
  File "/Users/abc/miniconda3/envs/yolov4/lib/python3.7/site-packages/tensorflow/python/util/dispatch.py", line 201, in wrapper
    return target(*args, **kwargs)
  File "/Users/abc/miniconda3/envs/yolov4/lib/python3.7/site-packages/tensorflow/python/ops/array_ops.py", line 2026, in split
    value=value, size_splits=size_splits, axis=axis, num_split=num, name=name)
  File "/Users/abc/miniconda3/envs/yolov4/lib/python3.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 9945, in split_v
    _ops.raise_from_not_ok_status(e, name)
  File "/Users/abc/miniconda3/envs/yolov4/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 6843, in raise_from_not_ok_status
    six.raise_from(core._status_to_exception(e.code, message), None)
  File "<string>", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: Determined shape must either match input shape along split_dim exactly if fully specified, or be less than the size of the input along split_dim if not fully specified.  Got: 4 [Op:SplitV] name: split

Am I following the instructions incorrectly?

Because i set default tiny is True, this issue are fixed.

Thank you


Add a methodology page

@viviandien can you add description of what you have in mind?

We should include information that will be helpful for developers and researchers-- I think our Github README touches on some of it. Initial thoughts:

population model: data source and description of resolution and method of sampling
census data: how is this allocated to points?
time and distance analysis: OSRM reference, any processing that occurs (early exit)?

Suggested copy lives here: https://docs.google.com/document/d/1dZWCXVBPKflQ5AMDMHzvCVkoK5-GEy8KDwPtUKfS1rk/edit?ts=5adf808c#heading=h.jifzw4nylym5

[] same UI component as About dialog (but bigger)
[] add link in top nav to the right of "About" with label: "Methodology"

Ready for copy whenever copy is ready

AFAICT copy is now ready.

copy here: https://docs.google.com/document/d/1dZWCXVBPKflQ5AMDMHzvCVkoK5-GEy8KDwPtUKfS1rk/edit?ts=5adf808c#heading=h.jifzw4nylym5


ServerUrl helper doesn't work with console requests

This line makes it impossible for the helper to work in console requests made by zend controller tests as this key is not set in cli.

Why are you passing boolean true to the helper?
TBH, the entire helper is unusable in a console request unless you seed it with defaults. The helper defines a number of setter methods you can use in order to do this, and I'd argue it's not the framework's responsibility to seed those values when used under a console request, but the application developer's.
(Full disclosure: I've successfully used the helper in PhlyBlog, which generates a static blog from the command line. In other words, I've done exactly what I suggest above.)

To be honest I just need a way to obtain the full request url, that's why I turned to serverUrl(true). I get it that the domain would have to be set, but the uri part could be generated. url helper can generate most of it (with force_canonical option), but as far as I know there's no convenient way to tell it reuse query params (same as it can reuse route params).
I'm am unable to find a singe call to ServerUrl in PhlyBlog. Could you be so kind and point me to it?


Use new package name

The new 2.6.x package is called mongodb-org.

changed package name at 12f5bac .
Not release yet.


Passing parameters in while calling feature file in runner class

Hi,
I am creating test automation framework from scratch. My requirement is I should be able to create testdata dynamically from database query and pass it into feature file. It is going to be data driven framework as I will take testdata from excel every time put it in my query parameter, run query,create test data and pass to feature file. In feature file it will be passed in SOAP API request. I tried to search in all blogs about how to pass data externally while running feature file but did not get any information. I read all stack overflow and blogs but it has all information on passing data within feature file which I am not looking into.
IMPORTANT: If you have a general question please use Stack Overflow instead where Karate has a dedicated "tag": https://stackoverflow.com/questions/tagged/karate
If you are sure you have found a bug, please make sure you follow the instructions here: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

@hetalvasavada if you have really "read all stack overflow and blogs" then you are not going to find anything new, so maybe you should assume that Karate is not the right fit for you.
I can provide you 2 recommended links:

https://github.com/intuit/karate#data-driven-features
https://stackoverflow.com/a/58378161/143475

If the 2 links above don't give you any pointers, then please look for some other framework. and please don't ask questions here, use stack overflow

How do you parameterize the read function in karate?
For example:

def expected = read(".../testcase.json")
def expected = read(".../")

@BoakyeE please ask such questions on stack overflow: https://stackoverflow.com/questions/tagged/karate


Can't force svelte-multiselect box to not grow

Perhaps just me not understanding something fundamental. But I am yet to find a way to force a svelte-multiselect box to stay a fixed size. I see in examples like https://awesome-sveltekit.janosh.dev/ that e.g. selecting options for "Filter by tag" just causes that box to grow in both width and height which pushes the rest of the page around. Am I missing a way to not let that happen?
I'm not 100% sure what should happen instead. I was trying to think if there is some way to just abbreviate the selected options when they take up too much space. e.g. if I selected "blog" and "animations" and there wasn't enough space for both then animations would become "anim..." or just "anim".
But I also see that just selecting "blog" causes the select box to get wider even though there is plenty of empty space and I'm not sure what is driving that or if I can force it to stop.
I should also say upfront that I'm a daisyUI/Tailwindcss user so if there is an existing option I would be trying to figure out how to convert it to work with Tailwind.

I didn't look into that yet mostly because I really dislike tweaking CSS and that I'm never sure any changes I make would be a general improvement or just for the case I'm currently looking at (different width and height of options, page layout, etc. might need different settings). But I agree the default behavior could be much better.
For the time being, the idea is that users pass these CSS variables to tweak the layout to their liking.
<MultiSelect
  width="var(--sms-width)"
  max-width="var(--sms-max-width)"
  min-height="var(--sms-min-height, 22pt)"
/>

To turn animations into anim..., you could try text-overflow: ellipsis. Though you may need to disable flex-wrap on ul.options.

Ah, the text-overflow is working quite well at least to get too large options trimmed down. Amazing. Thank you!
So far I'm yet to figure out how to actually force it to respect a max width. No matter what value I set, it seems to be ignored. Here is what is working well for me with text-overflow using tailwindcss in case someone else comes across this. I'm not sure why it works best shoving it in both ul and li but it seems to do best with it in both. But I'm not sure why the outerDivClass max-w-xs seems to be completely ignored:
<MultiSelect
placeholder="Provider type"
name="service"
options={serviceOptions}
allowUserOptions={true}
createOptionMsg="Feel free to enter your own!"
let:option
maxSelect={1}
ulSelectedClass="!flex-nowrap !text-ellipsis !overflow-hidden"
liSelectedClass="!bg-red-100 !text-ellipsis !overflow-hidden "
outerDivClass="shadow-md !bg-white !flex-grow-0 !border-none !rounded-lg !p-3 !max-w-xs"
/>

I'll try to attach a gif of the expansion that I'm seeing in case it isn't clear. It really seems like there is no need for the size to increase which is what is especially confusing to me

I'll keep playing with it and report back if I figure anything out.

Latest iteration seems to not be jumping around in width anymore. I just needed to ditch flex and use grid on the parent class.
<form
method="POST"
use:enhance
class="grid grid-cols-1 justify-items-center w-3/12 bg-gray-50"
>
	<div class="form-control w-5/6">
		<MultiSelect
		placeholder="Provider type"
		name="service"
		options={serviceOptions}
		allowUserOptions={true}
		createOptionMsg="Feel free to enter your own!"
		let:option
		maxSelect={1}
		ulSelectedClass="!flex-nowrap !text-ellipsis !overflow-hidden"
		liSelectedClass="!bg-red-100 !text-ellipsis !overflow-hidden "
		outerDivClass="!bg-white !flex-grow-0  !rounded-lg !p-1"
		/>
	</div>
</form>

It still changes slightly in height for mysterious reasons. I'll probably have to come back to that and see if I can figure out a solution. I suppose I also should be concerned that I'm losing the close x on longer options as shown.

Sorry, was a bit late last night. The code snippet I pasted above had the wrong syntax for passing CSS variables. I fixed it.
The height issue should be easy to fix with e.g. <MultiSelect --sms-min-height="30px" />.
I think you can fix the missing "x" button to remove selected options by passing a <slot name="selected" /> and apply your tailwind classes to the slot rather than the <li> around it.
ulSelectedClass="!flex-nowrap !text-ellipsis !overflow-hidden"
liSelectedClass="!bg-red-100 !text-ellipsis !overflow-hidden "

Took me entirely too long to test this, but I wonder what I'm missing. First I tried:
<MultiSelect
	--sms-min-height="30px"
	--sms-max-height="30px"
	placeholder="Provider type"
	name="service"
	options={serviceOptions}
	allowUserOptions={true}
	let:option
	let:idx
	createOptionMsg="Feel free to enter your own!"
	bind:selected
	maxSelect={1}
	outerDivClass="!bg-white !flex-grow-0  !rounded-lg !p-1"
>
	<slot
		name="selected"
		{option}
		{idx}
		ulSelectedClass="!flex-nowrap !text-ellipsis !overflow-hidden"
		liSelectedClass="!bg-red-100 !text-ellipsis !overflow-hidden">{option}</slot
	>
</MultiSelect>

and then tried changing the slot to
<slot
	name="selected"
	{option}
	{idx}
	class="!flex-nowrap !bg-red-100 !text-ellipsis !overflow-hidden">{option}</slot
>

Both give the same result which seems to just illustrate that I don't know what I'm doing here:

So I still can't keep the height from growing after I pick an option. I also must be missing what you are saying to do about styling the slot because it isn't truncating the text anymore.

Could you post a REPL link that reproduces your problem? Bit hard to work from a screenshot.

Ah, sorry, of course, does this help?
https://stackblitz.com/edit/vitejs-vite-gtuq1h?file=src%2FApp.svelte

@paul-brenner I think you posted the wrong link? All I see is a counter in that StackBlitz.

Ah sorry, should work now, same link: https://github.com/janosh/svelte-multiselect/issues/255


Proposal: Easier switching of accounts

Would it be useful or feasible to create a separate menu item for changing the accounts in the bar, which then uses the profile picture of the currently active account? This would show you which account is currently active and you could change faster if necessary.

I'm not sure if it's really such a primary usecase for many users to warrant first class UI in this highly contended UI estate. I think most people only maintain a single account.
I'm pretty happy with #20 making it pretty easy to resume another session.

It was just an idea, in the long run I think there will be more possibilities and then you have to find a way to accommodate that. For example into a side menu or something like that. But now I think you are on a very good course and I can only thank you for your work.

Let's see if my little poll confirms or rejects my premise :) https://diaspora.social/posts/207559

A good idea, I'll share this with the others. :-)

So I think participation quieted down I think, let's take a look at the results.
Over 85% of users do not switch between accounts on a daily basis, reality is probably even higher than that because given the low turnout we can expect power users to be over-represented in the results.
I don't think this warrants a permanently visible UI element :)

Sorry for the late reply. You're right after the concept it doesn't fit in the bar below. Maybe there will be a menu on the side to pull out and put it in the appropriate place.

Closing this for now, as it's unlikely something to be changed / worked on soon. Of course it's perfectly fine for any discussion to continue.


rkt: fix status with overlay

When using overlay fs rkt status stopped working because it searched for
the status file in the stage1 rootfs, which is either in a different
mount namespace or unmounted.
If the container uses overlay fs, we now search in its upper layer,
which is accessible outside the mount namespace or when the filesystem
is not mounted.
Fixes #665

LGTM, thanks. We definitely need this in #600 ..

rkt status added in the big list of #600.


Domain, Socials

Change name and purchase a domain. Attach to hosting site.
Get Twitter, email, github, linkedin

Domain is done. https://defikids.io
Twitter is https://twitter.com/defikids_
Email is<EMAIL_ADDRESS>

@acaldas submitted grant request to Gitcoin and it was approved.
https://gitcoin.co/grants/4898/defi-kids-teach-your-kids-to-use-crypto-safely-an

aquired mintable domain https://defikids.crypto


remove s3-transfer-manager from spring-cloud-aws-dependencies

:loudspeaker: Type of change

[ ] Bugfix
[ ] New feature
[x] Enhancement
[ ] Refactoring

:scroll: Description

Removed s3-transfer-manager from spring-cloud-aws-dependencies.
:bulb: Motivation and Context

addresses #1271
s3-transfer-manager dependency is already managed in aws-sdk-java-v2:bom
:green_heart: How did you test it?
run the test suite and added the s3-transfer-manager dependency to a test project using locally build 3.3.0-SNAPSHOT
:pencil: Checklist

[x] I reviewed submitted code
[ ] I added tests to verify changes
[ ] I updated reference documentation to reflect the change
[x] All tests passing
[x] No breaking changes

:crystal_ball: Next steps

Thanks @vchrisb!


ReferenceError: Can't find variable: waitsForPromise

When using this library, as described in the readme:
import { it } from 'jasmine-fix';
import { myAsyncFunction } from 'myAsyncLibrary';
 describe('functionx', function(){
        it('do a thing asynchronously', async function(){
            var sut = await myAsyncFunction();
            expect(sut.thing).toBe(myExpectation);
        });
});

Hi @mdvorscak
This package depends on waitsForPromise being available globally, which is in the Atom env.
You can find the source for waitsForPromise at https://github.com/atom/atom/blob/89f1710cfe56b5277d48956106b9a8a0655431d9/spec/async-spec-helpers.js#L54-L62
Tho I could add a local polyfill in this package as well

I'll leave it up to you how you want to handle it. For me, it's enough to just update the documentation in the README to reflect this.

jasmine-fix v1.1.0 is out with no need for global waitsForPromise


Error occurs when running testcpu.py

After building, when I run testcpu.py directly, the error occurs as follows:
Traceback (most recent call last):   File "/home/bst/Documents/Projects/Official/Object_Detection/BBAVectors-Oriented-Object-Detection/models/DCNv2/testcpu.py", line 255, in <module>     example_dconv()   File "/home/bst/Documents/Projects/Official/Object_Detection/BBAVectors-Oriented-Object-Detection/models/DCNv2/testcpu.py", line 175, in example_dconv     output = dcn(input)   File "/home/bst/anaconda2/envs/Python3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl     result = self.forward(*input, **kwargs)   File "/home/bst/Documents/Projects/Official/Object_Detection/BBAVectors-Oriented-Object-Detection/models/DCNv2/dcn_v2.py", line 191, in forward     self.deformable_groups,   File "/home/bst/Documents/Projects/Official/Object_Detection/BBAVectors-Oriented-Object-Detection/models/DCNv2/dcn_v2.py", line 39, in forward     ctx.deformable_groups, IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 2)

CPU am not tested actually. Please send PR if you got a chance to fix it.

I have the same problem

i have the same problem

the same issue


Benefits page: the user shall be able to see discount details by clicking on a merchant

when a merchant picture is clicked, open a popup or slide down box with the details
the details box should be able to display a slideshow of merchant photos

Preview

Resolved by #41 as the first version of the page is finished.


HTTP 500 when entering /admin

Server returns HTTP 500 when entering /admin URL, but works fine for /admin/ (notice the last forward slash).

I am not getting 500, but there is this annoyance where you need to provide slash at the end to get to admin. Lets remove that
can it be as simple as
https://github.com/CodeForPoznan/pah-fm/pull/299
?

The above is merged. If you are still having issues please re-open the ticket


reblend 2 sets of frames sequentially

I really apricate the work you've done with these nodes but I was wondering if there is a way I can use them to recombine 2 batches of images that come from the same original video.
Currently I have a video that has numbered frames 1-300, and I was able to easily split them into odd (1,3,5,7...)frames and even (2,4,6,8...)frames. But every tool that combines them either requires a manual switch, or replacement, or appends them at the end.
I want to be able to use the frame count or active frame from each batch in a comparison which then drives a Boolean that switches between source folders.

Did you guys made workflows with nodes fromthis custom node? I would like to see one if you could share?
@imalmg

Sorry for the ridiculously long wait for a reply - I have been completely out of ComfyUI for a while. As far as I understand your request, this sounds like something that would be more of a frame by frame processing workflow (such as Deforum) than a batch video workflow (such as AnimateDiff). I so, it is possible you could use the "Big Image Switch" in the "Dream Project Animation".


[state mgmt] Document how to use templates to install additional applications

document howto
provide examples

The https://github.com/Mirantis/hmc/tree/main/templates/aws-standalone-cp#readme documents how to use the feature.


Added 'NibLoadableView' for easier loading of Nibs into placeholder Views.

Subclassing NibLoadableView allows you to automate the loading of a Nib into a placeholder view inside another Nib, using only the Custom Class attribute.
It removes the need to perform the following manual steps every time you want a Nib that can load into a placeholder View:

Setting an outlet for the top level view
Setting 'translatesAutoresizingMaskIntoConstraints' to false
Adding constraints to fit the new view into its container
Writing boilerplate Nib loading code.

The minimum amount of code required to use this would just be the inheritance line, i.e.:
YourCustomView: NibLoadableView {}

seems like
 guard let topLevelObjects = Bundle.main.loadNibNamed(self.customClassString, owner: self, options: nil)

would do it, where customClassString is an ibdesignable of type String.

@brightredchilli Also, as a separate note, I also tried another approach where instead of subclassing UIView I tried to make a UIView extension that made all UIViews conform to a NibLoadable protocol. Then made a default implementation of init(withCoder:) in an extension of NibLoadableView - but I found that the init(withCoder:) on the extension would never actually fire. I think this is by design and Apple only allows you to override methods via subclassing, so that's why I went subclass route.

@brightredchilli here's another thought.
How about instead of the subclassing route, I just expose this as an instance method on UIView, and leave it up to the developer to call it in initWithCoder.
E.g.:
extension UIView {
   func loadCompanionNibAndFitToContainer() {..}
}

init(withCoder adecoder: NSCoder) {
   super.init(withCoder: decoder)
   self.loadCompanionNibAndFitToContainer()
}

This way it would be a little more explicit what's actually happening, and you wouldn't need to subclass a special type. There would still be the redundant view level in the hierarchy, but I see that as a small price to pay for having the ability to use IBDesignable.

Some background on how we can get IBDesignable working with a view that has a backing nib, i.e. how to live render a nib inside interface builder:
http://justabeech.com/2014/07/27/xcode-6-live-rendering-from-nib/
Going to work on this a bit more.

i love the idea of not having two instances of the custom view, and that looks promising.

I have a hunch this might work, but having the two references is kind of ugly too:
class ViewController: UIViewController {

    @IBOutlet var container: NibLoadableView!
    lazy var myCustomView: CustomView {
        return container.getInnerView()
    }
}

class NibLoadableView : UIView {

  // initialization blah blah
    func getInnerView() -> T {
        return topLevelView as! T
    }
}

SonarQube analysis reported 2 issues

 2 minor

Watch the comments in this conversation to review them.

          4 Warnings

:warning:
Array+UtilitiesTests.swift#L100 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L100: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 3] == 4)

:warning:
Array+UtilitiesTests.swift#L101 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L101: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 8] == 9)

:warning:
Array+UtilitiesTests.swift#L102 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L102: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: -1])

:warning:
Array+UtilitiesTests.swift#L103 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L103: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: 9])

          1 Message

:book:
Executed 142 tests, with 0 failures (0 unexpected) in 0.232 (0.309) seconds

  Generated by :no_entry_sign: Danger

          4 Warnings

:warning:
Array+UtilitiesTests.swift#L100 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L100: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 3] == 4)

:warning:
Array+UtilitiesTests.swift#L101 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L101: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 8] == 9)

:warning:
Array+UtilitiesTests.swift#L102 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L102: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: -1])

:warning:
Array+UtilitiesTests.swift#L103 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L103: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: 9])

          1 Message

:book:
Executed 142 tests, with 0 failures (0 unexpected) in 0.294 (0.368) seconds

  Generated by :no_entry_sign: Danger

Danger has errored
[!] Invalid Dangerfile file: undefined method start_with for #<String:0x007fba8d02aef0>
Did you mean?  start_with?
 #  from Dangerfile:16
 #  -------------------------------------------
 #          xcode_summary.ignored_results { |result|
 >              result.message.start_with 'ld' # Ignore ld_warnings
 #          }
 #  -------------------------------------------

  Generated by :no_entry_sign: Danger

          4 Warnings

:warning:
Array+UtilitiesTests.swift#L100 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L100: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 3] == 4)

:warning:
Array+UtilitiesTests.swift#L101 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L101: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 8] == 9)

:warning:
Array+UtilitiesTests.swift#L102 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L102: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: -1])

:warning:
Array+UtilitiesTests.swift#L103 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L103: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: 9])

          1 Message

:book:
Executed 142 tests, with 0 failures (0 unexpected) in 0.335 (0.430) seconds

  Generated by :no_entry_sign: Danger

          4 Warnings

:warning:
Array+UtilitiesTests.swift#L100 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L100: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 3] == 4)

:warning:
Array+UtilitiesTests.swift#L101 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L101: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssert(testArray[ip_safe: 8] == 9)

:warning:
Array+UtilitiesTests.swift#L102 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L102: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: -1])

:warning:
Array+UtilitiesTests.swift#L103 - SwiftWisdomTests/StandardLibrary/Array/Array+UtilitiesTests.swift#L103: ‘subscript(ip_safe:)’ is deprecated: Use ip_safely instead.
        XCTAssertNil(testArray[ip_safe: 9])

          1 Message

:book:
Executed 142 tests, with 0 failures (0 unexpected) in 0.239 (0.296) seconds

  Generated by :no_entry_sign: Danger


JWT does not have details about the current user's username

Need to figure out a way to get the username of the currently signed in user.

I think what could be done to fix the issue is to make another API request to get the username using this:

The screenshot is from the documentation of the octokit rest.js client

Yeah only issue I see is sometimes user's don't allow applications access to their email so the jwt comes back with a null email

Actually we can pass the authorization to the Get User endpoint on github api to get that info I believe.

@Green-Ranger11 This issue is linked to #17. As #17  has been resolved, I'll close this too


fix(argocd): remove usage of pf react icons

Resolves:
https://issues.redhat.com/browse/RHIDP-3796
Screenshots:
Deployment lifecycle
Before

After

Deployment Summary
Before

After

Note
Depends on https://github.com/janus-idp/backstage-plugins/pull/1803

@debsmita1 Since the argocd plugin as been migrated to backstage/community-plugins, you'd want to make changes to it there.

Created a separate PR for updating the icons in the OCM plugin https://github.com/janus-idp/backstage-plugins/pull/2275
Will create a PR for argocd changes in the community plugins repo
Closing this one

Created PR https://github.com/backstage/community-plugins/pull/1740 for argocd icons


Notices if using add to favourites on message created inline

Notices if using add to favourites on message created via inline (@BetterLocationBot some location):
Notice: Trying to get property 'chat' of non-object in /src/libs/TelegramCustomWrapper/TelegramHelper.php:127
Notice: Trying to get property 'id' of non-object in /src/libs/TelegramCustomWrapper/TelegramHelper.php:127

Buttons are currently handled as in classic chat so expected to have more info.
Inline buttons have only limited info about message, full example:
update_id => 123456789
callback_query =>
    id => "123456789123456789"
    from =>
        id => 148953285
        is_bot => false
        first_name => "DJTommek"
        last_name => "[Tomas Palider]"
        username => "DJTommek"
        language_code => "en"
    inline_message_id => "ABCDABCDABCDA_1A2B3C4D5e6f7"
    chat_instance => "1234567891234567891"
    data => "/favourites add 50.533921 16.158179"

Fixed in 142e94d7faa90d7abf99bd38b5cd10e23f61ed43.


abstract methods and the argument names

This is a question since the overload is normally done by argument names, one would think even for abstract methods and their implementations would need to match. This is not the case for the impelementation of the methods; at least with the reference compiler.
Take:
extern e {
  e();
  abstract bit f(bit a);
}

e() t = {
  bit f(bit b)
  {
    return b + 1;
  }
};

Either we change the refence compiler and add explicitly in the spec that the argument names need to match or we just add to the specifications that the names don't matter here.
This is related to https://github.com/p4lang/p4c/issues/4001 at least in the sense the reference compiler only checks if the types (not names) match and rejects it if there is already a duplicated method named.

In the interest of tidying up the set of active issues on the P4 specification repository, I'm marking this as "stalled" and closing it. Of course, we can always re-open it in the future if there is interest in resurrecting it.


feat: add a set_like tactic by wrapping aesop

This creates a new aesop rule set called SetLike and a user tag attribute and tactic called set_like in order to prove goals about membership in subobjects.

This is marked awaiting-review, but I'm still looking for ways to improve (I'm just not yet sure what those improvements might be), so please ask before merging.

Thanks :tada:
bors merge


Library is unusable on Windows since cython usage dropped at installation, but not dropped at protocol_init_.py file

protocol_init_.py file
from thriftpy._compat import PYPY, CYTHON
if not PYPY:
    # enable cython binary by default for CPython.
    if CYTHON:
        from .cybin import TCyBinaryProtocol, TCyBinaryProtocolFactory
        TBinaryProtocol = TCyBinaryProtocol  # noqa
        TBinaryProtocolFactory = TCyBinaryProtocolFactory  # noqa
else:
    # disable cython binary protocol for PYPY since it's slower.
    TCyBinaryProtocol = TBinaryProtocol
    TCyBinaryProtocolFactory = TBinaryProtocolFactory

in setup.py
UNIX = platform.system() in ("Linux", "Darwin")
# only build ext in CPython with UNIX platform
if UNIX and not PYPY:
# rebuild .c files if cython available
if CYTHON:
cythonize("thriftpy/transport/cybase.pyx")
cythonize("thriftpy/transport/**/*.pyx")
cythonize("thriftpy/protocol/cybin/cybin.pyx")
ext_modules.append(Extension("thriftpy.transport.cybase",
["thriftpy/transport/cybase.c"]))
ext_modules.append(Extension("thriftpy.transport.buffered.cybuffered",
["thriftpy/transport/buffered/cybuffered.c"]))
ext_modules.append(Extension("thriftpy.transport.memory.cymemory",
["thriftpy/transport/memory/cymemory.c"]))
ext_modules.append(Extension("thriftpy.transport.framed.cyframed",
["thriftpy/transport/framed/cyframed.c"]))
ext_modules.append(Extension("thriftpy.protocol.cybin",
["thriftpy/protocol/cybin/cybin.c"]))

So platform is checked on installation, but it is not checked at runtime configuration

Just checked, that error persist almost everywhere where cython is checked at runtime configs

fixing variable in _compat.py works

Only the cythonize were droped in installation process, the .c files are packed in package. So it seems windows don't support these c extensions.
I just disabled all c related things in https://github.com/eleme/thriftpy/commit/6168106b7eb3781664b970c4433bfc7a70453d2e, can you verify if it fixed your problem?
The lib was not tested against windows envrionment, so feel free to report bugs or send PR if you come across any problem.

yes, i actually added a check of platform in there and it fixed problem

Glad it's resolved!


Implement String and Translation API

I don’t think it makes sense to create a wti command option to create a string or translation from CLI. However it would be nice to have a library users can implement to create their own strings from their apps.
See:

http://docs.webtranslateit.com/api/string/
http://docs.webtranslateit.com/api/translation/

Done in #78


Add versions to MicroK8s install

Update MicroK8s install instructions, as current 'latest' version( 1.22) of Kubernetes  is not supported by Kubeflow

@knkski could you oblige with an approve?

/approve


Update README.md

The example describes how to listen for new GitHub stars, not issues

There is a major new version of the project, so this is no longer relevant


Exception from core.imports.RequirementCache

🐛 Bug
An empty egg directory on sys.path can crash RequirementCache probing.
My impression of the purpose of RequirementCache is to be a exception-free way to probe for available requirements.  If the named requirement is not present, then it's __bool__ operator should just return False and never throw.
However, in one unusual corner case (of an empty egg directory on the path) the RequirementCache._check_requirement function can raise a TypeError.
This line
https://github.com/Lightning-AI/utilities/blob/2549f80a05d5d07ee1acaa3457ce17a89e1cc078/src/lightning_utilities/core/imports.py#L130
calls the packaging.version.Version constructor with the return value from importlib.metadata.version.  The Version constructor is type-annotated to not accept None, but the return value of importlib.metadata.version apparently can be None (it's not documented), so the call to the Version constructor will crash with a TypeError.

Exception trace
  File "venv/site-packages/lightning_utilities/core/imports.py", line 130, in _check_requirement
    pkg_version = Version(_version(req.name))
  File "venv/site-packages/packaging/version.py", line 200, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

I imagine that a good fix would be to split up Version(_version(req.name)) into two different statements, with a None check inbetween.
Possibly the root cause is actually that importlib shouldn't be allowing the None to be returned (rather raising ModuleNotFoundError or something), but that seems somewhat difficult to fix quickly, since it's part of the standard library.  Dealing with the problem at the point-of-use in this library seems like it might be a better answer.
To Reproduce
Steps to reproduce the behavior...

Code sample
jwnimmer@call-cps:~/tmp$ python3 -m venv env
jwnimmer@call-cps:~/tmp$ env/bin/pip install lightning_utilities
jwnimmer@call-cps:~/tmp$ mkdir env/lib/python3.10/site-packages/matplotlib
jwnimmer@call-cps:~/tmp$ mkdir env/lib/python3.10/site-packages/matplotlib-3.5.1.egg-info
jwnimmer@call-cps:~/tmp$ env/bin/python3 -c 'from lightning_utilities.core.imports import RequirementCache; print(bool(RequirementCache("matplotlib")))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jwnimmer/tmp/env/lib/python3.10/site-packages/lightning_utilities/core/imports.py", line 198, in __bool__
    self._check_available()
  File "/home/jwnimmer/tmp/env/lib/python3.10/site-packages/lightning_utilities/core/imports.py", line 164, in _check_available
    self._check_requirement()
  File "/home/jwnimmer/tmp/env/lib/python3.10/site-packages/lightning_utilities/core/imports.py", line 130, in _check_requirement
    pkg_version = Version(_version(req.name))
  File "/home/jwnimmer/tmp/env/lib/python3.10/site-packages/packaging/version.py", line 200, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

Expected behavior
The __bool__ should never raise an exception.
Additional context

Environment details

OS (e.g., Linux): Ubuntu 22.04
Python version: CPython 3.10 via Ubuntu 22.04

We were able to work around the bug by deleting the mistaken empty directories from our venv to avoid the hazard.

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

If the named requirement is not present, then it's __bool__ operator should just return False and never throw.

that is a good point, would you be interested in sending PR?
cc: @awaelchli

I am able to make a PR, I guess I just wasn't sure what would be the most preferred change.  I could do the very narrowest change and add the proposed check for None, or I could add a new catch-all except Exception as ex: to _check_requirement that turns anything unexpected into self.available = False?


Current Version 1.7.0 Java edition via docker connection issue to Mojang Auth Servers for locally hosted Minecraft servers on any local client

Ok, so long/short description of the situation, if you only care about the issue, skip to the next paragraph.
I moved to a new house about 30 miles away and decided to update my minecraft docker images as I haven't in 5+ weeks, before I bring everything up, and since then everything has been bad. initially I had a new router, but removed that and setup my original config from the old house as there is an issue with the current firmware on the new one that prevents reaching externally available services from an internal device (even when using the external IP), but that is a different story.  I tried a lot of network troubleshooting until I discovered that my Plex server was working fine.
What happens is that your servers ping fine and report the correct number of active users in the official minecraft launcher, but when you try to connect, it fails on the encryption part (I tried using oracle java on the linux clients, but the launcher requires openjdk apparently, so I tested in Windows 10 machine that had oracle JRE installed and same issue).  The error message is "Authentication servers are Down. Please try again later."
I can connect to publicly hosted java instances elsewhere, but not internally hosted.  I will not be able to test if someone externally can connect until about 10 hours from now, at the earliest.
The launcher logs in fine.
I can load or create single player worlds without issue.
The logs show "connecting to server (gives IP address)" and nothing else.
the failing image I am using is: c8662545ce13 324MB
currently I have rolled back to a 5 week old working version, image: 2cc47309f5c9 302MB

That's a strange issue to be caused by the container itself. Some security vulnerabilities were reported recently (maybe within last 5 weeks?), so perhaps package upgrades have somehow altered your behavior...however, latest image works for many users including myself.
In any case, thanks for providing an image ID that works for you since that'll help me narrow down possible diffs.

I know, the container was the last thing I checked (obviously, since that made it work), because I could not find anything online about it being an issue.  And I know a lot of people use this image.  A LOT.
I have 3 containers built from the same image, all with the issue, I tried with and without Optifiine, I have no mods and just set a url for a resource pack in server.properties on them after this issue started.
I use this command line in a bash script to deploy the containers (modified by instance name and I adjust the port number for each container)
docker run -d -e INIT_MEMORY=1G -e MAX_MEMORY=4G -e ICON=/mnt/Adata-512GB-M2/minecraft/girls-world/icon.png -e WHITELIST=player1,player2,player3 -e EULA=TRUE -p 25570:25565 -v /mnt/Adata-512GB-M2/minecraft/girls-world:/data -v /etc/timezone:/etc/timezone:ro --name mc-girls-world itzg/minecraft-server
I think 4Gigs of RAM is a bit of overkill for a server that has 4 max players, but I intended on opening it up to my daughters' classmates once they were comfortable with playing (we all just started the end of May with playing minecraft)
if you need anything, the environment is pretty static, and I have a backup run every 15 minutes of the game data, I can put the tar up somewhere if you want to deploy the image to a container using exactly what I used, that could possibly eliminate a weird networking issue I haven't identified.

I realized I can't narrow down the image with the short ID. Can you provide the output of docker image inspect given the image that does work?

bad image: c8662545ce135bf3630215f4f643cf105996807dbcc5dbeb7d77a5cf905a8f90
good image: 2cc47309f5c9149af41049ae58990acdd55478af9a73a4d8c924a27335b4ae75

I'm sorry, I should have clarified I wanted the output of docker image inspect 2cc47309f5c9 since it provides the sha256 and a few other helpful details.

np, I thought about posting the whole output :)  I redirected the output to a file...
pm with a link to dropbox incoming

well maybe I don't have a backup of the bad image... looks like my backup cleanup script has been failing to purge the old backups and the drive filled up, you will never guess when...  2 hours before i shut the server down and moved it to the new house, so my last successful backup is from before I updated the image.  I can deploy a new world from the image that is not working and back it up though (makes about a 350MB tar file on a clean world) if you are unable to reproduce the issue locally.

Both outputs you provided will let me narrow down the range of commits, so that's fine to not have the bad image.

ok, let me know if you need the world, thanks for looking into this, hope it is not a rabbit hole.

FYI, using the image info you provided here is the list of commits that happened in between
https://github.com/itzg/docker-minecraft-server/compare/c4c3613874011129ff1c54e989660c92abac0de9...4fe55b5a28e6928992df41a9912a0984fc6d8c6d
however, I'm guessing it was this one where I was fixing security vulnerabilities due to older packages
https://github.com/itzg/docker-minecraft-server/commit/3b2b98b9fe72d46e5a264a139f5de254baca1ee8
To confirm that theory can you try these two images (before and after that change):
itzg/minecraft-server@sha256:24f407f9bf6203dbda06ae43bb98c9e70d6fc467fe6f613e42c4af80942984e7
itzg/minecraft-server@sha256:497682ad1a78afa3e0056959ef6c5c4449e376a0abe74c01fba8cffb3a24ce5c

sorry for the delay, I'm still unpacking
this one started up and I was able to connect and log in
docker run -d -e INIT_MEMORY=1G -e MAX_MEMORY=2G -e WHITELIST=BGFuryk -e
EULA=TRUE -p 25550:25565 -v /mnt/Adata-512GB-M2/minecraft/test:/data -v
/etc/timezone:/etc/timezone:ro --name mc-test itzg/minecraft-server@sha256
:24f407f9bf6203dbda06ae43bb98c9e70d6fc467fe6f613e42c4af80942984e7
this one started up and I was able to connect and log in
docker run -d -e INIT_MEMORY=1G -e MAX_MEMORY=2G -e WHITELIST=BGFuryk -e
EULA=TRUE -p 25551:25565 -v /mnt/Adata-512GB-M2/minecraft/test2:/data -v
/etc/timezone:/etc/timezone:ro --name mc-test2 itzg/minecraft-server@sha256
:497682ad1a78afa3e0056959ef6c5c4449e376a0abe74c01fba8cffb3a24ce5c
Because of this I tested the latest (same one already on my machine) and it
also ran and i was also able to log in on it.
docker run -d -e INIT_MEMORY=1G -e MAX_MEMORY=2G -e
ICON=/mnt/Adata-512GB-M2/minecraft/first-world/icon.png -e
WHITELIST=BGFuryk,FrozenMermaid,HotWheelsGirl,r3d3k3r -e EULA=TRUE -p
25560:25565 -v /mnt/Adata-512GB-M2/minecraft/first-world:/data -v
/etc/timezone:/etc/timezone:ro --name mc-first-world
itzg/minecraft-server:latest
11ec655b4b6702f564a457c0bdeada3e3b37ab3887180d2d2681cfc47c25efe9
Nothing has changed on my end this time, do you think it is something to do
with the Mojang auth servers because I moved into a new house and upgraded
the imagers before logging in the first time?  Or did the "latest" change
and docker pulled an updated version?
Joel Perry
Comptia A+
Comptia Network+
MCPS - Microsoft Certified Professional
MCNPS - Microsoft Certified Network Professional
MCTS - Microsoft Certified Technical Specialist
IBM eServer Certified Specialist - AIX
VCP - VMware Certified Professional
AWS - Developerwbcgyagsgjvzhagsv
ywgwhwhwhhwwgwgc
Splunk Certified

1984
At the Winter USENIX/UniForum meeting, AT&T describes its support policy
for Unix:
"No advertising, no support, no bug fixes, payment in advance."

On Mon, Aug 10, 2020 at 10:53 AM Geoff Bourne<EMAIL_ADDRESS>wrote:

FYI, using the image info you provided here is the list of commits that
happened in between
c4c3613...4fe55b5
https://github.com/itzg/docker-minecraft-server/compare/c4c3613874011129ff1c54e989660c92abac0de9...4fe55b5a28e6928992df41a9912a0984fc6d8c6d
however, I'm guessing it was this one where I was fixing security
vulnerabilities due to older packages
3b2b98b
https://github.com/itzg/docker-minecraft-server/commit/3b2b98b9fe72d46e5a264a139f5de254baca1ee8
To confirm that theory can you try these two images (before and after that
change):
itzg/minecraft-server@sha256:24f407f9bf6203dbda06ae43bb98c9e70d6fc467fe6f613e42c4af80942984e7
itzg/minecraft-server@sha256:497682ad1a78afa3e0056959ef6c5c4449e376a0abe74c01fba8cffb3a24ce5c
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/itzg/docker-minecraft-server/issues/605#issuecomment-671403988,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE57HIMLN674PR7RLGAIYTSAACWTANCNFSM4PZJQ2CQ
.

I was actually thinking of suggesting to try the very latest image since I was hopeful a package update that broke your setup would get updated again to fix it.
So, I guess it's a mystery whether it's the packages or the auth servers. Either way I'm glad to hear you're moved and back to a fully operational Minecraft server :)

Thank you, there was much screaming and wailing and gnashing of teeth in
the house!
I have read about the security lock from the auth servers previously, I
guess they make a 2 way auth token when you connect to a server and if
something changes from one end it blocks you, but the only info I could
find about it said to log on to account.mojang.com from the new location
and it resets the auth token on their side to your current location.  This
did not work for me though.
Now I need to setup a Proxy/PAC filter for my girls' laptops to use since
Mojang blocks my current VPN from the auth servers too. (at least it was,
maybe I'll get connected to different servers from here and get lucky.
Again, I really appreciate your assistance, if it was on my side I don't
understand how reverting images makes the new image work, unless that is
what it needed to update the auth tokens... (which still doesn't make
sense, but I can at least understand why it worked)  if it was on Mojang's
side I can understand what happened, but I'm not sure exactly how to
resolve it next time without trying 50 different things again.  :)
Joel Perry
Comptia A+
Comptia Network+
MCPS - Microsoft Certified Professional
MCNPS - Microsoft Certified Network Professional
MCTS - Microsoft Certified Technical Specialist
IBM eServer Certified Specialist - AIX
VCP - VMware Certified Professional
AWS - Developer
Splunk Certified

1984
At the Winter USENIX/UniForum meeting, AT&T describes its support policy
for Unix:
"No advertising, no support, no bug fixes, payment in advance."

On Mon, Aug 10, 2020 at 8:58 PM Geoff Bourne<EMAIL_ADDRESS>wrote:

I was actually thinking of suggesting to try the very latest image since I
was hopeful a package update that broke your setup would get updated again
to fix it.
So, I guess it's a mystery whether it's the packages or the auth servers.
Either way I'm glad to hear you're moved and back to a fully operational
Minecraft server :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/itzg/docker-minecraft-server/issues/605#issuecomment-671663153,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE57HPXMBU75V3S7BONQ5DSACJSDANCNFSM4PZJQ2CQ
.

Please close this issue, I have had no further similar issues.
On Tue, Dec 7, 2021, 9:17 PM github-actions[bot] @.***>
wrote:

This issue is stale because it has been open 30 days with no activity.
Please add a comment describing the reason to keep this issue open.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/itzg/docker-minecraft-server/issues/605#issuecomment-988434681,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE57HLTOVMXDPKRVSA72FDUP255DANCNFSM4PZJQ2CQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


[CARBONDATA-2126] Documentation for create database and custom location

Added documentation for create database and also specify the custom location

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

LGTM


Support Gradle plugin

WHY??
A problem occurred configuring project ':app'.
> Could not resolve all files for configuration ':app:classpath'.
   > Could not find org.jetbrains.compose.compiler:compiler:1.3.2-alpha01.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/org/jetbrains/compose/compiler/compiler/1.3.2-alpha01/compiler-1.3.2-alpha01.pom
       - https://dl.google.com/dl/android/maven2/org/jetbrains/compose/compiler/compiler/1.3.2-alpha01/compiler-1.3.2-alpha01.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/compose/compiler/compiler/1.3.2-alpha01/compiler-1.3.2-alpha01.pom
       - https://jitpack.io/org/jetbrains/compose/compiler/compiler/1.3.2-alpha01/compiler-1.3.2-alpha01.pom
     Required by:
         project :app > land.sungbin.composable.reference.suppressor:land.sungbin.composable.reference.suppressor.gradle.plugin:1.0.1 > land.sungbin:composable.reference.suppressor.plugin:1.0.1


assertion failed when use mp_encode_int

hello, all
I have been using this libray, but failed at encode_int. when I looked into the code, I found:
"
MP_IMPL char *
mp_encode_int(char *data, int64_t num)
{
assert(num < 0);
if (num >= -0x20) {
"
what's the reason to force "num <0"

Please use encode_uint for unsigned numbers.

The story is in #1.


Optimize page links

We have a problem with  react router because it is fails when backslash, in the guidelines.
Check for errors or update to fix the problem
Accentance Criteria:

[ ] React Router do not fail when do a backslash
[ ] Document why it happened.

https://docusaurus.io/docs/api/docusaurus-config#trailingSlash @JAMares @warnerHurtado


Why 3RScan dataset cannot be downloaded?

Model/Dataset/Scheduler description
Hi,
Thanks for your barvo work!
I'm trying to re-implemented your project for further reasearch, but I found I cannot access 3RScan dataset by their offical download link. Specfically, I'm using the script with "https://gist.github.com/WaldJohannaU/55f5e35992ea91157b789b15eac4d432", and no matter how we switch the vpn, we still cannot visit any data from "'http://campar.in.tum.de/public_datasets/3RScan/xxxx".
I don't know if anyone else has this problem. If so, would you mind sharing the 3RScan data set to Google Drive or Baidu cloud disk? This may allow more people to try your work.
Best regards,
Open source status

[ ] The model implementation is available
[ ] The model weights are available.

Provide useful links for the implementation
No response

It seems the problem is not common and may be more suitable to be posted under 3RScan repo, so I temporarily close it.


Tensorflow.fit method is using 3 times more memory than it should

Hi!
I am running two near-identical scripts. The code is provided in the following links:
script1.py: https://pastebin.com/66i8kEnK
script2.py: https://pastebin.com/AWfQUguq
The code for the helper-function which is in some_file_1.py:
helper.py: https://pastebin.com/fXgWcuz5
script1.py is using a 3 times more memory than script2.py. The only main difference between the two is that, in script1, I am converting my data and params to tf.tensors as I pass into model.fit method and in script2, I convert before passing into the .fit method.
My python version is 3.9.7 and tensorflow version is 2.4.1.
The OS is: Red Hat Enterprise Linux
The Kernel is: Linux 3.10.0-1160.2.1.el7.x86_64
The architecture is: x86-64
The GPU is Nvidia either P100 or Nvidia V100.

Hi @Chaudry24 ! Could you please provide the above code as Colab gist as its hard to replicate to this issue because of missing .py and .npy files.


Extension code

I see that the code for the extensions are in private repositories. Are there any plans to open source the code?

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 7b26339c-9a3c-de93-7806-3eb105b16ae4
Version Independent ID: ec4aa25b-c7e2-db46-3cf1-7563e8031bd6
Content: Learn Authoring Pack for Visual Studio Code - Contributor guide
Content Source: Contribute/content/how-to-write-docs-auth-pack.md
Product: non-product-specific
GitHub Login: @meganbradley
Microsoft Alias: mbradley

@meganbradley - Can you help with this question?

@DonGlover - Sorry for the delay on this reply, but, unfortunately, no, there are no plans to make the code open source. We had to make the code internal for compliance reasons.


Refactor - ELF parser memory allocation

Currently the ELF bytes are copied into new heap allocations twice, if they are not already aligned in the new ELF parser. Also, the AlignedMemory should be constructed outside for some other (symbol name registry related) optimizations which are coming in a different PR.

Codecov Report

Merging #482 (e98ee70) into main (c20a353) will decrease coverage by 0.04%.
The diff coverage is 82.60%.

:exclamation: Current head e98ee70 differs from pull request most recent head 583f8e3. Consider uploading reports for the commit 583f8e3 to get more accurate results

@@            Coverage Diff             @@
##             main     #482      +/-   ##
==========================================
- Coverage   89.94%   89.91%   -0.04%
==========================================
  Files          23       23
  Lines       10216    10231      +15
==========================================
+ Hits         9189     9199      +10
- Misses       1027     1032       +5

Impacted Files
Coverage Δ

src/elf.rs
89.96% <80.48%> (+0.06%)
:arrow_up:

src/vm.rs
70.80% <100.00%> (+0.59%)
:arrow_up:

... and 1 file with indirect coverage changes

Unfortunately we can't get rid of the copy in the ELF parser right now because it is necessary as relocations could otherwise overwrite the header structures.


(fix) : changed the color used in DropzoneAccept and Dropzone to …

Closes https://github.com/yamada-ui/yamada-ui/issues/2796
Description
Colors used in DropzoneAccept in Dropzone are wrong.
The correct name is success.

Current behavior (updates)
It is currently using primary which is wrong.

New behavior
I've changed it from primary to success

Thanks!


Indicate number of participants in title

Indicate the number of participants in room in the <title> tag
i.e
default
Kollokvium | A free multi-party video conference for you and your friends!

1 participants

Kollokvium (2) | A free multi-party video conference for you and your friends!
Maybe play sound of "tab" visible?

As for yesterdays Q;
 this.rtcClient.OnContextDisconnected = (peer) => {
                DOMUtils.get(".p" + peer.id).remove();
                this.participants.delete(peer.id);
            };
            this.rtcClient.OnContextConnected = (peer) => {
                DOMUtils.get(".remote").classList.add("hide");
            }

Thats where the inc/dec should be done!    ( Make sure pull first .- )) @kaista82


Add method to create a new Index with specific creation dates

This functionality is needed to implement the import of dumps correctly.

bors merge


Tip: in data.py it is significantly faster to use Python lists instead of np.append()

Hey! Awesome code, read you blog post and found your data augmentation methods awesome.
I checked out the data.py file, and noticed you were using np.append to add a new image to the feature set. It is much faster to first use Python lists, and then convert them numpy arrays later. It can be from 10 -30 times faster.
So you could do something like:
x = []
y = []
...
x.append(image)
y.append(angle)
...
x = np.asarray(x)
y = np.asarray(y)

Thanks @sebasibarguen, awesome hint! I know it's an old issue (sorry my notifications were turned off), but feel free to submit a PR if you happen to work on this again. 🙂


Release a version supporting Hyper 0.10

Release a version supporting Hyper 0.10. I'll see if that's an quick thing enough to do, I'll send a PR.

Okay, seems unproblematic, but since this publicly depends on mime-multipart, that needs to be updated too. I sent a PR to mime-multipart.

I've merged your mime-multipart changes, and just published.  If you send me a PR for this I'll merge it, otherwise I'll do it later tonight.

oh that was easier than I thought.  incoming...

Thanks a lot!


Error in assert_all_are_existing_files(x) : File does not exist.

Hello,
I'm getting this error when trying to use Layer-Stacking on my own las files. I'm using RStudio to run the code and all the necessary packages have been installed and loaded. Pretty sure that the input file path has been set correctly. But still, an error comes out.
Error in assert_all_are_existing_files(x) : File does not exist.
Could you please help me out?
Thanks beforehand.
Rowen

Hello,
I get the same problem. Perhaps you succeed to resolve it ?
Thanks beforehand,
Amélie


Example of dataloading pretrained embeddings in Transformers4Rec

[ ] Add an example to use pre-trained embeddings as an embedding table
[ ] Extend the example: Add an example for usage of pre-trained embeddings with session-based recommendation (e.g. SIGIR Challenge dataset). We will add serving with for this example, as well.

do we have such an example yet?


Undeclared identifier: 'pidAllPlatforms'

D10.2.3
unit Zx.SvgBrushList;  line 74
[dcc32 Error] Zx.SvgBrushList.pas(74): E2003 Undeclared identifier: 'pidAllPlatforms'

I've replaced the pidAllPlatforms with SkSupportedPlatformsMask from the FMX.Skia unit. Another thing I realized is that before D12, unit names from Skia were different (eg. FMX.Skia was Skia.FMX), so I wrapped that in the compiler directive.
Commit: a01ea3d - pidAllPlatforms -> SkSupportedPlatformsMask, support pre-D12 s4d


Write a TypeScript program to calculate the permutation of n objects taken r at a time

Description
Write a TypeScript program to calculate the permutation of n objects taken r at a time
Permutation is an arrangement of objects in a particular order. The number of permutations on n objects taken r at a time is given by the formula n!/(n-r)!
Input  : 5, 2
Output : 20

How to contribute

Save the solution in program/CalculateThePermutationOfNObjectsTakenRAtATime.ts file
Add CalculateThePermutationOfNObjectsTakenRAtATime.ts file in calculate-the-permutation-of-n-objects-taken-r-at-a-time folder

!assign

!assign

Don't know where you want it committed to. Noticed you have this open for a bunch of languages, wondered why? Reason I ask is I can could write for a bunch of them if you're doing it for some benchmarking or something.
function factorial(num: number) : number {
    if (num == 0) return 1
    return num * factorial(num - 1)
}

function permutations(total: number, sample:number) : number {
  if(total>sample){
    return factorial(total)/factorial(total-sample)!
  } else {
    throw new Error(`ERROR: supplied total > sample; permutations(total=${total}, sample=${sample}, total`)
  }
}

console.log(permutations(5, 2))


04/02/2018 20:51 : Create Pull Request for branch master -> prTesting1_2018040220

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef1.md
:white_check_mark:Succeeded

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


_isInView is true so long as any of the item is on the page - leads to surprising behaviour

My webapp is made up of consecutive sections:

...

...

...

From it's definition _isInView (see line 83) returns true for an element so long as the element's top is above the bottom of the window and its top is below the top.
Because of how getElemsViewState goes through the components one by one until it finds one in view (e.g. see line 50), so long as a component is on the screen at all then the next component will not be highlighted. (Alternately, if scrolling in the opposite order to the way the item keys are defined, the next component will be highlighted as soon as any of it is on screen).
This behaviour is especially strange in my webapp: When clicking on a link to a section, the previous section's navbar item is highlighted. It is made worse because I have a 75px fixed-top navbar as well.
As solutions to this I suggest finding the scrollspy item that occupies the middle of the page and specifying that this element is in view instead. E.g. changing:
`return (elTop < scrollBottom) && (elBottom > scrollTop)`

To:
`var midpoint = scrollBottom + (scrollTop - scrollBottom) / 2;
 return (elTop < midpoint) && (elBottom > midpoint);`

I've made this change locally and prefer it. I'd be happy to submit a pull request as well, but because it is a behavioural change it is better to open this issue first for discussion. E.g. it might be better to make this new behaviour optional via a property.

Same as #17, isn't it ?

This behaviour is especially strange in my webapp: When clicking on a link to a section, the previous section's navbar item is highlighted. It is made worse because I have a 75px fixed-top navbar as well.

I don't want to change original behavior of this component that the first element in view to be active.
It does not solve this issue to add padding-top to the sections ?
If we add a option to solve it, it might be an adjusted value users can specify. I think that it is better if you can be processed at the position desired with any of the adjustment value.

Adding padding does solve the issue but it isn't the graphical appearance that works best in this situation. Using an offset value could do it, if I have an opportunity I'll look at putting together a PR with that in it.

Sorry for very late reply. Added offset option in v2.5.0.

I think v2.5.0 make this issue solved, so i close it,  but feel free to reopen this issue.


Missing schema types descriptions

Hello,
For security reasons, we disabled the introspection queries on our GQL server, and injected our GQL schema in our internal Playground instead, using:
const schemaIntrospectResponse = await introspect.getIntrospectResponse(typeDefs);
console.log(JSON.stringify(schemaIntrospectResponse, null, 3)); // for debug only
app.get(ENDPOINT, playgroundMiddleware({
    endpoint: ENDPOINT,
    settings: playgroundSettings,
    schema: schemaIntrospectResponse
}));

///// ...

const { getIntrospectionQuery, buildSchema, graphql } = require("graphql");

getIntrospectResponse = async function(typeDefs) {
    const schema = buildSchema(typeDefs);
    const { data } = await graphql(schema, getIntrospectionQuery());
    return data;
};

But now, the descriptions of our queries/types/fields don't show up anymore in the Playground (auto-completion and list of queries/types/fields are OK though).
Note: This object "schemaIntrospectResponse" passed to "playgroundMiddleware()" contains the descriptions of each type.
Did we miss something? Not sure how to make the Playground use the type descriptions from the object we pass to "playgroundMiddleware()".
I noticed that in the HTML of this Playground page, there is a:
<div id="playground-config">
(in the body element) containing our schema with all our types, but the description is missing there (e.g "types":[{"kind":"OBJECT","name":"Query","description":null, ...). Hope it helps.
This issue pertains to the following package(s):

[ ] GraphQL Playground - Electron App
[ ] GraphQL Playground HTML
[ ] GraphQL Playground
[x] GraphQL Playground Express Middleware
[ ] GraphQL Playground Hapi Middleware
[ ] GraphQL Playground Koa Middleware
[ ] GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?
macOS 10.15.2  / Apollo 2.7.2
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
1.7.20 (latest right now)
What is the expected behavior?
Description of our types/fields/queries available in the Playground
What is the actual behavior?
No textual descriptions of our types/fields/queries available in the Playground
What steps may we take to reproduce the behavior?
See code above, with Apollo server started with the option "introspection: false"
What we get (no description on each query/type/field):

Sorry my bad, never mind, the descriptions I saw in the object passed to the Playground were not from our schema, so the way we build this object is actually the issue (i.e. no types description actually sent to the Playground). Now investigating why this internal introspection query doesn't return type descriptions 😥


dev: use reth TryFrom impl to convert blocks and headers

Describe Preferred Solution

After next reth release and integration of https://github.com/paradigmxyz/reth/pull/7660#event-12476448733

rpc_to_primitive_header method

https://github.com/kkrt-labs/kakarot-rpc/blob/d2128cf23e8981284e577cb00dcbbf9464f3beb1/src/models/block.rs#L71-L104
can be removed and replaced by reth native TryFrom implementation call.

rpc_to_primitive_block method

https://github.com/kkrt-labs/kakarot-rpc/blob/d2128cf23e8981284e577cb00dcbbf9464f3beb1/src/models/block.rs#L106-L136
can be removed and replaced by reth native TryFrom implementation call.

Hey! I think I can take this up if its up for grabs?

Hey! I think I can take this up if its up for grabs?

Sure just assigned

For your information https://github.com/kkrt-labs/kakarot-rpc/pull/1004 merge should unlock the situation here.

yes yes I saw the release has happened, working on it right now 😅


Question

Why you need to import in this way:
import {bootstrap, ComponentAnnotation as Component, ViewAnnotation as View, Injectable} from 'angular2/angular2';
and not:
import {Component, View, bootstrap} from 'angular2/angular2';
??
Thanks
Daniele.

http://blog.thoughtram.io/angular/2015/05/09/writing-angular-2-code-in-es5.html

@ComponentAnnotation and @ViewAnnotation are really the annotations. @ Component and @ View are the decorators that use the annotations internally.

Ok But what I mean is : there's no way to write the code as described in the documentation (in ts):
https://angular.io/docs/js/latest/guide/displaying-data.html
?

https://angular.io/docs/js/latest/guide/setup.html
also describes this difference. I use traceur in this setup, it requires annotations.

so you mean that for now we don't have any choice to do in different way?

Typescript compiler and Babel uses decorators. TS plugin for in JSPM – https://github.com/frankwallis/plugin-typescript. As far as I know, the next jspm version will support TS out of the box.

@daniele-zurico here is typescript version with decorators https://github.com/htdt/ng2-jspm/tree/typescript

@htdt super good! Thanks!
Just one question, do you have any experience with dgeni?


Chg: Remove prefix model name from name of active input.

Whould you considering to remove prefix model name from name of active input. I mean, when we have model User and attribute name, then the generated input name is "[User]name". Whould you just generate "name" as input name. Since we have safe validator, IMO, its OK to have more than one model in one form without any conflicting.
Remove prefix name give more prety url in filtering (gridview), more compatible with several javascript plugin, more compatible with rest, etc...

Prefix name use to avoid attribute collision between to model in one form.

Well... Is any someone who have that case? Have to models with same attribute but provide different value?

you can set formName() of the model to empty string if you want this.

added a note to the guide


BUG/COMPAT: to_datetime

xref #11758, fix for bug in #13033

Jeff, IMO in some cases the ValueError you raise now is less informative as the OutOfBounds error I think.
Eg in the case of pd.to_datetime([1, 2, 111111111], unit='D'), you now get a "ValueError: cannot convert input with unit: D" instead of "OverflowError: long too big to convert". I am not saying the OverflowError is very clear, but at least this gives some indication of why to_datetime could not convert the integers: the values are too big. While the new message does not give this indication.
Wouldn't it be possible to raise an OutOfBoundsError? Similar as you eg get with pd.to_datetime(['2900-01-01'])

@jorisvandenbossche yes I will change that to OOB. Though I may also do a VE if say non-convertible strings are found.


Removed V3 -> V2 fallback

See #2508

Note to future me: Such lines need a comment/link to the related issue :)


fix: Fixed Scan cards with different sizes

What

Fixed #1568 by adding Padding to the limited size summary card in summary_card.dart

Screenshot
Before

After

Fixes bug(s)

#1568

Part of

https://github.com/openfoodfacts/smooth-app/issues/1568

@Laytoder Could you also provide a screenshot for the "product not found" card please?

@Laytoder Could you also provide a screenshot for the "product not found" card please?

You mean the one which says "You found a new product" because I believe that is the one which shows up when a product is not in the database ?

Yes please @Laytoder

Codecov Report

Merging #1573 (6ff1f2b) into develop (ebf1ac9) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           develop   #1573      +/-   ##
==========================================
- Coverage     8.86%   8.86%   -0.01%
==========================================
  Files          161     161
  Lines         6623    6624       +1
==========================================
  Hits           587     587
- Misses        6036    6037       +1

Impacted Files
Coverage Δ

...mooth_app/lib/generic_lib/widgets/smooth_card.dart
0.00% <ø> (ø)

...ges/smooth_app/lib/pages/product/summary_card.dart
0.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 ebf1ac9...6ff1f2b. Read the comment docs.

Congrats on your first Pull Request here @Laytoder 🥳

Thank you 👍


Fix document selector for ST4

Fixes #27

Will test and merge this hopefully tomorrow, when i am back at my laptop.