Where to get tracer output?

I'm submitting a ...
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ x] question about how to use this project

Summary

Hi.
In your Open Telemetry example code you show some setup and then the output, but you don't show where the trace below is being acquired from. How do you access that?
I tried some example code with cot.getTraces() but I only get the actual answer trace, not the statistical data as below from the ai call.
But I don't see any getTraces methods in the ai object or ai.tracer object
{
"traceId": "ddc7405e9848c8c884e53b823e120845",
"name": "Chat Request",
"id": "d376daad21da7a3c",
"kind": "SERVER",
"timestamp":<PHONE_NUMBER>025000,
"duration": 14190456.542,
"attributes": {
"gen_ai.system": "Ollama",
"gen_ai.request.model": "nous-hermes2",
"gen_ai.request.max_tokens": 500,
"gen_ai.request.temperature": 0.1,
"gen_ai.request.top_p": 0.9,
"gen_ai.request.frequency_penalty": 0.5,
"gen_ai.request.llm_is_streaming": false,
"http.request.method": "POST",
"url.full": "http://localhost:11434/v1/chat/completions",
"gen_ai.usage.completion_tokens": 160,
"gen_ai.usage.prompt_tokens": 290
}
}

Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

In the example code in the README you'll see a tracing provider creates and passes a tracer class options: { tracer } this tracer handles all the collection etc it's implemented by the tracer you can get tracers for google cloud, aws, other cloud or llm observability products, etc.
import { trace } from '@opentelemetry/api';
import {
  BasicTracerProvider,
  ConsoleSpanExporter,
  SimpleSpanProcessor
} from '@opentelemetry/sdk-trace-base';

const provider = new BasicTracerProvider();
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
trace.setGlobalTracerProvider(provider);

const tracer = trace.getTracer('test');

const ai = new AxAI({
  name: 'ollama',
  config: { model: 'nous-hermes2' },
  options: { tracer }
});

const gen = new AxChainOfThought(
  ai,
  `text -> shortSummary "summarize in 5 to 10 words"`
);

const res = await gen.forward({ text });


Interactive online tutorial fails to load

I tried to load the interactive online tutorial in Chrome and Firefox on macOS, - both were failed to load, the windows were overlapped and the button"Start Scenario" had no effect:

There were no errors in the browser's console either. What is wrong with that?

I can only reproduce this error when disabling JavaScript in my browser, which is what I suspect to be the problem here.
@belgoros Do you have JavaScript disabled?

I just tested it in Safari on MacOS and it's working fine for me, but if JavaScript is disabled, I'm sure it won't work. That site is highly dynamic - the entire tutorial is an interactive client-side experience backed by a remote VM.

@picatz Nope, I never disable JS on my dev machine as I'm doing a lot of JS dev. Weird enough, - coming this morning and retrying it again raised no more the issue and I could see the login page. After logging in with one of the provided access API, I could access Katacode page. I'll close the issue. Thank you, guys, for your rapid feedback.


[Bug] failed to connect

The Android app was working for me. I downloaded the actual apk and replaced the older version on my phone with it (I deleted app data to be sure). In contrast to the old version this one doesn't automatically download the llm. If I try to add a model I get the error "add model failed, unable to connect to hugingface.co/18.154..."
The url Im trying is https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0 because I guess that's the one the old version used.
Because it says that it's unable to connect I assume that it's a bug. I have internet access otherwise I couldn't write this bug report.

Thanks for reporting! Does this happen when downloading a builtin model, or manually adding the model by url?
And could you please provide the url you typed in?

I don't think that there is a build in model, at the top there is the word "model list" but nothing is listed. The Url I used is in my first post:
https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0
I might be doing something wrong since this step was automatic in the older version of the app.

oh, I think it will work if you change the url to
https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0/blob/main/
which is the prefix of the
https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0/blob/main/mlc-chat-config.json
we will add some information in the app for this.

I tried it with your version and I still have the same error.

oh sorry, it should be
https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0/resolve/main/
I mistakenly paste a wrong one.

That one also doesn't work I had found it in the source of the iOS app and tried it. Just to be sure I copy pasted it from your comment but same error as before.

By the way, why is the model list empty in your app, since the model deletion is still in progress.
Have you ever checked the networking permission is allowed for this app?

Yeah network is allowed.  I mean the app doesn't come with a model inside the apk does it? The apk is just 33MB. Yes the old version of the app had downloaded a model automatically but 1. The new version didn't list that model and 2. I cleared app data at some point  so even if the old model was there it should be gone, it's like a fresh install of the app.

It is wierd though, we do provide a builtin config
https://github.com/mlc-ai/mlc-llm/blob/main/android/MLCChat/app/src/main/assets/app-config.json
so there should be 2 models in model list, but not starting download files at all, execpt the model-config.json.
It may be possible that we failed to download those 2 model-config.json for 2 builtin models as well.
Can you visit the huggingface on your phone, without any VPN?

https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0

https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0/resolve/main/

Also isn't it weird that there is an ip address inside the error message or is that normal?

the ip address is generated by system, and we directly print it out
https://github.com/mlc-ai/mlc-llm/blob/main/android/MLCChat/app/src/main/java/ai/mlc/mlcchat/AppViewModel.kt#L150
it might fail at this part
https://github.com/mlc-ai/mlc-llm/blob/main/android/MLCChat/app/src/main/java/ai/mlc/mlcchat/AppViewModel.kt#L114-L120
so that is expected that your model list is empty, becaust it failed to download all model-config.json from huggingface.
what is your phone model and system version? It would be great if you provide a screenshot in the system setting menu.
we will collect the information and try to reproduce if possible. And then get back to you if we figure out what happened here.

Problem solved. Since you said that there should be 2 models, I uninstalled and installed the app again. Now I see both models, and to test it I used https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0/resolve/main/ and that got also added. Seems like the problem was that I updated from the older version to the newer, even deleting app data couldn't help in this specific case.
I guess the q4 model is the more powerful one, right?

Great! Yes, the q4 should be more powerful, but may require more resource and time to run it.


Limit Tx/Rx task pairs to 1 for MQTT_Agent_MultiTaskTest on Mediatek

Description
The default number of Tx/Rx task pairs for MQTT_Agent_MultiTaskTest is 2
which means that we try to establish two simultaneous connections to the
AWS IoT broker. This results in test failure as we do not have enough
RAM to do two simultaneous TLS handshakes. This change limits the number
of Tx/Rx task pairs to 1 for Mediatek.
This change also sets configUSE_MALLOC_FAILED_HOOK to 1 which makes memory
failure debugging a lot easier.
Checklist:

[x] I have tested my changes. No regression in existing tests.
[ ] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run checks


Feature Request: Inverse check for content not found in file

Is this a request for help?: No

Is this a BUG REPORT or a FEATURE REQUEST? (choose one): FEATURE REQUEST
Add the ability to check whether a file contains a specific regex and warn if a match is not found.  An example would be looking for MaxKeepAliveRequests in an Apache Server httpd.conf file and flagging if the line is not found.
Anything else we need to know: This would be to comply with specific security guidelines that require additional configuration not in the defaults provided.

Planned solution (RFC):
Use the existing file retrieval mechanism in the analyzers which stores specific files in the analysis for processing of their raw content in policy evaluation. One example of this is the /etc/passwd checks in the "passwd_file" gate. Then provide a new gate+triggers to query regexes on those specific retrieved files. This allows for future application-specific handling of certain files. Currently the configuration is set at install time, but eventually that will be runtime-configurable as well (which files to retrieve). However, those changes (runtime config) are outside the scope of this work.
This mitigates the performance penalty of using the content/secret search which checks every file for a regex. As that list of regexes grows the performance hit gets larger.
existing section of default analyzer_config.yaml:
retrieve_files:
  file_list:
    - '/etc/passwd'
#    - '/etc/services'
#    - '/etc/sudoers'

update it to:
retrieve_files:
  max_allowed_size: 100KB
  file_list:
    - '/etc/passwd'
   # HTTPD configs
   - '/etc/apache2/httpd.conf'
   - '/etc/apache2/apache2.conf'
   - '/etc/httpd/httpd.conf'
   - '/etc/httpd/conf/httpd.conf'
  # NGINX configs
   - '/etc/nginx/nginx.conf'

The max_allowed_size is a change to ensure a malicious file that is very large cannot be used to cause resource issues in anchore and that value should easily cover most valid configs or allow the user to specify a range that has acceptable risk.
New gate: "saved_file_checks"
Trigger: "regex"
Parameters:

file_path: e.g "/etc/httpd/httpd.conf"
regex: e.g. ".MaxKeepAliveRequests."
check_type: "match", "not_matched"

Given the scope of the change mentioned in the previous comment, I've opened a new issue to track that gate/feature in the 0.6.0 timeline. This specific request can be addressed with a smaller-scoped update to the existing file gate by adding a non-match trigger which is smaller in scope and has independent value so it can co-exist with the retrieved-files gate work.

there is now a parameter in the secret_search gate called 'match_type' which can set to 'found' (or omitted, which is equivalent to setting to 'found') or 'notfound'.  The latter implements the functionality described in this FR (i.e. trigger if a specified regexp that is defined in the 'secret_search' section of analyzer_confg.yaml is NOT found).


PWA icon options are not clearly explained in docs

What problem does this feature solve?
Per the conversation in issues #4069 and my own experience, the current documentation on icons for the PWA plugin does not clearly explain the difference between pwa.iconPaths and pwa.manifestOptions.icons.  In fact pwa.manifestOptions.icons isn't actually mentioned in the docs.
What does the proposed API look like?
Simply adding a note to the pwa.iconPaths section explaining what these icon paths do and adding pwa.manifestOptions.icons to the pwa.manifestOptions section should solve most peoples confusion.

I opened PR #5408 that I think solves this problem. I'm open to feedback if it isn't good enough or clear enough


(FACT-1016) Prevent unbounded growth of fact resolutions.

A bug in Puppet exposed an unbounded memory growth if the same custom
fact file is repeatedly loaded.  The reason is that every execution
results in a new resolution being added to the fact.  While this itself
is desired behavior, we should limit the number of resolutions to some
arbitrary size so that memory doesn't grow unbounded.

CLA signed by all contributors.

@MikaelSmith Updated.


Is there any reason for callout to include the origin of the coordinates?

