Feed breaks if there are more posts than the pagination size

If you follow the instructions for feeds but have more posts in the feed than specified in the pagination size, it breaks with the error message:
Output conflict: multiple input files are writing to `_site/posts/feed.xml`. Use distinct `permalink` values to resolve this conflict.
[11ty]   1. ./app/feed.njk
[11ty]   2. ./app/feed.njk (via DuplicatePermalinkOutputError)

Need to find a way to only include the most recent x items in the feed rather than one file per page.

Ah, this is probably why we didn’t use pagination in the first place; it’s going to try and create a second file, also called feed.xml.
Why did we move to using pagination again? Anyway, I think the feed.njk layout will need to be reverted, to something more along the lines of
- {%- for item in pagination.items %}
+ {%- for item in collections.post | limit: size | reverse %}

And the documentation updated to use the following front matter:
---
eleventyExcludeFromCollections: true
layout: feed
permalink: /feed.xml
size: 20
---

I note that we’re using collections.post in that template anyway, so the collection to pull items from was never truly configurable. We can keep it so that you can use a different collection, with something like this:
-   <updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
+   <updated>{{ collections[collection] | getNewestCollectionItemDate | dateToRfc3339 }}</updated>

- {%- for item in pagination.items %}
+ {%- for item in collections[collection] | limit: size | reverse %}

And use the following front matter:
---
eleventyExcludeFromCollections: true
layout: feed
permalink: /feed.xml
collection: posts
size: 20
---

Want to try that?

Ah, this is probably why we didn’t use pagination in the first place; it’s going to try and create a second file, also called feed.xml. Why did we move to using pagination again?

Yeah, I can’t remember. Maybe it was just to specify the collection (so you could have multiple feeds) or size. But, err, clearly didn’t think ahead to what happens when you overflow the size.
I guess it could be fixed by using a permalink like this:
permalink: "feed{{ "" if pagination.pageNumber == 0 else pagination.pageNumber }}.xml"

...but it's not really necessary to paginate your rss feeds.
Your suggestion sounds better. Have tried it in #333 - although limit: size doesn’t work so used slice instead. Also couldn't remember if collections are reliably already in date order, or if they need to be sorted using the date?


Custom alert for pod memory utilisation

What did you do?
Created alert rules for pod memory utilisation
What did you expect to see?
Show the alert for pod memory utilisation of my apps
What did you see instead? Under which circumstances?
Alerts are showing perfectly, But it do not contain the name of the pod so that difficult to understand which pod is having the issue . It is Just showing " [FIRING:35]  (POD_MEMORY_HIGH_UTILIZATION default/k8s warning). But when I look in to the "Alert" section I can see the fired rules with its pod name.
Environment

Prometheus Operator version:
insert image tag or Git SHA here

Kubernetes version information:
insert output of kubectl version here

Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, tectonic-installer, etc.

Manifests:

insert manifests relevant to the issue

Prometheus Operator Logs:

insert Prometheus Operator logs relevant to the issue here

My rule is as follows:
- alert: POD_MEMORY_HIGH_UTILIZATION
      annotations:
        description: "pod {{$labels.pod}} is using high memory"
        summary: "HIGH Memory USAGE WARNING for{{$labels.pod}}"
      expr: (sum(rate(container_memory_usage_bytes[5m]))by(pod_name)*100) >90
      for: 1m
      labels:
        severity: warning

I believe what you are looking for is just to modify the alert notification template, which has nothing to do with the Prometheus Operator, as the Alertmanager configuration is exactly the same.
Aside from that, you shouldn't use the rate function on non-counters, as rate treats consecutive values where the second value is lower than the first as a counter-reset. I believe what you are looking for is the delta function.

Could you tell me where can I add the "_meta_kubernetes_pod_label" in our prometheus yaml.

That's not possible today, you can only use the targetLabels feature. You can just list the labels of the Kubernetes Service labels that you want to be transferred onto the target. We've discussed this though and would accept a PR that adds the same for Pods.

Could you please tell me, in which yaml,I can add my labels.

targetLabels goes into your ServiceMonitor and your Service has to have those labels.


Combining AntDesign  component and rc-queue anim

Hi! The question is pretty much in the title, how to you combine  with the List component of ant design?
Regards

这是来自QQ邮箱的假期自动回复邮件。

您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


all the images that I upload  increase to 1800 px

Laravel Version: 5.5.34
Voyager Version: 1.0.15
PHP Version: 7.1.12
Database Driver & Version:MySQL (ver. 8.0.3-rc-log)

Description:
all the images that i upload  increase to 1800 px
Steps To Reproduce:

Create table;
Create BREAD.
Select Input type like image.
Edit data.
Select image with any resolution ( 300x200 for example).
Save data.
Open saved image and check resolution

I dont think that this is fixed actually


Windows 7: Clicking on notification should open the message

Clicking on notification message, should open the application window in the clicked message. At the moment it just opens/focus on the application, but on whatever channel/direct message it was open before.

Please write about your environment. (CONTRIBUTING.md)
Then, does this latest build solve the problem?
https://circleci.com/gh/yuya-oc/electron-mattermost/192#artifacts

I'm on Windows 7, 64 bits, using electron-mattermost-v1.0.7-win64.
Using the suggested build, same thing happens, clicking on the notification just switch focus to electron-mattermost app, without changing the conversation to the clicked one.

It's correct behavior since v0.x. On Windows 7 and 8, Notification API is not supported by Electron (to be exact, Windows 8 can support it, but setup will be a little complex).
On Windows 7 and 8, Tray API is used to show balloon and working at src/main.js, it's separated from browser window. So it's hard to implement Notification.onclick event.

@lunawesley9 did you mean this comment? It uses electron-notification-shim. I created it with our HipChat Electron wrapper in mind.
We had started wrapping it all into a electron-notifier for when you just want to add notification toasters for Electron platforms that lack it. We never got around to finishing when the Electron issue got closed as we assumed it'd be as easy on the Mac. If there's interest, we could finish it so feel free to add any issues or submit a PR there.

@yuya-oc FYI, adding "Help Wanted" tag for issues that are open for community contributions, following the process from platform repo

#543 resolves this issue, thanks @yuya-oc!


Limit gProfiler memory usage

The easiest way to place a hard limit on the memory used by gProfiler, as gProfiler is a privileged app, is to use cgroups. We have such API in granulate-utils - see this file. We can use it to place gProfiler in a cgroup & set its limit to e.g 1GB to ensure we don't grow too much, e.g due to https://github.com/Granulate/gprofiler/issues/528

The same can be applied on CPU limits

Hello @Jongy! I am interested in working on this issue. Can I be assigned to it?

Hi @Creatone ! You're welcome to try it :)
Let's define an MVP:

Only cgroups v1 support (cgroups v2 will be done later).
gProfiler will check if it's already in a cgroup (this check is already done in move_to_cgroup for "predefined" ones, which are Docker/k8s/ECS. So we can just use the API of move_to_cgroup and handle the raised exception if we're already in a cgroup).
The default limits should be as set in the k8s DaemonSet.
Allow passing --limit-memory and --limit-cpu which override the defaults. Units are bytes for memory (int) and cores (float, 1 == 1 core) for CPU. If -1 is given it implies no limit, but you can still move to the cgroup, as this can help us do measurements of utilization, as explained in https://github.com/Granulate/gprofiler/issues/227. After this issue (#529), I want --log-usage to work for exe mode as well (i.e I expect this issue to resolve #227 as well).
Allow passing --no-cgroups to avoid doing ANY cgroups changes (moving / changing limits etc). It's always helpful to have a kill switch.
Try moving into cgroups & limiting as early as possible, but after the logger is initialized, so that you can log errors.
If any error happens during cgroups handling, swallow it and log (i.e don't block gProfiler).
Try to use the APIs from granulate-utils cgroups package. If things are missing, we should probably add them in granulate-utils (we can discuss that in this issue here, and then you can open a PR to granulate-utils as well).

Good luck :)


Bump golang.org/x/text from 0.3.7 to 0.3.8 in /test/app

Manual clone of #1001
Bumps golang.org/x/text from 0.3.7 to 0.3.8.

Release notes
Commits

updated-dependencies:

dependency-name: golang.org/x/text dependency-type: indirect ...

All Submissions:

[X] Have you signed our CLA?
[] Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if there is one).
[ ] Update docs/release-notes/release-notes.md if your changes should be included in the release notes for the next release.

Testing to see if it could replace #1001


Add deselectAll to TableRowConnected when unmount

Proposed Changes

Add deselectAll to TableRowConnected when unmount

Acceptance Criteria

[ ] The proposed changes are covered by unit tests
[ ] The potential breaking changes are clearly identified
[ ] README.md is adjusted to reflect the proposed changes (if relevant)

Codecov Report

Merging #1222 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1222      +/-   ##
==========================================
+ Coverage   99.66%   99.66%   +<.01%
==========================================
  Files         354      354
  Lines        8915     8917       +2
  Branches     2113     2113
==========================================
+ Hits         8885     8887       +2
  Misses         30       30

Impacted Files
Coverage Δ

...por/src/components/table-hoc/TableRowConnected.tsx
98.78% <100%> (+0.03%)
: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 bea0d07...f992dc3. Read the comment docs.

A small UT for this would be nice.


Update conferences.md

Hi! Adding our React event, this is our third one so far!
If you need any details or have any concerns, do not hesitate to ask me at<EMAIL_ADDRESS>

@questerprod thanks!


[ROS2] Improve ordering of launch due to watchdog startup condition

Currently, after ada_feeding is launched, the watchdog fails until the e-stop button is clicked once. Further, ada_moveit currently kills itself if the watchdog is failing. As a result, the launch order is:

Launch ada_feeding
User clicks watchdog
Launch ada_moveit

This is nonideal because we have a user-in-the-loop launch sequence. Ideally, we should be able to launch the code once and then the user pushes the e-stop button (for the watchdog startup condition) and then continues with feeding.
I can think of the following ways to address it:

The watchdog_listener that kills the controller starts "off." And should be turned on before any motion. The downside of this is that if the programmer forgets to turn it on because a motion, then that motion is not protected by the watchdog.
The watchdog_listener treats startup conditions differently from regular conditions. Specifically, if a startup condition fails it doesn't kill itself. However, this is also dangerous because a programmer could move the robot without it being protected by the watchdog (if the startup conditions haven't passed).
We allow the watchdog to take in a parameter for the bash command it should run after the startup conditions succeed. This might be challenging to get to work, because: (a) when running sys comments in Python, does it run in the same process or a different process (the latter is what we want)? (b) what environment variables are set in Python, and does that include all the required environment variables to ros2 launch a node? But even if we get it to work, this feels a bit non-ideal to me since we are allowing someone to pass in an arbitrary bash command in the yaml that our code will blindly execute.

As you can see, all the above approaches have downsides. Thoughts @taylorkf @egordon ?

