How to use new image for prediction

Hi - Apologies for the avalanches of question posted, I have a read your paper https://arxiv.org/pdf/1912.13318.pdf and also studied the funsd, previously using it to train a fasterrcnn and predict Q and A's. One thing I can not understand from the paper and this repo is, how do we ingest new images to predict? the paper says:
"To utilize the layout information of each document, we need toobtain the location of each token. However, the pre-training dataset(IIT-CDIP Test Collection) only contains pure texts while missing
their corresponding bounding boxes. In this case, we re-process thescanned document images to obtain the necessary layout informa-tion. Like the original pre-processing in IIT-CDIP Test Collection,we similarly process the dataset by applying OCR to documentimages. The difference is that we obtain both the recognized wordsand their corresponding locations in the document image. Thanksto Tesseract6, an open-source OCR engine, we can easily obtain therecognition as well as the 2-D positions. We store the OCR results inhOCR format, a standard specification format which clearly definesthe OCR results of one single document image using a hierarchical representation"
However, although with tesseract I can get the words, bouning boxes and hierarchies, it does not provide an annotated docuement as input (as shown in repo example for test):
https://github.com/microsoft/unilm/pull/155
pred_dir = "predictions"

!python run_seq_labeling.py  --do_predict \
                            --data_dir data \
                            --model_type layoutlm \
                            --model_name_or_path {out_dir} \
                            --do_lower_case \
                            --output_dir predictions \
                            --labels data/labels.txt \
                            --fp16

How do we go from base input document in hOCR format of words, hierarchies and coordinates to the annotation format used in the example here? The --do_predict calls the test.txt from the data folder, which already has questions and answers next to the words.

I adapted the code from preprocessing.py to work with our data to get the same output as preprocessing.py does with the FUNSD. I have my data from pytesseract.image_to_data.

@r000bin Thanks very much for your response, the issue is that when I pytesseract a document image, I dont always get the correct text - definitley not if its in a similar format to that of FUNSD - so how could we get such a high accuracy level of texts with coordinates and bounding boxes? example is attached - unless there's something wrong with my hOCR extraction and output from tesseract?
input:

output from command pasted above :  print(pytesseract.image_to_data(Image.open('1a.png')))

The resolution is so bad I can't even read it by myself. how should tesseract be better than that? I'm no tesseract expert but the best approach to optimize tesseract seems to be better quality. Were you starting with a pdf and did a poor converting?

@r000bin We use the original images in the IIT-CDIP dataset, which has higher resolution than those in the RVL-CDIP dataset.

@wolfshow @r000bin thanks for the comments, makes sense - I needed higher image resolution. I've removed label annotations from the test.txt file to test the prediction function with --do_predict, however due to lack of labels I get stuck in the evlauation stage with error :
File "run_seq_labeling.py", line 815, in <module>
    main()
  File "run_seq_labeling.py", line 776, in main
    args, model, tokenizer, labels, pad_token_label_id, mode="test"
  File "run_seq_labeling.py", line 311, in evaluate
    eval_dataset = FunsdDataset(args, tokenizer, labels, pad_token_label_id, mode=mode)
  File "/opt/conda/lib/python3.7/site-packages/layoutlm-0.0-py3.7.egg/layoutlm/data/funsd.py", line 29, in __init__
  File "/opt/conda/lib/python3.7/site-packages/layoutlm-0.0-py3.7.egg/layoutlm/data/funsd.py", line 174, in read_examples_from_file
AssertionError

Have you been able to skip this for prediction?

@wolfshow @r000bin @elnazsn1988 @MohitTuli Hey anyone figure it out how to do prediction on new images. I am also facing lots of problem to understand how the flow is going in prediction.

I managed now to predict on new images. I prepared them the same way I prepared my train/test data and also set a label for every word which I ignore at the end and just look at the prediction.

@r000bin so while prediction on new image you are only passing the image or you are creating annotation file too. if you don't mind please share some portion of code like how you giving the new image.

@r000bin i am also confused about mapping question to answer.

You need to do OCR on the image first and then get it into the right shape for LayoutLM. The layoutlm/examples/seq_labeling/preprocess.py is a pretty good example how to get there. You have already fine-tunes your LayoutLM?

I am using fusdn dataset. I have already fine-tune and evaluate on that.
But now question is if new image is coming.
1 how will i make annotation file. Are you saying this can be achieved by the ocr. Then which ocr you are using. I have tried tesseract but sometimes it fails.
2. If i done prediction on one image the model will give me all questions and answers entity. so how can i map that which answer is for which questions.

Use tesseract and get all the words together with the boundingbox. Adapt the code in layoutlm/examples/seq_labeling/preprocess.py to get the tesseract output in the right format.
I'm not working with question/answer pairs. In this issue it was mentioned to use another binary classifier: https://github.com/microsoft/unilm/issues/161

Thanks i understand.

@kbrajwani are you able to predict any images? If so can you help me out as well? As I am struggling with this for a long time now.

@devildani hey its simple you have to use any ocr system whhich will give you word level bounding box and transcription like tesseract.
Then you can make a script to format you ocr output like FUNSD. you can see the format here. https://guillaumejaume.github.io/FUNSD/description/
After that you can preprocess by funsd_preprocess.py and then use --do_predict .

@kbrajwani Thanks for replying. I was going through the format of the link that you shared. Do you what linking in that format is? Also, while predicting we won't be having any labels for the words will that be okay?

@devildani  sorry for delay. you can leave linking and for labels you can give others labels to every word. at the time of prediction model takes word and coordinate from file nothing else.

Sorry to trouble.
When we want to predict a new image, must there be a corresponding test.txt file?


Gear state and flaps state not changing

Im Try on PMDG 737-800 and default msfs airbus a310.
Gear handle position went up but not the gear. It could be a MSFS issue.
i gave u record on yt with simvar watcher:
https://www.youtube.com/watch?v=SfEjIg99_Tw
my plugins:
-toolbar pushback
-nameplates
i use only Speedlink BLACK WIDOW XE Flightstick as a joystick.

Hello,
Thanks for reporting! Yes, this is a known issue specifically with (3rd party) aircraft that use their own simulation logic, e.g. for hydraulics: they do not react to "simulation variables", as sent via SimConnect.
The good news: I have already started investigating other means to send those "state changes" (keyword: SimConnect "events"), and I have had quite some success already with the PDMG Boeing 737-800 (that I happen to own as well ;)).
Parts of it has just been merged into the "main" branch yesterday, but this is still "work in progress" and systematic testing with other aircraft such as the A310 remains to be done once all changes have fully been implemented.
Also refer to the corresponding announcement e.g. here, toward the end of this posting:
https://forums.flightsimulator.com/t/sky-dolly-v0-13-free-flight-recorder-replay-location-management/405367/58

This is expected to be improved in the upcoming v0.14 release.

im waiting for 0.14 release , thank u for responding :)


Signature extraction failed

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.09.10. 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 2018.09.10

Before submitting an issue make sure you have:

[x ] At least skimmed through the README, most notably the FAQ and BUGS sections
[x ] Searched the bugtracker for similar issues including closed ones
[ x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[ x] Bug report (encountered problems with youtube-dl)

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 the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), 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 -f 251 https://www.youtube.com/playlist?list=PLjY-n1IeO9AhLX64WDER1SwflO2P5-MhR -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', '251', 'https://www.youtube.com/playlist?list=PLjY-n1IeO9AhLX64WDER1SwflO2P5-MhR', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.08.04
[debug] Python version 3.7.0 (CPython) - Linux-4.14.67-1-MANJARO-x86_64-with-arch-Manjaro-Linux
[debug] exe versions: ffmpeg n4.0.2, ffprobe n4.0.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:playlist] PLjY-n1IeO9AhLX64WDER1SwflO2P5-MhR: Downloading webpage
[download] Downloading playlist: 4 Cover R Worse
[youtube:playlist] playlist 4 Cover R Worse: Downloading 78 videos
[download] Downloading video 1 of 78
[youtube] ZKmfQP5leYM: Downloading webpage
[youtube] ZKmfQP5leYM: Downloading video info webpage
[debug] Invoking downloader on 'https://r2---sn-5jucgv5qc5oq-itq6.googlevideo.com/videoplayback?c=WEB&ei=ai2WW77QGMLToAOr25vQCg&keepalive=yes&source=youtube&initcwndbps=862500&mn=sn-5jucgv5qc5oq-itq6%2Csn-h5576n7k&mm=31%2C29&pl=22&id=o-AHnCPYf1qhbjkP-GRtgFdTby82R43mZOgB3-QFLEZ4Eb&mv=m&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&mt=1536568572&ms=au%2Crdu&requiressl=yes&ip=<IP_ADDRESS>&lmt=1478041060990331&expire=1536590282&fvip=2&dur=217.921&ipbits=0&signature=906F7ED1C28E7CF57302083EDFD5BFB3CE1F876D.46562585D2482AD04561B03647EA558F8C1124FB&itag=251&clen=3040888&key=yt6&gir=yes&mime=audio%2Fwebm&ratebypass=yes'
[download] Just Like Heaven by The Cure - Marie Digby Cover-ZKmfQP5leYM.webm has already been downloaded
[download] 100% of 2.90MiB
[download] Downloading video 2 of 78
[youtube] 2Rmil_raUtU: Downloading webpage
[youtube] 2Rmil_raUtU: Downloading video info webpage
[youtube] {43} signature length 41.42, html5 player vflvABTsY
[youtube] 2Rmil_raUtU: Downloading player https://www.youtube.com/yts/jsbin/player-vflvABTsY/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1210, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1121, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1182, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 972, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
 (caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.')); 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/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1210, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1121, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1182, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 972, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1210, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1121, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1182, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 972, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 502, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1803, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1220, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1210, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1121, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1182, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 972, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
 (caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.')); 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.
...
<end of log>

I think I didn't update youtube-dl. Will update and see.


Create tag wrong request building

Version: github.com/xanzy/go-gitlab v0.81.0
When the client creates a request, it puts all params tag_name, ref, and message to JSON in the request body. It's a wrong approach because according to the official doc it must put args to HTTP query. Take a look curl example.
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/tags?tag_name=test&ref=master"

Sorry, it works properly.


doc: fix misspellings in docs

Fix misspellings missed in regular reviews.
Signed-off-by: David B. Kinder<EMAIL_ADDRESS>

Codecov Report

Merging #13157 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #13157   +/-   ##
=======================================
  Coverage   48.73%   48.73%
=======================================
  Files         315      315
  Lines       46540    46540
  Branches    10743    10743
=======================================
  Hits        22679    22679
  Misses      19349    19349
  Partials     4512     4512

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 0a7b45d...25169b6. Read the comment docs.


All apps deployed from Docker image via docker-receive showing "service unavailable"

On a fairly fresh cluster, except with the newer docker-receive per https://github.com/flynn/flynn/pull/3069#issuecomment-231137775, Flynn refuses to  route to apps, showing just a "Service Unavailable."
I've tried even the barest bones Node.js Docker image (https://github.com/jlchereau/Docker-AWS), alongside 3 of our own apps -- all return the same error. Dashboard and other Flynn non-Docker released apps seem to load just fine; haven't tried a custom buildpack-built app on this cluster.
Apps are scaled and have the correct ports (I think). No abnormalities in the app logs. Restarting the (single in the case) Flynn host didn't fix anything.
Flynn host version v20160624.1.
flynn-host collect-debug-logs was actually to big for gist, so here's an s3 link to the .tar.gz

@brettneese looks like the default route for apps pushed with docker-receive have the wrong service (APPNAME-web instead of just APPNAME), we'll work on a fix for that.
In the meantime, you can fix the route by grabbing the route ID from flynn -a APPNAME route and updating it with:
$ flynn -a APPNAME route update $ID --service APPNAME

What are the chances a fix for this will land in the next stable release? It's incredibly annoying.

I'll fix it now. The bug is in the CLI, so it will go out with the next nightly.

Fix is in #3159.

@titanous how do you download nightly releases of the CLI?

flynn update

Ah, @mnaughto passed your message onto me as well. Didn't realize the CDN only had nightly releases. Thanks. 👍


Deliverables for Connect

Connect  November 15-17, 2017 and https://blogs.microsoft.com/?p=52547458
What is the ASP.NET team:

[ ] Releasing
[ ] Blogging ( @glennc )
[ ] Sessions delivered
[ ] Primary message

@danroth27  can you help me with the connect content plan?
cc @rachelappel  @scottaddie

@danroth27  can list the ASP.NET teams connect plans?
@glennc  will you be blogging for connect?


fillna() is inefficient vs. pandas

I have a pandas dataframe with 10 rows and 3192 float columns.
pandas support fillna() for all columns at once, this takes:
%time data = data.fillna(0)
CPU times: user 4 ms, sys: 0 ns, total: 4 ms
Wall time: 3.05 ms

However Turi Create has to fill column by column:
from tqdm import tqdm
for x in tqdm(sdata.column_names()):
    sdata[x] = sdata[x].fillna(0)

This take 6 minutes 22 seconds on my machine.
Turi Create is about x100,000 times slower...
pandas version 0.20.3
tc version 5.4

I have reproduced this issue.
Here is complete reproduction code:
import turicreate as tc

sf = tc.util.generate_random_sframe(10, 'N' * 3192)
sf.materialize()

# This takes a long time
for c in sf.column_names():
    sf[c] = sf[c].fillna(0)

df = sf.to_dataframe()

# This is fast
df = df.fillna(0)

This is probably related to our generally inefficient handling of SFrames with a lot of columns.  This operation is probably similar with any column-wise operation based on C++ lambda functions.  My guess is that most of the time was spent managing the indexes and lookups around the columns.

I suspect this a duplicate of https://github.com/apple/turicreate/issues/1082.


eglGetDisplay is NULL on Android

I got SFML to compile, and am using sfml-activity in a NativeActivity:
<activity
            android:name="android.app.NativeActivity"
            android:configChanges="orientation|keyboardHidden"
            android:label="@string/app_name">
            <meta-data
                android:name="android.app.lib_name"
                android:value="sfml-activity" />
            <meta-data
                android:name="sfml.app.lib_name"
                android:value="myapp" />
        </activity>

On app startup, first it hits this line of code: https://github.com/SFML/SFML/blob/master/src/SFML/Main/SFMLActivity.cpp#L206
Which calls this one: https://github.com/SFML/SFML/blob/master/src/SFML/Main/MainAndroid.cpp#L495
The call to eglGetDisplay creates a segfault (segv_maperr in libc) when my app is starting up (before it even reaches int main). I tried to follow the chain and I found that this symbol is set to NULL: https://github.com/SFML/SFML/blob/master/extlibs/headers/glad/include/glad/egl.h#L1106
Later on in that include file, there are functions for initializing it. However, when I put breakpoints, it's not called: https://github.com/SFML/SFML/blob/master/src/SFML/Window/EglContext.cpp#L72
I tried playing around with the order of library linking (not sure if that would help or matter).
target_link_libraries( # Specifies the target library.
		myapp
        oboe
		NE10

		${log-lib}
        android

        EGL
        GLESv1_CM

		sfml-system
		OpenAL

		sfml-window
		sfml-audio
		sfml-graphics
		sfml-network
		sfml-activity
		sfml-main)

Am I missing some step of GL/GLES init? Or perhaps app permissions to use EGL/Adreno GPU?
Android NDK version r20, ABI is arm64-v8a.

Perhaps this is a problem:
W/AdrenoUtils: <ReadGpuID_from_sysfs:194>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
    <ReadGpuID:218>: Failed to read chip ID from gpu_model. Fallback to use the GSL path

I added some print statements:
  auto a = SF_GLAD_EGL_VERSION_1_0;
    auto b = SF_GLAD_EGL_VERSION_1_1;
    auto c = SF_GLAD_EGL_VERSION_1_2;
    auto d = SF_GLAD_EGL_VERSION_1_3;
    auto e = SF_GLAD_EGL_VERSION_1_4;
    auto f = SF_GLAD_EGL_VERSION_1_5;
    LOGI("sevag was here: %d %d %d %d %d %d", a, b, c, d, e, f);
    LOGI("this symbol is: %p", eglGetDisplay);
    states->display = eglGetDisplay(EGL_DEFAULT_DISPLAY);

Result:
I/AUDIO-APP: sevag was here: 0 0 0 0 0 0
I/AUDIO-APP: this symbol is: 0x0
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 20264 (myapp), pid 20264 (myapp)
Process 20264 terminated.

I added one line, a call to     gladLoaderLoadEGL(EGL_DEFAULT_DISPLAY);,  and things work now:
    gladLoaderLoadEGL(EGL_DEFAULT_DISPLAY);
    auto a = SF_GLAD_EGL_VERSION_1_0;
    auto b = SF_GLAD_EGL_VERSION_1_1;
    auto c = SF_GLAD_EGL_VERSION_1_2;
    auto d = SF_GLAD_EGL_VERSION_1_3;
    auto e = SF_GLAD_EGL_VERSION_1_4;
    auto f = SF_GLAD_EGL_VERSION_1_5;
    LOGI("sevag was here: %d %d %d %d %d %d", a, b, c, d, e, f);
    LOGI("this symbol is: %p", eglGetDisplay);
    states->display = eglGetDisplay(EGL_DEFAULT_DISPLAY);

Output:
I/AUDIO-APP: sevag was here: 1 1 1 1 1 1
    this symbol is: 0x7cee0e04d0
I/AudioEngine: EPG: we begin!
I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
I/AudioStreamBuilder: rate   =  48000, channels  = 1, format   = 5, sharing = EX, dir = INPUT
    device =      6, sessionId = -1, perfMode = 12, callback: ON with frames = 0
    usage  =      1, contentType = 2, inputPreset = 6, allowedCapturePolicy = 0
D/AudioStreamBuilder: build() EXCLUSIVE sharing mode not supported. Use SHARED.
D/: PlayerBase::PlayerBase()
I/AudioRecord: createRecord_l(0): AUDIO_INPUT_FLAG_FAST successful; frameCount 0 -> 4096
D/AudioStreamRecord: open() setup I16>FLOAT conversion buffer with 192 frames
W/AudioStreamRecord: open() flags changed from 0x00000005 to 0x00000001
I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#1 ----------------
D/AAudio: AAudioStream_requestStart(s#1) called --------------
D/: PlayerBase::start() from IPlayer
D/AudioStreamLegacy: onAudioDeviceUpdate() devId 18 => 18
D/AAudio: AAudioStream_requestStart(s#1) returned 0 ---------
I/AudioEngine: EPG: we recording!
D/AudioStreamLegacy: onAudioDeviceUpdate() devId 18 => 18
E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
I/sfml-error: Warning: The created OpenGL context does not fully meet the settings that were requested
    Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
    Created: version = 0.0 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
    Failed to activate the window's context
    Failed to activate the window's context
I/sfml-error: Failed to activate the window's context
I/AudioEngine: EPG: entering main loop!
    EPG poll loop!
I/AudioEngine: MOUSE ENTERED!
I/sfml-error: Warning: The created OpenGL context does not fully meet the settings that were requested
    Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
    Created: version = 0.0 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
    Failed to activate the window's context
    Failed to activate the window's context
I/AudioEngine: GAINED FOCUS!
I/AUDIO-APP: BTrack: estimatedTempo: 120.000000
I/AudioEngine: EPG poll loop!
I/AUDIO-APP: BTrack: estimatedTempo: 120.000000

Hello, is there a solution?
I get the following error：
2020-08-25 17:49:32.447 3133-3133/? I/sfmldev.androi: Not late-enabling -Xcheck:jni (already on)
2020-08-25 17:49:32.474 3133-3133/? W/sfmldev.androi: Unexpected CPU variant for X86 using defaults: x86_64
2020-08-25 17:49:32.577 3133-3133/org.sfmldev.android W/System: ClassLoader referenced unknown path:
2020-08-25 17:49:32.643 3133-3133/org.sfmldev.android D/OpenGLRenderer: Skia GL Pipeline
2020-08-25 17:49:32.683 3133-3133/org.sfmldev.android E/libEGL: validate_display:94 error 3001 (EGL_NOT_INITIALIZED)
2020-08-25 17:49:32.688 3133-3133/org.sfmldev.android I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-08-25 17:49:32.688 3133-3133/org.sfmldev.android I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-08-25 17:49:33.233 3133-3174/org.sfmldev.android D/EGL_emulation: eglCreateContext: 0x7bbf8b072180: maj 1 min 0 rcv 1
2020-08-25 17:49:33.239 3133-3174/org.sfmldev.android D/EGL_emulation: eglMakeCurrent: 0x7bbf8b072180: ver 1 0 (tinfo 0x7bbf8b00d380)
2020-08-25 17:49:33.240 3133-3174/org.sfmldev.android E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821b
2020-08-25 17:49:33.242 3133-3174/org.sfmldev.android E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821c
2020-08-25 17:49:33.244 3133-3174/org.sfmldev.android E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821e
2020-08-25 17:49:33.244 3133-3174/org.sfmldev.android E/eglCodecCommon: glUtilsParamSize: unknow param 0x00009126
2020-08-25 17:49:33.245 3133-3174/org.sfmldev.android E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821b
2020-08-25 17:49:33.249 3133-3174/org.sfmldev.android D/EGL_emulation: eglMakeCurrent: 0x7bbf8b072180: ver 1 0 (tinfo 0x7bbf8b00d380)
2020-08-25 17:49:33.253 3133-3174/org.sfmldev.android D/EGL_emulation: eglCreateContext: 0x7bbf8b072220: maj 1 min 0 rcv 1
2020-08-25 17:49:33.253 3133-3174/org.sfmldev.android E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
2020-08-25 17:49:33.254 3133-3174/org.sfmldev.android I/sfml-error: Warning: The created OpenGL context does not fully meet the settings that were requested
2020-08-25 17:49:33.254 3133-3174/org.sfmldev.android I/sfml-error: Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
2020-08-25 17:49:33.254 3133-3174/org.sfmldev.android I/sfml-error: Created: version = 0.0 ; depth bits = 24 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
2020-08-25 17:49:33.254 3133-3174/org.sfmldev.android I/sfml-error: Failed to activate the window's context
2020-08-25 17:49:33.254 3133-3174/org.sfmldev.android I/sfml-error: Failed to activate the window's context
2020-08-25 17:49:33.255 3133-3174/org.sfmldev.android D/EGL_emulation: eglMakeCurrent: 0x7bbf8b072180: ver 1 0 (tinfo 0x7bbf8b00d380)
2020-08-25 17:49:33.274 3133-3174/org.sfmldev.android E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821b
2020-08-25 17:49:33.274 3133-3174/org.sfmldev.android E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821c
2020-08-25 17:49:33.288 3133-3174/org.sfmldev.android D/EGL_emulation: eglMakeCurrent: 0x7bbf8b072180: ver 1 0 (tinfo 0x7bbf8b00d380)
--------- beginning of crash

2020-08-25 17:49:33.289 3133-3174/org.sfmldev.android A/libc: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7bbf7ca71550 in tid 3174 (sfmldev.android), pid 3133 (sfmldev.android)
It keeps prompting that opengl is not initialized, and I am not good at opengl. . .

@sevagh I didn't fully understand this, where exactly did you add gladLoaderLoadEGL(EGL_DEFAULT_DISPLAY);?

@sevagh I didn't fully understand this, where exactly did you add gladLoaderLoadEGL(EGL_DEFAULT_DISPLAY);?

@eXpl0it3r you can see my commit (to the Android app source code) here: https://github.com/sevagh/ElectroPARTYogram/commit/96e9d9e5c619a03faaa54f443d224f0d2be0dc51#diff-37bf2c59ebc2b07df4acb6df16d6fd006ae639c855a4bd65547edbc09932d673
I have a vendored copy of of SFML, and I added the change to SFML/src/SFML/Main/MainAndroid.cpp

@eXpl0it3r you can see my commit (to the Android app source code) here: https://github.com/sevagh/ElectroPARTYogram/commit/96e9d9e5c619a03faaa54f443d224f0d2be0dc51#diff-37bf2c59ebc2b07df4acb6df16d6fd006ae639c855a4bd65547edbc09932d673
I have a vendored copy of of SFML, and I added the change to SFML/src/SFML/Main/MainAndroid.cpp

Ah okay, would you be willing to provide a PR for this?

Ah okay, would you be willing to provide a PR for this?

Here: https://github.com/SFML/SFML/pull/1740

Here: https://github.com/SFML/SFML/pull/1740

Fixed with #1740

Fixed with #1740


OLS-779: Bump-up llama_index_embeddings_huggingface to 0.2.1

Description
Bump-up llama_index_embeddings_huggingface to 0.2.1
Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[x] Bump-up dependent library
[ ] Bump-up library or tool used for development (does not change the final image)

Related Tickets & Documents

Related Issue #OLS-779

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.42%. Comparing base (047ee0f) to head (52404b2).
Report is 17 commits behind head on main.

Additional details and impacted files

@@           Coverage Diff           @@
##             main    #1199   +/-   ##
=======================================
  Coverage   95.42%   95.42%
=======================================
  Files          56       56
  Lines        2381     2381
=======================================
  Hits         2272     2272
  Misses        109      109


How do i use stereoscopic tracking?

As written here, MediaPipe supports stereoscopic tracking (they used 3 cameras).
How do i use it (C++, face/hand tracking)? there are no examples in here and no mentions on the documentation.
(thanks in advance)

We have examples on facemesh and hand tracking on c++. You can build one from here https://google.github.io/mediapipe/getting_started/cpp.html.  Could you please elaborate on stereoscopic tracking am not sure about it.

Yes, i have got all the examples to build and run successfully.
I am referring to this in the article.

so? any updates?

Hello, I'm also interested on how this was implemented, can we get implementation details here?


Cannot use v2 with requirejs

Hi,
I can't get Chart.js v.2.0.2 working with requirejs.
Here is a basic example: https://jsfiddle.net/pa7x2ymq/

This does not seem to work with 1.1.1 either: https://jsfiddle.net/oL9gh6be/1/
Am I doing something wrong?

I am having the same problem. I think this is due to the fact that they changed the buildscripts. The structure is totally different from v2.0.0-beta2

A quick work around is to add a shim for Chart.js, setting the exports flag to Chart, i.e.:
requirejs.config({
    baseUrl: '/js',
    paths: {
        'Chart': 'lib/Chart.min'
    },
    shim: {
        'Chart': {
            exports: 'Chart'
        }
    }
});

Hmmmm for the time being I have just built it using
> browserify src/chart.js -s chartjs -o build.js

Which created a normal AMD build for me that does work with requirejs.

Same issue here, was not able to get it built that way but the shim worked for me.

Guess I spoke too soon... the shim worked fine locally, though once the code was minified and ran from the server, I was getting errors due to the Chart object not containing various properties, i.e. Chart.defaults.global.elements was missing.
@JelteMX when running your command, I'm getting following error:
src/chart.js: line 1: /*!: No such file or directory
src/chart.js: line 2: CONTRIBUTING.md: command not found
src/chart.js: line 3: CONTRIBUTING.md: command not found
src/chart.js: line 4: CONTRIBUTING.md: command not found
src/chart.js: line 5: CONTRIBUTING.md: command not found
src/chart.js: line 6: CONTRIBUTING.md: command not found
src/chart.js: line 7: CONTRIBUTING.md: command not found
src/chart.js: line 8: CONTRIBUTING.md: command not found
src/chart.js: line 9: dist/: is a directory
src/chart.js: line 12: syntax error near unexpected token `('
src/chart.js: line 12: `var Chart = require('./core/core.js')();'

anything else you did prior to that?

Turns out that the build errors were due to copy/pasting the literal command up there that includes a >, which basically creates a file with "browserify" name, so that obviously won't work. Probably was meant to be a $ to indicate a terminal command.
In any case, just running browserify src/chart.js -s chartjs -o build.js still gave me an error;
Error: Cannot find module 'chartjs-color' from '/Users/elewis/Downloads/Chart.js-2.0.2/src/core'
    at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:46:17
    at process (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:173:43)
    at ondir (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:188:17)
    at load (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
    at onex (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
    at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
    at Object.oncomplete (fs.js:107:15)

anything that I'm missing?

@sassomedia I updated one of the dependencies to come from NPM rather than straight from git. Try wiping node_modules and re-running npm install

@etimberg thanks, that did the trick. Now running browserify does work and I'm able to load the chart, however it's the unminified code complete with moment.js (which I already have), so it's massive.

@sassomedia I think you need to block browserify from pulling in moment. In our gulpfile we do:
var nonBundled = browserify('./src/chart.js')
    .ignore('moment')
    .bundle()
    .pipe(source('Chart.js'))
    .pipe(insert.prepend(header))
    .pipe(streamify(replace('{{ version }}', package.version)))
    .pipe(gulp.dest(outDir))
    .pipe(streamify(uglify({
      preserveComments: 'some'
    })))
    .pipe(streamify(concat('Chart.min.js')))
    .pipe(gulp.dest(outDir));

@etimberg thanks for the pointer, I was able to get it working with
browserify -s chartjs -u moment src/chart.js > build.js
which results in the same size as the unminified gulp generated file (Chart.js), however this one's AMD compatible.
Although, trying to further minify it with either;
browserify -s chartjs -u moment -t uglifyify src/chart.js > build.js or
browserify -s chartjs -u moment -t uglifyify src/chart.js | uglifyjs > build.js or
browserify -s chartjs -u moment src/chart.js | uglifyjs > build.js
breaks it again and almond.js is not liking it. Will try to see if I can tweak it more but ideally, the gulp build process would be changed again in an upcoming version to get back to the 2.0.0beta and prior-style process, that was AMD compatible. Thanks!

@sassomedia good finds. I'll check it out myself. I needed an unminified version with moment.js included, because our dojo-build server combines and minifies several files. The current gulpfile does not work for me, but it would be a good idea if there would be a AMD build command included in versions to come.

@etimberg since I had to update to a newer version of the library, I took a look at this again. I was mistaken in my previous statement about the build working with moment removed, that was actually not the case. I tried so many versions but the only one working was with moment bundled. I couldn't seem to get to a satisfying solution with the command line. So I gave the gulp build task another look and it seems like a fairly simple addition would make this all work;
browserify('./src/chart.js', { standalone: 'chartjs' }) would be all that's needed.
Would you consider a PR for this and if so, do you see any issues with updating the existing build task or should there be a separate AMD build task only for the ones that need it?

@sassomedia feel free to PR that. @simonbrunel @zachpanz88 @tannerlinsley thoughts?

@etimberg @simonbrunel I think we can close this as it's been released. Thanks!


[KARAF-4773] AbstractRetryableDownloadTask is smarter with pax-url-ae…

…ther 2.5.0

This is fixed in master: e4f9ead


Split into separate repos?

As mentioned by @conal in https://github.com/compiling-to-categories/concat/pull/13#issuecomment-305932696, this could potentially be split into separate repos. I support this idea, for basically the same reasons as I made #91.
Basically, we use concat-classes and concat-examples in https://github.com/con-kitty/categorifier, but not concat-plugin. #91 solves the main issue, which is having concat-plugin in the graph. However, there are other changes we’d like to make to concat-classes/-examples (#99) that are easier if we don’t have to push them through the plugin as well.
I’m happy to make this happen if there is agreement about it. Also, I would like #91 to happen first, as it’s nicer history-wise to move things around in one repo than to move them across repos.

I'd like to get a better (than almost no) understanding of what con-kitty/categorifier is about. Is the BOB talk up yet?

Only a few months late here. The BOB talk is up, but AFAIK, it’s only part of the larger full-track video. This should jump you to the correct part: https://www.youtube.com/watch?t=10758&v=e74TE0b4xEM
Here’s my quick summary of categorifier: it’s a rewrite/fork of concat-plugin with a goal of compiling pre-existing Haskell to categories. We had 30k+ lines of Haskell that we wanted to transform without having to rewrite it. Some of the things that have been added: fine-grained failure reporting, support for sum types, automatic HasRep generation via TH, support for alternative category class hierarchies (e.g., Kmett’s categories library), support for recursion, extensible “RULES” definitions (it does all rewrites internal to the plugin, rather than using actual RULES pragmas), etc. There’s also a similar list at https://github.com/con-kitty/categorifier/blob/master/plugin/README.md#concat, which is a bit out of date and could use updating.

I support the idea of splitting out the plugin into a separate repo.  (I'm a little uneasy about changes to examples that can't be pushed through the ConCat plugin, as we're still using that combo, but we can cross that bridge once we get to it.)

It’s not about not being able to push the changes through ConCat plugin, but more the amount of effort required. And the changes I have in mind wouldn’t break the relationship between -examples and -plugin. E.g., supporting GHC 9.0 in -examples is fairly trivial, but because all of the GHC API is restructured in 9.0, supporting GHC 9.0 in -plugin is much more complicated. I would like to add GHC 9 support to -examples without having to do all the work for -plugin, which we don’t use. These kinds of changes shouldn’t break the dependency in any way when compiling with GHC 8.

Ah, thanks for the explanation!

@conal You OK with splitting? I expect it'll take a few days to shake it all out, but I'll make sure everything will work as before once we're done. (And we're very actively using the ConCat plugin, so I'm highly motivated to make it work.)

What is the set of repos we'd end up with? How would we keep the separate repos consistent?

For the plugin, I don't think there's a significant dependency on the version of ConCat.Category and ConCat.AltCat.
Eventually, it would help making the dependencies on the functions known to the plugin explicit in some place other than its source code.  @sellout has already done that for this plugin, which can work with different underlying sets of type classes. What exactly that means will become more apparent once we're done with our current set of changes.
(And, as I said, we have vested interest in keeping them consistent for the foreseeable future.)

I don't have a picture of how we would keep the separate repos consistent.

@conal Would it be OK to proceed with this? (I see that Github has reordered your question and my answer to it.)

Currently, if a change to the classes or plugin breaks the examples, the person who makes the change will find out immediately and the change won't get committed and merged before the examples all work again. I'm still unclear on the plan for maintaining consistency after splitting.
I'm also unclear on the motivation for splitting.


Update helper-functions.md

replace ' with ;

@ptyx507x - can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Outdated patches

Fails in latest build of pre3, also fails in pre2 release.
Patching does not fail in pre1 release, however.

No idea if other versions of Minecraft fails to patch or not.

This is caused by a decompiler update in pre2 and pre3. I would recommend using pre1 or 0.3 for now.

Update as of 07.11.2022: Decompiling pretty much any version seems to fail now.
May have something to do with mappings.tiny not existing.

All obfuscated versions of Minecraft will fail to decompile. (either due to mappings.tiny not existing or something else)

Use v1.0-pre1 or v0.3.
v1.0pre2+ uses a different decompiler, which breaks the previous patches.

Latest commit includes experimental features and if you attempt to decompile using current data from our web storage it'll fail
conf contents will be changed to use mappings.tiny instead of client.tiny and server.tiny, as well as exceptions.exc instead of separate ones for client and server

Use pre1 as all the patches were made for that version and weren't updated since then. New versions work however. Anything after inf-630 is mostly decompilable in pre3

Closing as this issue is no longer relevant.


docs: Avoid single-character variables in code snippets

It looks like https://spl.solana.com/token#example-view-all-tokens-that-you-own has been minified - e isn't an error, so what is it?

Hi there, we don't use GitHub for questions, so please ask your question in the dedicated Solana Stack Exchange https://solana.stackexchange.com/ or on Stack Overflow.
To quickly answer this, the example uses forEach, which takes in a closure / function to run over each element in the array.  e probably refers to element.  You can see more about forEach at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach

Oh it wasn’t a question I need to find the answer to (sorry if this was vague), it’s a bug in the documentation - examples shouldn’t use single character variables.

I’ll file a PR against the issue tomorrow but wanted to raise the issue first.

Ah, in that case, I'll reopen and change the title

Hello, should I commit it on the docs branch??

@AMMAR-62 this issue is now resolved, but in general, you can make docs changes directly on the master branch, in the docs subdirectory


summary v2 create_file_writer() behavior leads to incorrect resource deletion

This is a tracking bug for the known issue that the V2 summary API's create_file_writer() logic behaves unexpectedly in regards to the underlying resource lifecycle management.  This typically manifests as users seeing errors like tensorflow.python.framework.errors_impl.NotFoundError: Resource localhost/logdir:./log/N10tensorflow22SummaryWriterInterfaceE does not exist. [Op:WriteScalarSummary] name: epoch_loss/
Users can encounter this in 1.x when using tf.contrib.summary.create_file_writer() in eager mode, or in 2.0 as tf.summary.create_file_writer(), or via wrapper APIs like the Keras TensorBoard callback.
Example issues: #24632, #25524
The root cause is that create_file_writer(logdir) returns a SummaryWriter python object backed by a C++ SummaryWriterInterface resource, but the mapping is not 1:1, which violates other assumptions about resource management under eager mode.  In particular, two SummaryWriter instances created for the same logdir by default will both attempt to reference the same named resource.  (Sharing by logdir was intended to be a mechanism for using one eventfile per logdir akin to tf.summary.FileWriterCache in 1.x, which makes TensorBoard better behaved.)
This is a problem when one of the SummaryWriters is deleted (aka loses its last remaining reference), because it will unconditionally attempt to delete the named resource it was created with.  If a resource with that same name is referenced by any other SummaryWriters, those ones will now emit the above NotFoundError when attempting to use them.  Note that this happens even if the deleted SummaryWriter was properly close()'d before the new one was created, because the logdir name sharing means that it new writer's resource has the same name as the old one.
The correct fix is changing the resource names to be unique so that the mapping from SummaryWriter object <-> SummaryWriterInterface resource is 1:1 as designed.  This will likely require other workarounds for the one-eventfile-per-logdir problem.
Minimal repro:
import tempfile
import tensorflow as tf

if tf.__version__.startswith('2.'):
  create_file_writer = tf.summary.create_file_writer
else:
  tf.enable_eager_execution()
  create_file_writer = tf.contrib.summary.create_file_writer

dir = tempfile.mkdtemp('shared-writer-bug')
w = create_file_writer(dir)
w.close()  # succeeds, deletes old resource
# 1) new SummaryWriter created w/ new resource (but same name)
# 2) reassigning w deletes old SummaryWriter along w/ new resource (BUG)
w = create_file_writer(dir)
w.close()  # raises NotFoundError; new resource has been incorrectly deleted

Is there a workaround while the bug is being resolved?

Reopening to track propagating this fix into the TF 2.0 Keras TensorBoard callback, which will fix the user issues reported in the original description above.

Fixed by 6068ebcbb82a19a40fa7cdb36da51b62d2a11a5c.

Closed by 059ea3ba68db861e40d750eba688281011d2735f.

Seeing a similar error in scalars_demo:
$ bazel run tensorboard/plugins/scalar:scalars_demo --test_output=all
INFO: Analyzed target //tensorboard/plugins/scalar:scalars_demo (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //tensorboard/plugins/scalar:scalars_demo up-to-date:
  bazel-bin/tensorboard/plugins/scalar/scalars_demo
INFO: Elapsed time: 0.208s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
2022-08-11 15:59:10.131986: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-08-11 15:59:10.132032: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2022-08-11 15:59:12.548022: E tensorflow/stream_executor/cuda/cuda_driver.cc:271] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2022-08-11 15:59:12.548134: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (themachine.c.googlers.com): /proc/driver/nvidia/version does not exist
Saving output to /tmp/scalars_demo.
--- Running: t0=270,tA=270,kH=0.001
2022-08-11 15:59:12.550387: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
--- Running: t0=270,tA=270,kH=0.005
2022-08-11 15:59:13.761329: W tensorflow/core/framework/op_kernel.cc:1745] OP_REQUIRES failed at summary_kernels.cc:138 : NOT_FOUND: Resource localhost/_AnonymousVar0/N10tensorflow22SummaryWriterInterfaceE does not exist.


sab history tab 12h time instead of 24h

Sabnzbd history within HTPC-Manager shows this:

In sab it's like:

Changed to 24 hours format.

Hmm. The time is now completely different from what sab is showing:

It seems to be fixed.


bugfix in event propagation

Description
Bugfix in event propagation. We had a special case for sending events where we set deploying=set() in order to force the receiving resource to be scheduled, even if it happens to already be running. But this also hid any other resources that are running. In other words, if another dependency of the receiving resource happens to be running, it becomes invisible and the receiving resource will not wait for it. It will then see that resource in the available state and skip.
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[ ] Attached issue to pull request
[ ] Changelog entry
[ ] Type annotations are present
[ ] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
[ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

Merged into branches master in 4e570f0ef5a65a225fabd1ab075bcdd5ec5f0428


Parallelize taget creation in Wrapper

Target creation (which involves template selection) is now done in serial to not overload the memory by duplicating the database.
On HPCs this is becoming the bottleneck since it can take as much time as the modelling and uses only one core.
Also, the database is now much lighter (on the development branch). Can the target creation be parallelized by passing the database to every process (and maybe removing it after the template is selected)? Or can the database be shared along the processes?

Fixed in development on #208


implemented changes for ADOP-817

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/ADOP-817
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes

@praneethhm closing this one, please re-open it tomorrow
we are having issues with preview env pod limits

@rajatkgupta29, This is going to PROD, please review.


❓ Why in run_squad.py using XLNet, CLS token is not set at the end ?

❓ Questions & Help
This line  of the file run_squad.py create the features for the dataset.
No matter which model is used (BERT or XLNet), the function will create the format :

CLS A SEP B SEP

But for XLNet case, we want :

A SEP B SEP CLS

Isn' it wrong ? Did I miss something ?

Humm I think you are right.
The SquAD example looks a bit broken in pytorch-transformers, we will have to review it @LysandreJik.


Missing presentingViewController?.dismissViewControllerAnimated statement in ImageViewer.swift ?

I think a presentingViewController?.dismissViewControllerAnimated statement is missing at line 457 of ImageViewer.swift
Could be?
Anyway, great work!

Why do you think so? We are canceling the swipe there. We do not want to dismiss because the swipe speed (finger movement speed) was too slow to swipe the image away. So that switch case reflects just that.
Thanks for using the library :)

I noticed that if you swipe down very fast the image get stucked down and another tap is required to get the image repositioned, by adding that line instead, swiping down so fast it's the same of swiping up to dismiss the imageView!

Are you looking at version 2.0.6?

This was a bug in an older release.


new extension: network-usage

Description
Display network bandwith from Raycast
Screencast
https://user-images.githubusercontent.com/42527467/181379634-e7ac9299-1c9f-41dc-87f6-07cc2bef0586.mp4

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

MenuBarExtra component need width or minWidth property to prevent changing width. I tried JavaScript's padEnd and padStart functions but they didn't work.

hi @oktaysenkan - thanks for building the extension!
Regarding width or minWidth: there's unfortunately no way to do this right now; I'll add it to the feature requests list :)
In the mean time, you could get away with using NumberFormat and using something like Intl.NumberFormat("en-IN", { maximumSignificantDigits: 4, minimumSignificantDigits: 4 }).format(speed). You'll still see some jumping, as the text is not monospaced, but it should somewhat alleviate it. Alternatively, you could not make the menu bar item dynamic, but only the menu items… 🤔
Now, regarding the extension - I've got a few other remarks:

when it's run, the extension checks whether vnstat is available and, if it's not, runs brew install vnstat. This is not ideal because, first, it assumes the user has brew installed - crashing if that's not the case - and second, because it uses the user's package manager to install software without the user's permission. Generally, extensions' view commands communicate missing dependencies using something like this. Since in this case the command is a menu-bar command, we don't really have a "standard" way of doing this yet. However, you could try adding a different version of the MenuBarExtra, explaining what the problem is, explain why vnstat is needed and how it can be installed
would you mind updating the README so that it explains what the extension does, what vnstat is and why it's necessary?

Thanks! Ping me if something else comes up, is unclear etc! 😺


[Question] when using NNI Frameworkcontroller, is it possible to share one gpu with multiple pods?

Describe the issue:
I use NNI in k8s environment. Therefore, NNI Frameworkcontroller is used in this case, and I have a question.
In local mode of NNI, NNI can utilize one gpu for multiple experiments with useActiveGPU option.
But in case of NNI Framworkcontroller, it gives a task(pod) with available number of gpus and allocated gpu is not shared.
Is there any way to allocate fraction of gpu like gpuNum: 0.5 or share gpu with multiple pods?
Environment:

NNI version:
Training service (local|remote|pai|aml|etc): frameworkcontroller
Client OS:
Server OS (for remote mode only):
Python version:
PyTorch/TensorFlow version:
Is conda/virtualenv/venv used?:
Is running in Docker?:

Configuration:

Experiment config (remember to remove secrets!):
Search space:

Log message:

nnimanager.log:
dispatcher.log:
nnictl stdout and stderr:

How to reproduce it?:

Maybe you can try maxTrialNumberPerGpu. We have not tested it for some time though...

You means that it is possible or not?
Okay I tried it

Hum.. It is not working...
I add maxTrialNumberPerGpu outmost field in yaml and in frameworkcontroller field and trial field..

Could you add this feature for later update?

I found the maxTrialNumberPerGpu in https://github.com/microsoft/nni/blob/master/ts/nni_manager/common/experimentConfig.ts
But actually I run my config with nnictl create -c my_config command, nni gives a unrecognized field error.
I think my command working with https://github.com/microsoft/nni/blob/3064363858d440b1d73b16bd0e0186a181a2facd/nni/experiment/config/frameworkcontroller.py
So how to run my command with codes ts/nni_manager/?

I found the maxTrialNumberPerGpu in https://github.com/microsoft/nni/blob/master/ts/nni_manager/common/experimentConfig.ts
But actually I run my config with nnictl create -c my_config command, nni gives a unrecognized field error.
I think my command working with https://github.com/microsoft/nni/blob/3064363858d440b1d73b16bd0e0186a181a2facd/nni/experiment/config/frameworkcontroller.py
So how to run my command with codes ts/nni_manager/?

@liuzhe-lz - any suggestions?

I found the maxTrialNumberPerGpu in https://github.com/microsoft/nni/blob/master/ts/nni_manager/common/experimentConfig.ts
But actually I run my config with nnictl create -c my_config command, nni gives a unrecognized field error.
I think my command working with https://github.com/microsoft/nni/blob/3064363858d440b1d73b16bd0e0186a181a2facd/nni/experiment/config/frameworkcontroller.py
So how to run my command with codes ts/nni_manager/?

@liuzhe-lz - any suggestions?

This is a missing feature. Unfortunately we currently do not have manpower to implement it.


Update WebDriver docs and privacy whitepaper

Updating both WebDriver docs and privacy whitepaper to include opt-out instructions for diagnostic data collection in Microsoft Edge Driver

Docs Build status updates of commit ac992e0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/privacy-whitepaper/index.md
:white_check_mark:Succeeded
View

microsoft-edge/webdriver-chromium/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit d11819e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/privacy-whitepaper/index.md
:white_check_mark:Succeeded
View

microsoft-edge/webdriver-chromium/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit b9a8bbb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/privacy-whitepaper/index.md
:white_check_mark:Succeeded
View

microsoft-edge/webdriver-chromium/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 5347359:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/privacy-whitepaper/index.md
:white_check_mark:Succeeded
View

microsoft-edge/webdriver-chromium/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


F-Droid can't build

Description
ref: https://gitlab.com/fdroid/fdroiddata/-/jobs/7242329933#L796
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/8eb34dcb491fda8fc3aaa69f5029fd74a3e8f44d

fixed in https://gitlab.com/fdroid/fdroiddata/-/merge_requests/15306


Use concaveman Instead of @turf/concave

Another bottleneck identified in #874 was the use of @turf/concave - we switch to concaveman here which appears to run much quicker (as claimed by their repo).  Another option would be to swtich from @turf/concave to @turf/convex-hull which apparently uses concaveman under the hood (although I kept getting an error about the endpoints matching using @turf/convex-hull).  I am a little confused because the output of @turf/concave appeared to be a convex hull, but in any case the current implementation using concaveman appears to output the same results as before.
From: https://github.com/vitessce/vitessce/pull/874/files#diff-a4ddd032ddbf13ded33147a7fa544f35e1e13654f75a550b8f7be1be48073302R131-R138
Here is a demo merging #887 #888 #889 #890 and #891- using the profiler on the latest release should reveal each of these to be a bottleneck (or using it on each of these branches should reveal the others as a problem as there is one main problem on the current latest release probably).   It probably won't load without these PR's honestly.
Branch with all merged: https://github.com/vitessce/vitessce/tree/ilan-gold/demo_big_sets

I am now confused about the previous output being convex as well  but I think the concavity parameter that concaveman provides may be helpful in the future if we ever want to expose that to the user


Features missing from the monaco editor

Describe your feature request
Some features from the 1.x.x version are missing due to the removal of monaco in favour of codemirror. Out of all missing features, three stand out to me:

no ctrl + / comment command: it used to be easy to comment current line or all lines in selection with this command
no placing of () around selected text: before, you coud select some text then hit shift + ( to place parenthesis around selection. Somehow it's currently working for [ and {.
no multiple cursor support: before you could alt + click to place multiple cursors and type to edit multiple places at once. It's ctrl + click

These were great features that I and a few others miss from the old editor. If possible, it would be nice if they were implemented in the new editor aswell.
Are you willing to contribute this feature?
Yes. Tho I'm not very familiar with codemirror, but I can try to help. Number 2 could be implemented with a custom extension.

Looking at the docs for codemirror I found that togglecomment is already a feature and should be working...

Thank you for reporting these! If you run into more functionality you are missing from the old editor please do let me know again!

All issues fixed!


Update to Go 1.11 in builds

This build error is caused by Go not being on version 1.11. Would it be possible to upgrade to that version? Would it possible to manually re-trigger the build once that's done so I don't have to publish a new version of the crate?
Relevant portion of build log:
read_symbols.go:30:2: cannot find package \"boringssl.googlesource.com/boringssl/util/ar\" in any of:
\t/usr/lib/go-1.7/src/boringssl.googlesource.com/boringssl/util/ar (from $GOROOT)
\t($GOPATH not set)

This Twitter thread has a discussion of feasibility. TLDR: We will need to wait until Go 1.11 is available on Debian.

It looks like mundane is building successfully on https://docs.rs/crate/mundane/0.4.1, closing as wontfix (same rational as #333).


pkg/hash: implement SRIString() function

This returns the SRI string of a given hash.

Oh sorry, I forgot about this. Kicked :-)


ci(release): use custom github token

Use custom GitHub token for release since default token doesn't work to write contents into repo

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[New Feature]: prompt improvement for various best practices

Checked for duplicates

Have you checked for duplicate issue tickets?

Yes
Alternatives considered

Have you considered alternative solutions to your feature request?

Yes - and alternatives don't suffice
Related problems
There is a noticeable performance gap between local language models from Ollama (llama3.1:8b, llama3.1:70b) and the cloud-based larger models from OpenAI and Azure.
Describe the feature request
I propose the implementation of more specific, tailored prompts for each best practice in order to enhance performance. Additionally, reference information that feeds into the model context should be customized for each best practice, ensuring that the model can provide more accurate and context-aware responses.

Steps for improvement

Break down problems into modular components (shorter inputs and outputs)
Sequential organization for outputs (multiple iterations for final outputs)
Extract metadata in target repo (e.g., for GOVERNANCE.md, we don't need entire repo content for input context; we will need only metadata as input)


Problem with async external events: ExtEventSink

The example code /druid/examples/async_event.rs has this problem, if you are using tokio instead of threads. Try logging the color_clone in front of the event_sink.add_idle_callback call and in function supplied to the event_sink.add_idle_callback call.
Some events triggered via add_idle_callback - if they are early enough - are ignored. This happens probably because the launcher wasn't yet launched with launcher.launch(Color::Black).
There are two solutions for this problem:

Create an launcher..spawn(event_handler_func: fn (event_sink: ExtEventSink) method to add external event sinks. The Function is called, when the launcher.launch is called.
Handle  event_sink.add_idle_callback which were added before launcher.launch

My current hacky solution is to wait three seconds before calling the event handler:
let event_sink = launcher.get_external_handle();

task::spawn(async move {
    time::sleep(Duration::from_secs(3)).await; // Hack
    handle_events(event_sink).await;
});

I'm using tokio so task instead of thread is called here.

You could call handle events from the first call to AppDelegate::window_connected.

Thanks, this seems to have worked!


WIP: start implementation of generate recipe functions using rip

cc @nichmor @tdejager and @marcelotrevisani :)
This is just using rip to extract source dist & wheel informations for a given package name. Doesn't write a recipe at all yet, but this could be a good starting point. One more thing we'd have to do is use the conda mapping that pixi & grayskull use to get the conda-forge package name based on the PyPI package name. Do we have a good API for that, @baszalmstra?

Hey, I have been doing something similar. But it is only on my computer. Due to some personal and work obligations I'm a bit slow on  that 😅

The entire "API" can be found here: https://github.com/prefix-dev/pixi/blob/main/src/lock_file/pypi_name_mapping.rs
It's pretty straightforward.

@marcelotrevisani I also just implemented a good chunk of PyPI recipe generation :) Would love your feedback.
E.g. I don't know how to decide wether a package can be noarch...

I started some implementation for evaluating & transforming the marker tree, but I am postponing that for now:
fn rhs_to_string(marker_value: &MarkerValue) -> &str {
    match marker_value {
        MarkerValue::MarkerEnvVersion(_) => "",
        MarkerValue::MarkerEnvString(_) => "",
        MarkerValue::Extra => "",
        MarkerValue::QuotedString(s) => s,
    }
}

fn translate_marker(marker: &MarkerTree, out: &mut String) {
    match marker {
        MarkerTree::Expression(expr) => {
            if expr.l_value == MarkerValue::MarkerEnvVersion(MarkerValueVersion::PythonVersion) {
                out.push_str(&format!("cmp(python, \"{}{}\")", expr.operator, rhs_to_string(&expr.r_value)));
            } else {
                out.push_str(&expr.l_value.to_string());
            }
        }
        MarkerTree::And(exprs) => {
            out.push_str("(");
            for (i, expr) in exprs.iter().enumerate() {
                translate_marker(expr, out);
                if i != exprs.len() - 1 {
                    out.push_str(", ");
                }
            }
            out.push_str(")");
        }
        MarkerTree::Or(exprs) => {
            out.push_str("(");
            for (i, expr) in exprs.iter().enumerate() {
                translate_marker(expr, out);
                if i != exprs.len() - 1 {
                    out.push_str(" || ");
                }
            }
            out.push_str(")");
        }
    }
}


[PDI-15401] - Extend the date format parsing to include milliseconds …

…(CSV & Text File Input)

@kurtwalker @DFieldFL
Please review.

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -fn -f 'pom.xml' -pl 'core' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'core' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'core' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  core/src/main/resources-filtered/org/pentaho/di/core/messages/messages_en_US.properties
  core/src/main/resources/org/pentaho/di/core/messages/messages_de_DE.properties
  core/src/main/resources/org/pentaho/di/core/messages/messages_es_AR.properties
  core/src/main/resources/org/pentaho/di/core/messages/messages_es_ES.properties
  core/src/main/resources/org/pentaho/di/core/messages/messages_fr_FR.properties
  core/src/main/resources/org/pentaho/di/core/messages/messages_ja_JP.properties

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change:  + .38%
Complexity Change:  + .51%
Instruction Change:  + .08%

org.pentaho.di.job.entries.evaluatetablecontent.JobEntryEvalTableContent

Branch Change: -1.01%:small_red_triangle_down:
Complexity Change: -1.06%:small_red_triangle_down:
Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change: -.05%:small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -5.21%:small_red_triangle_down:
Complexity Change: -5.26%:small_red_triangle_down:
Instruction Change: -.28%:small_red_triangle_down:
Line Change: -.74%:small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2.00%:small_red_triangle_down:
Complexity Change: -1.89%:small_red_triangle_down:
Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.trans.steps.insertupdate.InsertUpdateMeta

Instruction Change:  + .05%

org.pentaho.di.trans.steps.ldapinput.LDAPInputMeta

Branch Change:  + 1.61%
Complexity Change:  + .97%
Instruction Change:  + .09%

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change: -2.25%:small_red_triangle_down:
Complexity Change: -2.60%:small_red_triangle_down:

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change: -.06%:small_red_triangle_down:

org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta

Instruction Change: -.08%:small_red_triangle_down:

org.pentaho.di.trans.steps.setvalueconstant.SetValueConstantMeta

Instruction Change:  + .14%

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change:  + .17%

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -.53%:small_red_triangle_down:

org.pentaho.di.trans.steps.googleanalytics.GaInputStepMeta

Instruction Change: -.07%:small_red_triangle_down:

Any tests need to be created/modified for this changed?

Any tests need to be created/modified for this changed?

@DFieldFL @kurtwalker
We have a test for a Const.getDataFromat method(https://github.com/pentaho/pentaho-kettle/blob/28b55c0782886baa8043b77684feb9ab21b520b2/core/src/main/java/org/pentaho/di/core/Const.java#L2880-L2889)
Id checks only the size of date list:
https://github.com/pentaho/pentaho-kettle/blob/5099e34abeee5a604a3715078d8ff75fe3e11269/core/src/test/java/org/pentaho/di/core/ConstTest.java#L2048-L2055

@pentaho/ackbar merely a test.

@pentaho/ackbar one more test.

@pentaho/ackbar not the last one :)

check this out @pentaho/ackbar . How cool is this?


Fix price range bug

Changes

Fix price range bug
Specify what same product means in documentation

Related Issues/ PRs

Fixes #204
Fixes #201

Codecov Report

Merging #223 (ea95bb9) into develop (d15d2eb) will increase coverage by 0.37%.
The diff coverage is 75.47%.

@@              Coverage Diff              @@
##             develop     #223      +/-   ##
=============================================
+ Coverage      58.50%   58.88%   +0.37%
- Complexity       635      654      +19
=============================================
  Files            128      130       +2
  Lines           2492     2527      +35
  Branches         248      254       +6
=============================================
+ Hits            1458     1488      +30
  Misses           926      926
- Partials         108      113       +5

Impacted Files
Coverage Δ

...eedu/ibook/logic/commands/product/FindCommand.java
80.95% <ø> (ø)

...du/ibook/model/product/filters/CategoryFilter.java
50.00% <ø> (ø)

...ibook/model/product/filters/DescriptionFilter.java
50.00% <ø> (ø)

...edu/ibook/model/product/filters/ExpiredFilter.java
37.50% <ø> (-6.95%)
:arrow_down:

...du/ibook/model/product/filters/ExpiringFilter.java
0.00% <0.00%> (ø)

.../seedu/ibook/model/product/filters/NameFilter.java
66.66% <ø> (ø)

.../ibook/model/product/filters/OutOfStockFilter.java
37.50% <ø> (-6.95%)
:arrow_down:

src/main/java/seedu/ibook/model/product/Price.java
70.83% <33.33%> (-1.90%)
:arrow_down:

.../ibook/model/product/filters/PriceRangeFilter.java
58.33% <58.33%> (ø)

...ain/java/seedu/ibook/model/product/PriceRange.java
76.19% <76.19%> (ø)

... and 6 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Fix python decorator syntax.

Python decorators begin a compound statement, so they only appear at the start of a line. So match at the line start to avoid giving decorator colors to matrix multiplication (@) expressions. Source: https://docs.python.org/3/reference/compound_stmts.html#function-definitions

Python decorators go to the end of the line and might not include parentheses (for example @functools.cache). So instead of matching everything until an (, just match as many non-( characters as possible—which both catches the @functools.cache example and allows decorator parameters to fall back to the default color.

Instead of hardcoding brightgreen (which railscast.micro also complains about), color decorators as preproc (otherwise unused by the python syntax files, and arguably the right colorscheme group to be using for syntactic sugars anyway). Note this will change decorator colors—for example from bright green to kinda brown on monokai, and from yellow to more of a light orange on railscast.

Hi @pteromys, are you sure about your fix?
Testing it with https://regex101.com/ doesn't seem right 🤔

Here is my example:
@classmethod
def bar():
    pass

@synchronized(lock)
def foo():
    pass

@button_1.clicked.connect
def eggs():
    pass

My bad I did not check, I thought it was standart golang regex. 😒 Well done!


⚠ Avatar API Endpoint has degraded performance

In 2e9c2a6, Avatar API Endpoint (https://avatar.roblox.com/v1/avatar-rules) experienced degraded performance:

HTTP code: 200
Response time: 1029 ms

Resolved: Avatar API Endpoint performance has improved in adb09d2 after 17 minutes.


Implement AQE again, with union fix.

This build passed: https://circleci.com/workflow-run/2ae6ba73-5f18-4527-aa0a-7a498096e0e8. Flake.


qt Compilation Issue after replacing foreach with foreachRS in rs_frame.hpp

I was having Q_FOREACH macro error and as referenced in may other issues I replaced foreach with foreachRS but now I start getting these errors
error: expected ‘)’ before ‘]’ token
define foreach Q_FOREACH
My qt version is 5.13.1 and I installed librealsense from source. Please suggest any solution

If anyone is still looking for a solution what I did was to disable QT's foreach loop to allow compilation without errors. You can place #undef foreach and include realsense headers before QTs to allow error free compilation.

@zainmehdi Thanks for the sharing! And you can also refer to PR#4987 which fix the issue: https://github.com/IntelRealSense/librealsense/pull/4987


Creating source frames

Required Info

Camera Model
D400

Firmware Version

Operating System & Version
Ubuntu 16.04

Kernel Version (Linux Only)

SDK Version
2613547178a35f...

There doesn't seem to be a way to make frames myself; I can only grab them from the camera. It'd be nice if there was a way to deep copy and/or create frames from scratch so I can fill them in and use the given API for alignment and pointcloud generation. For instance, I'm interested in processing the RGB image to make a mask image, then align that to the depth frame to create a point cloud. The pointcloud's points would then be labeled by my mask image, and I can do further work from there.
It'd also be nice to be able to create a frameset from two frames to use in the align class api (for reasons stated previously).
Finally, "proccess" is spelled incorrectly various times in rs_processing.hpp (the file name is spelled correctly).

Hi @jjoachim
The requirement is completely reasonable, and we are looking into ways to enable this.
At the moment the frame sub-system is trying to:

Provide thread-safe API for the user to manage the lifetime of individual frames
Ensure fast and (more importantly) deterministic frame allocations when streaming

To accomplish both we have (a somewhat over-complicated) buffer-pool mechanism. That's why there is no API to create one single frame at the moment.
One way to deal with this is to define a custom processing_block:
processing_block pb([&](rs2::frame f, const rs2::frame_source& source)
{
    // source can be used to allocate new frames and send them out
});
frame_queue q;
pb.start(q); // Results from the block will be enqueued into q
pb.invoke(input_frame); // Invoke the lambda above
frame output_frame = q.wait_for_frame(); // Fetch the result

In this case, new frames will be allocated from the buffer-pool that exists inside the processing_block object.
Unfortunately, this API is not well documented yet and isn't very user-friendly either.
In addition, I am currently working on a "software only" device that can be used to generate frames from arbitrary data. It is still a work-in-progress, but will be most likely merged next week. The plan is to use such device to better unit-test point-cloud, sync and align methods, but one could also use it to inject data from an external source. Keeping your use case in mind, I will try to add a decent code-sample alongside this change.
Regarding spelling - the team is diverse and contains non-native English speakers (myself included). Fortunately, none of the misspellings are on the binary API boundary (C API), so we will fix it ASAP.
Thanks for pointing this out.

Is there a similar processing block way of creating a frameset from a depth and rgb frame (by copy or ref is fine as long as I know which it is)? I'm digging through the code and found rs2_allocate_composite_frame(...), but there's a lot of indirection I'm having trouble following.

Yes, I found an example here: spatial-filter.cpp#85


Added scipy.special.cosm1 to cupyx

Made a small change to add scipy.special.cosm1 to cupyx.
Would appreciate if you can take a look @leofang @emcastillo @kmaehashi
#6324

Whoops, forgot to flake8 lint, added it now.

/test mini

Thanks, @andoorve!


Fix image and clarify export file

Add some clarity to which file is created when exporting and fixed the image link on that page.

Nice, thanks @johnharris85!


Dismiss Ring Button

How to dismiss this ring button if i click outside the view of ring button ?

Usually it's used as a view in layout, not like dialog, so I don't add the feature you mentioned. Maybe you can try it yourself. :blush:

I tried but failed. Can you do which act like a dialog and there is the textview( on key up and on key down ) where user can change text random according to their perspective.


inline the last usage of TabsMixin

🎉

:tada: This PR is included in version 2.154.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


frames removeAll() for example

In the example, self.frames.removeAll() is called for the action changeModeCapture in ViewController.swift. If you take a gif and go to the preview, but then try and go back to the view controller to take another gif, the frames are not removed.

I added the following to capturePhoto() in the ViewController:
self.presentViewController(controller, animated: true, completion: nil)
self.frames.removeAll()
self.labelModeCapture.text = "(5 - self.frames.count)"
That clears out the count and resets the frames.
https://gist.github.com/namsoila/5440dcd8f699f36dbd3a843015d35ac9

ok thanks for reporting this issue.


REQUESTING A HELP

Type: Feature Request
I am unable to enable the interface overview options , such as (extension menu, debug menu and 2 more options) please help me sort this problem!!!
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No

/question

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.
Happy Coding!


Allow more flexibility with VolumesPath

Presently, all exports are created/managed as /ifs/volumes/. In order to provide users of REX-Ray and libStorage with more flexibility, /ifs/ should be allowed.

Handled with #19


Installation of Helm plugin failed

While installing plugin on windows 11
It says
Error: exec: "sh": executable file not found in %PATH%

@AreebAbdulGhani unfortunately, helm doesn't support installing plugins on windows (yet):
https://github.com/helm/helm/issues/7117
We will update the readme to conation this info.

No worries, Thanks for letting me know.
On Sat, 26 Mar 2022 at 12:18, Eyar Zilberman @.***>
wrote:

@AreebAbdulGhani https://github.com/AreebAbdulGhani unfortunately, helm
doesn't support installing plugins on windows (yet):
helm/helm#7117 https://github.com/helm/helm/issues/7117
We will update the readme to conation this info.
—
Reply to this email directly, view it on GitHub
https://github.com/datreeio/helm-datree/issues/29#issuecomment-1079623160,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWCJTXP3GYSDXNYQCQ6QV6LVB2XMLANCNFSM5RWBIIFA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Remove the experimental_signatures field. [phab:D2047]

Created by fromberger at 2017-11-21 16:40:27:
Per #1320, this field should always be enabled now. Apart from marking the field
tag as reserved and removing references in the code, I had fixed two tests that
were implicitly setting it false.

shahms accepted this revision at 2017-11-21 16:41:20

fromberger closed via commit 50184f20b3cbea111c1acfbaaf26630c8a7a15c3 at 2017-11-21 16:43:02


Cherry picked imagenet updates and implemented fix for NCCL backend

torch.FloatTensor will default to CPU, this caused an issue with the NCCL backend which supports DistributedDataParallel primitives on GPU only, this resulted in a runtime error "Tensors must be CUDA and dense when using NCCL".
Simple condition implemented which checks if torch.cuda.is_available() and if so instead uses torch.cuda.FloatTensor to resolve the runtime error.

Fix for NCCL backend in https://github.com/ROCmSoftwarePlatform/examples/pull/1/commits/5115cde0490759c7069ef782f22b450e7bf0e2b7