Question:
Is there any reason for callout to include the origin of the coordinates?
When I try to draw the smallest rectangle surrounding a point cloud, a rectangle containing the origin is always drawn when the Plot contains a callout.
Even if I do not add the rectangle, if I add a Callout, the range of the horizontal and vertical axes drawn when the Plot is displayed will also include the origin.
ScottPlot Version:
ScottPlot.WinForms 5.0.40
Code Sample:
 FormsPlot plotView = new FormsPlot();
 var rect = plotView.Plot.Add.Rectangle(1, 2, 1, 2);//this rectangle does not contain the origin of coordinate.
 var callout = plotView.Plot.Add.Callout("callout", new Coordinates(10, 10), new Coordinates(15, 15));

  AxisLimits limit = new AxisLimits(plotView.Plot.GetPlottables());
  var limitRect = plotView.Plot.Add.Rectangle(limit.Rect);
  limitRect.FillColor = ScottPlot.Colors.Transparent;
  limitRect.LineWidth = 10;
  limitRect.LineColor = ScottPlot.Colors.Red;

This is the result of the code above.

Hi @Koji-Morimoto, thanks for reporting this! I think it has been fixed in #4463 as described in #4358 and should work better when I publish the next version on NuGet this weekend 👍


Add tests to verify the nil checks in formattedValue

Fixes PLAT-2672

We don't have automatic tests in this library setup, so here are the test results:
=== RUN   TestFormattedValue2
--- PASS: TestFormattedValue2 (0.00s)
=== RUN   TestFormattedValueNilXfs
--- PASS: TestFormattedValueNilXfs (0.00s)
=== RUN   TestFormattedValueNilNumFmts
--- PASS: TestFormattedValueNilNumFmts (0.00s)
=== RUN   TestFormattedValueNilWorkbook
--- PASS: TestFormattedValueNilWorkbook (0.00s)
=== RUN   TestFormattedValueNilWorkbookPr
--- PASS: TestFormattedValueNilWorkbookPr (0.00s)
PASS
ok  	github.com/xuri/excelize/v2	0.600s


New members block

As a user,
I want to see new member companies/startups on the Main page,
so that I can review them if I'm interested.
Acceptance Criteria

When the user opens the Main page, then there is a New members block.
The New members block should include 6 cards for Companies/Startups with the latest registration date.
The following information should be displayed in each card:

Картинка для банера

Логотип

Вид діяльності

Назва компанії / стартапу

Регіон(и)

Категорії (as tags)

The user should be able to add/remove the company/startup to/from the Saved list.

Design

what if the new user will not have quality image etc.


Remove Unused Imports

Components have a tendency to evolve over time, and we often end up with imports for elements that are no longer used in the component.  It would be great if there was a way to strip unused imports from a component file.  You'll find a conversation with a potential solution here: https://plus.google.com/+MarkFortner/posts/QhjCEEfqEaB

I've been wondering the same thing and often run into this issue when developing. You add/remove components and it's hard to know what's what.
I'm not sure vulcanize (build time) is the right tool for the job though. There are cases where you don't create element right away (later declare them or use document.createElement). The imports are still needed for these scenarios. So a runtime extension/tool might be more useful?
I created a bookmarklet to catch missing html imports: https://gist.github.com/ebidel/cea24a0c4fdcda8f8af2#file-unregistered_custom_elements-bookmarklet-js
It's very handy for knowing why an element isn't work...b/c you've missed loading it import! I wonder if the opposite would be useful? That is, a bookmarklet that reports what elements polymer has registered but could not be found on the page?

At the moment I'm going through each of my components looking for unused imports.  And it's a rather painstaking task to do.  We're trying to cut down on initial load time.
Early on in the project we ran into the problem you're alluding to, but now missing imports are the first thing we check whenever things go awry with an element.
Either way as a runtime tool in Chrome Dev Tools, or a vulcanize plugin, it would be useful to have these tools.

Maybe this is a better job for polylint, our new linting tool. @garlicnation: wdyt?

I created a bookmarklet that kind of does this. It's not perfect but using it just now, I discovered I was loading paper-card.html when I didn't need it!
https://gist.github.com/ebidel/9249cf3d1504fb119356

@phidias51 LMK if that bookmarklet is useful. @justinfagnani might also take a feature request in the extension we're working on :) https://github.com/PolymerLabs/polydev/issues

I think polylint is there right tool. The extension should be for runtime tooling, where the hydrolysis based tools are for static tooling.
Polylint might need a way to suppress a warning if an element is only created dynamically though.

I read this and immediately thought of Polylint, vote to close.

Closing for https://github.com/PolymerLabs/polylint/issues/37


ESP32S3 esp_http_client_open does not timeout (IDFGH-13279)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.2.2
Espressif SoC revision.
ESP32-S3
Operating System used.
macOS
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Custom board
Power Supply used.
Battery
What is the expected behavior?
I expect the esp_http_client_open call to timeout within the timeout_ms milliseconds.
What is the actual behavior?
It does not timeout, so the watchdog is triggered.
Steps to reproduce.
This is happening due to unstable power supply on my board which is causing  HTTP transmission errors. However, it should still timeout I believe within the timeout_ms time.
set timeout_ms = 5000
is_async = false
(Watchdog timeout is set to 10sec)
Run the code and attempt to open an https connection.
Debug Logs.
Stacktrace from GDB when the watchdog timeout fires:

#0  0x400559e0 in ?? ()
#1  0x40384a76 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:564
#2  vPortExitCritical (mux=0x3fcce92c) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3  0x4038432d in xQueueReceive (xQueue=0x3fcce8d8, pvBuffer=0x3fcb11e8 <processingTaskStack+22808>, xTicksToWait=<optimized out>) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x42064f5c in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3fcb11e8 <processingTaskStack+22808>, timeout=5000) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/lwip/port/freertos/sys_arch.c:317
#5  0x420661ca in netconn_recv_data (conn=0x3c15605c, new_buf=0x3fcb1298 <processingTaskStack+22984>, apiflags=8 '\b') at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/lwip/lwip/src/api/api_lib.c:615
#6  0x42066301 in netconn_recv_data_tcp (conn=0x3c15605c, new_buf=0x3fcb1298 <processingTaskStack+22984>, apiflags=8 '\b') at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/lwip/lwip/src/api/api_lib.c:727
#7  0x420663ac in netconn_recv_tcp_pbuf_flags (conn=0x3c15605c, new_buf=0x3fcb1298 <processingTaskStack+22984>, apiflags=8 '\b') at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/lwip/lwip/src/api/api_lib.c:808
#8  0x420688d7 in lwip_recv_tcp (sock=0x3c138c4c, mem=0x3c1586c4, len=<optimized out>, flags=0) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/lwip/lwip/src/api/sockets.c:951
#9  0x42069c5b in lwip_recvfrom (s=54, mem=0x3c1586c4, len=5423, flags=0, from=0x0, fromlen=0x0) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/lwip/lwip/src/api/sockets.c:1218
#10 0x42069d25 in lwip_read (s=54, mem=0x3c1586c4, len=5423) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/lwip/lwip/src/api/sockets.c:1260
#11 0x420063e0 in esp_vfs_read (r=0x3fcb1938 <processingTaskBuffer+104>, fd=<optimized out>, dst=0x3c1586c4, size=5423) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/vfs/vfs.c:508
#12 0x420cc311 in read (fd=54, buf=0x3c1586c4, cnt=5423) at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin21.1/xtensa-esp-elf/src/newlib/newlib/libc/syscalls/sysread.c:11
#13 0x4207cebd in mbedtls_net_recv (ctx=0x3fcf103c, buf=0x3c1586c4 "", len=5423) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/port/net_sockets.c:351
#14 0x42073dfd in mbedtls_ssl_fetch_input (ssl=0x3fcf0cc4, nb_want=11003) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/mbedtls/library/ssl_msg.c:2310
#15 0x42074b43 in ssl_get_next_record (ssl=0x3fcf0cc4) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/mbedtls/library/ssl_msg.c:4937
#16 0x42074c45 in mbedtls_ssl_read_record (ssl=0x3fcf0cc4, update_hs_digest=1) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/mbedtls/library/ssl_msg.c:4214
#17 0x4207743b in mbedtls_ssl_parse_certificate (ssl=0x3fcf0cc4) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/mbedtls/library/ssl_tls.c:8203
#18 0x4207a276 in mbedtls_ssl_handshake_client_step (ssl=0x3fcf0cc4) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/mbedtls/library/ssl_tls12_client.c:3523
#19 0x42076461 in mbedtls_ssl_handshake_step (ssl=0x3fcf0cc4) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/mbedtls/library/ssl_tls.c:4546
#20 0x420764ee in mbedtls_ssl_handshake (ssl=0x3fcf0cc4) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/mbedtls/mbedtls/library/ssl_tls.c:4610
#21 0x4206ee59 in esp_mbedtls_handshake (tls=0x3fcf0cc4, cfg=0x3fcf0704) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/esp-tls/esp_tls_mbedtls.c:218
#22 0x4206e44c in esp_tls_handshake (tls=0x3fcf0cc4, cfg=0x3fcf0704) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/esp-tls/esp_tls.c:118
#23 0x4206e6cd in esp_tls_low_level_conn (hostname=<optimized out>, hostlen=39, port=443, cfg=0x3fcf0704, tls=0x3fcf0cc4) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/esp-tls/esp_tls.c:497
#24 0x4206e81c in esp_tls_conn_new_sync (hostname=0x3fcf0794 "us-central1-smartaed.cloudfunctions.net", hostlen=39, port=443, cfg=0x3fcf0704, tls=0x3fcf0cc4) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/esp-tls/esp_tls.c:528
#25 0x420c0cff in ssl_connect (t=0x3fcf0698, host=0x3fcf0794 "us-central1-smartaed.cloudfunctions.net", port=443, timeout_ms=5000) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/tcp_transport/transport_ssl.c:111
#26 0x420dfee4 in esp_transport_connect (t=0x3fcf0698, host=0x3fcf0794 "us-central1-smartaed.cloudfunctions.net", port=443, timeout_ms=5000) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/tcp_transport/transport.c:123
#27 0x420702e6 in esp_http_client_connect (client=<optimized out>) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/esp_http_client/esp_http_client.c:1402
#28 0x42070f66 in esp_http_client_open (client=<optimized out>, write_len=888) at /Users/MYHOMEDIR/esp/v5.2.2/esp-idf/components/esp_http_client/esp_http_client.c:1559
#29 0x4200ad13 in OpenClientConnection () at MY CODE

More Information.
No response

Hello @danfleck
Could you please share a sample application with sdkconfig file that can be used to reproduce this issue.
Thanks!

Here is a modified example program that shows the problem. The timeouts are very short because on working hardware, the connection doesn't really timeout.
The watchdog timeout is 500ms and the http_open timeout is 300ms. When I run this on an ESP dev board the watchdog timeout runs, not the http_open timeout. I'm not sure if this is representative of the exact problem I am seeing because on my board the timeouts are 10s and 5s.
(Make sure to not init the task watchdog on startup in sdkconfig.)
esp_http_client_example.c.txt