@amalnanavati
Ugh, if actions were still just topics, we could have the watchdog listener listen on the goal topic and die if both the startup condition isn't met and somebody tries to call the execute trajectory action. But I don't think that introspection is easy (or possible?).
But another possibility is to continuously spam the "stop" command to MoveIt2, thus preventing the robot from moving, until all startup conditions are met.
See https://github.com/personalrobotics/pymoveit2/blob/44cf196da3cbc1d49c480e3c578169d9383f9296/pymoveit2/moveit2.py#L245
This is actually the cleanest way to cancel a trajectory right now.

Change the watchdog to return diagnostic status warn if the startup condition fails. On the watchdog listener side, if a status is warn it spams stop to MoveIt, if a status is error it kills itself, else it keeps listening.
This is to account for the face that from the watchdog listener's perspective, there is nothing that differentiates startup conditions from regular conditions. But there is something that differentiates warn from error. So by norm we can make startup conditions warn, and have the watchdog listener not kill itself on error.


Promise.coroutine documentation

I was confused by the doc for the coroutine method, which says the method

Returns a function that can use yield to yield promises.

My understanding of this wording is that, this method "returns a function that may (or may not) yield promises".
But in the provided code example, the returned function is only used as a plain function. There's no "yielded promises" from that function. If this is the example for the "may not" case, shall there be an example for the other case?
What I expected was something like
iter = a.ping()
promise = iter.next().value

Yeah that documentation is silly. It takes a function that can use yield to yield promises and returns a promise returning function.
A PR would be welcome

