Final code cleanup

This is a list of tiny tasks to be done before initial release
Each item is a single task, if they need more than a single line, they probably should get its own ticket number.

[x] CI: Finish release CI action (windows, osx, UbuntuLinux, ArchLinux)
[x] BUG: alsamixer shows x instead of proper bars
[x] BUG: hot reloading of font family does not work
[x] BUG: symbol sequences are not being rendered as ligatures if there are SGRs is set underneath
[x] CRASH: selecting and then select into the outside of the window crashes (didn't I fix that one already?)
[x] CRASH: grep -R --color=auto SC . crashes contour in tmux source dir.
[x] FEATURE: OSC 52: clipboard manipulation
[x] FEATURE: synchronized output (from iTerm2)
[x] FEATURE: decorator: Overline (draw line on almost-top horizontal grid bar - maybe minus thickness pixels?)
[ ] FEATURE: OSC 777: OSC support (via Growl?)
[ ] FEATURE: OSC 777: Windows support (via Windows Toast?)
[x] FEATURE: decorator: CrossedOut (draw line at y = baseline + (hight - baseline) / 2, with std thickness again
[x] FEATURE: decorator: Box (definitely!)
[ ] FEATURE: decorator: Circle (maybe skip?)
[ ] FEATURE: proper windows font loading; either get fontconfig to work on windows, or use Windows APIs for that - https://docs.microsoft.com/en-us/windows/win32/directwrite/custom-font-sets-win10
[ ] FEATURE: mouse shift-clicks for selecting text even if terminal app has enabled mouse tracking
[ ] FEATURE: respect aspect ratio of colored (emoji) glyph (y-offset / bearing)?
[ ] FEATURE: Configuration: ability to disable ligatures globally (or enable selectively by unicode range?)
[ ] beep on BEL via void QApplication::beep()

Archive

[x] UX: have used contour for some weeks without majorly problems
[x] FIX font rendering issue (text slightly transparent)
[x] "TODO: Resetting dynamic color: TextCursorColor"
[x] QA: consider moving Terminal's viewport (scrollOffset) management into Screen.
[x] middle-click pastes from clipboard (if nothing is selected), and also doesn't deselect.
[x] middle-click paste is configurable (can be enabled/disabled)
[x] bracketed paste with a config option to disable it (default: enabled?)
[x] FIXME: ESC deselects current selection instantly if there is any (why does it take 3 ESCs right now?)
[x] Qt5-port complete.
[x] other keyboard layouts than en_US/native: such as de_DE (problem with modifiers vs GLFW)
[x] BUG: Translating mouse position into screen coordinates does not respect padding for windows with a (top-)padding > 0.
[x] Ctrl+\ must translate to SIGQUIT
[x] QA: Process::wait() and Process::checkStatus() are way to similar. merge them into Process::wait(std::chrono::duration d = 0s)
[x] PERF: Config.inputMappings: unordered_map again, but as <InputMapping, array<Action>>
[x] ~UX: add actions::None to unbind defaults in contour.~
[x] UX: shell process environment variables should be overridable (defaulting to ["TERM": "xterm-256color"].
[x] QA: use WinMain on Windows when compiling in Release mode (requires WIN32 flag in cmake).
[x] QA: give terminal_view its own namespace? seperate or nested?
[x] QA: instead of a sequence of if-statements in the main thread's event loop, we could introduce a message bus that other threads could post messages to, that must be handled within the main thread.
[x] kill off ChangeIconName (outdated X11 feature)
[x] key bindings: add sane defaults (ideally those that used to be present).
[x] config reload: add missing reload of key bindings
[x] implement Screen::operator()(AlternateKeypadMode)
[x] kill off ctor Screen(..) that's only used by unit tests (use more trivial one)
[x] ControlFunctionDef's conformanceLevel must reflect the right value as found in manual.
[x] remove dead code
[x] Screen::Buffer to ScreenBuffer above
[x] Function definitions with constexpr selectors (to ease code in at least OutputHandler)
[x] key input mapping should be more consistend (minus vs - and friends)
[x] rename glterminal directory (and library) to terminal_view
[x] rename GLTerminal to TerminalView

remaining interesting points moved over to TODO.md.

remaining interesting points moved over to TODO.md.


data2vec2.0  finetune   maxtokens can only set to  320000   in A100, is there any problem?

data2vec2.0  finetune   maxtokens can only set to  320000   in A100, is there any problem?

A100 with 80G memory
And the finetune training OOM,  when the max tokens larger than 640000.
is there any problem or config should be set to overcome this problem

Audio pretrain and finetune  setting

large model with 0.3B parameters


Select COUNT()

What does this PR do?
This PR adds COUNT() to the SOQL model and the SOQL builder fields selector. COUNT() and other fields are mutually exclusive, so when COUNT() is selected, all other selections are cleared. When some other field is selected, COUNT() is removed.
https://user-images.githubusercontent.com/55159130/107048442-f2ba8f00-6796-11eb-87cf-61c9dc7e3a63.mov
What issues does this PR fix or reference?
@W-8786165@

GEEK TIME:
This really highlights the direction of data flow in the UI, which is by design, but interesting still to geek out on.
Let's say the fields were rendered with SELECT Id, Name from Account.  Then the user selects COUNT().  For a millisecond, the rendered state of the fields component and the state of the model are out of sync.   The fields component state represents the previous state which is this.selectedFields = ['Id', 'Account'].  The event with the new user selectedFields being 'COUNT()' is still in flight, but represents a future state.  That event is caught in app and processed in toolingModelService, which updates the immutableModel.  App detects that model change and then sets the selectedFields = ['COUNT()'].  Only then, does the rendered UI match what the user actually selected.
Luckily that is all super fast.
Our ui data flow concepts:

one-way data flow
state is read only
the model is the single source of truth
UI components are stateless ( mostly, although whereModifierGoup holds some temporary state when editing )
Changes to the model are made with pure functions ( immutableJS )

This mirrors REDUX, or more specifically FLUX ( because we use multiple stores in RxJS ).

@dehru COUNT() is now constantizated.

@jonnyhork - RE: The feature about reselecting the previous fields you mentioned.  Check this out.  Undo to the rescue.
https://user-images.githubusercontent.com/599418/107586614-80dead00-6bbd-11eb-8572-0e9f16440052.mov


Update artifact name to 'io.opencensus.integration:opencensus-ocjdbc'.

Fixes https://github.com/opencensus-integrations/ocjdbc/issues/16.

You need to change the package name as well.

You need to change the package name as well.

Correct, updated.

Cool, thanks @bogdandrutu and @songy23!


Could provide a version adapted for Android 15 with a 16KB size limit?

Problem Statement
https://developer.android.com/guide/practices/page-sizes?hl=zh-cn
Solution Brainstorm
No response
Are you willing to submit a PR?
None
### Depends on
- [ ] https://github.com/getsentry/sentry-java/issues/3657

hi we'll have a look

Currently blocked by https://github.com/getsentry/sentry-java/issues/3657

there's a prerelease out on Android (7.17.0-alpha.1) for testing

FYI: We shipped the 16kb support with the 7.18.0 release of the Android SDK.

I updated our sample app to support 16kb pages. I works on a 16KB emulator device, also with our Isar and SQFlite packages. This only works where we have Sentry Android 7.18.0 SDK, so users also need to upgrade.

@denrase perfect, so it's a matter of documenting it and using at least 8.11.0-beta.1 👍

@buenaflor We support it from 8.11.0-beta.1.  Apart from that, the setup for 16 KB pages is unrelated to Sentry, so i don't think we should provide additional documentation, apart from stating that we support it. WDYT?

@denrase I think we should also at least say that the setup is required (and link there)


Mismatch between job attempt and metric

Organization Name:
Microsoft

Short summary about the issue/question:
For a retried job, prometheus might report an older attempt metric.
An example:

The last attempt is on <IP_ADDRESS>

But metric only show an attempt on <IP_ADDRESS>

not done

job-exporter do not have information about attempts. Both old & new attempt will appears same to job-exporter. I suspect job-exporter on new attempt's node have some problem in reporting metrics, either hanging or something else. Please check log of job-exporter on new attempt's node next time.

Maybe the key problem for this issue is we treat retried task and origin task as the same task. We cannot distinguished them.  If we want to treat these tasks separately, we can add retry number to container label. Then we can use job_name+task_name+task_index+retry_count to identify a task

To solve this issue. Grafana job level page, task level page and task-role level page may need to change. Since the page will show to admin. I suggest use a meaningful field (such as retry_number) to distinguish this . If so, we need to change the launcher code. @yqwang-ms Any suggestion?

@Binyang2014  yarn code is in maintenance mode, let's keep it unchanged unless bug fix.

For K8S, you can leverage this env:
FC_FRAMEWORK_ATTEMPT_ID, it is the same as your retry_number

For mertris, seems you have to use the appid (yarn) or FC_FRAMEWORK_ATTEMPT_INSTANCE_UID (yarn) to distinguish different attempt instances. Because multiple job execution may use the same retry_number (or the FC_FRAMEWORK_ATTEMPT_ID). For admin, I think use app id (or FC_FRAMEWORK_ATTEMPT_ID) is enough.


what ajax library suggest to use?

hi all , with gwt what library suggest to use?

In our team we are using RestyGWT for that: https://resty-gwt.github.io/.
I'm closing the issue. For support it's better to ask questions on our Gitter: https://gitter.im/Axellience/vue-gwt. Don't hesitate to ask there if you have more questions.

thanks a lot


chore: Load local built artifacts in Earthly build

So we can run bootstrap cache and have earthly pick those up, rather than having to build barretenberg locally for running any earthly operation on yarn-project.

@ludamad this is still WIP but would love to have your input on it.

Benchmark results
Metrics with a significant change:

circuit_simulation_time_in_ms (base-parity): 9.33 (-86%)
circuit_simulation_time_in_ms (root-parity): 100 (-94%)
circuit_simulation_time_in_ms (base-rollup): 12,146 (-26%)
circuit_simulation_time_in_ms (public-kernel-app-logic): 1,631 (-18%)
circuit_simulation_time_in_ms (merge-rollup): 3,152 (-51%)
circuit_simulation_time_in_ms (public-kernel-setup): 141 (-37%)
circuit_output_size_in_bytes (private-kernel-ordering): 49,477 (+16%)
circuit_output_size_in_bytes (public-kernel-app-logic): 26,285 (+16%)
circuit_output_size_in_bytes (public-kernel-teardown): 34,820 (+16%)
circuit_output_size_in_bytes (public-kernel-setup): 34,820 (+16%)
tx_size_in_bytes (0): 51,575 (+16%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
740
740
740

l1_rollup_calldata_gas
6,680
6,680
6,692

l1_rollup_execution_gas
586,812
586,812
586,824

l2_block_processing_time_in_ms
1,443 (-5%)
5,342 (-3%)
10,261 (-2%)

l2_block_building_time_in_ms
19,497 (-14%)
76,376 (-14%)
153,153 (-14%)

l2_block_rollup_simulation_time_in_ms
19,292 (-14%)
75,617 (-14%)
150,909 (-15%)

l2_block_public_tx_process_time_in_ms
8,883 (-1%)
34,940
70,064

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
16,409 (-9%)
30,920 (-4%)

node_database_size_in_bytes
20,779,088
37,417,040

pxe_database_size_in_bytes
29,868
59,425

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
164 (-6%)
47,651 (+2%)
32,150 (+12%)

private-kernel-inner
188 (-9%)
80,894 (+5%)
32,150 (+12%)

private-kernel-ordering
176 (-23%)
57,904 (+9%)
:warning: 49,477 (+16%)

base-parity
:warning: 9.33 (-86%)
128
64.0

root-parity
:warning: 100 (-94%)
27,064
64.0

base-rollup
:warning: 12,146 (-26%)
111,062
925

root-rollup
60.3 (-7%)
11,454
789

public-kernel-app-logic
:warning: 1,631 (-18%)
62,385 (+15%)
:warning: 26,285 (+16%)

public-kernel-tail
4,467 (-9%)
168,730 (+6%)
3,898

merge-rollup
:warning: 3,152 (-51%)
2,696
925

public-kernel-teardown
134 (-18%)
62,385 (+15%)
:warning: 34,820 (+16%)

public-kernel-setup
:warning: 141 (-37%)
62,385 (+15%)
:warning: 34,820 (+16%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
11.0
17.9
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.7
31.8
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.644
0.550
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
51.6 (-1%)
80.3
259
508 (+1%)
975 (-1%)
1,935
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.528 (-1%)
0.496
0.472
0.473 (+1%)
0.464
0.463
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
61.1 (-1%)
120
375
748 (+1%)
1,457
2,900 (-1%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
105
208
692
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.536 (-1%)
0.538
0.510
0.514 (+1%)
0.505
0.506
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
67.3

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
108

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.591

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
:warning: 51,575 (+16%)
537,087

Transaction size based on fee payment method

Metric
native fee payment method
fpc_public fee payment method
fpc_private fee payment method

tx_with_fee_size_in_bytes
897
1,145
1,345

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
1,278 (-9%)
928 (-8%)
3,562 (-4%)

Metric
1 public data writes
2 public data writes
3 public data writes
4 public data writes
5 public data writes
8 public data writes

tx_sequencer_processing_time_ms
891 (+1%)
791 (-1%)
1,418 (-2%)
930 (-2%)
2,191 (-1%)
1,113 (-2%)

After playing some more with this, I'm less convinced it's a good solution. Getting the use_local_builds arg into yarn-project means having to explicitly pass it from every other earthfile that consumes it (eg end-to-end) and it ends up polluting every client of this earthfile. I also haven't been able to make the flag --pass-args work from eg a WITH DOCKER --load, so the arg needs to be explicitly set.

Hmm just read about ARG --global, maybe I can refactor using that...?

While this is a useful stopgap, we intend to pretty quickly move to replacing the old ECR based caching, so we should be pulling these artifacts from there directly rather than from local. Closing this PR for now.


Is this library usable?

Hi,
Is this library ready to be used?
I don't mean production ready, but somewhat usable?
Thanks

Hello,
We have only our product XIO-110 on hand which does not implement Holding Registers, so some functions are not implemented yet.
XIO-110 is this product.
https://www.centurysys.co.jp/products/protocol/xio110.html
We have confirmed that it works up to the test described in src/nim_asyncmodbus.nim.

Very good, thank you for the information 👍


KeyError: 'effcientdet-d0' How to solve this error？

@LDZ233 Just a typo in the word efficientdet. 'i' is missing...


Form Validation

Project title
Form Validation
Project Description
The idea behind this project
whenever we login into any web page then there in the login form they set up the auto validation functionality with the help of javascript.  This means each part of the form has restricted if is an email section then there should be a valid email otherwise it wouldn't accept.
How does it work
While loading there will be a registration form for you just need to enter the data as per the required field and at the end hit the submit button. So, from here javascript will validate each filed value if there will be any match it would accept and it will throw an error.
Stack:
And in order to tick the check box just put x inside them for example - [x] like this. Please delete options that are not relevant.

[x] Html
[x] CSS
[x] JavaScript

for more details please refer to the attached images.

/assign


examples/python: Ship wheels for all platforms for pypi

Right now https://pypi.python.org/pypi/gohttp ships with just an OSX-built shared object for gohttplib. Won't work on other architectures.

The default tgz is linux and there's an OSX wheel. No Windows for now.


What the corresponding relation between config files and checkpoints?

Hi,
I noticed there're several config files and checkpoints for each dataset. Take KITTI as an example, what's the corresponding relation between config files kitti15_ft_ar.json  kitti15_ft.json  kitti_raw.json and checkpoints pwclite_ar_mv.tar  pwclite_ar.tar  pwclite_raw.tar?  Which config should I use if I want to reproduce these three models?
Besides, I tried to evaluate the checkpoint pwclite_ar_mv.tar with all the three config files and always got the following error:

[INFO] => using pre-trained weights checkpoints/KITTI15/pwclite_ar_mv.tar.
Traceback (most recent call last):
File "train.py", line 50, in
basic_train.main(cfg, _log)
File "/proj/xcdhdstaff1/wenjingk/SLAM/ARFlow-master/basic_train.py", line 53, in main
train_loader, valid_loader, model, loss, _log, cfg.save_root, cfg.train)
File "/proj/xcdhdstaff1/wenjingk/SLAM/ARFlow-master/trainer/kitti_trainer.py", line 13, in init
train_loader, valid_loader, model, loss_func, _log, save_root, config)
File "/proj/xcdhdstaff1/wenjingk/SLAM/ARFlow-master/trainer/base_trainer.py", line 26, in init
self.model = self._init_model(model)
File "/proj/xcdhdstaff1/wenjingk/SLAM/ARFlow-master/trainer/base_trainer.py", line 75, in _init_model
model.load_state_dict(weights)
File "/scratch/workspace/wenjingk/anaconda-3.6/envs/python3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 830, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for PWCLite:
size mismatch for flow_estimators.conv1.0.weight: copying a param with shape torch.Size([128, 198, 3, 3]) from checkpoint, the shape in current model is torch.Size([128, 115, 3, 3]).
size mismatch for context_networks.convs.0.0.weight: copying a param with shape torch.Size([128, 68, 3, 3]) from checkpoint, the shape in current model is torch.Size([128, 34, 3, 3]).

I guess you need to have 3 frames in the config for the multi-view checkpoint.


[BUG] Histogram to Distribution conversion fails for values larger than int32

Agent Environment
6.16.x - 6.43.x
Describe what happened:
We use the send_distribution_buckets option to convert openmetrics / prometheus endpoint metrics from gauges into proper distribution metrics.
We have a few metrics where the per-bucket values are extremely high (larger than the maximum value that fits into int32), and this causes an OverflowError when the per-bucket values are forcefully converted to int32.
(pkg/collector/runner/runner.go:292 in work) | Error running check openmetrics:
[{"message": "signed integer is greater than maximum",
  "traceback": "Traceback (most recent call last):
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/base.py\", line 652, in run
    self.check(instance)
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/base_check.py\", line 66, in check
    self.process(scraper_config)
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py\", line 361, in process
    self.process_metric(metric, scraper_config, metric_transformers=metric_transformers)
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py\", line 485, in process_metric
    self.submit_openmetric(metric.name, metric, scraper_config)
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py\", line 611, in submit_openmetric
    self._submit_gauges_from_histogram(metric_name, metric, scraper_config)
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py\", line 703, in _submit_gauges_from_histogram
    self._submit_sample_histogram_buckets(metric_name, sample, scraper_config, hostname)
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py\", line 807, in _submit_sample_histogram_buckets
    tags,
  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/base.py\", line 301, in submit_histogram_bucket
    self, self.check_id, name, value, lower_bound, upper_bound, monotonic, hostname, tags
OverflowError: signed integer is greater than maximum
"}]

Here's the line of code where I believe the error happens:
https://github.com/DataDog/integrations-core/blob/11e69724f4438d4afb326776ab151a421438affc/datadog_checks_base/datadog_checks/base/checks/base.py#L602-L611
Shouldn't this use float instead of int here, just as it does with other metric types?
https://github.com/DataDog/integrations-core/blob/11e69724f4438d4afb326776ab151a421438affc/datadog_checks_base/datadog_checks/base/checks/base.py#L693-L702
float seems to be a valid data type for distribution metrics, so I think this should fix the problem? 🤔
At the very least, the OverflowError should be caught and handled here, similar to the ValueError. Otherwise, no other metrics that come after the metric that causes the overflow error get collected.
Describe what you expected:
Distribution metrics with large bucket values are collected successfully.
Steps to reproduce the issue:
Collect a distributionmetric via the openmetrics collector that has a bucket value larger than int32.
Additional environment details (Operating System, Cloud provider, etc):

Hey there 👋. Thanks for reporting this and sorry for the delay. I'm trying to reproduce the specific issue that you're reporting without much success.
I've tried scraping an endpoint with artificial metrics that use very high values and it doesn't trigger OverflowErrors for me. It does prevent the metrics from being properly submitted by the Agent (for a different reason), but it never shows as an Overflow Error.
What's more, calling int on an arbitrary large number doesn't trigger an integer overflow in Python because Python uses arbitrary-precision integers (bignums).
Therefore, in order to investigate further, I need some more data:

What version is the Agent used to produce the traceback you shared? The line numbers seem very off when looking at the current state of the code (and this code doesn't change that often). Note that a bug report on a very old Agent version is not very useful, for if the problem doesn't occur in a recent version, there's nothing to fix from our side.
Could you share a sample Prometheus exposition that triggers this error for you?

Finally, I'd like to mention that we strongly encourage the use of Python 3 in the Agent, which would also allow you to use the currently maintained operation mode for OpenMetrics-based integrations, enabled by setting openmetrics_endpoint instead of prometheus_url (see this guide).

Hey! 👋
Sorry that it took me this long to respond! 🙇♂
From what I understand, we're running agent version 6.x with Python 2. I'm not a Python expert, but from what I understand, in Python 2 there's 2 integer types, int and long (bigint). In Python 3, int replaces long because it's a bigint as you described.
That also explains why you couldn't reproduce this on Python 3.
Would it be possible to get this fixed for agent version 6.x? I guess calling long instead of int to convert the value would work both on Python 2.x and Python 3.x the same way?

Okay, maybe my understanding of Python is wrong - apparently long and int were unified already in Python 2.x. I'll try re-enabling the distribution collection and will see if I can figure out what's going on.

Okay, I re-enabled the distribution option and saw this failure here:
Traceback (most recent call last):
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/base.py", line 652, in run
    self.check(instance)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/base_check.py", line 66, in check
    self.process(scraper_config)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py", line 361, in process
    self.process_metric(metric, scraper_config, metric_transformers=metric_transformers)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py", line 485, in process_metric
    self.submit_openmetric(metric.name, metric, scraper_config)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py", line 611, in submit_openmetric
    self._submit_gauges_from_histogram(metric_name, metric, scraper_config)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py", line 703, in _submit_gauges_from_histogram
    self._submit_sample_histogram_buckets(metric_name, sample, scraper_config, hostname)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/openmetrics/mixins.py", line 807, in _submit_sample_histogram_buckets
    tags,
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/base.py", line 301, in submit_histogram_bucket
    self, self.check_id, name, value, lower_bound, upper_bound, monotonic, hostname, tags
OverflowError: signed integer is greater than maximum

Looks like we're running datadog agent version 6.15.1. 😞
Line 301 in datadog_checks/base/checks/base.py is:
        aggregator.submit_histogram_bucket(
            self, self.check_id, name, value, lower_bound, upper_bound, monotonic, hostname, tags
        )

I guess this is fixed in newer versions of the datadog agent, as submit_histogram_bucket on the aggregator is defined here:
https://github.com/DataDog/datadog-agent/blob/115b9ba4f7c76bd17508d560a6330e7df76c06e9/rtloader/common/builtins/aggregator.c#L378-L416
And the call to PyArg_ParseTuple is PyArg_ParseTuple(args, "OssLffisO|b", &check, &check_id, &name, &value, &lower_bound, &upper_bound, &monotonic, &hostname, &py_tags, &flush_first_value) - so value is parsed as a long long.
On 6.14.3, the call looks like PyArg_ParseTuple(args, "OssiffisO", &check, &check_id, &name, &value, &lower_bound, &upper_bound, &monotonic, &hostname, &py_tags), which explains the error we're seeing - value is parsed as a int.

Looks like this was fixed in 6.18 via https://github.com/DataDog/datadog-agent/commit/fd39ff09cfc48ca44677ee74b6fdc4bae605b7fd

Would you be able to update to a more recent version of the Agent and try? You're indeed using a very old version, which makes the bug report not very useful.

Yeah, I'm asking around. I'm going to close this issue (to reduce the noise for you). Once / If we upgrade to at least 6.18, and I run into this again, I can always reopen this.
Sorry for the noise and thanks for looking into this! 🙇♂


issue #42 added social media panel

Related Issuse #42

Info about Issue or bug

Closes: #[issue number that will be closed through this PR]
Describe the changes you've made
added social media icons
Checklist:

[x ] My code follows the style guidelines of this project.

[x ] I have performed a self-review of my own code.

[x ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[x ] My changes generate no new warnings.

Screenshots

Original
Updated

original screenshot
updated screenshot

Related Issuse #42

Info about Issue or bug

Closes: #[issue number that will be closed through this PR]
Describe the changes you've made
added social media icons
Checklist:

[x ] My code follows the style guidelines of this project.

[x ] I have performed a self-review of my own code.

[x ] I have commented my code, particularly in hard-to-understand areas.
[ ]  I have made corresponding changes to the documentation.
[x ] My changes generate no new warnings.

Screenshots

Original	Updated
original screenshot	updated screenshot

Don't commit the changed password, let it be blank and the icons of the social media are not clickable. Pl change that.

Okay I will do that
Thank You

I've made the changes. Please review it

The icons are not clickable to me. If it is working for you then Pl upload a picture of it.

@CodesbyUnnati yes ma'am icons are clickable.
Actually I have not attached any link to the icons that's why they are not redirecting to new page.

Here in class Social Media Dev instead of href="#" if you will put your social media link then it will redirect to your social media account


Bug in Opera: No return after copy-button and its popup-message

Hi there!
This issue is copied from the DT forums [0], where "Rockb" posted it on July 1st.
Today I ran into the same problem and couldn't find a fix.
I will be very happy if you can fix it. - Thanks! :)
[0] http://www.datatables.net/forums/discussion/5592/
"After pressing the button to copy all rows there popup a message like "43 rows copied..."
So far so good... but in Opera (11.5) there is no return to the normal screen.
It remains the gray background screen, AND there is no possibility like 'escape' or  a 'click' somewhere on the screen to avoid this error. Only a refresh helps.
My "copy"-button is placed in a "collection" - so (BEFORE) it's alredy in grey background-modus."

I've just put together this example: http://live.datatables.net/ofizul/edit#preview which has a copy button in the main list and in a collection. Using Opera 11.52 Mac I've not been able to reproduce the problem. Does this example show the problem for you?
Thanks,
Allan

Hi Allen,
thanks for your reply and sry for my delay!
I tested your example with

Opera 11.51 (build 1087) and Windows XP and
Opera 11.52 (build 1100) and Linux (i686).

Test 1. always failed - like described in my bug report but test 2. never faild and ran very smooth... - Dunno if there should be something changed in DT, 'cause my problem only exists in an 'old' version of Opera...
Thanks again & best regards,
Kai

Hi Kai,
Good to hear that it is working in the latest Opera. I'm inclined to say that I won't fix it in TableTools since it is an Opera bug which is now fixed. If Opera 11.51 had a large user base then yes I would be something that I would look at working around, but given that most Opera users will (generally) stick to the latest release, I'm not going to look at this at the moment.
Having said that, thanks very much for flagging it up! If there are more reports of this issue, then I will look into addressing it for older Opera versions.
Regards,
Allan


How about add a mode to highlight all parent lines from the root note to current one?

How about add a mode to highlight all parent lines from the root note to current one?
Sometimes I'd like to focus current writing part, but still need to keep the cue from the parent ones of the outline.

Hi @hh23485 this sounds interesting.  Let me get something clarified first.  If I had the following content:

Parent

One
Two  <- you had this actively selected
Three

If you were currently editing "Two", would you expect with your request that "One" and "Three" as well as "Parent" to be highlighted?  Or "Parent", "One" and "Two" and not "Three"?

from my view, Only parent. Show it's more easily for me to know which section/topic I am focus on.
But it's depends on you, or give it optional?
Thanks
|
胡明昊
@.***
|
---- 回复的原邮件 ----
| 发件人 | Seth @.> |
| 日期 | 2022年04月21日 12:29 |
| 收件人 | @.> |
| 抄送至 |<EMAIL_ADDRESS>|
| 主题 | Re: [sethfair/logseq-focus-mode] How about add a mode to highlight all parent lines from the root note to current one? (Issue #3) |
Hi @hh23485 this sounds interesting. Let me get something clarified first. If I had the following content:
Parent
One
Two <- you had this actively selected
Three
If you were currently editing "Two", would you expect with your request that "One" and "Three" as well as "Parent" to be highlighted? Or "Parent", "One" and "Two" and not "Three"?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Thank you for your feedback.


changed iris-community to irishealth-community

It fails during build phase.
I believe this should be irishealth-community.
DO ##CLASS(HS.HC.Util.Installer).InstallFoundation(namespace)
^
 *HS.HC.Util.Installer
%SYS>

Thank you @IRISMeister


[Feature] Oracle: Add/Edit/Delete scheduler jobs / dbms jobs

In SQL Developer I am able to add/edit/delete database scheduled jobs. It would be great to get this feature in DBeaver, too.

First scheduler metadata version will include jobs and programs in read-only mode.
Honestly I'm not an expert in this area so I can't make good UI on my own just because I'm not familiar with use-cases.
It'd be good if someone will describe good UI for scheduled jibs/programs/etc (as a separate feature request).

If you like, you may have a look at the Oracle SQL Developer for further insight. That's where I got the screenshots from and it's solved in a very consistent manner, I think.

I have SQL developer and can see this. But I don't want to just replicate all functions. This requires a lot of effort and I'm not sure that SQL developer has the best UI/behavior (usually it doesn't).
So you can create feature request with desired UI for some particular features related to scheduled jobs.


Multiple Speaker support

Surround sound can only go so far without volume control, let alone volume control with zones.  The video player should be able to handle this because of issues like #19, which is literally a surround sound system.  Zones for this would be, Front, Rear, Side, LFE.

Literally just need to support an array of audio sources unless you want per channel control


Add nix support

You need to add a test case for the extension.

@jschpp @ggreer anyone know what's wrong with my tests?

Ready for landing @jschpp @ggreer


url is not defined

Describe the bug
After compiling the project the game tries to load but the console says that URL isn't defined
To Reproduce
Steps to reproduce the behavior:

compile an rpgmaker MZ project
try to launch the game afterwards
open the console (if using the SDK version of NWJS)

Expected behavior
the game loads perfectly fine, with plugins and everything
Screenshots

Desktop (please complete the following information):

OS: Windows
Release/Distro: Windows 10
Version: 19043.1110
System Architecture: 64-bit
.NET Runtime: 5.0
Rpgmaker Version: Rpgmaker MZ 1.3.2

Heyo.
I can't reproduce it on my side. Just for testing, change the loadMainScripts() to this:
    loadMainScripts() {
        try {
            scriptUrls.forEach(url => {
                nw.Window.get().evalNWBin(null, url);
            });
            PluginManager.setup($plugins);
        }
        catch {
            this.printError("Failed to load", url);
        }
        window.addEventListener("load", this.onWindowLoad.bind(this));
        window.addEventListener("error", this.onWindowError.bind(this));
    }

it appears to do the same thing, but only if I edit the rmmz_managers.js

this works

this doesn't

Hmm... That is really odd.
Just as a test, change the PluginManager.loadScript to this:
PluginManager.loadScript = function(filename) {
    nw.Window.get().evalNWBin(null, "js/plugins/" + filename + ".bin");
};

still the same issue

Would sending a list of all the plug-ins I use help with figuring out the problem?

Sure.

(I had to do a few screen shots, because I have way too many plugins to type out)


Many node packages are very old, some fully broken (Mocha)

my environment running ArangoDB
I'm using the latest ArangoDB of the respective release series:

[ ] 2.8
[x] 3.0
[ ] self-compiled devel branch

On this operating system:

[ ] DCOS on

[ ] AWS
[ ] Azure
[ ] own infrastructure

[x] Linux

[ ] Debian .deb
[ ] Ubuntu .deb
[ ] SUSE   .rpm
[ ] RedHat .rpm
[ ] Fedora .rpm
[ ] Gentoo
[ ] docker - official docker library
[x] other: Archlinux -> Docker -> (Debian?)

[ ] Windows, version:
[ ] MacOS, version:

Mocha, for example, is quite broken. beforeEach/afterEach runs before/after every single test defined, not just those on the same block level. I.e. it will run on tests for completely unrelated modules and break them.

The mocha problems have been addressed in recent commits to devel, 3.1 and 3.0 and should be fixed.
The outdated packages still need to be addressed though.

Note to myself: Output from npm --outdated:
Package                     Current  Wanted  Latest  Location
eslint                       2.13.1  2.13.1   3.9.1
eslint-config-semistandard    6.0.2   6.0.2   7.0.0
eslint-config-standard        5.3.1   5.3.1   6.2.1
eslint-plugin-promise         1.3.2   1.3.2   3.3.0
eslint-plugin-standard        1.3.2   1.3.2   2.0.1
highlight.js                  9.4.0   9.4.0   9.8.0
joi                           8.4.2   8.4.2   9.2.0
joi-to-json-schema            2.2.0   2.2.0   2.3.0
lodash                       4.13.1  4.13.1  4.16.6
marked                        0.3.5   0.3.5   0.3.6
mime-types                   2.1.11  2.1.11  2.1.12
minimatch                     3.0.0   3.0.0   3.0.3
mocha                         2.5.3   2.5.3   3.1.2
qs                            6.2.0   6.2.0   6.3.0
semver                        5.1.0   5.1.0   5.3.0
sinon                        1.17.4  1.17.4  1.17.6

I'm not sure why all the eslint stuff is in there. I thought we are now using semistandard, which also comes as a standalone module? We should check joi for breaking changes as well as what changed between mocha 2.5 and 3.1 (we can't simply update mocha via npm).


User defined & global OPLIST

It may be good to allow the user to define global OPLIST to use like this:
    #define M_OPLIST_mpz_t (INIT(mpz_init),CLEAR(mpz_clear), NEW(mpz_new), DEL(mpz_free) )
    #define M_OPLIST_mpq_t (NEW(mpq_new), DEL(mpq_free), REALLOC(none))

and modify M*lib to handle theses global definitions in some place like:

macro M_LET which could accept a type instead of an oplist as the last argument (with a little bit of macro programming, we should be able to differentiate between an oplist or a global type),
macro M_EACH (same reason but less usefull),
new layer for the memory allocation: M_MEMORY_ALLOC should be able to detect that we want to allocate a type T, and that the type T have globally overloaded its NEW operator.
containers with no given oplist should check if such global oplists exist.

First to evaluate the PRO and the CON.
Supported types will be limited more or less to 'typedef' ones only.

Issue with container with no given oplist: I don't know how to concact type and ___OPLIST in a reliable way, as type may not allow concatenation (int * for example).

It seems that we can concact OPLIST__ and a type, as there is no type which starts with a non letter (the only exception is brackets).


Add git fetch upstream to contributing doc.

In the contributing doc, change
git rebase upstream/main

to
git fetch upstream
git rebase upstream/main

This ensures that users fetch upstream before rebasing. I had to do this for #3712 and prior PRs. It also matches JAX's contributing doc.

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

Project coverage is 58.70%. Comparing base (3da44bc) to head (84809ef).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3757   +/-   ##
=======================================
  Coverage   58.70%   58.70%
=======================================
  Files         102      102
  Lines       12412    12412
=======================================
  Hits         7286     7286
  Misses       5126     5126

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


How to visit all the text layers?

I want to iterate through all text layers in a PSD file and retrieve the position and bounding box of each text layer.
My PSD file has a complex layer structure, and after reading some examples, I'm unsure how to recursively access all layers.
Can anyone help?

if u find out let  me know

import photoshop.api as ps

app = ps.Application()
for layer in app.activeDocument.layers:
    print(layer.typename)
    print(layer.bounds)


[ic-theme] Add mechanism for setting global dark mode theme

Summary
Implement a mode or color prop to theme so that users can set dark mode, which subsequently updates every component to use the correct option for the appearance prop.
💬 Description
Would need a function to get all components, update appearance to dark or light depending on the mode.
Would also need functions within some components for slotted content and ensuring the appearance prop on those are updated as well.
If the appearance prop is specifically set on a component then that should take precedence over the theme appearance.
Build into theme the option to either match system preferences for dark mode, force light, or force dark.
💰 Use value
Enables a simple dark mode for users.

Consider for Page Header how the inverse colour will be needed

Marked as duplicate: #1214


mkdir -p fails when parent directory exists

I tried to build (update) uutils with uutils and got this error.
$ mkdir -p /usr/bin
mkdir: cannot create directory '/': File exists
mkdir: cannot create directory '/usr': File exists
mkdir: cannot create directory '/usr/bin': File exists

I'll fix this.

Oh, sorry @KeenS, I didn't notice you're a contributor too—did you file the issue in order to submit a PR that fixes it later?

No, I just issued, but would have fixed if no one worked for this issue. Thank you.


support: Fix remote realm details.

Notes:

Corrects two references in remote_realm_details.html to be remote_realm (instead of remote_server).
Excludes the system bot realm from the remote realms listed in the support view for a remote server.

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Merged, thanks @laurynmm!


Error: "Specified 'mysql2' for database adapter, but the gem is not loaded"

reposted from @bshaffer:
I receive the following error when running rake db:migate for the Using Cloud SQL portion of the bookshelf app:
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:50:in `establish_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/mysql_database_tasks.rb:8:in `establish_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:93:in `create'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:107:in `block in create_current'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:275:in `block in each_current_configuration'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:274:in `each'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:274:in `each_current_configuration'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:106:in `create_current'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'

I removed Gemfile.lock and edited my Gemfile so that it contains
gem 'mysql2', '~> 0.3.18'

instead of
gem 'mysql2'

And that seemed to do the trick. I got this idea from this page, which states that mysql2 is currently incompatible with rails 4

Fixed.  Now using mysql2 0.3.20.  0.4.2 should fix Rails 4 compatibility when released.

How to solve this problem?
when i enter this command in rails      rake db:create
that will show following error
Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:177:in rescue in spec' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:174:in spec'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:50:in establish_connection' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/mysql_database_tasks.rb:8:in establish_connection'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/mysql_database_tasks.rb:15:in create' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:93:in create'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:107:in block in create_current' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:275:in block in each_current_configuration'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:274:in each' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:274:in each_current_configuration'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:106:in create_current' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:17:in block (2 levels) in <top (required)>'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in call' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in block in execute'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in each' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in execute'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:179:in block in invoke_with_call_chain' /usr/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:165:in invoke'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:150:in invoke_task' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in block (2 levels) in top_level'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in each' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in block in top_level'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:115:in run_with_threads' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:100:in top_level'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:78:in block in run' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in standard_exception_handling'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:75:in run' /var/lib/gems/2.1.0/gems/rake-10.5.0/bin/rake:33:in <top (required)>'
/usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in '
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5, "username"=>"root", "password"=>990269, "database"=>"blog_development"}
Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:177:in rescue in spec' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:174:in spec'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:50:in establish_connection' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/mysql_database_tasks.rb:8:in establish_connection'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/mysql_database_tasks.rb:15:in create' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:93:in create'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:107:in block in create_current' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:275:in block in each_current_configuration'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:274:in each' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:274:in each_current_configuration'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:106:in create_current' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:17:in block (2 levels) in <top (required)>'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in call' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in block in execute'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in each' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in execute'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:179:in block in invoke_with_call_chain' /usr/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:165:in invoke'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:150:in invoke_task' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in block (2 levels) in top_level'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in each' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in block in top_level'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:115:in run_with_threads' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:100:in top_level'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:78:in block in run' /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in standard_exception_handling'
/var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:75:in run' /var/lib/gems/2.1.0/gems/rake-10.5.0/bin/rake:33:in <top (required)>'
/usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in '
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5, "username"=>"root", "password"=>990269, "database"=>"blog_test"}
rake aborted!
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:177:in rescue in spec' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:174:in spec'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:50:in establish_connection' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:109:in create_current'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:17:in block (2 levels) in <top (required)>' Gem::LoadError: can't activate mysql2 (~> 0.3.13), already activated mysql2-0.4.2. Make sure all dependencies are added to Gemfile. /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:3:in <top (required)>'
/var/lib/gems/2.1.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in require' /var/lib/gems/2.1.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in block in require'
/var/lib/gems/2.1.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in load_dependency' /var/lib/gems/2.1.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in require'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:175:in spec' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:50:in establish_connection'
/var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:109:in create_current' /var/lib/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:17:in block (2 levels) in <top (required)>'
Tasks: TOP => db:create
(See full trace by running task with --trace)


Unexpected io_uring_submit() return value after io_uring_wait_cqe_timeout()?

Hello! We’re running liburing master (as of e98b974502d) on Linux 5.4.17 and are running into some odd and possibly unexpected behavior. We noticed while using io_uring_wait_cqe_timeout() that occasionally a later call to io_uring_submit() would return a count of submitted SQE’s one greater than the number we expected because we thought the return value should equal the number of SQE’s previously acquired with io_uring_get_sqe() that have not yet been submitted.
After looking deeper into the liburing code, it seems that this is happens when an expired timeout event from a timeout SQE created internally by liburing (with user_data == LIBURING_UDATA_TIMEOUT) gets handled in __io_uring_peek_cqe(), which ultimately causes the system call to io_uring_enter() to be skipped in _io_uring_get_cqe(), even when there are SQE’s that need to be submitted. This means that when calling io_uring_wait_cqe_timeout(), it is not guaranteed that the timeout SQE created by liburing will be properly submitted until the user makes a later call to io_uring_submit() when they would see the extra submission reflected in the return value.
Below is a short reproduction:
#include <stdio.h>
#include <string.h>
#include <liburing.h>

int main(void)
{
        struct io_uring ring;
        int ret;
        struct io_uring_sqe *sqe;
        struct io_uring_cqe *cqe;
        struct __kernel_timespec one_nano_timeout = {
                .tv_sec = 0L,
                .tv_nsec = 1L
        };
        struct __kernel_timespec one_second_timeout = {
                .tv_sec = 1L,
                .tv_nsec = 0L
        };
        long long int user_data = 42;

        /* Create io_uring */
        ret = io_uring_queue_init(8, &ring, 0);
        if (ret < 0) {
                fprintf(stderr, "queue_init: %s\n", strerror(-ret));
                return 1;
        }

        /* Submit no-op request that the kernel can immediately fulfill */
        sqe = io_uring_get_sqe(&ring);
        if (!sqe) {
                fprintf(stderr, "io_uring_get_sqe returned null SQE");
                return 1;
        }
        io_uring_prep_nop(sqe);
        io_uring_sqe_set_data(sqe, (void *)user_data);
        ret = io_uring_submit(&ring);
        if (ret != 1) {
                fprintf(stderr, "io_uring_submit unexpected ret: %d\n", ret);
                return 1;
        }

        /*
         * Wait with a short, one nanosecond timeout, to ensure that the
         * timeout expires prior to a second wait_cqe_timeout call below
         */
        ret = io_uring_wait_cqe_timeout(&ring, &cqe, &one_nano_timeout);
        if (ret < 0) {
                fprintf(stderr, "io_uring_wait_cqe_timeout unexpected error: "
                                "%s\n", strerror(-ret));
                return 1;
        }
        printf("Nop completion received with user_data: %lu and res: %d\n",
                        (long unsigned int)(cqe->user_data), cqe->res);
        io_uring_cqe_seen(&ring, cqe);

        /*
         * Wait with a one second timeout, which will return immediately
         * with the expiration of the previous, one nanosecond timeout
         */
        ret = io_uring_wait_cqe_timeout(&ring, &cqe, &one_second_timeout);
        if (ret < 0) {
                printf("io_uring_wait_cqe_timeout 2: %s\n", strerror(-ret));
        }

        /*
         * Call submit, expecting a return value of zero because no call to
         * io_uring_get_sqe has been made to allocate a new SQE entry since
         * the no-op request. Instead, 1 is returned, due to the presence
         * of the one second timeout SQE created by liburing.
         */
        ret = io_uring_submit(&ring);
        printf("Final submit ret: %d\n", ret);

        /* Tear down io_uring */
        io_uring_queue_exit(&ring);

        return 0;
}

kernel version:
Linux xie-PC 5.14.0-rc4-amd64-desktop #1 SMP Wed Aug 4 14:50:57 CST 2021 x86_64 GNU/Linux
run your reproduction  code:
./issue
Nop completion received with user_data: 42 and res: 0
io_uring_wait_cqe_timeout 2: Timer expired
Final submit ret: 0          (return value is zero  )

I don't expect this scenario to arise for Linux versions 5.11 and later because with IORING_ENTER_EXT_ARG set, liburing can pass a pointer to the timespec struct (with the timeout duration) directly into the io_uring_enter syscall to achieve a timeout. Before 5.11, to do the same thing, I believe liburing creates its own timeout operations and consumes the completion events, which can lead to this case.


Error: ENOENT: no such file or directory, stat '/

followed your steps - as described here -> https://github.com/Azure-Samples/angular-cosmosdb/
getting an error when I browse - http://localhost:3000
API running on localhost:3000
Mongoose: heroes.ensureIndex({ id: 1 }, { unique: true, background: true })
Error: ENOENT: no such file or directory, stat '/Users/vikram/dev/angular/cosmosmaster/angular-cosmosdb/dist/index.html'
at Error (native)

Hi, thanks for opening this. Can you verify that you ran the nb build step and that it created a folder /dist with the index.html file in it?

I ran the ng build. The dist folder was created but does not have the index.html. It is under publicweb though.
Attached is the screen shot.

From: John Papa<EMAIL_ADDRESS>Sent: Saturday, November 11, 2017 10:38 AM
To: Azure-Samples/angular-cosmosdb
Cc: vikramhn; Author
Subject: Re: [Azure-Samples/angular-cosmosdb] Error: ENOENT: no such file or directory, stat '/ (#11)
Hi, thanks for opening this. Can you verify that you ran the nb build step and that it created a folder /dist with the index.html file in it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Azure-Samples/angular-cosmosdb/issues/11#issuecomment-343673292, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQZ41ZbFQIzRVOyj4RzW5wfx45Gg6ppYks5s1b9ngaJpZM4QB1e0.

@johnpapa  same issue here. dist was created but index.html absent. Any clues on what went wrong here.Also saw this after node src/server/index.js
(node:72784) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MongoError: Authentication Failed
(node:72784) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error: ENOENT: no such file or directory, stat '/Users/myid/Downloads/angular-cosmosdb/publicweb/index.html'
but az login was successful.

@anotherrohit
the express server files are placed in /dist and express serves the files in /dist/publicweb (the angular files).
Auth failed means your mongo connection could not be made properly. be sure to connect to a valid mongo or cosmos db database.

I just made a change to the master branch's mongo connection string settings and updated the readme to reflect it. Please try to pull the latest and update your connection string settings.

Got it! the authentication works now, but still see the error on the page
Error: ENOENT: no such file or directory, stat '/Users/uid/Downloads/angular-cosmosdb/publicweb/index.html
note the dist is missing in the error,seems the path has not been set to read dist?Where can i change this?

awesome, thanks

That's correct, below command fixed the issue
ng build --output-path=publicweb


Load plugin configuration field value from Kubernetes Secret

What does this PR do?
When declaring a middleware plugin with the Kubernetes CRD provider, it allows providing plugin configuration field values from a Kubernetes Secret.
The reference of the form urn:k8s:secret:secretName:secretKey is then replaced by the secret value if found, otherwise an error is thrown.
Motivation
Supersedes #8995
Fixes #8994
More

[x] Added/updated tests
[ ] Added/updated documentation

Additional Notes
Co-authored-by: nnlquan<EMAIL_ADDRESS>

Thanks, @kevinpollet, and @rtribotte for this. I appreciate it very much since I think this is a very needing feature.


spaghetti/analysis.py:182: RuntimeWarning

In[1]: kres = spgh.NetworkK(ntw, ntw.pointpatterns['crimes'], permutations=99)

Users/jgaboardi/spaghetti/spaghetti/analysis.py:182:
RuntimeWarning: invalid value encountered in less_equal
  y[i] = len(nearest[nearest <= s])

This appears to be caused by comparisons to np.nan values


Dragonrage: Watch mintly.uk

Dragonrage requests the watch of the watch_keyword mintly\.uk. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

mintly\.uk has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Rejected by Spevacus in Charcoal HQ. Reason: 'The report that this watch formed from is, in my and cigien's opinion, FP because affiliation is disclosed and the question was seeking software recommendations'


NETOBSERV-844 Unable to have a working statusUrl in FlowCollector with Loki Operator 5.6

Added status TLS flags for status URL:

loki-status-skip-tls Skip TLS checks for loki HTTPS connection
loki-status-ca-path Path to loki status CA certificate
loki-status-user-cert-path Path to loki status user cert for mTLS
loki-status-user-key-path Path to loki status user key for mTLS

/ok-to-test

/lgtm

/approve


Two new options: security fixes

Description
Two new options: security fixes
Fixes #279
Type of change

Configuration update

Testing steps
N/A
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

Codecov Report
Base: 95.16% // Head: 95.16% // No change to project coverage :thumbsup:

Coverage data is based on head (88f2c10) compared to base (36fe77d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   95.16%   95.16%
=======================================
  Files          39       39
  Lines        1302     1302
=======================================
  Hits         1239     1239
  Misses         46       46
  Partials       17       17

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fix the bug header properties can not be added in Service Bus

Description
When i want to add some properties in header using spring streaming Message, i found that producer can set the properties successfully, but the header properties can not be got in consumer. I have fixed this bug. Could you please review and accept it? Many thanks!
Related PRs
List related PRs against other branches:

branch
PR

other_pr_production
link

other_pr_master
link

Todos

[ ] Tests
[ ] Documentation

Steps to Test
Steps to test code change

Codecov Report

Merging #519 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #519      +/-   ##
============================================
+ Coverage      54.4%   54.43%   +0.03%
- Complexity      650      651       +1
============================================
  Files           158      158
  Lines          2895     2897       +2
  Branches        169      169
============================================
+ Hits           1575     1577       +2
  Misses         1202     1202
  Partials        118      118

Impacted Files
Coverage Δ
Complexity Δ

...der/config/ServiceBusQueueBinderConfiguration.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...der/config/ServiceBusTopicBinderConfiguration.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...rvicebus/converter/ServiceBusMessageConverter.java
40% <100%> (+4.28%)
8 <1> (+1)
:arrow_up:

Continue to review full report at Codecov.

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

Hi @warrenzhu25 , may i have your help to review the code  and  merge it?


data shuffling in data loader

Hi @ruotianluo . Thanks for your code.
I have seen from dataloader.py that you aren't shuffling the training data before loading it to the network. Would that affect the performance?

I do shuffle

And FYI, shuffling is better from my experience.


Mongoid 5.1.6 and Origin 2.3.0

Hi.
I have gem 'mongoid',  '~> 5.1' in Gemfile which resolves to mongoid 5.1.6.
mongoid 5.1.6 relies on origin (~> 2.2) and previously I have origin 2.2.2.
Then I wanted to know if there any new gems and removed my Gemfile.lock.
After running bundle install my origin gem was updated to 2.3.0.
And all my spec were broken.
Then I removed all origin gem versions (all mongoid versions was removed as well).
Now all test seems to be passed (magic).
So I'd like to know is it okay to have origin 2.3.0 with mongoid 5.1.6?
To be honest I don't quite understand how can I have 2.3.0 if it's locked as ~> 2.2.
I am running mongo 3.4
$ mongo
MongoDB shell version v3.4.0
connecting to: mongodb://<IP_ADDRESS>:27017
MongoDB server version: 3.4.0
>

Thank you.

Sorry, that was my bad 👎


Added ability to run local shell scripts.

Added an option in config to specify the location of a local file to be executed upon a button push event.

Is this planned to be integrated?
This would be a very nice addition, for example to send multiple http API calls with one button.
It would add a lot of flexibility.


tests: add benchmark and split nox sessions into multiple kokoro jobs

add benchmark nightly kokoro job with placeholder benchmark script
also split notebook and doctests tests to separate kokoro jobs to ensure more issues surface when flakes occur
also fix a bug where reporting variable was getting overwritten

nightly job local test:
---BIGQUERY USAGE REPORT---
simple_benchmark_2.py - query count: 15, bytes processed sum: 16000000, slot millis sum: 280025
simple_benchmark.py - query count: 15, bytes processed sum: 16000000, slot millis sum: 271229
---total queries: 30, total bytes: 32000000, total slot millis: 551254---


[move-prover] Analysis for V2 invariant processing

This implements much of the functionality of the new invariant processing, which

Allows invariant checking to be disabled during the bodies of selected functions.

pragma disable_invariants_in_body means that invariants are assumed on entry
to the function and asserted on exit, but are not required to hold during execution.
pragma delegate_invariants_to_caller means that invariants for this function
don't necessarily hold on entry or exit, nor during the body. The invariant must
be checked in transitive callers of this function.

The above interact with friend modules.  If invariants are disabled a function, they
must be checked at a call site, and we can only find call sites for functions that
are private to a model or declared as public(friend), in which case we need to analyze
the calling contexts in friend modules.
The code deals with calls to opaque functions when invariants are disabled.

The new invariant scheme always assumes there is a single target module,
and it verifies the invariants in this module (it will assume invariants
from other modules).
The most significant changes:

New file verification_analysis_v2.rs Various sets are computed in preparation
for instrumentation in the new invariant checking scheme.  This info is stored
in struct VerificationInfoV2
New instructions OpaqueCallBegin and OpaqueCallEnd. These
instructions are emitted before and after an opaque function call is
replaced by a bunch of stuff in spec_instrumentation.rs.  The new instructions
are markers that global_invariant_instrumentation_v2.rs uses to add more
assumes and asserts for global and update invariants.

This code runs under the Move Prover --inv_v2 flag, which is off by default.  When the
flag is off, the code passes all tests.  It passes almost all of them when the flag is
set, except for a couple of functional tests with known issues (the old friends pragma
isn't working right, yet, and it doesn't handle files with multiple modules).
Known todo items:

Error checking for new pragmas
Process multiple target modules (on command line and in a single file)
More thorough test cases
Make sure spec vars still work
User documentation

Motivation
(Write your motivation for proposed changes here.)
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
(Share your test plan here. If you changed code, please provide us with clear instructions for verifying that your changes work.)
Related PRs
(If this PR adds or changes functionality, please take some time to update or suggest changes to the docs at https://developers.diem.com, and link to your PR here.)
If targeting a release branch, please fill the below out as well

Justification and breaking nature (who does it affect? validators, full nodes, tooling, operators, AOS, etc.)
Comprehensive test results that demonstrate the fix working and not breaking existing workflows.
Why we must have it for V1 launch.
What workarounds and alternative we have if we do not push the PR.

/land

:exclamation: Land has been canceled due to this PR being updated with new commits. Please issue another Land command if you want to requeue this PR.

/land

:exclamation: Land has been canceled due to this PR being updated with new commits. Please issue another Land command if you want to requeue this PR.

/land


Erroring on files missing trailing newline shouldn't fail linting

We use this project to review YAML files and the intent is that linting should prevent any errors from malformed files, but we often get some errors on different sites when YAML files do not contain a trailing empty line, which isn't malformed. Can we separate out this error to a "strict" mode instead or maybe disable this check?

It's interesting that an error is raised by the symfony/yaml parser used in the linter, but not by the YAML parser in your projects. Are you using a different parser in your projects?
In any case, given that the heavy lifting of the YAML parsing is actually performed by the symfony/yaml component, this issue may be better raised in the upstream project.
If you can demonstrate that the absence of a trailing newline is indeed valid, that project's maintainers might update the parsing logic.


Socket communication problem

I have 2 applications written in Dolphin SmallTalk, version 7.1.14, communicated by socket.
To send data I use the following object:
(STBOutFiler on: socket writeStream) that stays alive during all communication.
To receive data I use the following object:
((STBValidatingInFiler on: socket readStream)
validationBlock: [: className | true];
yourself) which also stays alive throughout the connection.
The problem is that applications can be connected for hours using the same socket and objects are being sent all the time. The STBFiler objects have writeMap and readMap attributes respectively, which record all the objects that are received or sent, which causes them to accumulate thousands of instances that are not used but are not eliminated because they are referenced by those attributes. Eventually, at some point the applications crash due to lack of memory. Shouldn't the STBFiler clean up objects that have already been sent or received? or the way i connect the apps is wrong?
Greetings and thank you very much.

The STBFiler doesn't know where the boundaries between object graphs are. One use case would be to streaming over a sequence of objects that are within the same object graph. Another use case might be the one you apparently have where there is a sequence of independent graphs that would never contain cross references between them. Therefore the filer itself cannot be responsible for deciding when to discard its state, at least not without adding some optionality.
It probably makes most sense to make the state cleanup decision in your own code, either by creating a new filer for each message sent and received, or by resetting between each message on both sides.
I'll update the Chat sample to work this way for illustrative purposes.

Thank you very much for your answer.
Bye


How do I use a property value to be the input choice in the multi choice prompt

Bot will ask the user a questions , option for which are dynamic and have to extracted from a json, I got the json extracted and my required value stored in a property, How do get the property value to show in the user input choices? I tried to write the name of my property as the choice but it just shows the variable name and not the value that the variable holds.

The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests.

Hi @SamAditya1 I took a quick look to see how to do this but wasn't able to find anything yet. Please open an issue on StackOverflow. But I will try and play with this a bit and if I come up with an answer, i'll post it here (or on StackOverflow if appropriate).


move lifetime to result

lifetime should be on the Vec<&'a Value> and not on the input

@freestrings

Sorry. I missed this pr notification.
thanks!

@freestrings thanks for merging!

@freestrings any chance you release a new version with this fix?

@gkorland, this fix will be released with #9.

@freestrings great! when are you planing to release it?

@gkorland in this month.


[incubator/openmpi] generic openmpi support

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
This PR is for running Openmpi easily with helm by generating machine list file automatically.
Special notes for your reviewer:

/assign @timstoop , PTAL. thanks in advanced.

I don't mind taking a look at it this evening, when I have a bit more time, but I overlook a lot of things with such large commits, so I tend to leave them to the more experienced reviewers. It's not good for my ego when I add a LGTM and the next reviewer finds several glaring problems ;-)

I see, thanks. @timstoop

Updated based on comments, thx.

/ok-to-test
/lgtm

/assign @sameersbn


Vue support?

Will it support Vue? Or can you add examples on how to use the web component in Vue?

Hello!
Our team recently took over the stewardship of the elements repo.
Due the volume of un-triaged issues that are pretty old and the time it would take us to get caught up on all of them, we kindly ask that you open up a new ticket if this is still an issue you're struggling with.
If you open a new issue please include:

clear steps to reproduce that include example OAS specs, application setup, code, etc.
the error or issue you are experiencing
the expected behavior

We will be triaging any new tickets in a timely manner.
Thank you for understanding!


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target/pull/819 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target.git

Docs Build status updates of commit bed57b5:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_master_2021-05-18-01-43-40 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Merge api repository into main

Undoes the split of API into its own repository. This is a direct copy with all files, histories, and tags (renamed to api-{originalname}). Any modification including removing unused files and re-adding to the lerna repo will be done in follow-up PRs

CC @open-telemetry/javascript-maintainers

Should we move issues and PRs in https://github.com/open-telemetry/opentelemetry-js-api/issues to this repository?

Should we move issues and PRs in https://github.com/open-telemetry/opentelemetry-js-api/issues to this repository?

Yes I think we should


Enforce spaces after ATX headers in GFM

The GFM spec enforces space after ATX headings for quite a long time, similar to CommonMark. We need to remove the special case of GFM when parsing ATX headers.

fixed in master


docs(ngOptions): explain using 'select as' and 'track by' together

change warning to indicate that 'select as' and 'track by' can be used together with care
provide an example that will work and an example that will not work
provide a simple explanation of why the non-working example does not work

@ryanhart2, could you fix the typo and amend the commit message to add #Fixes 11768 (so it get's closed automatically) ?

Thanks @gkalpak, I will do that. I also realized that I didn't remove all of the previous example that I was replacing; I need to remove rows 83 to 94.

Sorry @gkalpak, I messed that up. I deleted the origin branch and pushed again, instead of a force push. The updated pull request is #13007.


Note: PRSS2 / HGNC:9483 missing from cdot v0.2.21 GRCh37/RefSeq

This is just a note, not a bug report.
There is no entry for gene PRSS2 / HGNC:9483 in the GRCh37 JSON for RefSeq. The reason is that the gene aligns to NW_003571040.1 for GRCh37 which means that it is not on the canonical genome.

Similarly, for the following genes
NM_001382497.1  AQP7B   MANE Select
NM_001359084.1  CD24    MANE Select
NM_001394668.1  CT45A7  MANE Select
NM_001306068.3  DUX4    MANE Select
NM_001382358.1  HNRNPCL3        MANE Select
NM_001302551.2  HNRNPCL4        MANE Select
NM_001194958.2  KCNJ18  MANE Select
NM_001351365.2  NBPF19  MANE Select
NM_001397211.1  NBPF20  MANE Select
NM_001364008.2  NOTCH2NLB       MANE Select
NM_001364013.2  NOTCH2NLC       MANE Select
NM_001396072.1  NOTCH2NLR       MANE Select
NM_001395253.1  NPY4R2  MANE Select
NM_001355407.2  NUDT4B  MANE Select
NM_001330067.2  OPN1MW3 MANE Select
NM_001395296.1  OR4M2B  MANE Select
NM_002770.4     PRSS2   MANE Select
NM_001164522.3  RAB7B   MANE Select
NM_001097610.3  SCGB1C2 MANE Select
NM_001395930.1  TMSB15C MANE Select

The command line option is terribly named but if you want these, you can run cdot_json with --keep-contigs-with-underscores
What it actually does in GFF parser is:
                if self.discard_contigs_with_underscores and not contig.startswith("NC_") and "_" in contig:

No, it's fine as it is right now.


more riscv bits. We may have printing to a console soon.

LGTM. And me without the f** native toolchain for amd64, argh :-(

out of date. We removed unused variables thanks to Gerard...


Pyinstaller error with requests version > 2.11.1

Hi
I am developing an application with python, using requests library in it.
I make executable file with pyinstaller library.
My application works with newest version of requests when I run it through python commands or inside IDLE. But when I get EXE output with pyinstaller, It doesn't run correctly. Here is the message:
"
... (trace files)
ImportError: No module named 'queue'
During handling of the above exception, another exception occurred:
... (trace files)
ImportError: No module named 'urllib3'
Failed to execute script.
"
So I figured out that there is something wrong with urllib3 library. Then I downgraded requests to "2.11.1" version (One before updating bundled urllib3 to 1.19) and created another EXE file. Rerun it, and worked!
Now I know that there is something wrong with newer versions of requests (> 2.11.1) and pyinstaller. But don't know how to fix it. Could you plz help me?
Thanks.

This is strictly a PyInstaller issue. Requests works fine, and vendors all of its dependencies. Clearly PyInstaller is having trouble locating the dependent module, even though it is entirely within the Requests package. That problem is PyInstaller's, and you'll need to take it up with them.

This is caused by requests' bundeling it's own copy of six.


Fix DEV_MODE import in mlmd service

closes: https://issues.redhat.com/browse/RHOAIENG-5443
Description

this is just removing dev mode because we already switched to the oauth port

How Has This Been Tested?

n/a
Test Impact

n/a
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change (find relevant UX in the SMEs section).

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

/approve

/retest


dAPIs Reference Section updates

Added a separate section for Managed dAPIs[WIP].

How it works
Airseeker
Providers for Managed dAPIs
Update Process

Added a separate section for Self-funded dAPIs[WIP].

How it works
Airseeker
Provider for Self-funded dAPIs

@Ashar2shahid. @KenCarvAPI , and @vanshwassan Good addition this PR. I am adding a PR in a few minutes to update the docs regarding the statement through-out that managed dAPIs are under development in preparation of the release Monday.


Update community.md

Changed from & rate to valid_from & value_inc_vat to match new attributes.
Added ~ to axis min/max to allow for values outside of the range (~ acts as soft limits rather than fixed).

Thanks for the update :)


A preview of how well our latest code works with the production data

[X] This pull request has been linted by running npm run lint without errors
[X] This pull request has been tested by running npm run dev and reviewing affected routes
[X] This pull request has been built by running npm run generate without errors
[X] This isn't a duplicate of an existing pull request

Description
DO NOT MERGE.
The deploy preview of this pull request shows how well our most recent code works with the production data. It will help us to identify road blocks for deploying our code to the production.

@cindyli I am going to close this as https://wecount-cms.inclusivedesign.ca is now up to date with production data.


Fix multiple issues with MSVC Windows build

This fixes several problems with MSVC build and Windows:

Adds VS things to .gitignore
Fixes path processing not handling backslash separators
Fixes extract failure with absolute paths due to the directory existence check attempting to call stat on the drive, which doesn't work, then attempting to call _mkdir for the drive, which also doesn't work
Fixes libunshield not exporting any symbols in DLL configuration

Thank you @elasota and Happy New Year!

Thanks @bwrsandman , looks like we might need a new PR to improve this one :)


Added check length

PCS::check was zipping the commitments, proofs and claimed values. The issue is that zip is happy to combine two vectors of unequal length, in which case it drops off the excess elements from the longer vector. This could be dangerous, since check fails iff any of the individual proof checks fails, but those checks could be missed.
We considered using zip_eq, which panics if the iterators have different length. In the end, we opted for checking the lengths by hand so that we could control the error and return it. Unfortunately, this results in less-than-ideal syntax (but still acceptable), since one can't count an iterator and then iterate over it.
@autquis this is likely also relevant to the Brakedown and Ligero PRs. Let's keep it in mind, even if it's not an urgent fix :)

Sure! Thanks


proposal: encoding/csv: add NewWriterSize

What version of Go are you using (go version)?

$ go version
go version go1.17.8 darwin/amd64

Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/tomtwinkle/go/bin"
GOCACHE="/Users/tomtwinkle/Library/Caches/go-build"
GOENV="/Users/tomtwinkle/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/tomtwinkle/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/tomtwinkle/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/tomtwinkle/go/go1.17.8"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/tomtwinkle/go/go1.17.8/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.8"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/tomtwinkle/workspaces/go-verification/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dy/wq8tln5j6_db0645jxfqj15m0000gp/T/go-build3247205606=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I am trying to generate CSV output using encoding/csv.

Outputting multibyte characters
Output string exceeds 4096 bytes.
Comma-separated characters are present in the field
Newline code is CRLF
Use custom Writer

package main

import (
	"bytes"
	"encoding/csv"
	"fmt"
	"io"
	"log"
	"strings"
)

func main() {
	buf := bytes.Buffer{}
	w := csv.NewWriter(&runeWriter{w: &buf})

	in := strings.Repeat("あ", 300) + ","
	line := make([]string, 10)
	for i := 0; i < 10; i++ {
		line[i] = in
	}
	w.UseCRLF = true
	if err := w.Write(line); err != nil {
		log.Fatal(err)
	}
	w.Flush()
	fmt.Println("===================Result====================")
	fmt.Println(buf.String())
}

type runeWriter struct {
	w io.Writer
}

func (rw *runeWriter) Write(in []byte) (int, error) {
	fmt.Println("===================Write====================")
	fmt.Println(string(in))
	l := 0
	for _, r := range string(in) {
		b := []byte(string(r))
		l += len(b)
		if _, err := rw.w.Write(b); err != nil {
			if _, err := rw.w.Write([]byte{'?'}); err != nil {
				return 0, err
			}
		}
	}
	return l, nil
}

What did you expect to see?
Expect all input characters to be output correctly.
What did you see instead?
In the case of the conditions, when writing with Writer, the byte array is cut off at the halfway point when it exceeds 4096 bytes, and a �(replacement character) is output.
The reason for using a custom writer is to replace strings that cannot be converted during the UTF-8 -> SJIS conversion with another string.
The example describes the following
w := csv.NewWriter(&runeWriter{w: &buf})

In practice, it is used as follows
w := csv.NewWriter(&runeWriter{w: transform.NewWriter(&buf, japanese.ShiftJIS.NewEncoder())})

I understand that the byte array passed to Writer() is simply passed as 4096 bytes separated by 4096 bytes.
For the convenience of conversion from UTF-8 to SJIS, if the byte array delimited by 4096 bytes contains characters that cannot be converted, an error will occur there.

I came up with this idea.
Once the CSV is output in UTF-8, and then NewWriterSize() to specify the bufferSize and convert it to SJIS.

I think your custom writer should keep state so that it properly handles characters spread over multiple writes.
Or you could have implemented it as a transform.Transformer.

encoding/csv assumes that the io.Writer passed to csv.NewWriter honors the io.Writer interface documented at https://pkg.go.dev/io#Writer.  Your runeWriter doesn't do that.  We aren't going to encoding/csv to support non-compliant Writer implementations, so closing.

Thanks for the advice.
I have implemented the transformer.
https://github.com/tomtwinkle/garbledreplacer
For people with the same problem.


Is it possible to run ros2-for-unity with ROS2 in WSL2 and Unity in Windows?

Hi! Thank you for your great work.
I'm trying to build a system which includes Oculus Quest Pro and a robot using ROS2.
This is a reason to make a connection between Unity and ROS2.
In my understanding, to install this repo I should install Unity and ROS2 to Windows.
However, I would not like to install ROS2 to Windows because OpenSSL 1.1.1 which is required from ROS2 Humble is out of supporting. (See here)
My question is, Is it possible to run this repo with ROS2 in WSL2 and Unity in Windows?
I'm sorry I don't know where to write, so I decided to write this as a Issue.
Thank you for your help.

Ok, I think I misunderstood everything. I close this issue.


🚀 Feature: Support user-defined dynamic redirect in Backstage

🔖 Feature description
Support user-defined dynamic redirect in Backstage.
Give a user defined URL path and user defined rules, automatically redirect to another URL dynamically.
🎤 Context
We have Backstage entities identified by UUID, and it is not human readable, and the URL cannot be composed without doing a lookup first. The lookup is nearly impossible for non-tech users.
We would like to provide another redirect URL, containing human-readable external keys. And we would like to redirect from this human-readable URL to corresponding Backstage entity URL (the one with the UUID as metadta.name)
✌ Possible Implementation
No response
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

Do you have any example of how the redirect would be configured? We have also somewhat the same problem with some of the entities having a technical name in metadata.name which does not translate to human-friendly URLs.
Would it be sufficient to have for example URL /catalog/<namespace>/<kind>/title/<metadata.title>? The problem with this is if there are two entities with the same title.

Hey @Sumu-Ning, I think that this would best be placed in your own plugin, which can call the catalogApi to get lookup the entry in the catalog and re-direct you to the right places. We've not looked into any form of redirection as of yet, so think it's best you try and solve this for your use case. Does that make sense?

Thank you benjdlambert!
I think the lookup is not the problem, but I have been struggling to get 'redirect' fit into the Backstage Plugin Framework (I am not really a front end developer). It would be great if you have any example about how to do a redirect within the Backstage framework.
Thank you!

So you'd need a React component that can return a <Redirect />component from react-router i believe.
There's an instance of a redirect here: https://github.com/backstage/backstage/blob/master/plugins/scaffolder/src/components/Router.tsx#L108-L120
Which gets rendered here: https://github.com/backstage/backstage/blob/master/plugins/scaffolder/src/components/Router.tsx#L135-L138
I think you might want to take a look at some getting started guides for writing plugins to get you on your way.

@benjdlambert Thank you for your help! I was able to get it work end to end now.
Feel free to mark this issue as closed.

Thanks! Nice work!


Back button behaviour logic research and proposal

What happens when the user presses the button their phone on each screen? are they sent back to the previous screen or not, Or are they sent to a different screen. This task will find the answer to these questions. Developers can Implement the logic based on this information.
Definition of done:

[x] Document / flow diagram exists which shows what happens when the user presses the button on their phone in different screens/scenarios

Rules used:

When having an open overlay, accordion checkout, filter... back should close them not go to the previous page thats in the back
Dont pollute API History with different states. When a user clicks through a gallery, or goes and clicks checkboxes, toggles... dont go back to the previous state but prevuous page.
Whenever a user is likely to lose data by going back its a good idea to use  a prompt to confirm their actions.
If a user is in the middle of a product list, then he clicks on a product to see details then clicks back, dont take him to the beginning of the page but to the part he was on when he clicked on the specific product.
If a user is on a multistep process e.g. shipping estimate its better if the backbutton takes them to the previous page because if the number of steps is 3 the user will have to do 3 click-backs before getting to the previous page but if there were 7 steps....
Use the logic of overlays for expanded objects like thumbnail image zoomed in look
WHen using anchor links- like on Amazon top page you click starts (review) it will jump you to the bottom of the page where the comment section is so the logic should be back button takes you to the top page. If the user scrolled from the top to the bottom of the same page the back takes them to the previous page.
Product variations should be combined into one product list item. e.g. Car website - looking at a specific car, listing all the colors. When the user pressed the back button it should take the user to the previous page not through all the car color variations the user clicked through. Important to point out it should return the user on the same position in the product page he was on when he clicked on the car.