SDKCONFIG
sdkconfig.txt

Hello @danfleck,
Any specific reason you have used esp_task_wdt.h APIs' or just to create reproducible case?
Also, I wanted to point out that the timeout you set in esp_http_client_config_t doesn't directly apply to the esp_http_client_open() API. Instead, it applies individually to various socket-related calls made internally. As a result, esp_http_client_open() might take longer than the watchdog timeout you've set in your code.

Is there a way to set the total timeout for esp_http_client_open ? Or is there a way to know the total timeouts for the entire call?

Maybe @david-cermak @ESP-YJM can help to answer this question?

@danfleck It seems the TLS session cost much time and your wantchdog timeout is too small that make task watchdog trigger. If your http is no TLS, the timeout may take effect, because it only need do TCP three-handshake, and the time out can be calucated in esp_tls_conn_new_sync. But if your http is TLS, the function esp_tls_low_level_conn will not return until your TLS is finished. So suggest your watchdog time to default time(If i remember right, it is 5 seconds).

Thanks for your comments. On my real board the watchdog timeout is 10seconds and the HTTP timeout is 5 seconds. The problem is that sometimes the watchdog timeout fires before the HTTP timeout. It is using a TLS connection. I just want to set the HTTP timeout so it happens before the watchdog timeout, but I don't know the right value to make sure that happens. Thanks for your help!

The HTTP timeout contains the  TCP three-way handshake，TLS handshake(If HTTPS) and HTTP request, so it can't only set for HTTP request. But if your watchdog timeout has already set to 10seconds and still trigger, it may some problems.  Do you enable hardware AES , MPI and SHA in mbedlts components?