Here's the coroutine method's source code.
The first sentence may be changed to "Takes a GeneratorFunction producing a generator that yields promise(s), and returns a Promise returning function."
The returned Promise is defined at [this line(https://github.com/petkaantonov/bluebird/blob/master/src/generators.js#L43), but I don't understand its use.

@liushigit I'll clarify, I agree that the docs are confusing (and wrong), and if you want to submit a pull request I promise to review it and merge it.

@benjamingr A PR is added, but I have difficulty explaining the Promise returned by the function returned.

@liushigit thanks! I've added some suggestions, LMK what you think

I'm not sure if this is the right place to ask this question, but what's the difference performance-wise or other, between using coroutines and async/await in node >= 8? Maybe a note should be added to the documentation about it?

@perrin4869 it's likely async/await is still slower than Promise.coroutine at the moment. You can run the bluebird doxbee benchmarks yourself.


Proposal: Wibu Bot - Defi trading bot ( Update feature )

Description

Allow user to copy trade a smart money trader
Tracking smart money traders (based on 10% monthly growth)

Bounty track

Defi

Although not my favorite way to utilize a trading bot setup, but sure. Take a crack at it and revert back.


DM(syncer): syncer may lost dml under special sharding ddls

What did you do?

open gtid
pessimistic shard mode
two sub-table in one source
sql like this:
tb1 --> ddl1
tb1 --> dml (lost)
tb1 --> ddl2
tb2 --> ddl1
tb2 --> ddl2

What did you expect to see?
Don't lost tb1's dml.
What did you see instead?
lost tb1's dml
Versions of the cluster
DM version (run dmctl -V or dm-worker -V or dm-master -V):
v5.3 --> master

Upstream MySQL/MariaDB server version:
5.7.22-log

Downstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
5.7.25-TiDB-v5.3.0

How did you deploy DM: tiup or manually?
manually

Other interesting information (system version, hardware config, etc):
>
>

current status of DM cluster (execute query-status <task-name> in dmctl)
(paste current status of DM cluster here)

ping @lance6716

If this bug need not to be cherry-pick to earlier version, I guess it's earier to fix when use https://github.com/pingcap/tiflow/blob/c48f208177e825fc52c905fed70a7bbaea263ba9/dm/syncer/binlog_locations.go#L30-L45
😂 not likely that we don't cherry-pick

😂 not likely that we don't cherry-pick

/(ㄒoㄒ)/~~

After tb1-ddl1 and tb2-ddl1 has been resolved, tb1-dml will be synced, and we will check wether tb1-dml < tb1-ddl2 (active ddl), but caculate tb1-ddl2's position use last_position‘s gtid which is the same as tb1-dml, when use gtid, we will filter  tb1-dml


Update README.md

add on of exchange secureshift

Is there any issue on adding? If you have questions let’s us know
On Sun, 28 Jul 2024 at 11:31 PM, Officer | officercia <
@.***> wrote:

Closed #12
https://github.com/OffcierCia/Crypto-OpSec-SelfGuard-RoadMap/pull/12.
—
Reply to this email directly, view it on GitHub
https://github.com/OffcierCia/Crypto-OpSec-SelfGuard-RoadMap/pull/12#event-13671833933,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BEAPDZZRMV7FPENZWZDDLCTZOUWXRAVCNFSM6AAAAABLSTTWKSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGY3TCOBTGM4TGMY
.
You are receiving this because you authored the thread.Message ID:
<OffcierCia/Crypto-OpSec-SelfGuard-RoadMap/pull/12/issue_event/13671833933
@github.com>


Hi! Could you provide more details on the dataset for training ?

Thanks for your kind support last time and thank you very much for sharing the training script... It is quite interesting for me.
Here, I would like to kindly ask about the data for training.
As I have tried to follow the instruction to download the data from https://github.com/lzx551402/GL3D

I have a question on which of these three datasets (1)  gl3d_imgs, (2) gl3d_raw_imgs (3) gl3d_blended_images from https://github.com/lzx551402/GL3D#downloads ...... are to be downloaded ... or all of them ?

I have downloaded gl3d_raw_imgs... However,  I received the error (below).... Does this mean that I did not download correctly? Or that I have downloaded the wrong dataset?

My setting for gl3d.yaml file is as follows. Should rawdata_dir be the cloned directory of https://github.com/lzx551402/GL3D ? I am very sorry as this is not what you wrote in the instruction. The reason that I thought that this maybe the GL3D cloned directory is because dump.py also looks for GL3D/data/list/comb/imageset_train.txt... :

data_name: gl3d_train
rawdata_dir: /mnt/HDD4TB2/GL3D
feature_dump_dir: /mnt/HDD4TB3/SGMNet/gl3d_desc_dir
dataset_dump_dir: /mnt/HDD4TB3/SGMNet/gl3d_dataset_dir

The error:
python dump.py --config_path configs/gl3d.yaml
dump.py:20: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml.load(f)
Formatting data...
  0%|                                                                                | 0/109 [00:00<?, ?it/s]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/home/gabby-suwichaya/anaconda3/envs/sgmnet/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/home/gabby-suwichaya/anaconda3/envs/sgmnet/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "/mnt/HDD4TB3/SGMNet/datadump/dumper/gl3d_train.py", line 147, in format_seq
    pair_list=np.loadtxt(os.path.join(seq_dir,'geolabel','common_track.txt'),dtype=float)[:,:2].astype(int)
  File "/home/gabby-suwichaya/anaconda3/envs/sgmnet/lib/python3.7/site-packages/numpy/lib/npyio.py", line 1067, in loadtxt
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "/home/gabby-suwichaya/anaconda3/envs/sgmnet/lib/python3.7/site-packages/numpy/lib/_datasource.py", line 193, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "/home/gabby-suwichaya/anaconda3/envs/sgmnet/lib/python3.7/site-packages/numpy/lib/_datasource.py", line 533, in open
    raise IOError("%s not found." % path)
OSError: /mnt/HDD4TB2/GL3D/data/586326ad712e276146904571/geolabel/common_track.txt not found.
"""

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

Traceback (most recent call last):
  File "dump.py", line 27, in <module>
    dataset.format_dump_data()
  File "/mnt/HDD4TB3/SGMNet/datadump/dumper/gl3d_train.py", line 244, in format_dump_data
    pool.map(self.format_seq,indices)
  File "/home/gabby-suwichaya/anaconda3/envs/sgmnet/lib/python3.7/multiprocessing/pool.py", line 268, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/home/gabby-suwichaya/anaconda3/envs/sgmnet/lib/python3.7/multiprocessing/pool.py", line 657, in get
    raise self._value
OSError: /mnt/HDD4TB2/GL3D/data/586326ad712e276146904571/geolabel/common_track.txt not found.

Hi,

For GL3D donwloading, I think these data need to be download:

gl3d_imgs
gl3d_cams
gl3d_depths
gl3d_ct
and these data are organized as
data
└──
├── undist_images/*
├── geolabel
├──cameras.txt
├──common_track.txt
├── depths/*.pfm
└── basenamest.txt

Yes, the raw_datadir in readme is cloned directory of https://github.com/lzx551402/GL3D, sorry for the confusion. The error you met is due to lack of gl3d_ct and gl3d_ct.

I will add a more detaild instructions later on. Please tell me if you met any other issues in data generation or training,
Thanks.

Thanks.. So, could you please confirm how to download these data?
gl3d_imgs
gl3d_cams
gl3d_depths
gl3d_ct
Is it to use download_data.sh? But could you provide the info of the Chunk starts-end ?
For example, is it to download like this ..... ?
bash download_data.sh gl3d_imgs 0 125
bash download_data.sh gl3d_cams 0 125
bash download_data.sh gl3d_depths 0 125
bash download_data.sh gl3d_ct 0 125

Yes, these data are downloaded with download_data.sh script, but the chunk size are different (you may find them  in GL3D repo).
The download command should be
bash download_data.sh gl3d_imgs 0 125
bash download_data.sh gl3d_cams 0 0
bash download_data.sh gl3d_depths 0 59
bash download_data.sh gl3d_ct 0 0


[question] Why some code compile error?

I had a compiler crash while compiling a piece of code #79783, after fix the bug, I found that the same piece of code failed to compile after using async-trait. Example:
struct A {}
impl A {
    async fn xx_test (&self) {
        match actix_web::HttpServer::new (|| {
            actix_web::App::new ()
        }).bind ("<IP_ADDRESS>:8080") {
            Ok (mut _server) => { _server.run ().await; () },
            Err (_e) => println! ("http listen failed: {}", _e.to_string ()),
        }
    }
}

#[async_trait]
pub trait B: Send + Sync {
    async fn test_func (&self);
}
struct C {}
#[async_trait]
impl B for C {
    async fn test_func (&self) {
        // compile error
        match actix_web::HttpServer::new (|| {
            actix_web::App::new ()
        }).bind ("<IP_ADDRESS>:8080") {
            Ok (mut _server) => { _server.run ().await; () },
            Err (_e) => println! ("http listen failed: {}", _e.to_string ()),
        }
    }
}

Why is that? How to fix it?

If I use the #[async_trait(?Send)], it will compile and pass, but the trait won't Send, and I don't want that

If I use the #[async_trait(?Send)], it will compile and pass, but the trait won't Send, and I don't want that

I'll close this since your question is why actix-web results in non-Send futures, not anything about async-trait.
You can see in the error from this code that the future is non-Send because of what's stored in HttpServer:
use actix_web::{App, HttpServer};

async fn repro() {
    match HttpServer::new(App::new).bind("<IP_ADDRESS>:8080") {
        Ok(server) => { let _ = server.run().await; }
        Err(err) => eprintln!("error: {}", err),
    }
}

fn main() {
    fn assert_send(_: impl Send) {}
    assert_send(repro());
}

error: future cannot be sent between threads safely
  --> src/main.rs:12:5
   |
11 |     fn assert_send(_: impl Send) {}
   |                            ---- required by this bound in `assert_send`
12 |     assert_send(repro());
   |     ^^^^^^^^^^^ future returned by `repro` is not `Send`
   |
   = help: the trait `std::marker::Send` is not implemented for `(dyn std::any::Any + 'static)`
note: future is not `Send` as this value is used across an await
  --> src/main.rs:5:33
   |
4  |     match HttpServer::new(App::new).bind("<IP_ADDRESS>:8080") {
   |           ------------------------- has type `HttpServer<fn() -> App<actix_web::app_service::AppEntry, actix_web::dev::Body> {App::<actix_web::app_service::AppEntry, actix_web::dev::Body>::new}, App<actix_web::app_service::AppEntry, actix_web::dev::Body>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, actix_web::dev::Body>, actix_web::dev::Body>` which is not `Send`
5  |         Ok(server) => { let _ = server.run().await; }
   |                                 ^^^^^^^^^^^^^^^^^^ await occurs here, with `HttpServer::new(App::new)` maybe used later
...
8  | }
   | - `HttpServer::new(App::new)` is later dropped here

I'll close this since your question is why actix-web results in non-Send futures, not anything about async-trait.
You can see in the error from this code that the future is non-Send because of what's stored in HttpServer:
use actix_web::{App, HttpServer};

async fn repro() {
    match HttpServer::new(App::new).bind("<IP_ADDRESS>:8080") {
        Ok(server) => { let _ = server.run().await; }
        Err(err) => eprintln!("error: {}", err),
    }
}

fn main() {
    fn assert_send(_: impl Send) {}
    assert_send(repro());
}

error: future cannot be sent between threads safely
  --> src/main.rs:12:5
   |
11 |     fn assert_send(_: impl Send) {}
   |                            ---- required by this bound in `assert_send`
12 |     assert_send(repro());
   |     ^^^^^^^^^^^ future returned by `repro` is not `Send`
   |
   = help: the trait `std::marker::Send` is not implemented for `(dyn std::any::Any + 'static)`
note: future is not `Send` as this value is used across an await
  --> src/main.rs:5:33
   |
4  |     match HttpServer::new(App::new).bind("<IP_ADDRESS>:8080") {
   |           ------------------------- has type `HttpServer<fn() -> App<actix_web::app_service::AppEntry, actix_web::dev::Body> {App::<actix_web::app_service::AppEntry, actix_web::dev::Body>::new}, App<actix_web::app_service::AppEntry, actix_web::dev::Body>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, actix_web::dev::Body>, actix_web::dev::Body>` which is not `Send`
5  |         Ok(server) => { let _ = server.run().await; }
   |                                 ^^^^^^^^^^^^^^^^^^ await occurs here, with `HttpServer::new(App::new)` maybe used later
...
8  | }
   | - `HttpServer::new(App::new)` is later dropped here

So I should use send_wrapper, right? Thank you

So I should use send_wrapper, right? Thank you


GH-39645: [Python] Fix read_table for encrypted parquet

Rationale for this change
Currently, if you try to read a decrypted parquet with read_table, passing decryption_properties - in the happy path (pyarrow.data available for import) the reading/decryption of the file fails, as the decryption properties are missing.

What changes are included in this PR?
Pass through the argument that was intended to have been passed.

Are these changes tested?
We have tested this locally on an encrypted parquet dataset - please advise on any further testing you would like beyond that and the standard CI.

Are there any user-facing changes?
Not in any cases where their code was previously working? The intended behaviour for encrypted dataset decryption should start working.

Closes: #39645

Could you add a test for this case and open a new issue for this?
This is not a MINOR change: https://github.com/apache/arrow/blob/main/CONTRIBUTING.md#Minor-Fixes

@tmct do you want to open an issue and follow it up as suggested by @kou or do you want us to follow it up?
We should create an issue, link it to the PR and create a test. cc @AlenkaF

Thank you for fixing this!
We should add a test to the pyarrow/tests/parquet/test_encryption.py::read_encrypted_parquet.

Could you rebase on main?

The failures can be found on other builds also so they are not related to this PR.

@wgtmac Would you like to take a look at this? I'm not entirely sure which kind of decryption arguments should be exposed in the public Parquet reading APIs. It seems we already take a decryption_config for Parquet datasets, but this is adding decryption_properties.
also cc @jorisvandenbossche

The js changes here look like they have already been made. Maybe you need to rebase to clean it up?

Arrow 16.0.0 is in the release procedure phase as we're speaking, so no, sorry...

@pitrou could you do another pass here please?

@wgtmac could you please do a quick sanity check over the decryption_config / decryption_properties part?


Not working for paths: "*": ["../*", "../../*"]

I use paths in a mono-repo and refer to the top level folders and the current folder as if modules, using the following in tsconfig:
...
    "paths": {
      "*": [
        "../*",
        "../../*"
      ]
    }
...

Assuming the following:
/src
    /lib
         /module.ts
    /proj
         /tsconfig.json
         /index.ts

In proj/index.ts I attempt:
import { func } from 'lib/module.ts'

I expected it to just work, the same as it does in the rest of the ecosystem but instead I get:
[vite] Internal server error: Failed to resolve import "lib/module.ts" from "proj/index.ts". Does the file exist?

👋 Hey! Thanks for reporting this.
If you add a minimal reproduction to test fixtures (see other fixtures for guidance) and submit a PR, I will take a look.

I was going to attempt to make this contribution but cloning the repo, I saw a pnpm-lock.yaml, tried pnpm install --frozen-lockfile and was given an error:
> pnpm install --frozen-lockfile

Lockfile is up to date, resolution step is skipped
Already up to date

><EMAIL_ADDRESS>prepare /src/aleclarson/vite-tsconfig-paths
> yarn build

! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing<EMAIL_ADDRESS>! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager

Internal Error: vite-tsconfig-paths@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile

[...]

 ELIFECYCLE  Command failed with exit code 1.

I try again and get:
> pnpm install --frozen-lockfile

 ERROR  This project is configured to use yarn
For help, run: pnpm help install

Sorry for being ignorant but I'm unclear on how to set it up so I can test, observe a clean run, add the fixture, observe failure, and contribute it.  The pnpm-lock.yaml file implies using pnpm but the package.json explicitly uses yarn in its scripts.  Can you help me sidestep my way through setup?  A CONTRIBUTING.md might be most sustainable but if you want to let me know here, I can add one if that works for you.

Hey Erik, I've replaced yarn with pnpm in the package scripts. Just tested a fresh clone and it works. 👍

TYVM


Implementation of DEALLOCATE statement

Requested by: https://github.com/crate/crate/issues/6785

@mfussenegger fixups pushed


Lookbook fail with poor feedback (Sometimes)

This is a bit of an odd one so I apologize in advance.  We're also on an older platform (Rails 5.1 and Ruby 2.5 😬 ) so I'm not sure how much of that plays into this. I try to open a PR when I find an older Ruby/Rails compatibility issue but this one has me a bit stumped.
Some background:

We're upgrading to lookbook v1 (1.0.8) 👀
Rails: 5.1 🛤
Ruby: 2.5 💎
ViewComponent: 2.72 (I dont have a good emoji for this)
Lookbook engine mounted at /components
No "pages" (yet), only previews
Configuring lookbook in an initializer (config/initializers/lookbook.rb) the looks like this:

BigRed::Application.configure do
  config.lookbook.auto_refresh = false
  config.lookbook.experimental_features = [:pages]
  config.lookbook.listen = false
  config.lookbook.page_paths = ["spec/components/docs"]
  config.lookbook.project_name = "Big Red Components"
  config.lookbook.ui_favicon = "/favicon.ico"
end

Previously, when navigating to /components we'd see the default "select a component" screen. After updating we get:

Here's the console backtrace but it isn't very helpful

Processing by Lookbook::ApplicationController#index as HTML
  Rendering /app/bundler/root/gems/ruby/2.5.0/gems/lookbook-1.0.8/app/views/lookbook/index.html.erb within layouts/lookbook/application
  Rendered /app/bundler/root/gems/ruby/2.5.0/gems/lookbook-1.0.8/app/views/lookbook/index.html.erb within layouts/lookbook/application (13.6ms)
  Rendering /app/bundler/root/gems/ruby/2.5.0/gems/lookbook-1.0.8/app/views/layouts/lookbook/shell.html.erb
  Rendered /app/bundler/root/gems/ruby/2.5.0/gems/lookbook-1.0.8/app/views/layouts/lookbook/shell.html.erb (561.1ms)
Completed 500 Internal Server Error in 3146ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `dropdown' for #Button::Component:0x00007fbad8525d38):
12:         <%= content_for :panel_css -%>
13:
14:     <% end %>
15:
16:     <%= render_component :header, id: "app-header", debug_menu: config.debug_menu do |header| %>
17:       <% header.branding { config.project_name } %>
18:     <% end %>
app/components/button/component.html.erb:3:in block in call' app/components/button/component.html.erb:1:in call'
<IP_ADDRESS> - - [23/Sep/2022:12:01:11 CDT] "GET /components HTTP/1.0" 500 366932
--> /components

For S&G I added a catch all to our button component just to sanity check that it wasn't something goofy with my component or the preview but we still got a failure:

If I navigate directly to a component preview (i.e. components/inspect/button/primary) It works fine and then the root (/components) will suddenly start working. However, once I restart the server the root fails again.

Other random stuff I've tried:

Removing config.lookbook.experimental_features = [:pages] from the config (why not)

No change

Removing config.lookbook.page_paths = ["spec/components/docs"] from the config (just in case)

No change

Adding a page to to spec/components/docs

It Works!?!?

I have no explanation for this. I don't know why it fails without pages but works fine with them. I'm probably missing something silly but incase I'm not and this is an actual bug I wanted to open an issue. I'm happy to add any missing context or help debug further if I can.
FWIW We're planning on adding pages so this is low priority (for us at least).

Haha @DRBragg top marks for the excellent gif usage to brighten up the bug report - I might mandate that in an issue template from now on 😂
Thanks for the through explanation/investigation - that definitely is a weird one though. I'll take a look to see if I can figure out what might be going on as soon as I get a chance.
Have a good weekend and I'll let you know as soon as I've got any ideas :-)

I thought if I couldn't write a good bug report I'd at least try to write a funny one.
Like I said def low priority!


Handle other languages package managers

Hi,
I was going to implement a git hook to do just the same thing that yarnhook does, but for Composer (PHP package manager). But I thought it would be a shame to have yarnhook for yarn, and something specific for Composer. So I'm wondering if you are opened to handling not node-related package managers? In which case I can open a PR to add composer.
Thanks!

I know people using yarn+composer, and I'm sure they would be interested in
this! If @frontsideair opts out you could rename your fork to something
like "depsihook" where the i means install like with npm i. Or something
more conservative+verbose like "auto-install-deps-hook" or
"auto-install-packages-hook". If we want to get really fun signature name,
maybe "auto-depsi" or "depsi-auto" or "packagi" or "pkgier".
"auto" may conflate it with things like the web pack auto installer plugins
On Wed, Apr 1, 2020, 3:34 AM Cyrille Perois<EMAIL_ADDRESS>wrote:

Hi,
I was going to implement a git hook to do just the same thing that
yarnhook does, but for Composer (PHP package manager). But I thought it
would be a shame to have yarnhook for yarn, and something specific for
Composer. So I'm wondering if you are opened to handling not node-related
package managers? In which case I can open a PR to add composer.
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/frontsideair/yarnhook/issues/38, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEDZKEPLVUBROBHUYK52T3RKL4CNANCNFSM4LYT4FOQ
.

Yes, composer + npm/yarn must be a common use case. Mine is a Symfony project.

I have no objections to this. I personally don't use PHP but since composer hook will only work if there's a composer lockfile I think it is unobtrusive and see no reason to not allow this. So the PR is more than welcome.
In the future if the number of lockfiles proliferate and maintenance becomes a problem I may consider scaling back but for now it's all right to me!

INSTALL ALL THE THINGS!
Yeah I don't think one more file check on some git operations will be
noticeable for anyone. The git hooks don't run often anyway. Even ls
appears to complete instantly, and then you have a list of all possible
lock files.
On Fri, Apr 3, 2020, 5:13 AM Fatih Altinok<EMAIL_ADDRESS>wrote:

I have no objections to this. I personally don't use PHP but since
composer hook will only work if there's a composer lockfile I think it is
unobtrusive and see no reason to not allow this. So the PR is more than
welcome.
In the future if the number of lockfiles proliferate and maintenance
becomes a problem I may consider scaling back but for now it's all right to
me!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/frontsideair/yarnhook/issues/38#issuecomment-608352413,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEDZKHQYRBELRYI2CYBYPLRKWZDPANCNFSM4LYT4FOQ
.

Nice. I'm going to open a PR very soon then :)


add dependabot by default in the OWNERS file

in tkn pac repo, if we detect installing on Github it would be a nice touch to create a OWNERS file with dependabot to let it allow to run the PR...
cf, issue reported by @vdemeester

if it's a github repo
and there is no OWNERS file at the root directory
then add one with no question :
# This allows the dependabot user to run Pipelines as Code automatically
# You can add more users in there or remove it.
- reviewers:
  -  dependabot

thinking a bit more about it, I don't think we should do this by default! it's up to the user to configure one and i think it's called dependabot[bot]


Looks like this is a duplicate page

Hi there. Just a heads up that it looks like this page is a duplicate of another page with the same name. The other one has been updated more recently. See 8 items higher on the left nav that has the same name, or here: https://docs.microsoft.com/en-us/power-bi/desktop-tips-and-tricks-for-creating-reports

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

ID: 4a08ab5c-b7f6-2789-3a20-716ac0110089
Version Independent ID: a68bdc48-295a-41d6-b713-1c26498beb5c
Content: Tips for creating stunning reports - Power BI
Content Source: powerbi-docs/power-bi-reports-tips-and-tricks-for-creating.md
Service: powerbi
Sub-service: powerbi-service
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Hi, @sqlchick -- thanks, you're right! They're not exactly the same, either. Assigned to the author to investigate.

Thanks for pointing this out @sqlchick - much appreciated! You're right, and I've consolidated those articles into one, and removed the duplicate (this page). Thanks!


How to cancel closure openAI.chatsStream(query: query)

Is there any way to cancel chatsStream closure?
openAI.chatsStream(query: query) { partialResult in
    switch partialResult {
    case .success(let result):
        print(result.choices)
    case .failure(let error):
        //Handle chunk error here
    }
} completion: { error in
    //Handle streaming error here
}

I call this function inside SwiftUI OnAppear and when the sheet dismissed the  closure keep running, is there any solution for that?

Yes, nothing special is needed, just cancel the Task which runs the query.
For myself I got a little wrapper as I feel I needed a bit more obvious semantics:
@MainActor
class ChatQueryTask: ObservableObject {
  private var task: Task<Void, Never>?

  enum Status {
    case completed
    case interrupted
    case failed
  }

  func query(
    messages: [Chat],
    onContent: @MainActor @escaping (String) -> Void,
    onFinished: @MainActor @escaping (Status) -> Void) async
  {
    if let task = task {
      let _ = await task.result
    }
    let newTask = Task {
      let query = ChatQuery(model: .gpt4, messages: messages)
      do {
        var text = ""
        for try await result in openAI.chatsStream(query: query) {
          if let choice = result.choices.first {
            if let content = choice.delta.content {
              text += content
              onContent(text)
            }
          }
        }
        let isCancelled = Task.isCancelled
        onFinished(isCancelled ? .interrupted : .completed)
      } catch {
        onFinished(.failed)
      }
    }
    task = newTask
    let _ = await newTask.value
    task = nil
  }

  func cancel() async {
    if let task = task {
      task.cancel()
      let _ = await task.result
    }
  }
}

If my understanding about Swift is correct, above solution will not work. This is because tasks are cooperative, meaning they are not preemptively interrupted or canceled by the system. Instead, a task must check for cancellation points or explicitly support cancellation for it to be interrupted from outside. You can request cancellation on a task from outside, but it is up to the task itself to periodically check if a cancellation has been requested and gracefully terminate if so. I don't see any cancellation is being handled inside chatsStream method. The method uses URLSession inside but I don't see it any calls to URLSession.cancel().


Ability to sign using local AWS credential file.

Associated with https://github.com/chengpohi/edql/issues/3
AWS also provide a way where session credentials are saved in ~/.aws/credentials . Configuration can also be specified in ~/.aws/config . There is way to distinguish between different profiles using name, default being 'default' . It would be great if plugin can automatically read the credentials, given profile name.
ref: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html

@arao Hello, Thanks your response, I will take look at this, I will add this feature in next in version 1.7.1.
Also welcome other feedbacks

@arao the newest 1.7.1 version has released and add feature of aws credential connect, please check:
https://github.com/chengpohi/edql/wiki/EDQL:-Language-Specification#aws-iam-apikeyid-apikeysecret-and-apisessiontoken

Thank you for you effort, it is working now.


www.miek.nl. - no such zone...

<IP_ADDRESS> - [08/Apr/2016:10:46:45 +0100] "A IN www.miek.nl. udp true 4096" NOERROR 229 238.649µs
2016/04/08 10:46:45 [INFO] www.miek.nl. - No such zone at :53 (Remote: <IP_ADDRESS>:58994)

From the logs... uh...

2016/04/09 16:34:53 [INFO] a.MIEK.Nl. - No such zone at :53 (Remote:[2a01:4f8:0:a111::add:9898]:41099)

Need better logging here, because:
% dig @linode.atoom.net a.MIEK.Nl. A +short      ~/g/src/github.com/miekg/dns master
<IP_ADDRESS>

just works.

..and of course 3 versions later and 205+ commits... I don't see this anymore...

Still there:
2016/04/21 05:11:16 [INFO] www.miek.nl. - No such zone at :53 (Remote: <IP_ADDRESS>:64080)

Make sense 'cause this code hasn't actually changed. It wasn't showing  because of #127.

With more logging
2016/04/25 10:35:14 [INFO] "DS IN a.mIEK.nl." - No such zone at :53 (Remote: <IP_ADDRESS>:50049)

Makes total sense DS is hosted in the NL zone, which I don't host: so no such zone.
Works as intended, logging might be improved to say we don't have NL, but meh.


✨ Grant Airflow DAG permission to trigger create-a-derived-table GitHub workflow

Describe the feature request.
Grant airflow DAG permission to trigger create-a-derived-table GitHub workflow using the most appropriate method, which could be saving a Github personal taken to AWS Secrets/Parameters, or using a GitHub app
Describe the context.
We currently do not have a process for combining Airflow -> create-a-derived-table pipelines, apart from simply guessing the Airflow pipeline completion time and scheduling the time appropriately.
Value / Purpose
No response
User Types
No response

@jacobwoffenden let me know if you need more info :-)

@tomholt1 as discussed, please liaise on this ticket with the AP :-)

@tomholt1 - Can we just clarify what the ask is for the AP team here. We can definitely generate a PAT for the runners, but worth us understanding what other facilitation your team will require (if any)?

Hey @Ed-Bajo, I think the context has changed a little since the ticket has been opened. We won't be needing a PAT as we will be planning to create a github app and authenticate that way using a JWT. What we require is just the relevant permissions to be able to run the above curl command in a DAG, that will trigger a github action upon the airflow jobs success

@tomholt1 if you're going down the route of a GitHub Application, I'm not sure if you need input from our team anymore, it was originally suggested because we could provision a fine-grained access token using @moj-data-platform-robot

Is this the GitHub App https://github.com/organizations/moj-analytical-services/settings/apps/airflow-dags-github-actions ?

Nope, I haven't set one up yet, although I'd be intrigued to know who set that up as I wonder if they're trying to achieve the same thing we are. So just to confirm - we don't need any updated airflow permissions to run the above curl command in an airflow dag?

Updated use case
We currently do not have a process for combining Airflow -> create-a-derived-table pipelines, apart from simply guessing the Airflow pipeline completion time and scheduling the time appropriately.  After some digging it looks like we will need to create a JWT to authenticate the request. I don't have the relevant access to create a github app so it would be great if this could be created and some guidance around authenticating would be great, thanks team!

To be discussed at next refinement session

@darren1988 can you invite @tomholt1 and I to the refinement session? I think @tomholt1 has made some progress on this with another team

oops :-) thanks for clarifying

Any update on this? I'm conscious @tomholt1 and I will be leaving soon :-)

@SoumayaMauthoorMOJ this ticket has been refined and is scheduled to go into our next sprint commencing on 10/10/24 - 30/10/24

@SoumayaMauthoorMOJ @tomholt1 we are pulling this ticket into our new sprint. I know you are both moving on soon - is there another point of contact for us to engage with regarding this work?

How about @jhpyke since it impacts both create-a-derived-table and airflow?

@gwionap could provide sign-off since he intends to use for his pipelines

Hi all,
I have

Created a new GitHub App called "Airflow GitHub Actions Trigger"

Read access to metadata
Read and write access to actions

Installed it in moj-analytical-services for the following repositories

create-a-derived-table

Created a new Secrets Manager secret in analytical-platform-data-engineering-production called  github/moj-analytical-services/airflow-github-actions-trigger which contains app ID, client ID and base64 encoded private key

Let me know if you can't access that secret, or if it doesn't do what is required.


Examples are not working

yorkie version 0.0.9 -> 0.0.10
Existing working examples are not working since this commit.
https://github.com/yorkie-team/yorkie/commit/75b448fe9899d7526e2cf27e5b779fbcc06a1469

@ppeeou Thanks for reporting.
Does the example of yorkie-js-sdk fail in the local environment?
If so, please check the Yorkie version.
$ docker exec -it yorkie bash -c "./bin/yorkie version"
Yorkie: 0.0.10
Commit: f07b15e
Go: go1.14.4

@hackerwins I wrote it too vaguely..!  I mean, When an event occurs, synchronization with other clients is not performed immediately.
It is detailed in this issue. https://github.com/yorkie-team/yorkie-js-sdk/issues/48

@hackerwins oh .. Both yorkie-sdk-js and yorkie use the current version and it works fine.


When adding more than one Window + TextView together with a MenuBar, the displayed text changes to the text of the first added Window

Describe the bug
When more than one Window is added together with a TextView and a MenuBar is also added, when hovering the mouse over the console the text displayed is that of the first Window added
I don't know if I explained it correctly, sorry
To Reproduce
The code below shows the bug:
using Terminal.Gui;

Application.Init();

var menuBar = new MenuBar
{
    Menus =
    [
        new()
        {
            Title = "Foo",
            Children =
            [
                new()
                {
                    Title = "Bar",
                },
            ]
        },
    ],
};

foreach (var arg in new[] { "1", "2" })
{
    var win = new Window()
    {
        Title = arg,
    };

    var editor = new TextView()
    {
        Width = Dim.Fill(),
        Height = Dim.Fill(),
        Text = arg
    };

    win.Add(editor);

    Application.Top.Add(win);
}

Application.Top.Add(menuBar);
Application.Run();
Application.Shutdown();

Expected behavior
The same thing is expected to happen when the MenuBar is not added (Just comment on Application.Top.Add(menuBar)), the text displayed is that of the last Window added and when hovering the mouse over it, the text remains the same
Screenshots
When starting the program:

After hovering the mouse over the console:

Thank you for presenting this issue. From what I noticed there is a contradiction in how views are drawn and how views are focused.
The FocusFirst instruction is trying to focus on the first focusable view but the drawing is drawing the last visible view which will be overlapped. It turns out that the most focused view does not correspond to the focused superview and this is incorrect.

I changed the code to allowing toggling between windows.

I was able to change between windows using Ctrl + Tab, the problem was only when the mouse passed over the console after the first launch, which is the bug I described

I was able to change between windows using Ctrl + Tab, the problem was only when the mouse passed over the console after the first launch, which is the bug I described

I know that through the keyboard you can switch between windows, but the bug was due to an improper focus in the Application.Begin method and the CanFocus property. Please test with PR #3548 and check if it is working properly. Thanks.


The generated schema has wrong version number

We need to generate the schema with the correct version number by loading it from package.json
https://github.com/platformatic/ai-warp/blob/193fbc781745f52bbec4e43dfa50c73d63c6f3f2/schema.json#L3

I've tried to fix it in #55, but unfortunately TS stopped working (autocompletion etc).


Broken links in install scripts

Hey
I am using Centos 7 and the links you are using no longer works, script to install waf nolonger works.
[root@localhost tmp]# ./waf.sh
error: Need HAProxy version 1.8 or later X
[root@localhost tmp]# haproxy -ver
HA-Proxy version 1.8.1 2017/12/03
Copyright 2000-2017 Willy Tarreau<EMAIL_ADDRESS>The link are broken
wget -O /tmp/yajl-devel-2.0.4-4.el7.x86_64.rpm http://rpmfind.net/linux/centos/
It is true on many links, much is broken in this version.

Even if you find a replacement path, waf does not work
2019-05-03 10:05:02 (1.58 MB/s) - ‘/tmp/modsecurity-2.9.2.tar.gz’ saved [4298993/4298993]
configure: error: pcre library is required
Can't compile waf application

Install pcre-devel first
Отправлено из Mail.ru для Android пятница, 03 мая 2019г., 11:06 +03:00 от SysadminEU1<EMAIL_ADDRESS>:

Even if you find a replacement path, waf does not work
2019-05-03 10:05:02 (1.58 MB/s) - ‘/tmp/modsecurity-2.9.2.tar.gz’ saved [4298993/4298993]
configure: error: pcre library is required
Can't compile waf application
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly,  view it on GitHub , or  mute the thread .

Fixed broken links

I used
yum install pcre-devel
The result is
Can't compile waf application
More detailed output here.
[root@localhost tmp]# ./waf.sh
error: Need HAProxy version 1.8 or later X
--2019-05-03 10:21:54--  http://rpmfind.net/linux/centos/7.6.1810/os/x86_64/Pack                                                                                ages/yajl-devel-2.0.4-4.el7.x86_64.rpm
Resolving rpmfind.net (rpmfind.net)... <IP_ADDRESS>
Connecting to rpmfind.net (rpmfind.net)|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13792 (13K) [application/x-rpm]
Saving to: ‘/tmp/yajl-devel-2.0.4-4.el7.x86_64.rpm’
100%[======================================>] 13,792      --.-K/s   in 0s
2019-05-03 10:21:54 (70.9 MB/s) - ‘/tmp/yajl-devel-2.0.4-4.el7.x86_64.rpm’ saved                                                                                [13792/13792]
--2019-05-03 10:21:54--  http://mirror.centos.org/centos/7/os/x86_64/Packages/li                                                                                bevent-devel-2.0.21-4.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... <IP_ADDRESS>, 2001:49f0:d03                                                                                4:1::10
Connecting to mirror.centos.org (mirror.centos.org)|<IP_ADDRESS>|:80... connec                                                                                ted.
HTTP request sent, awaiting response... 200 OK
Length: 86564 (85K) [application/x-rpm]
Saving to: ‘/tmp/libevent-devel-2.0.21-4.el7.x86_64.rpm’
100%[======================================>] 86,564      --.-K/s   in 0.05s
2019-05-03 10:21:54 (1.67 MB/s) - ‘/tmp/libevent-devel-2.0.21-4.el7.x86_64.rpm’                                                                                saved [86564/86564]
--2019-05-03 10:21:55--  https://www.modsecurity.org/tarball/2.9.2/modsecurity-2                                                                                .9.2.tar.gz
Resolving www.modsecurity.org (www.modsecurity.org)... <IP_ADDRESS>
Connecting to www.modsecurity.org (www.modsecurity.org)|<IP_ADDRESS>|:443... c                                                                                onnected.
HTTP request sent, awaiting response... 200 OK
Length: 4298993 (4.1M) [application/x-gzip]
Saving to: ‘/tmp/modsecurity-2.9.2.tar.gz’
100%[======================================>] 4,298,993   2.83MB/s   in 1.5s
2019-05-03 10:21:57 (2.83 MB/s) - ‘/tmp/modsecurity-2.9.2.tar.gz’ saved [4298993                                                                                /4298993]
config.c: In function ‘process_command_config’:
config.c:1107:5: warning: passing argument 1 of ‘apr_filepath_root’ from incompa                                                                                tible pointer type [enabled by default]
status = apr_filepath_root(&rootpath, &incpath, APR_FILEPATH_TRUENAME | APR                                                                                _FILEPATH_NATIVE, ptemp);
^
In file included from /usr/include/apr-1/apr_file_io.h:29:0,
from /usr/include/apr-1/apr_network_io.h:26,
from /usr/include/apr-1/apr_buckets.h:29,
from /usr/include/httpd/util_filter.h:26,
from /usr/include/httpd/http_core.h:32,
from config.c:18:
/usr/include/apr-1/apr_file_info.h:336:27: note: expected ‘const char **’ but ar                                                                                gument is of type ‘char **’
APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath,
^
config.c:1107:5: warning: passing argument 2 of ‘apr_filepath_root’ from incompa                                                                                tible pointer type [enabled by default]
status = apr_filepath_root(&rootpath, &incpath, APR_FILEPATH_TRUENAME | APR                                                                                _FILEPATH_NATIVE, ptemp);
^
In file included from /usr/include/apr-1/apr_file_io.h:29:0,
from /usr/include/apr-1/apr_network_io.h:26,
from /usr/include/apr-1/apr_buckets.h:29,
from /usr/include/httpd/util_filter.h:26,
from /usr/include/httpd/http_core.h:32,
from config.c:18:
/usr/include/apr-1/apr_file_info.h:336:27: note: expected ‘const char **’ but ar                                                                                gument is of type ‘char **’
APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath,
^
--2019-05-03 10:22:38--  http://www.haproxy.org/download/src/haproxy-.tar.gz
Resolving www.haproxy.org (www.haproxy.org)... <IP_ADDRESS>
Connecting to www.haproxy.org (www.haproxy.org)|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-05-03 10:22:38 ERROR 404: Not Found.
tar: This does not look like a tar archive
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./waf.sh: line 80: cd: /tmp/haproxy-/contrib/modsecurity: No such file or direct                                                                                ory
make: *** No targets specified and no makefile found.  Stop.
mv: cannot stat ‘/tmp/haproxy-/contrib/modsecurity/modsecurity’: No such file or                                                                                directory
Can't compile waf application


Convert centimeters to feet

Description
1 foot = 30.48 centimeters
Input  : 152.4
Output : 5

Program added successfully :tada:
Thanks for your contribution :hugs:


bug in bonfire-seek-and-destroy

I tried the code provided in the screenshot above and it worked well in the browser console. But it always return the original array in the challenge and doesn't make any changes on it.

Are you sure it's working in the console, because I can't get it to work.

thanks @ahstro for your time. forget about it, it was my fault the argument inside the anonymous function is not the same outside. but although I did not understand how it worked once in the console.
thanks a lot.


Schedule for publication and social media: History of Civic Tech article parts 1 and 2

@natalienoel1  ready in WP: http://citycampnc.org/?p=2740&preview=true

This is scheduled for Tuesday Sep 19. @natalienoel1


DNS resolution on Alpine images

Environmental Info:
K3s Version: v1.25.4+k3s1

Node(s) CPU architecture, OS, and Version: Linux marge 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux

Cluster Configuration: 1server

Describe the bug:
When I use alpine image, the DNS is not resolved
kubectl run -ti --rm alpine-musl --image=giantswarm/tiny-tools:3.12 --restart=Never --timeout=5s -- nslookup google.com
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
*** Can't find google.com.mydomain.com: No answer

pod "alpine-musl" deleted

On ubuntu image it seems OK

Steps To Reproduce:

kubectl run -ti --rm alpine-musl --image=giantswarm/tiny-tools:3.12 --restart=Never --timeout=5s -- nslookup google.com
Expected behavior:
Resolution of the domain google.com

Actual behavior:
Error on DNS resolution

Additional context / logs:
/etc/resolv.conf on alpine image
search default.svc.cluster.local svc.cluster.local cluster.local mydomain.com
nameserver <IP_ADDRESS>
options ndots:5

tcpdump on node when I ask google.com from alpine image
00:07:11.601271 IP <IP_ADDRESS>.52025 > one.one.one.one.domain: 35132+ [1au] A? google.com.mydomain.com. (54)
00:07:11.625601 IP <IP_ADDRESS>.52025 > one.one.one.one.domain: 2576+ [1au] AAAA? google.com.mydomain.com. (54)

I believe this is a duplicate of

https://github.com/k3s-io/k3s/issues/6132

It can be fixed in alpine linux ?

Are you sure it is just alpine-based images that experience this problem? Is it not related to which node the pod is running on?

I've just a one node k3s (homelab) and debian / ubunutu images are OK but alpine is not OK

yeah, so it is most likely the alpine issue then. As discussed in that issue, you can sometimes fix this by changing the search list on the node.

Yes, that what I did but it's not possible when you use some helm chart based on alpine for example

Long story short is that ndots:5 in /etc/resov.conf breaks alpine because it is using musl instead of glibc.
https://www.openwall.com/lists/musl/2017/03/15/3
But can anybody explain why ndots:5 is set? =)

This would likely be a question better suited for the Alpine issue


Add the feature flag for package metadata cleanup

Just a feature flag for package metadata, same as the one for maven metadata. Merging.


chore: npm-check-updates && yarn upgrade

Ran npm-check-updates and yarn upgrade to keep the yarn.lock file up-to-date.

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
Commit ID: e5e5e63ffec6c2ecda6c8b2cab23aaafc9374242
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
Commit ID: e5e5e63ffec6c2ecda6c8b2cab23aaafc9374242
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
Commit ID: 9ac39a2a6a130473d526c74c32114ece5178f469
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
Commit ID: 9ac39a2a6a130473d526c74c32114ece5178f469
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


fix: Gateway Enforce Routing Fees

In debugging https://github.com/fedimint/fedimint/issues/4350 I realized that the gateway is not independently verifying that the client attached routing fees to the contract. We check if the contract is underfunded, but only against the invoice amount, not invoice amount + gateway fee.
This PR adds gateway enforcement of fees and adds a test that verifies clients cannot cheat and not pay fees.

Iirc we don't check that fees were paid but only allow the LN node to pay as much in fees as the user. We don't have a guarantee of making money anyway rn (could introduce a fee margin that's guaranteed to go to the gateway to fix this).

Right now the only check we have is if a contract is "underfunded", which essentially just compares the amount in the contract to the amount that the client tells the gateway to pay. The issue is that, if the gateway is charging a routing fee, we do not currently independently compute that fee.
This is hard to exploit currently since it requires a malicious client to not attach fees for the gateway. In practice though this probably can occur if a gateway changes their advertised fees, since it might not re-register with the federation for another ~10mins.

@elsirion let me know if you think this is still necessary, I think we're on the same page. This essentially just turns the under-funding of a contract (without fees) into an explicit error, whereas before the gateway would rely on routing on the LN to make a profit


Alternative carousel proposal - carousel using only HTML and CSS

It would be great to have this natively supported in Foundation 5:

http://dancort.es/web-design/2015/05/17/how-to-make-carousel-only-html-css-no-javascript.html

This is an clever approach, but it has some problems for our use case. The state of the carousel is dependent on the anchor at the URL, which means if you jump somewhere else, the carousel resets, which would be confusing for the user.
It also limits our ability to do interesting things with animation. We're going to implement our motion library from Foundation for Apps in version 6 of this framework.
Lastly, it has a lot of boilerplate, like needing to add arrows for each individual slide, and anchor targets separate from each slide. One benefit of using a plugin is that it can eliminate boilerplate for the developer, saving them time.
Solutions like this are really good when they're hand-made for a specific project, but they don't work as well in a framework, where the solution needs to be broad enough to fit a variety of use cases.

@gakimball any call on when 6 will be realy? I can't wait!


Verify @batch(1) - NetApp Accounts

Description
Test if @batch(1) is required for the PIP deployment.
If not - remove it
If it is required - keep it and add an inline documentation why it is needed
Applicable resource type:

Microsoft.NetApp/accounts
Microsoft.NetApp/accounts/capacityPools

https://github.com/Azure/ResourceModules/actions/runs/2157206249


redirect ->withErrors() from Exception Handler not working

Laravel: 5.2
A longer while back I could use redirect()->withErrors() without a problem from Exception Handler. Now, the redirect is passed correctly, but withErrors() is not. I've tried to do dd(Session::all()); in the Exception handler but it returns me an empty array.
Is it a bug or I simply should not be allowed to do that from exception handler ?

There is only one session file in there.

I heard of issues where redirect wouldn't keep flashed sessions values (withErrors).  I been using the Redirect fascade in my controllers, and calling it by Redirect::to('/page')->withMessage('Hey');
Also, make sure you're using the web middleware for all of your routes as it starts the session handler

This may not work if your session has not been started yet. This is the expected behaviour. One such case would be for 404s were no web middlewares are executed because the request gets rejected at the routing layer.


Escape cid

For #173, adding / in the component name works, but jquery barfs with Syntax error, unrecognized expression if trying to do $('[lazo-cmp-id=path/to/component]').
Per jQuery Attribute Docs we just need to surround the value with double quotes $('[lazo-cmp-id="path/to/component"]').
/cc @sberryman @jstrimpel @pknepper

Closing to follow contribution guide.


API Change Suggestion: Vector range

The readme says 'Create a vector containing the range from start to end in steps of step (optional).' This looks more like it should be a static method of Vector, rather than a method of a Vector instance. To do that it would be assigned to Vector rather than Vector.prototype
Looking at the code, range pushes values onto an existing Vector instance. That behaviour is not defined in the API, but for the moment it's being used in my first vector.range example. I got unexpected results where I tried to add the range 100 to 105, using .range(100, 105), but it only pushed the numbers 100 to 103 onto the vector.
We should clarify what range is supposed to do, then get it to do that, possibly using a static method.

Why static? I fixed your issue in my latest commit.
Usage example:
var vector = new vectorious.Vector().range(0, 5)
// vector contains [0, 1, 2, 3, 4]

var vector = new vectorious.Vector().range(5, 0)
// vector contains [5, 4, 3, 2, 1]

var vector = new vectorious.Vector().range(0, 3, 10)
// vector contains [0, 3, 6, 9]

The reason I think it may be better as a static method has to do with me not being sure what it's for. It the result is based from an existing instance of a Vector then it should not be static. However, if we want to be able to call
Vector.range(0, 5)

to get a new vector in that range, than a static method would be way to do it.

I'm looking at this code, and it's Vector.range = Vector.prototype.range.
While still supporting the existing API makes sense in terms of not breaking anything unexpectedly, I was suggesting an API change where range in its current form is not a method of a vector instance.
What do you think about making breaking API changes? Is it acceptable to do when incrementing the major version number or would you prefer to avoid it by keeping range as a function of the Vector prototype?

I see no reason why we can't keep it as a function of the prototype for backwards compatibility? It's barely one line of code.

The reason not to keep it is in order to have a simpler API, which in the long run would make the programmer's job easier.
I think releasing something that breaks backwards compatibility with too little notice is the wrong thing to do. However, a version 2 was released that said the feature was depricated in its documentation, possibly have a version 3 print a warning when it's used, and then a version 4 remove it entirely, would lead to the simpler eventual API. Or it could be done quicker than that, but still with warnings in documentation.
Over the long run software projects can be bogged down by having to support old APIs. The alternative provides less stability.

You are right, maybe we could unpublish it from npm and let 1.0.0 be the version with typed arrays? Then we wouldn't have to think about backwards compatibility until after release.

I don't think we should unpublish it. I think we should proceed with stability from the point we have now. There have been quite a lot of downloads of the library.
I think for the moment we should keep the code supporting both versions, and document only the approved version in the docs. But I think we should get rid of the current vector.range quite soon, as it's better in the long run if it's not there.

No need for this to be open any more.


"YAML_FILE_ERROR: This build image requires selecting at least one runtime version."

Issue: When I run a build, the DOWNLOAD_SOURCE build phase fails with the error
"YAML_FILE_ERROR: This build image requires selecting at least one runtime version."
accrding to aws troubleshooting.
https://docs.aws.amazon.com/codebuild/latest/userguide/troubleshooting.html#troubleshooting-build-must-specify-runtime
Possible cause:  build uses version 1.0 or later of the Amazon Linux 2 (AL2) standard image, or version 2.0 or later of the Ubuntu standard image, and a runtime is not specified in the buildspec file.
Recommended solution: If you use the aws/codebuild/standard:2.0 CodeBuild managed image, you must specify a runtime version in the runtime-versions section of the buildspec file.
[buildspec.yml]
phases:
install:
runtime-versions:
docker: 18
I updated this yml file, it can build.

Thanks for reporting this issue.  We're currently testing a fix on the devops-buildspec branch

Modified buildspec file which is workaround and working:
version: 0.2

phases:
  install:
    runtime-versions:
      docker: 18

    commands:
      # Install dependencies needed for running tests
      - npm install

      # Upgrade AWS CLI to the latest version
      - pip install --upgrade awscli

  build:
    commands:
      # Use AWS SAM to package the application using AWS CloudFormation
      - aws cloudformation package --template template.yml --s3-bucket $S3_BUCKET --output-template template-export.yml

      # Do not remove this statement. This command is required for AWS CodeStar projects.
      # Update the AWS Partition, AWS Region, account ID and project ID in the project ARN on template-configuration.json file so AWS CloudFormation can tag project resources.
      - sed -i.bak 's/\$PARTITION\$/'${PARTITION}'/g;s/\$AWS_REGION\$/'${AWS_REGION}'/g;s/\$ACCOUNT_ID\$/'${ACCOUNT_ID}'/g;s/\$PROJECT_ID\$/'${PROJECT_ID}'/g' template-configuration.json

artifacts:
  type: zip
  files:
    - template-export.yml
    - template-configuration.json

Thank you.

@d970255 - just merged #236 to fix this.  Thanks again for your feedback


Router.go() doesn't work with zero or more wildcard parameters (w/ example)

Meteorpad example here
A zero or more wildcard parameter works in a route when navigating directly to a URL, but does not when using Router.go()
i.e.
Router.go('searchPage', {_anyPaths: 'hope/it/works'}, {query: fields});

Throws an error of

Error: You are trying to access a wild card parameter at index 0 but the value of params at that index is undefined

Using this zero or more wildcard parameter:
Router.route('/search/:_anyPaths*', {
  name: 'searchPage',
  data: function(){
    var qs = $.param(this.params.query);
    return {
      params: this.params._anyPaths,
      queryString: qs
    };
  }
});

But the route works fine and the parameters are available when navigating directly to a URL like
/search/works/fine/here?queryStringKey=wowItWorks

Can't get this to work either. If the param is provided like this:
Router.go('routeName', ['abc'])

an error like this occurs:
Uncaught Error: Missing required parameters on path "/route/:path*". The missing params are: ["path"]. The params object passed in was: ["abc"].

Package versions used:
<EMAIL_ADDRESS><EMAIL_ADDRESS>

If you rummage around in irn:url/lib/url.js you'll see that named route parameters that match to a wildcard should be entered (in the sample above) as :param(.*) i.e., with dot and brackets accompanying the asterisk.
The second problem is that Router.current().params does not contain the route parameter, even though it is there in the router's action method. One can work around this by setting this.hacky = this.params.path in the action method which makes it available as Router.current().hacky.
BTW: that's two hours work. To whom shall I send the bill?


Iter 01 frontend merge to dev

Closed since it is not safe to merge with dev. Will be merged at end of semester.


Potential bug in springroll.easeljs.AssetManager unloadAll method

I think there's might be a copy-paste error in the unloadAll method of the AssetManager (springroll/dist/modules/easeljs-ui.js - line 2499).
var i, length;
for(i = 0, length = loadedAssets.length; i < length; ++i)
{
    if (images[asset])
    {
        images[asset].src = "";
        delete images[asset];
    }
}

I'm assuming that 'asset' should be 'i'

Thanks Jacob. Good catch.


More copy options and support of -WhatIf, -Confirm

I added support for crucial objects that appear in system databases,
such as users, roles, database role memberships, defaults, rules,
synonyms, etc.
I also added support for -WhatIf and -Confirm options, which I think are
important here.

Frikken awesome! Yes. Thank you.


[Dribbblish] Weird bottom bar size on OSX

Expected behavior
Expected the ui to match the screenshots
Screenshots

( I do not want to share the entire screen publically, but this is pretty much the crux of the bug)
Most likely a css change.
Specifics (please complete the following information):

OS: MacOS Monterey v12.5.1
Spotify version  <IP_ADDRESS>7.ga4397eb7
Spicetify version 2.12.0
Theme name Dribbblish

I'm looking into the dev inspector now, but I'm not familiar enough with how this is constructed to fix the issue. Version <IP_ADDRESS>5 appears to be the last version without this playbar issue, so comparing the differences between that and the current version looks to be a good starting place.
It's probably a trivial fix, but I don't have a good enough grasp on how the css is laid out to do it myself. I'll dig a little more though.

Should be fixed in the newest version, try reinstalling Dribbblish with the command specified here


Catastrophic failure: Can't load UI anymore: object in path "firstRun.0" could not be found or was destroyed.

Version:
time="2016-02-20T17:44:42Z" level=info msg="Starting rancher-compose-executor" version=v0.7.2

[root@pprdespap324 rancher]# docker images | grep rancher
rancher/server                         latest              7c0ed1de7188        2 weeks ago         845.3 MB

Steps:

Tried to delete a container from a Host.
Tried clicking in "Logging out"
Tried deleting the cookies and reload the page.

Results:

Container never deleted;
Error in the UI through an Error Message banner...
Then, the website cannot reload anymore.

Expected:

Delete the container
Site is working properly.

@deniseschannon It's been 3 days now and the server is at the same state...

Is there any recommendation on how to fix this?
Should I completely delete the database and start over?
What possibly this can be?

Open up the browser dev tools -> Console (in Chrome, preferably) and screenshot the stack trace?  And click on the file_name:line_number for the first entry which should show what line of code it came from.
The string firstRun does not appear anywhere in the UI, its dependencies, or any of our other repos, so we have no idea without more useful info.  Are you loading a customized UI?  Behind some kind of proxy?  A picture of the expanded out  element from the Elements tab might also have useful info.

@vincent99 I just followed the vanilla installation... I was attempting to delete containers from the UI when it failed twice for the same... And then, it never recovered.
Below is the screenshot requested... I clicked and it showed the exact line of code.

Please let me know if there's a workaround! :+1: Would like to present this on a Meetup on Thursday and Hand off to the Tools team here.

So that line is clearing the browser localStorage entries, you must have used that domain name for something else before and it left an entry with the key firstRun.0 behind, and the . has special meaning in Ember.  Will add a check to prevent exploding in this situation.
 I'm reusing a server from PROD to experiment Rancher! :+1:  So yeah, there was an entry there and I deleted the entry... It was firstRun0.3... I deleted and

And we are back now!!! @vincent99  Thanks a lot for helping... Please tell David that I really thank you guys for the attention...

Marcello


Bugs for run_electra.py at master branch

Description
Bug for Horovod support
At https://github.com/dmlc/gluon-nlp/blob/master/scripts/pretraining/run_electra.py#L418, num_samples_per_update depends on the data batch, and could be different across the horovod processes (note that Horovod will launch a process for each GPU card), meaning that the parameters maintained in each horovod process (since we use trainer.allreduce_grads()) might diverge.
Bug for mlm loss
At https://github.com/dmlc/gluon-nlp/blob/master/scripts/pretraining/run_electra.py#L383-L384, masked_weights.reshape(-1) should be replaced by mx.np.expand_dims(masked_weights, axis=-1), please see the doc of SoftmaxCELoss at https://github.com/apache/incubator-mxnet/pull/19010/files or the example usage in bert at https://github.com/dmlc/gluon-nlp/blob/v0.10.x/scripts/bert/pretraining_utils.py#L416-L418
Note that
mlm_scores's shape: (batch_size, num_masked_positions, vocab_size)
unmasked_tokens's shape: (batch_size, num_masked_positions)
masked_weights's shape: (batch_size, num_masked_positions)
If we comment out mlm_loss_fn.hybridize() and add two lines before/after https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/gluon/loss.py#L408: print('loss.shape before weighting ', loss.shape, ' sample_weight.shape ', sample_weight.shape) and print('loss.shape after weighting ', loss.shape), running the current script run_electra.py we will get
loss.shape before weighting  (64, 19, 1)  sample_weight.shape  (1216,)
loss.shape after weighting  (64, 19, 1216)

note that 1216 = 64 x 19
cc @sxjscience @ZheyuYe
Error Message
(Paste the complete error message, including stack trace.)
To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
(Paste the commands you ran that produced the error.)

What have you tried to solve it?

Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python

# paste outputs here

There is indeed a Bug for mlm loss here, thank you very patiently and carefully to revise the training script and find this bug out. As Far as I can see, this MLM bug will lead to a steep increase in calculations which need to be fixed.

@ZheyuYe Thanks for the response, I will work on the fix later.

That might also explain why it's slower. Thanks for the observation! We need to refactor the pretraining script to make it more structured.


Bug 1609700 - Use config user/pass if no auth_type

A regression was introduced with the quay adapter that removed these and broke default logins with user+pass and no auth_type. This adds them back in.

Coverage increased (+0.01%) to 64.515% when pulling e3255e4bcb1485033fd031612922677a16ada290 on eriknelson:bz1609700 into b1d462edba357ab9e187a517630631258ccc4120 on automationbroker:master.

The bug that this PR fixes was effectively stripping the User/Pass combo. The updated test ensures this doesn't happen.


[New Monitor] RTSP support

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
New Monitor
🔖 Feature description
Support RTSP (https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol) which is often used by IP Cameras.
✔ Solution
Support RTSP Monitor
❓ Alternatives

📝 Additional Context

love this too

As always: We are open to PRs, here is our contribution guide.
Note that

a Pull request should be class extending MonitorType instead of the currently primary approach of writing monitors in monitor.js. See for details.
Depending on how easy this is to test, a testcase is also appreciated.
Rationale: I don't expect plenty of people to use this
=> If this breaks accidentally, we wouldn't notice for a long time

I need it very much, that would be great!!!

Yes I would need that too. Im currently just pinging the cams. A RTSP checkup would be more precise.

@CommanderStorm
RTSP(S) is almost exactly like HTTP(S), except that you would send something like this...
OPTIONS rtsp://media.example.com:554/path?query RTSP/1.0
CSeq: 1

...and receive something like this...
RTSP/1.0 200 OK
Cseq: 1

...plus some optional headers you can ignore.


Incorrect behavior

Hello. I asked to expose GetBounds() for user recently, but when I tried to use it and rect.Intersects(rect), I found that both work incorrectly in all my tasks :(
I was confused by what was going on until I tried to change them to my naive implementations - everything started working as intended
template <typename T>
bool rect_rect(const T& rect1, const T& rect2)
{
    return rect1.right >= rect2.left && rect1.left <= rect2.right && rect1.bottom >= rect2.top && rect1.top <= rect2.bottom;
}

/// Use initializer_list instead of vector when possible
template <typename T, typename U, typename V>
U array_bounds(const T& arr)
{
    auto xmin = std::numeric_limits<V>::max();
    auto ymin = std::numeric_limits<V>::max();
    auto xmax = std::numeric_limits<V>::lowest();
    auto ymax = std::numeric_limits<V>::lowest();
    for (const auto& p : arr)
    {
        if (p.x < xmin)
            xmin = p.x;
        if (p.x > xmax)
            xmax = p.x;
        if (p.y < ymin)
            ymin = p.y;
        if (p.y > ymax)
            ymax = p.y;
    }
    return {xmin, ymin, xmax, ymax};
}

when I tried to use it and rect.Intersects(rect) [and GetBounds()]

I can't see why these 2 functions might fail now. However, in a recent update I did address a significant problem with the MaxInvalidRect64 and MaxInvalidRectD definitions. And this would certainly impact GetBounds(). Maybe you missed this update and is what you were detecting. But fixing these definitions wouldn't affect Rect.Intersects().

I found that both work incorrectly in all my tasks :(

Could you provide test data that demonstrates this.

I can't use images to test the functions you claim are failing.
Please provide simple test cases (ie path data that returns an incorrect result from GetBounds(), and Rect64 values that return an incorrect Instersects result.

You should at least update to the latest commit as you seem to be referencing a commit that's almost 2 months old.
WRT straight line paths, the current GetBounds() function I believe works as expected,
WRT Rect,Intersects() method, it currently returns true whenever straight line Rects overlap.
Nevertheless, strictly speaking these rects are empty so I could be persuaded to return false if either rect is empty.


ADC sampling : second call to i2s_adc_enable() blocks the code

Environment:
Visual Studio Code : 1.74.0
Platform IO : 3.0.0
Platform: Espressif 32  version 6.0.0
Windows 10 pro
Dev Kit : LILYGO
Controller : ESP32 WROVER B
platform.ini file
[env:esp-wrover-kit]
framework = arduino
platform = espressif32
board = esp-wrover-kit
upload_port = COM10
; monitor_port = /dev/cu.SLAB_USBtoUART
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags = -Ofast -D `CORE_DEBUG_LEVEL=5

Problem Description:
In this program that uses the I2S from-ADC , I can only call i2s_adc_enable() once, second time in blocks in i2s_adc_enable and it never returns.
I am generating a sine wave from another board to GPIO35, Connected a button to GPIO 23.
Code Compiled successfully and attached screenshot below.
.
I have referred this similar issue link #https://github.com/espressif/esp-idf/issues/2964 but I couldn't get the exact solution.
Full Code link below.
esp32-walkie-talkie-main.zip
The adc code worked well with this author's another similar project #https://github.com/atomic14/esp32_audio/tree/master/i2s_sampling. This project executed well and raw audio file is stored in the respective location.
I compared both the project's adc read code, everything looks same, but the I couldn't get the code running.

It should be fixed now


Add setters for AES Key and Initialization Vector

This allows the template resolver to instantiate without the AES Key or Initialization Vector so that templates can be processed and the key and vector can be set on demand when an encrypted template function is discovered.
For:

https://github.com/stolostron/backlog/issues/18712

Dependency for:

<pr-in-propagator-TBD>

/hold for review


feat: add commit regex input

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat(ingestion/powerbi): link cross workspace dataset into assets

@sid-acryl there's git conflicts on this?

@sid-acryl there's git conflicts on this?

resolved


make the webhook controller name configurable

Changes
Introduce a new env. variable to provide the admission controller name - WEBHOOK_ADMISSION_CONTROLLER_NAME
The webhook contains multiple controllers including mutating/validating webhook and the conversion controller. All controllers are hard coded to webhook.pipeline.tekton.dev, config.webhook.pipeline.tekton.dev, and validation.webhook.pipeline.tekton.dev.
This commit adds a new env. variable in the webhook deployment such that the controller name can be configured from the deployment yaml if needed. Also added instructions in webhook deployment with the list of changes you will have to apply if you change the default value.
Signed-off-by: pritidesai<EMAIL_ADDRESS>/kind feature
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[ ] Has Docs included if any changes are user facing
[ ] Has Tests included if any functionality added or changed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including
functionality, content, code)
[x] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[x] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
[ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
The webhook controller name can be configured using WEBHOOK_ADMISSION_CONTROLLER_NAME environment variable in webhook deployment.

/test check-pr-has-kind-label

/test tekton-pipeline-unit-tests
flake: TestReconcile_V1Beta1CustomTask/simple_custom_task_with_taskRef

Hey @XinruZhang thank you so much for reviewing this PR 🙏 Will appreciate if you can merge it unless there is anything outstanding. Thanks!

Thanks Priti! LGTM, but I'm not allowed to merge it yet 🙃
/LGTM

You qualify for being a collaborator on the project with all your efforts. Please open a PR in community repo to add yourself as collaborator.


Server error on automatic upload

Visual Studio Code Version : 1.11.1
Code Settings Sync Version : [ VERSION_HERE ]
Operating System : macOS el capitan
Occurs On: Upload
Proxy Enabled: No
GIst Id: 697f191ae16b529630fb40762c33ce1c
At extensionHost.ts:284 I have been getting this message lately
[Extension Host] {"message":"Server Error","documentation_url":"https://developer.github.com/v3/gists/#edit-a-gist"}

I think Im getting this error whenever Im adding a new project to my projects manager.

I also have a same issue, but my problem is I can download the setting.
I can't upload my setting, it show Can't edit this gist

@realappie  and @Rukeith can you provide the complete stack trace of exception or post an image from the developer console.

@shanalikhan I will whenever I encounter this issue again!

@realappie please retry after Reset Extension Settings : )

Feel free to post, and i will re open this issue.


Update forward_proxy.mdx

fix typo

🚀 Deployed on https://6695bda1d78a07ddaf5cc307--cozy-fox-0defec.netlify.app


Incorrect typing on AsyncResponse.iter_content()

One must run async for chunk in await async_response.iter_content() (which conflicts with the type hints provided for AsyncResponse.iter_content()) instead of the expected async for chunk in async_response.iter_content().
Expected Result
Content of the HTTP response to be printed in chunks to stdout.
Actual Result
Exception:
Traceback (most recent call last):
  File "<redacted>/test.py", line 10, in <module>
    if __name__ == '__main__': asyncio.run(_main())
                               ^^^^^^^^^^^^^^^^^^^^
  File "/home/james/.pyenv/versions/3.12.1/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/home/james/.pyenv/versions/3.12.1/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/james/.pyenv/versions/3.12.1/lib/python3.12/asyncio/base_events.py", line 684, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "<redacted>/test.py", line 7, in _main
    async for chunk in resp.iter_content():
TypeError: 'async for' requires an object with __aiter__ method, got coroutine

Reproduction Steps
import asyncio
from niquests import AsyncSession

async def _main():
    async with AsyncSession() as session:
        resp = await session.get('https://github.com/jawah/niquests', stream=True)
        async for chunk in resp.iter_content():
            print(chunk)

if __name__ == '__main__': asyncio.run(_main())

System Information
$ python -m niquests.help

{
  "charset_normalizer": {
    "version": "3.4.0"
  },
  "http1": {
    "h11": "0.14.0"
  },
  "http2": {
    "jh2": "5.0.4"
  },
  "http3": {
    "enabled": true,
    "qh3": "1.2.1"
  },
  "idna": {
    "version": "3.10"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.12.1"
  },
  "niquests": {
    "version": "3.11.1"
  },
  "ocsp": {
    "enabled": true
  },
  "platform": {
    "release": "<IP_ADDRESS>-microsoft-standard-WSL2",
    "system": "Linux"
  },
  "system_ssl": {
    "version": "300000d0"
  },
  "urllib3.future": {
    "cohabitation_version": null,
    "version": "2.12.900"
  },
  "wassima": {
    "certifi_fallback": false,
    "enabled": true,
    "version": "1.1.5"
  }
}

Workaround
import asyncio
from niquests import AsyncSession
from typing import cast, Coroutine, AsyncGenerator

async def _main():
    async with AsyncSession() as session:
        resp = await session.get('https://github.com/jawah/niquests', stream=True)
        async for chunk in await cast(Coroutine[None, None, AsyncGenerator[bytes, None]], resp.iter_content()):
            print(chunk)

if __name__ == '__main__': asyncio.run(_main())

It's true, something isn't right. But it is not what you think it is.
I suspect there's a bug (some edge case) that bring this bad UX. It does not seems to be something we can deal with within Niquests.
If you have a (rather clean, without breakage) solution that we can apply that makes both modern IDEs and mypy happy with, we'll proceed.
async def reproducer() -> typing.AsyncGenerator[bytes, None]:
    async def gen() -> typing.AsyncGenerator[bytes, None]:
        yield b"foo"
        yield b"bar"
    return gen()

So there you have to await reproducer() as their is no yield within reproducer. This minimal code does not confuse mypy or IDEs. But Niquests makes it glitch somehow, making it "okay" to not await the method.
We'll need a typing expert to investigate.
Regards,


Questions about technical report

Questions about technical report：MMDetection: Open MMLab Detection Toolbox and Benchmark

In Table 9, when we explore the effects of neg pos ub, why not use the better parameters smoothl1 beta=1/15

1/9 is the default value in mmdetection as well as the official implementation of Faster R-CNN or FPN, so we use it as the baseline when studying the affects of other hyper-parameters.

1/9 is the default value in mmdetection as well as the official implementation of Faster R-CNN or FPN, so we use it as the baseline when studying the affects of other hyper-parameters.

That's it. Thank you.


Updated format for all use cases

Coverage remained the same at 91.452% when pulling f07a761851585b2435c3e332932c65c9efde6a95 on tristyxxnana:master into 4afc1e89e0d5da9458864daeefbc1c979f3cb54a on CS2113-AY1819S1-T16-1:master.

 AWC PR


Fix cannot generate migration error

As you recently introduced the new migration feature, I tried to generate a migration in my test project but unfortunately it got an error:

After a while trying to figure out the cause, I came to a solution as you can see in this PR. I'm not sure whether this is the root cause (cause I know require's parameter doesn't need a file extension), but it works for me anyway. Hope this helps :)

@khaiql This looks odd to me. I mean, we always require libs without the .rb ext. Which OS and Ruby version do you have?

@khaiql I had a look at your stack trace, you're using lotusrb 0.3.2, which doesn't have that feature yet. It will be shipped with 0.4.0 on June 23.
In the meantime, please adjust your Gemfile like this:
gem 'lotus-model', github: 'lotus/model'
gem 'lotusrb', github: 'lotus/lotus'

Closing this.

@jodosha according to my gemfile, I'm using lotusrb 0.4, btw, this error looks odd to me also :)


Add support for Release Management

At the moment the tasks looks up the build number, it would be good if it could be added to a release pipeline to get all the associations for linked artefacts.
Adding an outer wrapper should be all that is needed

I have had a look at this and it is reasonably easy to add an outer loop that can check for all the builds in a release and drill down for the work items and changesets. It is also possible to get some of this data directly from the RM REST API.
However there is another issue. When you are working with a build you can drop the release note file into the artifacts folder. This is not an option for a release pipeline as there out not output artifacts. I can't think where to put the results.

•	In RM we need to tell it where to find the source template. It could get this from a build artefact, but I am going to add the option to provide it in line as parameter
•	The big issue were where to output the release note to, there being not build drop location. The work around is going to be the user gets to choose where the file should go, I won’t assume a drops location
•	Finally I need to alter the rest calls to get the artifacts associated with the release as opposed to the build

Made public with version 1.3.22 of the Release Notes extension


helloworld.py fix typos and translate into Spanish

https://github.com/busse/kodumisto-playground/blob/e4ed6fdd44fc55cc8eed7510cf919212cde6ea12/helloworld.py#L3
I found a typo in the output this script makes. Fix the typo, and modify the output so that it is in Spanish.

See comment on PR. Chat GPT omitted the comment on the last line.


Parse-SDK-JS & MongoDB

Hi,
Parse-SDK-JS (used on Cloud Functions) use the REST-API to access the Parse-Server by HTTP in order to get the data from the DB, and that looks an unnecessary detour to me, so...
Is there any plan to make Parse-SDK-JS connect the DB directly? or
Is there any plan to replace Parse-SDK-JS by something like Parse-SDK-MongoDB ?

No, we don't have anything like that in the works. I think the use case would be pretty small, as JS in the browser won't be able to use this anyway. We are also attempting to move away from being tied to mongo, and this would tie us even more to mongo.