Yes, I did fix the overall problem, so this doesn’t happen anymore on my board. However, I still think that if there is an HTTP problem, I want the HTTP timeout to happen and not the watchdog timeout. That is what I want to solve. What setting to use for the HTTP timeout to make sure if there is an TLS or HTTP problem, the HTTP timeout happens, not the watchdog.
It sounds like the timeout setting for http is not what I want so I’ll need to make my own using a Timer.
Thanks for your help!
From: ESP-YJM @.>
Date: Sunday, November 10, 2024 at 10:56 PM
To: espressif/esp-idf @.>
Cc: Dan F. @.>, Mention @.>
Subject: Re: [espressif/esp-idf] ESP32S3 esp_http_client_open does not timeout (IDFGH-13279) (Issue #14209)
The HTTP timeout contains the TCP three-way handshake，TLS handshake(If HTTPS) and HTTP request, so it can't only set for HTTP request. But if your watchdog timeout has already set to 10seconds and still trigger, it may some problems. Do you enable hardware AES , MPI and SHA in mbedlts components?
—
Reply to this email directly, view it on GitHubhttps://github.com/espressif/esp-idf/issues/14209#issuecomment-2467181693, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABEC2NWNC5F3D4FTZII7P5D2AATHBAVCNFSM6AAAAABLBJILOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXGE4DCNRZGM.
You are receiving this because you were mentioned.Message ID: @.***>

Hello @danfleck ,
I am closing this issue for now. However, please feel free to reopen it if needed.


Formal v12 compatibility

Just a quick request for formal v12 compatibility. I'm not on v12 yet so I don't know if it works without issue on v12.

I modified Data/modules/disable-mouse-wheel-sliders/module.json in my instance and changed  "maximum": "12"
it seems to work fine.

Sorry for the late reply. MY computer is in repair right now, but I should get it back next week. I’ll have a V12 update then.

Update 2.1.0 is ready for V12. Thank you for your patience.


Can't not import PSScheduledJob module

import this module "Import-Module PSScheduledJob" & get this error message
i don't know how to fix this error
Error message: Import-Module: Module 'PSScheduledJob' is blocked from loading using Windows PowerShell compatibility feature by a 'WindowsPowerShellCompatibilityModuleDenyList' setting in PowerShell configuration file.

PSScheduledJob module that is not PS-Core compatible and was explicitly blocked.

But i need use ScheduledJob  and this error message told me run "Import-Module PSScheduledJob"
ErrorMessage: Get-ScheduledJob: The 'Get-ScheduledJob' command was found in the module 'PSScheduledJob', but the module could not be loaded. For more information, run 'Import-Module PSScheduledJob'.

Today we can use ScheduledJob only with Windows PowerShell.

but  before can  run Scheduled in  powershell vscode  , so now we can't use this module in the vs code ?

This is another vm , i can't start powershell have any idea?

The cmdlets in that module do not work with Powershell 7 either natively or via the Win32compat mechanism. Your only option is to run them with Windows PowerShell.

You could ask Windows team using Windows 10 feedback tool or UserVoice site.


Add webpack support

Add main in package.json
Provide window instead of this in init closure

Thanks!  Let me do some testing and then I will create a new release.

Thank you for this. 🏆


Is there a standard value for namespace and service account name

[Enter feedback here]
Are there any predefined values for the below variables while creating the service account or can they be any service account name and namespace.
name: ${SERVICE_ACCOUNT_NAME}
namespace: ${SERVICE_ACCOUNT_NAMESPACE}
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 5264440a-1767-c0d7-6182-e21ab784c5c3
Version Independent ID: 19cfca50-e7d1-4306-e5aa-905fe8e72d89
Content: Modernize your Azure Kubernetes Service (AKS) application to use workload identity (preview) - Azure Kubernetes Service
Content Source: articles/aks/workload-identity-migrate-from-pod-identity.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@VenkataRKC
Thanks for your feedback! We will investigate and update as appropriate.


JSON serialize issue with opening new orders

In your v1 API for opening a new order the Bitfinex expects the order amount variable to be a decimal string. However the payload system isn't able to serialize the Decimal to JSON. Please have a look.

Hi! Do you mean to accept Decimal Type from https://docs.python.org/3/library/decimal.html ?

I did use the Decimal type and it is what gives the JSON parsing error. Just try the new order example listed on your github page to see the problem.


heatmap_basins_attractors doesn't work for Henon map

The following codes:
using CairoMakie
using Attractors, StaticArrays
function henon_rule(u, p, n)
    x, y = u
    a, b = p
    xn = 1.0 - a*x^2 + y
    yn = b*x
    return SVector(xn, yn)
end
u0 = [0.2, 0.3];
p0 = [1.2, 0.3];
henon = DeterministicIteratedMap(henon_rule, u0, p0);
xg = range(-2.5, 2.5; length = 1500)
yg = range(-2.5, 2.5; length = 1500)
grid=(xg,yg)
mapper = AttractorsViaRecurrences(henon, grid; sparse = false)
basins, attractors = basins_of_attraction(mapper; show_progress = false)
heatmap_basins_attractors(grid, basins, attractors)

give a picture like this:

Just the attractor, no basins. I am using Julia 1.9.

There is a bug with the color scheme. I will see if there is a quick fix.
For now you can use: heatmap(xg, yg, basins) and scatter plot for the attractors.


Can't install

zig fetch --save=curl https://github.com/jiacai2050/zig-curl/archive/$\{COMMIT\}.tar.gz
error: bad HTTP response code: '404 Not Found'

Is that library still maintaining?

The README says

Replace ${COMMIT} with a real one, then in your build.zig, import the module like this:


RequestError Error: getaddrinfo ENOTFOUND

I got this error. I am currently using the trial accounts.
[safari-downloader] starting application...
[safari-downloader] the user "****@********" was successfully authorized...
[safari-downloader] downloaded meta files...
[safari-downloader] downloaded table of content files...
[safari-downloader] RequestError: Error: getaddrinfo ENOTFOUND www.safaribooksonline.com www.safaribooksonline.com:443

I will look into the issue in the following weeks I guess. Got some time off from university finally.
Are you always getting this error?


#9400 remove stellate footer

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[ ] Feature
[x] Refactoring

Needs QA check

@kodadot/qa-guild please review

Context

[x] Closes #9400

Did your issue had any of the "$" label on it?

[x] My DOT address: Payout

Screenshot 📸

[x] My fix has changed UI

Copilot Summary

thanks!
pay 10 usd


feat: the category of sheaves of modules

This PR defines the category SheafOfModules R when R is a sheaf of rings on a category C equipped with a Grothendieck topology J.

[x] depends on: #6845

bors merge


Added single-line duplicate fields check for FORMAT

According to VCF 4.3 specifications, FORMAT cannot have duplicate fields, so added a new check for duplicate fields. If any duplicated FORMATs are found in a single line (colon separated list), then an error is thrown and file is declared as invalid.

@cyenyxe Sorry I forgot the test, I have added one in a new commit. Could you please take a look?

We have read through the specification documents again and it seems that non-duplicated checks for FORMAT, INFO and FILTER only apply to version 4.3.
Could you please add that condition to the validation you just implemented? The version can be obtained from the source attribute in the Record object. Test cases and associated files will also need to be reorganized.

This is exactly what I was wondering about. I'll work on it. Isn't it needed for ID ma'am?

You are right, it is also needed for the ID. The paragraph describing that field is more ambiguous than the others...

@cyenyxe @jmmut I have a doubt. The https://github.com/EBIvariation/vcf-validator/blob/develop/src/vcf/record.cpp file only has a test for version 4.1
So for implementing this new test in 4.3, I guess I will have to add another source. Am I guessing it right?

Added another commit with the checks being removed from v4.1 and v4.2
Now it would only be tested for v4.3


Does this handle exceptions?

E.g. if I get an QueryException or a ModelNotFoundException will this library also give a json response? Or do I still need to make my own handler and in there return the errorNotFound etc. Thanks.

@malhal You can use error* methods
return $this->response->errorForbidden();
return $this->response->errorInternalError();
return $this->response->errorNotFound();
return $this->response->errorUnauthorized();
return $this->response->errorWrongArgs();
return $this->response->errorGone();
return $this->response->errorMethodNotAllowed();
return $this->response->errorUnwillingToProcess();

or withError() for custom error
return $this->response->setStatusCode(404)->withError($message, $code);

These methods will return a JSON like this one (https://github.com/ellipsesynergie/api-response#error):
{
    "error": {
        "code": "GEN-NOT-FOUND",
        "http_code": 404,
        "message": "Book Not Found"
    }
}

Thanks but I mean for errors out of my control. Like if my code exceptions.  If you're are using Laravel 5, you should use the render() method from the exception handler (http://laravel.com/docs/5.0/errors#handling-errors).

Thanks Render report() looks the right place to catch all errors from anywhere in the stack. I guess my next question is can I put something in the Handler that will give the right error response in your list above automatically depending on the exception? E.g. if its a ModelNotiFoundException rather than catch it and call errorNotFound and have that for every single exception type is there a way to get that automatically?

@malhal Here's what we do:
public function render($request, Exception $e)
{
        // Catch validator exception
        if ($e instanceof ValidatorException) {
            return response()->api()->errorWrongArgsValidator($e->getValidator());
        }

        // Catch model not found exception
        else if ($e instanceof ModelNotFoundException) {
            return response()->api()->errorNotFound();
        }

        // etc ...
}

Thanks hopefully this will make it into the library some day. On my own I'd be worried I covered all possible exceptions.

@malhal You could at least return a default error...

@malhal I understand your concern. Unfortunatly, this is not the reponsability of this package to catch framework or custom exception.
We want to keep this package simple as possible and the most important, completly framework agnostic.
However, we could probably add some documentation for that kind of stuff.
By the way, you can add this to your handler for laravel default routing exception
// Catch not found
if ($e instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) {
    return response()->api()->errorNotFound('End point not available');
};

// Catch method not allowed
if ($e instanceof \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException) {
   return response()->api()->errorMethodNotAllowed();
}


Field Query can only be defined once

Trying to get the GraphQL client working but failing. I am able to get an authenticated client, but all queries fail.
Are there any naming restrictions in the realm schema? I am guessing that the name 'SetData' could cause problems?
Internal server error: Error: Field Query.setData can only be defined once. Field Mutation.deleteSetData can only be defined once. at assertValidSchema (/app/node_modules/graphql/type/validate.js:82:11) at Object.validate (/app/node_modules/graphql/validation/validate.js:58:35) at doRunQuery (/app/node_modules/apollo-server-core/dist/runQuery.js:110:38) at /app/node_modules/apollo-server-core/dist/runQuery.js:21:56 at <anonymous>

Which version of the service are you using? Versions prior to 3.0.0 had a limitation that class names must be singular (setData is plural). In 3.0.0 we lifted this limitation, although the resulting nodes will be grammatically incorrect - e.g. data becomes datas and so on.

I am using Realm Cloud. Realm Studio says the version is 3.9.0?

Right... We'll roll out an update of the GraphQL service over the next few days. If that's blocking you, can you give me your instance url and I'll manually upgrade your instance.

I can wait a few days, no problems. I can focus on other tasks until then. Can you notify me when it is out?

Closing this for now as the GraphQL service should be updated by now. Please reopen if the problem reappears.


Update documentation and remove Mac OS X tests

Reasoning for removing GitHub actions for MacOS tests: https://github.com/apache/mxnet/issues/18210
Seems to timeout even when running. GitHub actions bug. Removed temporarily.


Create dataset if output ds doesn't exist, and change option order around

This pull request let us complete the getting started guide: now we can use
 nerd job run --input=flights:/input --output=/output:co2-result --name=output-co2-calc nerdalize/co2-calculator 30

It will create a dataset co2-result if it doesn't exist

Cool! This also switches the option order around, its merged!


Move dynamic loader abstraction up to Swift.

This PR moves the library's calls to dlsym() and GetProcAddress() up to Swift. Previously, they were implemented in C++, but as a general policy we want as much of swift-testing to be implemented in Swift as possible.
The original reason for implementing it in C++ was its dependence on RTLD_DEFAULT which, on Linux, is not directly available to Swift. However, the value of this constant is defined as 0 by glibc and we can simply redefine it in Swift for the purposes of this function call.
Checklist:

[x] Code and documentation should follow the style of the Style Guide.
[x] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test

@swift-ci please test Windows

@swift-ci please test Windows

@swift-ci please test Windows

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test


Battery drop in micromax Canvas HD

What steps will reproduce the problem?
1. Charging the battery to full. It goes to 100 from 85 in a flash.
While using as it comes below 30% it shoots down to 11% in no time.

What is the expected output? What do you see instead?
The battery should behave consistent. Battery is very unstable.

What version of the product are you using? On what operating system?
I am using Micromax Canvas HD on Android Jelly Bean 4.2.1

Please provide any additional information below.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 30 Aug 2013 at 8:28

[deleted comment]

Read about the same issue in this post. Some issue with the stock ROM, I didn't
understand. Please help out.

http://forum.xda-developers.com/showthread.php?t=2323947

Original comment by<EMAIL_ADDRESS>on 30 Aug 2013 at 8:33

i am also haveing same problems

Original comment by<EMAIL_ADDRESS>on 11 Apr 2014 at 8:04

same issue. any solution  yet?
dont understand. will changing the rom solve it?

Original comment by<EMAIL_ADDRESS>on 22 Jul 2014 at 2:09

Thanks fopr registering the issue. i am also facing exactly same issue with My
canvas HD running jelly Bean 4.1.2 not 4.2.1 .
i have also replace the battery recently. but still same issue is there.
one of my friend is having Canvas HD and i have checked my battery in his
mobile where it works perfect .

Original comment by<EMAIL_ADDRESS>on 18 Mar 2014 at 6:44

Hi

I am using Micromax canvas HD A116. Charging the battery to full. It goes to
100 from 85 in a flash.
While using as it comes below 30% it shoots down to 11% in no time. Please let
me know if anybody have good suggestion.

Regards,
Srinivasulu.

Original comment by<EMAIL_ADDRESS>on 27 May 2014 at 3:45


Added kill-session alias

Call tmk and then tmux session name to kill that session.

I thought this looked cut and dry, but apparently I know nothing about aliases

From what I can see, tmux.zsh is brought into .stack.d setting the aliases there? If not, close this pull request and please point me in the right direction.
Have a great weekend!

Cool-- I always though you had to include the parameters in the alias like tmux kill-session -t $1 where $1 is the name of the session.

Just tested this and it works. Thanks!


feat(version): display verions of @angular/* and @ngtools/*

Fixes #3589

@hansl PR updated to resolve the lint and build issues.

LGTM! Thanks!


vertical swiper mousewheel bug

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Swiper Version: 4.3.3

Platform/Target and Browser Versions: Windos/Chrome last version

Live Link or JSFiddle/Codepen or website with isssue: https://idangero.us/swiper/demos/270-mousewheel-control.html

What you did
scroll page before page is loaded
Expected Behavior
slide normally vertical changed if user mousewheel
Actual Behavior
mousewheel not firing slide changing until user hover other element => hover slide => mouswheel

to fix this problem use releaseOnEdges: true


Make long URLs wrap

Long URLs are going outside their containers - make sure that they always wrap. Possible solution: https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/

@JenPark9 I feel like this was resolved - can we close it?

yep :)
On Thu, Jul 22, 2021 at 10:27 AM brockfanning @.***>
wrote:

@JenPark9 https://github.com/JenPark9 I feel like this was resolved -
can we close it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/worldbank/sdg-metadata/issues/25#issuecomment-884956987,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE5WZKUAKBGYJF3RAQHXH4LTZATDZANCNFSM4LVZGS2A
.


lon

installtion taking very long time.

That's an issue with apm. You can install using a command:
apm install hydrogen


Dev dist

move code to dev folder
create a build.py script
build into dist folder
example import from dist folder

Build script:

inline inquirer_common.sh into each component
cat all components into main dist/inquirere.sh

Orz been wanting to do this for a while, thanks @tanhauhau!


OSX: fix file dialog filter nullable annotation, and osx platform.

What does the pull request do?

Adds nullable ? to Filters property of the FileDialog.
What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues

You can test this PR using the following package version. 0.10.999-cibuild0020638-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


App crashes and has problems running mini-player program simultaneously with main app open.

Operating system
Microsoft Windows [Version 10.0.22635.4510]
YouTube Music Desktop App Version
v0.14.5-rc3
Bug description
Per the error message: A Javascript error occurred in the main process. Uncaught Exception: TypeError: Object has been destroyed at App.  (C:\Users\brand\AppData\Local\Youtube Music For Desktop\resources\app.asar\out\main\index.js:3163:19) at App.emit (node:events:519:28)
Error occurred when I had opened the mini-player, then terminated the main application. Music continued to play, however I wanted to add the song to a playlist and could not do so in the mini-player. After reopening the main app, the error message above opened and the main application did not open. The music playing in the music player began to pause and cut out, then after terminating the mini-player and the Java error message, I was able to open the main application with no issues.
Below is an image of the final error message I received after closing both the mini-player and main app, it is quite lengthy and I typed it out below as well into relevant log output.

Error
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Object has been destroyed
at BrowserWindow. (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:10295:33)
at BrowserWindow.emit (node:events:531:35)
at AppProvider._onSubWindowClose (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:3246:19)
at IpcMainImpl.func (C:\Users\brand\AppData\Local\Programs\YouTube Music for
Desktop\resources\app.asar\out\main\index.js:1327:96)
at IpcMainImpl.emit (node:events:519:28)
at WebContents. (node:electron/js2c/browser_init:2:86186)
at WebContents.emit (node:events:519:28)
at Object.showErrorBox (node:electron/js2c/browser_init:2:20971)
at node:electron/js2c/browser_init:2:126393
Steps to reproduce

Open main application.
Open mini player.
Close main application whilst still keeping mini-player active.
Attempt to reopen main application with mini-player active.

Relevant log output
A Javascript error occurred in the main process. Uncaught Exception: TypeError: Object has been destroyed at App. <anonymous> (C:\Users\brand\AppData\Local\Youtube Music For Desktop\resources\app.asar\out\main\index.js:3163:19) at App.emit (node:events:519:28)

Error
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Object has been destroyed
at BrowserWindow.<anonymous> (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:10295:33)
at BrowserWindow.emit (node:events:531:35)
at AppProvider._onSubWindowClose (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:3246:19)
at IpcMainImpl.func (C:\Users\brand\AppData\Local\Programs\YouTube Music for
Desktop\resources\app.asar\out\main\index.js:1327:96)
at IpcMainImpl.emit (node:events:519:28)
at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86186)
at WebContents.emit (node:events:519:28)
at Object.showErrorBox (node:electron/js2c/browser_init:2:20971)
at node:electron/js2c/browser_init:2:126393

On a side note, sometimes the issue does not always occur after trying to reproduce the error with those exact steps. It happens about 50% of the time, but thought I should bring it to light at least.


Remove forked apiserver

What this PR does / why we need it:
Remove our fork of k8s.io/apiserver as required features have been merged upstream
Which issue(s) this PR fixes:
Fixes #
https://github.com/gardener/oidc-webhook-authenticator/issues/7
Special notes for your reviewer:
Release note:

Thank you @pidah for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.


Support Raw Cell for jupyter notebook

Feature: Notebook Editor, Interactive Window, Python Editor cells

Description
Currently vscode-python supports only Code mode and Markdown mode for cells, while Raw cell is not allowed, and the Raw cells in other ipynb files are renderd as blank chunk.

+1 for this issue, raw cells are used by great number of devs
I use them to quickly disable some code (it will not run as the cell is just text now), markdown will render badly in that case.

The issue still exists. I spent a long time figuring out why some of the cells in my assignment that my professor gave me don't show up in VS code at all. Is there no plan for this to be fixed? I have to move away from VS Code just because of this :(

thanks for the trouble with notebooks in VS Code.
I was really looking forward to editing Jupyter notebooks in my favourite editor!
But alas, no raw cells :-(
so back to clunky jupyter editor.

Apologies for the trouble. This issue is on our backlog. Our team is working hard to replatform the Jupyter extension onto VS Code's notebooks API, and we intend to address this issue afterwards.

thanks!!!!!!
On Mon, 7 Jun 2021 at 22:32, Joyce Er @.***> wrote:

Apologies for the trouble. This issue is on our backlog. Our team is
working hard to replatform the Jupyter extension onto VS Code's notebooks
API, and we intend to address this issue afterwards.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-jupyter/issues/1466#issuecomment-856234942,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABOR6SJN6N2JKYGJ5E5YK3DTRUUETANCNFSM4TVD4M4Q
.

When I execute raw cells the kernel gets blocked. Anyone having similar issues?

Executing raw cells should behave the same as Jupyter

This PR should alleviate at least some of the trouble with raw cells. https://github.com/microsoft/vscode-jupyter/pull/6958. It is available in VS Code Insiders v1.60+. I'm going to close this issue. Please open new, more specific issues related to raw cells. Thank you!!


Shortcut for settings?

I'm trying to make silverbullet have very similar shortcuts to VSCode
One that I'm stuck with is, how can I configure ctrl+, to open the settings page?
I tried adding this in my settings, but it says

shortcuts:
- command: '{[Navigate: To Page]("SETTINGS")}'
  key: "Ctrl-,"

What version are you on? I think I just renamed this command to "Navigate: To Page" today, so it's only on the Edge version so far: https://community.silverbullet.md/t/living-on-the-edge-builds/27

Ok so actually I didn't rename it, I implemented it new. So there's no command that does this yet in 0.6.0, so you have to switch to Edge or wait until 0.6.1 :)

This should be resolved since there release


Bump up version to v0.0.3

Why
I want to apply the change https://github.com/wantedly/grpc_opencensus_interceptor/pull/7 In wantedly/servicex-ruby.
What
Release version 0.0.3.

Released v0.0.3.
$ bundle exec rake build
grpc_opencensus_interceptor 0.0.3 built to pkg/grpc_opencensus_interceptor-0.0.3.gem.

$ bundle exec rake release
grpc_opencensus_interceptor 0.0.3 built to pkg/grpc_opencensus_interceptor-0.0.3.gem.
Tagged v0.0.3.
Pushed git commits and tags.
Pushing gem to https://rubygems.org...
Successfully registered gem: grpc_opencensus_interceptor (0.0.3)
Pushed grpc_opencensus_interceptor 0.0.3 to rubygems.org

cf. https://rubygems.org/gems/grpc_opencensus_interceptor

Thank you so much!


Can't use kali-rolling with GNOME

On multiple times, I have tried setting up kali-rolling with the GNOME target. Every time, I get the same result near the end of setup:
E: Unable to locate package dconf-tools
Failed to complete chroot setup.

I have tried logging into the chroot as the root user and manually installing the dconf-tools package, but it produces the same result; unable to locate the package.
I typed:
sudo crouton -r kali-rolling -t gnome

How do I fix this issue? I do have the latest release of crouton!

Same for buster, and -t gnome-desktop

also same for sid


mitmproxy crashes when starting

Problem Description
mitmproxy crashes when starting.
Installed on a naked and newly set up Linux machine using apt.
Steps to reproduce the behavior:
ak@experimental:~$ sudo mitmproxy -m socks5 -rawtcp
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mitmproxy/addons/readfile.py", line 63, in load_flows_from_path
    with open(path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'awtcp'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mitmproxy/addons/readfile.py", line 72, in doread
    await self.load_flows_from_path(ctx.options.rfile)
  File "/usr/lib/python3/dist-packages/mitmproxy/addons/readfile.py", line 67, in load_flows_from_path
    raise exceptions.FlowReadException(str(e)) from e
mitmproxy.exceptions.FlowReadException: [Errno 2] No such file or directory: 'awtcp'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mitmproxy/master.py", line 86, in run_loop
    loop()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 287, in run
    self._run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 385, in _run
    self.event_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 1494, in run
    reraise(*exc_info)
  File "/usr/lib/python3/dist-packages/urwid/compat.py", line 58, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/mitmproxy/addons/readfile.py", line 74, in doread
    raise exceptions.OptionsError(e) from e
mitmproxy.exceptions.OptionsError: [Errno 2] No such file or directory: 'awtcp'

mitmproxy has crashed!
Please lodge a bug report at:
	https://github.com/mitmproxy/mitmproxy

System Information
ak@experimental:~$ mitmproxy --version
Mitmproxy: 6.0.2
Python:    3.10.12
OpenSSL:   OpenSSL 3.0.2 15 Mar 2022
Platform:  Linux-5.15.0-92-generic-x86_64-with-glibc2.35

P.S.: Same happens with downloaded version.
ak@experimental:~$ ./mitmproxy --version Mitmproxy: 10.2.2 binary Python:    3.12.1 OpenSSL:   OpenSSL 3.1.4 24 Oct 2023 Platform:  Linux-5.15.0-92-generic-x86_64-with-glibc2.35

-rawtcp is interpreted as -r awtcp, which causes the error you are seeing. Raw TCP processing is on by default, so you can just leave it out.

Apologies.  So I forgot one minus.
Or as you just said: Leave it out.
Now it works. Thanks A lot.


Should Arabic use East Arabic numerals?

I don't know anything about Arabic, but I saw the "East Arabic numerals" article on Wikipedia.
Does anyone know?

I'm going to close this issue because it hasn't had movement in several months. If someone submits a patch or new issue, we'll revisit.


NSFS | S3 | Versioning: After creating 5 object versions in parallel threads ListObjectVersions only lists two versions

Environment info

NooBaa Version: 5.15.4
Platform: CentOS 8, deployed using https://github.com/IBM/StorageScaleVagrant

Actual behavior
Five multiple threads perform PutObject to the same key in a versioned bucket. After the operations completed, ListObjectVersions only delivers two objects.
Expected behavior
PutObject in simultaneously running threads to the same key should lead to as many versions as threads got spawned.
Steps to reproduce
Run Ceph s3-tests, method test_versioned_concurrent_object_create_concurrent_remove():
S3TEST_CONF=s3tests.conf tox -- s3tests_boto3/functional/test_s3.py::test_versioned_concurrent_object_create_concurrent_remove
...
        for i in range(5):
            t = _do_create_versioned_obj_concurrent(client, bucket_name, key, num_versions)
            _do_wait_completion(t)

            response = client.list_object_versions(Bucket=bucket_name)
            versions = response['Versions']

>           assert len(versions) == num_versions
E           assert 2 == 5
E            +  where 2 = len([{'ETag': '"mtime-d3roiq22g5c0-ino-1c03"', 'IsLatest': True, 'Key': 'myobj', 'LastModified': datetime.datetime(2024, 8..., 'IsLatest': True, 'Key': 'myobj', 'LastModified': datetime.datetime(2024, 8, 28, 16, 18, 38, tzinfo=tzlocal()), ...}])

Please note that s3-tests outputs the following in the "warnings summary" for the operation:
s3tests_boto3/functional/test_s3.py::test_versioned_concurrent_object_create_concurrent_remove
  /home/vagrant/s3-tests/.tox/py/lib/python3.8/site-packages/_pytest/threadexception.py:82: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-2

  Traceback (most recent call last):
    File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
      self.run()
    File "/usr/lib64/python3.8/threading.py", line 870, in run
      self._target(*self._args, **self._kwargs)
    File "/home/vagrant/s3-tests/s3tests_boto3/functional/test_s3.py", line 8034, in _do_create_object
      client.put_object(Bucket=bucket_name, Key=key, Body=body)
    File "/home/vagrant/s3-tests/.tox/py/lib/python3.8/site-packages/botocore/client.py", line 569, in _api_call
      return self._make_api_call(operation_name, kwargs)
    File "/home/vagrant/s3-tests/.tox/py/lib/python3.8/site-packages/botocore/client.py", line 1023, in _make_api_call
      raise error_class(parsed_response, operation_name)
  botocore.errorfactory.BucketAlreadyExists: An error occurred (BucketAlreadyExists) when calling the PutObject operation: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.

    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))

which seems to be a wrong error message as we are only using one bucket name for all the operations and the bucket was created before PutObject got executed.
More information - Screenshots / Logs / Other output
Noobaa log file with "all" log level:
noobaa_20240828_1836.log.gz

@nadavMiz can you please take a look?

Re-tested today with noobaa-core 5.17.0 20241007, Scale <IP_ADDRESS> 20241004 and the issue is still there.
Repeating the test, it sometimes fails with assert 4 == 5, assert 3 == 5 or even passed that test code that verified that ListObjectVersions has written all the objects, but then fails at teardown with a BucketNotEmpty error.
This is due to ListObjectVersions that is used to determine what needs to be cleaned up at teardown is not reporting the last written object version and/or Delete Marker.
Please note that the same issues during runtime and teardown also occur with test_s3cever22 where only PutObject operations are used.

Additionally, test_versioned_concurrent_object_create_and_remove() occasionally fails with an AssertionError after deleting all versions, meaning that there were leftover versions reported with ListObjectVersions even after all versions got deleted using parallel threads.

Another incarnation occurring in test_versioning_obj_suspended_copy(). It fails with a BucketNotEmpty error during the clean_up_bucket() phase. So again, the DeleteObject operations for all VersionIds return with success, but are not done when the DeleteBucket operation is being carried out.
Noobaa logs at "all" debug level attached
noobaa-20241008_3.log.gz

With noobaa-core 5.17.0 20241012, Scale <IP_ADDRESS> 20241004, the issue can still be reproduced. It fails with 4 == 5, re-retesting it occasionally also fails with assert 3 == 5. A "all" level log is attached.
noobaa-20241014_1.log.gz
Also test_versioning_obj_suspended_copy() fails when trying to delete an object, might or might not be the same issue. The DeleteObject fails with botocore.exceptions.ClientError: An error occurred (InternalError) when calling the DeleteObject operation (reached max retries: 4): We encountered an internal error….  Log with "all" level is attached
noobaa-20241014_2.log.gz

@hseipp @nadavMiz merged this fix https://github.com/noobaa/noobaa-core/pull/8455
it's not reproducible anymore, is that correct?

@hseipp @nadavMiz merged this fix #8455 2 weeks ago it's not reproducible anymore, is that correct?
Correct, the test_versioned_concurrent_object_create_concurrent_remove() issue is not reproducible anymore since the 20241015 noobaa-core release.
For the test_versioning_obj_suspended_copy() issue that looked similar and is still occurring with builds up to 20241023, I opened #8469.


Epoch energy includes MPI and ignore regions

Epoch runtime correctly excludes MPI and ignore regions, but energy is calculated with a simple difference between start and end energy.  To be consistent with the reported runtime, the energy total should exclude MPI and ignore regions.

https://review.gerrithub.io/#/c/geopm/geopm/+/423576/

This is no longer a problem because epoch sync-runtime includes MPI and ignore, so it is consistent with the energy.


Fix #2042: Fix BigDecimal.divideToIntegralValue prefered scale.

Review by @sjrd

LGTM

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2543/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3286/
Test PASSed.


Feature request: Ontap volume autogrow setting

We usually provision volumes with autogrow enabled. It would be nice if one could specify this via PVC annotations:
trident.netapp.io/autogrow: true|false
trident.netapp.io/autogrowIncrement: <size_in_mb>
trident.netapp.io/autogrowMax: <size_in_mb>

@korenaren I have a question on Ontap volume autogrow and feel it is better to add to this issue instead of creating a new:
We are uisng driver ontap-nas and observed that volumes automatically grow when usage approaches 100%.    Is there a place we can look up the following: what is the ontap-nas criteria to trigger the automatic volume size increase?  When the size of a volume is creased automatically, how much does ontap-nas add to the size?
Our backend config is similar to the following:
{
    "version": 1,
    "storageDriverName": "ontap-nas",
    "backendName": "ontap-nas_lif_trident_data",
    "managementLIF": "<IP_ADDRESS>",
    "dataLIF": "<IP_ADDRESS>",
    "svm": "trident_nfs_svm",
    "username": "username",
    "password": "password",
    "defaults": {
      "exportPolicy": "trident_servers",
      "snapshotPolicy": "14_Days"
    }
}

By the way, I second the new feature request from @lopf.  The resize capability is for manual volume size management while the request is about automatic volume size increase, quite different operationally.

The resizing functionality is not the same as the autogrow. We can resize volumes but if we provision volumes through Trident, we want autogrow to be enabled. Please re-open.

@lopf you are correct that auto grow is different from resize. I think this may have been closed in error. I’ve reopened the issue.
@wu105: the behavior you see is the ontap auto grow functionality. The trident driver is not controlling this and the setting to adjust what you want are in ontap itself

Actually this was closed intentionally. Autogrow would make it impossible to enforce resource limits in k8s and Trident. While the resize feature is not exactly the same, it does allow an end user to ask for more space (which can be automated), which is already a huge improvement over most environments where you need to file a ticket for help, and to do so in a manner that applies any limits in place.

@innergy @adkerr What happened in our environment is that there are volume near full alerts not visible to me, and our netapp support reconfigured the volumes with autogrow plus limits without telling me -- thus I initially thought that was an automatic feature of netapp :-)
The point is that there are manual works on the managing the volumes that might be automated if we can configure the autogrow on the storage class or persistant volume claim.  We can add an autogrow limit as our netapp support did to control the size.
By the way, when I create a volume of certain size, is that space reserved exclusively for the volume at the very beginning?   If the volume only takes the actual spaces it needs, we can just request for the anticipated max size without needing the auto grow and not wasting the disk space not needed immediately.

@wu105 By default, trident creates ontap volumes as thin provisioned (spaceReserve = none) meaning it will only consume as much disk space as is actually being used. You can override this to be thick (spaceReserve = volume) so that all of the disk space is consumed from the very beginning.
https://netapp-trident.readthedocs.io/en/stable-v19.01/kubernetes/operations/tasks/backends/ontap.html#example-configuration

@adkerr Thanks for the clarification on 'thin'!  In a sense 'thin' is all we needed - auto grow with limit without any management overhead.  If we need more control, we can always go to netapp to configure true autogrow, which should be rather rare.


apparmor_parser: Warning: unable to find a suitable fs in /proc/mounts, is it mounted?

Hi,
Thanks a lot for making this code open source.
I have problems when creating the AppArmor profile. I am using a fresh installation of Ubuntu 14.04 LTS in a machine hosted at Linode.
When I try to run the apparmor_parser, I get the error Warning: unable to find a suitable fs in /proc/mounts, is it mounted?.
Here is my AppArmor profile:
(prueba-sandbox)pepe@li911:~$ cat /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python
#include <tunables/global>

/home/pepe/prueba-sandbox/bin/python {
    #include <abstractions/base>
    #include <abstractions/python>

    /home/pepe/prueba-sandbox/** mr,
    # If you have code that the sandbox must be able to access, add lines
    # pointing to those directories:
    #/the/path/to/your/sandbox-packages/** r,

    /tmp/codejail-*/ rix,
    /tmp/codejail-*/** wrix,
}

And the error:
(prueba-sandbox)pepe@li911:~$ sudo apparmor_parser /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.

Also, when I try to use aa-enforce I get this error.
pepe@li911:~$ sudo aa-enforce /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python
Setting /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python to enforce mode.
Traceback (most recent call last):
  File "/usr/sbin/aa-enforce", line 30, in <module>
    tool.cmd_enforce()
  File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 166, in cmd_enforce
    raise apparmor.AppArmorException(cmd_info[1])
apparmor.common.AppArmorException: 'Warning: unable to find a suitable fs in /proc/mounts, is it mounted?\nUse --subdomainfs to override.\n'

Note that apparmor is using "/usr/lib/python3/" instead of "/usr/lib/python2.7". Could this be the reason of the error?
Finally, when I try to run the example code I get an error, but I guess that it is related with the previous error:
>>> import codejail.jail_code
>>> codejail.jail_code.configure('python', '/home/pepe/prueba-sandbox/bin/python')
>>> import codejail.safe_exec
>>> codejail.safe_exec.safe_exec("import os\nos.system('ls /etc')", {})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pepe/prueba/local/lib/python2.7/site-packages/codejail/safe_exec.py", line 151, in safe_exec
    extra_files=extra_files,
  File "/home/pepe/prueba/local/lib/python2.7/site-packages/codejail/jail_code.py", line 237, in jail_code
    realtime=LIMITS["REALTIME"], rlimits=create_rlimits(),
  File "/home/pepe/prueba/local/lib/python2.7/site-packages/codejail/subproc.py", line 42, in run_subprocess
    stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception

The only related issue that I found is: https://github.com/edx/configuration/issues/1312
Any help would be very much appreciated! Thanks!

I'm guess that your instance doesn't have anything mounted at /tmp.  Can
you confirm?
e0d
On Sat, Mar 7, 2015 at 4:57 PM, melonista<EMAIL_ADDRESS>wrote:

Hi,
Thanks a lot for making this code open source.
I have problems when creating the AppArmor profile. I am using a fresh
installation of Ubuntu 14.04 LTS in a machine hosted at Linode.
When I try to run the apparmor_parser, I get the error Warning: unable to
find a suitable fs in /proc/mounts, is it mounted?.
Here is my AppArmor profile:
(prueba-sandbox)pepe@li911:~$ cat /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python
#include <tunables/global>
/home/pepe/prueba-sandbox/bin/python {
#include <abstractions/base>
#include <abstractions/python>
/home/pepe/prueba-sandbox/** mr,
# If you have code that the sandbox must be able to access, add lines
# pointing to those directories:
#/the/path/to/your/sandbox-packages/** r,

/tmp/codejail-*/ rix,
/tmp/codejail-*/** wrix,

}
And the error:
(prueba-sandbox)pepe@li911:~$ sudo apparmor_parser /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
Also, when I try to use aa-enforce I get this error.
pepe@li911:~$ sudo aa-enforce /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python
Setting /etc/apparmor.d/home.pepe.prueba-sandbox.bin.python to enforce mode.
Traceback (most recent call last):
File "/usr/sbin/aa-enforce", line 30, in
tool.cmd_enforce()
File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 166, in cmd_enforce
raise apparmor.AppArmorException(cmd_info[1])
apparmor.common.AppArmorException: 'Warning: unable to find a suitable fs in /proc/mounts, is it mounted?\nUse --subdomainfs to override.\n'
Note that apparmor is using "/usr/lib/python3/" instead of
"/usr/lib/python2.7". Could this be the reason of the error?
Finally, when I try to run the example code I get an error, but I guess
that it is related with the previous error:

import codejail.jail_code
codejail.jail_code.configure('python', '/home/pepe/prueba-sandbox/bin/python')
import codejail.safe_exec
codejail.safe_exec.safe_exec("import os\nos.system('ls /etc')", {})
Traceback (most recent call last):
File "", line 1, in
File "/home/pepe/prueba/local/lib/python2.7/site-packages/codejail/safe_exec.py", line 151, in safe_exec
extra_files=extra_files,
File "/home/pepe/prueba/local/lib/python2.7/site-packages/codejail/jail_code.py", line 237, in jail_code
realtime=LIMITS["REALTIME"], rlimits=create_rlimits(),
File "/home/pepe/prueba/local/lib/python2.7/site-packages/codejail/subproc.py", line 42, in run_subprocess
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception

The only related issue that I found is: edx/configuration#1312
https://github.com/edx/configuration/issues/1312
Any help would be very much appreciated! Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/edx/codejail/issues/38.

Thanks a lot for your fast reply.
No:
root@li911-159:~# mount
/dev/xvda on / type ext4 (rw,noatime,errors=remount-ro)
proc on /proc type proc (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
devtmpfs on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)

root@li911-159:~# ls /tmp/
pip_build_pepe  pip_build_root

Should I have a /tmp/codejail folder?
I installed Codejail the following way:
1- Activate my non-sandbox vitualenv (in my case /home/prueba/bin/activate).
2- Dowload master.zip from github.
3- $ pip install master.zip (so it is only installed only for this virtualenv)
The only difference with respect the installation guide is that I created the sandboxed virtualenv without sudo:
$ virtualenv <SANDENV>
instead of
$ sudo virtualenv <SANDENV>
But I also tried doing it with sudo, although in the next step then you also need sudo for installing the packages:
sudo pip install -r sandbox-requirements.txt
instead of:
pip install -r sandbox-requirements.txt
And I arrive to the same error that I explained on my first post.

Sorry I don't have more time to look at this now, but this issue is likely
to be solved by using python 2.7 and Ubuntu 12.04.  If you'd like to work
on getting code jail running with Python 3 and Ubuntu 14.04, we would
certainly love a PR.
e0d
On Sat, Mar 7, 2015 at 5:51 PM, melonista<EMAIL_ADDRESS>wrote:

Thanks a lot for your fast reply.
No:
root@li911-159:~# mount
/dev/xvda on / type ext4 (rw,noatime,errors=remount-ro)
proc on /proc type proc (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
devtmpfs on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
root@li911-159:~# ls /tmp/
pip_build_pepe  pip_build_root
Should I have a /tmp/codejail folder?
I installed Codejail the following way:
1- Activate my non-sandbox vitualenv (in my case
/home/prueba/bin/activate).
2- Dowload master.zip from github.
3- $ pip install master.zip (so it is only installed only for this
virtualenv)
The only difference with respect the installation guide is that I created
the sandboxed virtualenv without sudo:
$ virtualenv
instead of
$ sudo virtualenv
But I also tried doing it with sudo, although in the next step then you
also need sudo for installing the packages:
sudo pip install -r sandbox-requirements.txt
instead of:
pip install -r sandbox-requirements.txt
And I arrive to the same error that I explained on my first post.
—
Reply to this email directly or view it on GitHub
https://github.com/edx/codejail/issues/38#issuecomment-77714972.

Thanks a lot for trying. For the moment I will try 12.04. Just for the record, what I am currently using is Ubuntu 14.04 LTS + Python 2.7.6.

Can you also include which version of apparmor you are using?
On Sat, Mar 7, 2015 at 6:09 PM, melonista<EMAIL_ADDRESS>wrote:

Thanks a lot for trying. For the moment I will try 12.04. Just for the
record, what I am currently using is Ubuntu 14.04 LTS + Python 2.7.6.
—
Reply to this email directly or view it on GitHub
https://github.com/edx/codejail/issues/38#issuecomment-77715593.

$ sudo dpkg -s apparmor
Package: apparmor
Architecture: amd64
Version: 2.8.95~2430-0ubuntu5.1

Ubuntu 12.04 raises the same error. I am pretty sure now that this is error happens because the default kernel in Linode is not compiled for AppArmor.

I am also facing this error trying  to install Ficus on a Linode VM. Is there a solution?? @melonista


After adding polyfill method forced to download vue-template-compiler

After adding polyfill method to my chain in webpack.mix.js I am now forced to download vue-template-compiler while npm install/update. I make Laravel project without Vue.js and at start entered php artisan preset none

Did it happen immediately after adding .polyfill(), or did you also install/upgrade to Laravel Mix 4?
I'm asking because there are closed issues in the Laravel Mix repo that reference this problem (JeffreyWay/laravel-mix#1877, JeffreyWay/laravel-mix#1916).

I do not want to have vue-template-compiler dependency in my package.json file. Can it not be forced to install?

@mabasic vue-template-compiler is a dependency of Laravel Mix 4, not of this package.
So probably when you added this package your Laravel Mix got updated to 4 (minimum version for this package) and therefore Laravel Mix added the requirement.
You need to use vue-template-compiler for Vue when using Laravel Mix 4.

@rolandschuetz I see, thank you for replying.

@scottcharlesworth Can this be closed?

@mabasic yes it can 👍


Add models for mark and sweep

Add models for mark and sweep and for sweeping job, we are allowing to re-queue it, if all the parts of the refresh were not finished.

@Ladas are we going to clear these states after a successful sweep?  These seem like they could build up really quickly.

@agrare I think we'll just connect it to the cleanup worker (cleaning up also old archived items, etc.)
Cause at least for the beginning, this actually shows us if all went fine (before we have a common logging in and nice stats from that)

@agrare hm, I could probably delete the :finished parts, as part of sweeping


[Test] Heterogeneous env

@vmoens @hyerra
This improves the test in #1204
Look at the spec of this env.
In my opinion it should cover all heterogenous use cases apart from composite actions, can you think of something I missed?

Thanks, this looks really good for the heterogeneous part! One suggestion though, is it possible to have a test for where agents have a different number of observations? This is possible in Unity, for instance. For example, maybe agent 1 has both lidar and camera, but agent 2 only has lidar.

are you referring to the fact that the obs tensordicts have the same number of keys? would it cover your case if I remove the sonar from agent 2?

Yep, exactly, that case should cover it! I'm not sure if this case was what caused the bug in the StrikersVsGoalie game to fail. I didn't fully debug it just yet, but that was my initial guess.


Relax DID validation on prover_did on a credential request

Prover DID can be any did, for example did:peer:
"prover_did": "did:peer:2.Vz6MksjZKAGZbiZvWaXucPoxTpRa6U2QgaqvbrzPq9A2Kcwpu.SeyJpZCI6IiNkaWRjb21tLTAiLCJ0IjoiZGlkLWNvbW11bmljYXRpb24iLCJwcmlvcml0eSI6MCwicmVjaXBpZW50S2V5cyI6WyIja2V5LTEiXSwiciI6W10sInMiOiJodHRwOi8vaG9zdC5kb2NrZXIuaW50ZXJuYWw6ODAzMCJ9"
This currently fails validation, and should pass.
The prover_did doesn't need to be a DID at all, so we could potentially remove this validation completely.
See https://github.com/hyperledger/aries-cloudagent-python/issues/2714

The validation is in anoncreds-rs?  Ah…interesting.

The code is here: https://github.com/hyperledger/anoncreds-rs/blob/main/src/data_types/cred_request.rs

@assigned to @andrewwhitehead -- a high priority one to get completed and into a release.


Clarification of Little Endian support with SwappedByteBuf

After some clarification on the expected result of using get<type>LE() methods on a SwappedByteBuf. (related to #3209 )
The javadoc indicates that the read from the ByteBuf should return type as if read LittleEndian. However does not clarify expected behaviour when used on a SwappedByteBuf where the byte order has been set, nor expected behaviour on CompositeByteBuf when underlying buffers are of different endianess.
While I appreciate, that using SwappedByteBuf and byte orders are deprecated, clarification of what is the designed behaviour is appreciated.
Expected behavior
Using get<type>LE() on a SwappedByteBuf with order set to Little Endian, should return same result as if the underlying ByteBuf was with order Big Endian. Eg, the endianness of the ByteBuf should not matter when using get<type>LE(). (This would appear is what the javadoc indicates).
Actual behavior
Using get<type>LE() on a SwappedByteBuf with order set to Little Endian, returns the result as Big Endian.
Steps to reproduce
Create two ByteBufs, both with same content, however one set to LittleEndian. Calling getLongLE() on both produces different results.
Minimal yet complete reproducer code (or URL to code)
       @Test
	public void testByteOrder() {
		ByteBuf buffer = Unpooled.directBuffer(8);
		for(byte i = 0; i < 8; i++) {
			buffer.writeByte(i + 0x20);
		}
		ByteBuf buffer2 = Unpooled.directBuffer(8);
		buffer.readBytes(buffer2);
		buffer.writerIndex(8);
		buffer.readerIndex(0);
		buffer2.writerIndex(8);
		buffer2.readerIndex(0);

		long l1 = buffer.readLongLE();
		long l2 = buffer2.order(ByteOrder.LITTLE_ENDIAN).readLongLE();
		assertEquals(l1, l2);
	}

Netty version
4.1.24 - 4.1.30
JVM version (e.g. java -version)
Oracle Java8u171 and openjdk version "1.8.0_181"
OS version (e.g. uname -a)
Windows 10 + Ubuntu 18.04LTS.

I think what happens is actually what we should happen (at least that is what I think we wanted to archive). Maybe we need to clarify the docs a git tho.
@trustin WDYT ?


Add note about regressions using --bless

Using --bless on tests without checking the output can cause regressions, some of which may confuse people and may take a long time to track down.


[JP] Update translation in 'basics/pattern-matching'

Update description of pin operator
#49

Awesome work @hinamiyagk, thank you very much.
@3100 would you mind looking at these changes too?  Thank you 👍

Great!

Thank you both 😀


Can there be at-least one example from logging api.

The process of connecting to the apis is pretty straight forward, but for some apis which are pretty new and whose functions haven't yet properly propagated in the masses should have some examples.

I'm also having issues writing entries via the logging api. Trying to generate json payload per the docs here: https://cloud.google.com/logging/docs/api/ref/rest/v1beta3/projects.logs.entries/write

@ericuldall For Cloud Logging, instead of using google-api-nodejs-client, you might try using the more idiomatic gcloud-node library.

Thanks for the reploy @jmdobry
Since we're writing logs from Kubernetes I've learned we can just output some structured JSON to suit our needs.
console.log(JSON.stringify(
    {
        "message": "my error here!",
        "severity": "ERROR"
    }
));

This gets parsed well enough and negates us having to connect via oAuth. Thought this would be useful for others working with Kubernetes.

To close out this issue, one of the better options would be to use gcloud-node which supports the Cloud Logging API quite well, and has a number of examples.


add inventory type to sangria implementation to pass test for @interfaceObject support

Bump sangria-federation to latest version which supports the @interfaceObject directive.
Add the Inventory entity object type with Key and InterfaceObject directives to the schema in order to pass the compatibility test for @interfaceObject.

@oskargotte: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@oskargotte is this still a draft?

Looks like @composeDirective (https://github.com/sangria-graphql/sangria-federated/issues/221) is also supported. Do you mind updating the test to also cover that scenario?

@oskargotte is this still a draft?

Well it’s pretty much finilized but I wanted to give @yanns a chance to provide feedback before merging it.

Looks like @composeDirective (sangria-graphql/sangria-federated#221) is also supported. Do you mind updating the test to also cover that scenario?

Yes the composeDirective is supported in sangria-federated but I'll have to read up on the requirements to get the tests to pass. But I acn target that one in another PR.

@oskargotte is this still a draft?

Well it’s pretty much finilized but I wanted to give @yanns a chance to provide feedback before merging it.

Should be ready to merge now @dariuszkuc


Dynamic Parameters

Hi, I would like to know dynamic system properties to design an advanced dynamic controller for the WAM-V 16 in the simulation. Some parameters that I need for this case is written in the spec sheet, such as weight and dimensions.
However, I also checked the file which is called as ‘’wamv_gazebo.urdf’’ to do a double check. At that file, the mass value is determined as 180kg, which is different than the spec sheet (which is 204kg). Thereafter, I scrolled down to see is there any other mass value that can be added to 180kg and I saw a few. For instance, the mass values of the left engine link and left engine rear and collision are 15kg.
Also, the same values are written for right ones. If I add all these values, it exceeds 204 kg. Hence, I want to know the real mass value that was used in this simulation. In addition, I need a few parameters more, such as inertia, center of mass, drag and friction coefficients, surface area of the vehicle that says inside of water and water density.  Could anyone point me where I can find those values?
On the other hand, I want to implement a trajectory tracking controller. For that reason, I am going to use 3 DOF dynamic model to design the controller. As far as I understood from the ‘’wamv_gazebo’’ file, 6 DOF model is used in the simulation. Do you think that it is alright to design the controller for 3 DOF and control the vehicle in the simulation?
Thanks in advance for your response.

The mass and inertia values are in wamv_description https://github.com/osrf/vrx/blob/master/wamv_description/urdf/wamv_base.urdf.xacro#L124-L128
Water density and drag parameters are here https://github.com/osrf/vrx/blob/master/wamv_gazebo/urdf/dynamics/wamv_gazebo_dynamics_plugin.xacro
You can see in that file that it's using the usv_gazebo_dynamics plugin https://github.com/osrf/vrx/blob/master/usv_gazebo_plugins/src/usv_gazebo_dynamics_plugin.cc
and the ocean_waves model
https://github.com/osrf/vrx/blob/master/wave_gazebo/world_models/ocean_waves/model.xacro

Thanks for your comprehensive response, it really helped a lot! I have another short question about the drag parameters. Is there any way to learn the drag coefficient instead of linear and quadratic drag values?
FYI, my controller worked in the simulation.

Glad it worked! I don't know much about how the parameters are computed. I'll leave this open in case someone else can answer it.

Here is the computation of the drag matrix:
https://github.com/osrf/vrx/blob/492a2a5438d513223ebff500edbcd9d6c76c0148/usv_gazebo_plugins/src/usv_gazebo_dynamics_plugin.cc#L260-L270
Currently the only way to specific the drag forces is with the linear and quad coeff terms. Anything more would involve changing the relevant drag computation code.

learn the drag coefficient instead of linear and quadratic drag values

The drag values are velocity varying based on linear and quadratic coefficients. I believe you may have gotten these two things backwards.

@caguero This issue appears to be resolved. Can we close it before we begin the ignition migration?

@acxz No, we are still in the planning stages so there is no roadmap yet.

Got it. I'd like to point out the following work that you may already be aware of: https://community.gazebosim.org/t/simulate-surface-waves-and-marine-vehicle-dynamics/1268
If this work could be reused and ultimately mainlined into Gazebo Sim that would be wonderful.

Closing this issue because the original questions appear to be answered. Feel free to re-open if anything remains unresolved.


Create an "Architecture Approach" file for the AKS Baseline presets

The Wizard UI has been made extensible to allow for different architecture approach configuration files to be created.
Each architectural approach will contain multiple preset configurations for the AKS Environment.
It would be create to iterate on the currently disabled preset file for the AKS Baseline, to properly set up the presets for

[ ] Baseline cluster
[ ] Regulated baseline cluster

Any gaps should be captured and proposed before beginning work in a PR for them.

Picking this up again now.

@MattLeach25 - We should do a metadata comparison and verify any remaining gaps.


Interactive Brokers market data PriceHandler object

This is a large chunk of work to create a PriceHandler object for dealing with market data received from Interactive Brokers.
It serves a few purposes:

It will be the first proper integration (and testing) of QSTrader against IB, without the worry about committing capital to alpha versions of the software (i.e. no live trading)
It will enable us to run some statistics on market data receipt latency for users around the world
It will allow those who don't have IQFeed (or similar proprietary data source) to access "good" market data

The main features of such a system will include:

A "streaming" price mechanism. The PriceHandler will open a connection to IB and stream market data prices, which will be converted into Events of the appropriate type.
We might need to store extra meta information for IB market events so will need some derived subclasses of Event.

Question:

How will we deal with the price streaming system shutting off unexpectedly? We need to think about reconnections and effects on the trading system (which might be expecting a stream of market events, without interruption).
Do we want to separate out the Streaming class from the PriceHandler class? We are likely to want to have more streaming price handlers (e.g. OANDA) in the future.
Where will we store the config for individuals IB account details? We must make absolutely sure this never touches the codebase via accidental git commits (ENVVARS come to mind as the usual solution).

Thoughts?

Few extra points

I think @femtotrader's big PR could form a nice base for this ? If anyone needs to implement their own PriceHandlers (Bloomberg feed, etc), I'm sure they'll be able to figure it out quickly. I think the complexity is nicely 'tucked away' from the end user in that PR.
We should use https://github.com/Komnomnomnom/swigibpy. This is exactly the same API as the C++ one offered by IB, so the IB documentation works perfectly.
We must also think about how to mock these IB calls for our tests. Easy, boring, but easy to forget.

I'm working with IG
https://github.com/femtotrader/qstrader/tree/ig_price_handler
and I'm now able to display ticks through qstrader

That's nice - I can see us having multiple account IDs like this, although ENVVARs are certainly the way to go.

ENVVARs are the way to go to override some settings (can be necessary for security reason such as running on CI server, etc...)

One more thought to the list;

In the case of dropout and multiple failures with some kind of backoff function, we should notify the user through Twilio or Email. This ExceptionHandler can/should be reused for IBExecutionHandler too.

@ryankennedyio another idea could be Slack integration and send trading messages via slack.  I'm doing it currently during the day to calculate signals prior to the close for trading.  It's surprisingly fast to deliver those messages.

We shouldn't add this kind of feature too deeply into qstrader code.
Maybe logging is enough and use a specific logging handler for this is enough
We can use

standard logging module https://docs.python.org/3/library/logging.html
logbook http://logbook.readthedocs.io/

logbook come by default with a lot of handler (syslog, email, zeromq, redis, twitter...) http://logbook.readthedocs.io/en/stable/quickstart.html#handlers
I think a good idea will be to build our own handler(s)
PushOver is also a nice API for real-time notifications on Android, iPhone, iPad, and Desktop (Pebble, Android Wear, and Apple watches, too!)
Some Python code
https://pushover.net/faq#library-python
https://bitbucket.org/jgoettsch/py-pushnotify/
https://github.com/wyattjoh/pushover/blob/master/pushover.py
http://chump.readthedocs.io/en/latest/
https://github.com/Thibauth/python-pushover
(and probably many other...)

Good point, logging is a better place for this. User notifications should be handled based on the Log 'importance' level.

I'll make a start on this, this evening.
@mhallsmoore could you please create a separate branch from Master for this ? That way we can all PR into the specific branch, and ensure Master stays in a fairly consistent state.

New branch has been created - https://github.com/mhallsmoore/qstrader/tree/ibpricehandler

@ryankennedyio did you manage to make progress ? I have been playing with Blampe/IBPY please let me know if you would like to have look to assess if integration with qstrader is possible, I could email you in private as it is very basic ATM. However, I do think integration with qstrader should be relatively trivial once I have managed to look into design/philosophy of qstrader.
I also think threading for simultaneous multiple order/portfolio monition/tracking might be a way forward, any thoughts ?

@JP-MRPhys I have made a start at:
https://github.com/mhallsmoore/qstrader/pull/133
Feel free to suggest/join in! I expect that branch will be worked on by a few people until it's ready.
We have discussed multithreading briefly and I think we're looking to just focus on getting a Beta ready which supports live trading on a few strategies concurrently. I agree that we will want to support multithreading though.

Beginning with release 9.73, a new Python API client is now included. After you install this beta release on your computer, you can find Python API components in the following locations:
Python API sample code – located in the samples/Python folder in your API installation directory (typically IB_973)
Python source code – located in the source/pythonclient folder in your API installation directory
Source
https://www.interactivebrokers.co.uk/en/index.php?f=5061&ns=T&nhf=T
https://interactivebrokers.github.io/tws-api/#gsc.tab=0
https://github.com/blampe/IbPy

It's interesting that the IB API requires Python >= 3.1.
This would obviously have implications for QSTrader being a Python2.7.x and Python 3.x.x compatible library.
Given the fact that Python is gradually moving to Python3, I think we should consider making QSTrader a Python 3.x.x only library.
Thoughts?

Pandas and numpy also moving to Python3 so it's a good idea

You might want to consider using ib_insync which is a well supported and documented high level wrapper for the Python IB API. It handles all the painful stuff


Kong

Issue #, if available:
Description of changes:
Adding Kong as a Partner
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Closing and Reopening this PR to have GH actions kick in. Apologies for the inconvenience.

@elamaran11 pushed a fix for the role, and cronjob manifest.

@DaniellaFreese I tested the changes in our BareMetal environment and the ISV addon for Kong works fine with functional test. No action needed from your end at the moment. We will continue to complete our validation in other environments such as Snowball, vSphere and Local Cluster over next two days and will complete the all validations and merge provided the software and test works fine in all environments as expectged.

@DaniellaFreese Kong works fine in EKS-A vSphere and EKS Local Cluster environment. We are pending validation on EKS-A on Snowball which i should be able to complete in couple of days as i get to the lab. Stay tuned.

Ignoring the GH Action failure as the GH action to work for Fork is worked upon and not really and error. Merging this.


change: [M3-7994] - Clean up Top Menu and Fix Inconsistencies

Description 📝
Cleans up and fixes many inconsistencies with the Top Menu 🧹
Fixes
1. Fixes bug where opening the Notification/Event Menu would scroll to top in Safari browsers 🔧

Before
After

2. Fixes inconsistent ripple effects

Before
After

3. Makes Notification/Event Menu work and look like the UserMenu and the AddNewMenu 🎨

Before
After

Other Changes 🔁

Makes "Help and Support" and actual Link, so it should be more accessible
Makes "Community" an actual Link, so it should be more accessible

How to test 🧪

Test the Top Menu
Verify accessibility does not get worse

As an Author I have considered 🤔

[x] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[ ] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[x] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

I ran the lighthouse tool against your PR and the develop branch. Although the tool is not perfect it does help point out some useful information. In this case Accessibility dropped from 92 to 87.  It appears to be complaining about the IconButton not having any text for screen readers.
Develop

This PR

The good news is that the workaround seems straightforward based on the recommendations. I tried aria-label="Help", I suppose the same can be done with accessibleAriaLabel. The Accessibility score remained the same, however, the message went away.