New command: paictl machine update

Add a new configmap pai-node-config, to store the configuration of each node. Keep this configmap in the namespace kube-system.

pai machine update. If machine is removed from the cluster-configuration stored in the configmap, it will be removed. If machine is added into the cluster-configuration stored in the configmap, it will be added.

Fix some bug.

Coverage increased (+2.8%) to 51.62% when pulling 6812595ea6564d1f6ce7d3c6f32e9b2755f75660 on yuye/paictl-change-machine into 1150290f1a4a89a292e8ba6058591940144af0ee on master.

Coverage increased (+2.8%) to 51.62% when pulling 6812595ea6564d1f6ce7d3c6f32e9b2755f75660 on yuye/paictl-change-machine into 1150290f1a4a89a292e8ba6058591940144af0ee on master.

Coverage increased (+2.8%) to 51.62% when pulling 6812595ea6564d1f6ce7d3c6f32e9b2755f75660 on yuye/paictl-change-machine into 1150290f1a4a89a292e8ba6058591940144af0ee on master.


Update multion notebooks references

📥 Pull Request
📘 Description
Small PR - Commit 8161133a853f47ed269df2d6eb774a4ea46f9ecf moved some of the multion notebooks. This PR adjusts sources to changes.
🧪 Testing

This is awesome, I'm really glad you found this and pushed a fix. Thanks @emmanuel-ferdman !!


tests: Support generic field in contract

close #227

closing as it is already being delivered under #249


Build hangs in Dockerized Bitbucket CI with coverage flags

My builds hang under some rather specific conditions:

Bitbucket docker based CI
Base image docker:git
Custom image built inside a docker:git container
Custom container run from inside docker:git container
Having more than the first two parameters in my yaml
building with cmake coverage flags
tag 0.3.8

Most of the time the error is a timeout after two hours but once I had an error of out of memory. Builds work just fine on my local machine and in the same container built in the CI pipeline, but not in bitbucket's CI pipeline. Any ideas what might be causing it, or ways to debug it?
CMake:
find_package(generate_parameter_library REQUIRED)
generate_parameter_library(<lib_name>_parameters src/params.yaml)
...
target_link_libraries(<lib_name> ... <lib_name>_parameters)

params.yaml:
<lib_name>:
  joints: {
    type: string_array,
    description: "List of joints.",
    read_only: true
  }
  frame_id: {
    type: string,
    description: "The frame id.",
    read_only: true
  }
  xx: {
    type: double,
    description: "The xx.",
    read_only: true,
    default_value: 1.0
  }

Build command:
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} --coverage" -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} --coverage"

Looks like it wasn't so much this library that was the problem but its use of templates which significantly increased the memory requirements of the build pipeline and the build pipeline not having enough memory.


Add an LS extension for the generation of worker models

Description:
An LS extension is required to analyze generated Ballerina code with workers and create a JSON model to visualize the flow between these workers. The extension should consider a given function definition (resource, main, etc.), and analyze the metadata through annotations, and examine the graph through the send and receive actions.

Closing this issue as we are discontinuing this model.


Utilize soem ROS package instead of forked ethercat_soem

A ROS SOEM library already exists as a debian in Indigo (it's built from here).  The latest merges to support an EtherCAT version of the robotiq gripper require a forked version, here.
I believe the original version was forked to provide catkin support.  This now exists in the original SOEM version.  If we utilized the existing ROS debian version of SOEM, we could do official debian releases of the robotiq packages.

@Jmeyer1292, can you comment?

@shaun-edwards I'm not attached to my version of SOEM. I'll test this one out with our drivers and report back.

I started a fix here, but I'm blocked until smits/soem#4 is addressed.


websocket receiving message - we now use poll with Poco::Timespan(10000)

Might be obsolete if we move to libwebsockets implementation #134


Update the content viewer to work with the current version of Autopsy

Update the content viewer to work with the current version of Autopsy.

awesome!


Error: github.GitHub is not a constructor

This action looks great and I really want to get it working, but when I run it, I just get this output (I've changed the repo details to ***** as it's a private repo):
Run<EMAIL_ADDRESS>  with:
    token: ***
    retryInterval: 10000
Starting to run with following input: {
  repo: '********',
  owner: '********',
  branch: '********'
}
Error: github.GitHub is not a constructor

Here is my complete .github/workflows/audit.yml:
name: Audit

on:
  pull_request:
    types: [opened, reopened]

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:

    - name: Get deployment URL
      id: deployment
      uses<EMAIL_ADDRESS>      timeout-minutes: 5
      with:
        token: ${{ secrets.GITHUB_TOKEN }}

    - name: TODO - some kind of audit
      run: npm run audit-site
      env:
        deployment: ${{ steps.deployment.outputs.deployment }}

Any ideas what the problem might be?

Hi!
Sorry for the delay in response.
Can you try running the action with dorshinar/get-deployment-url@master?


Softlayer - Run script in process create node and floating_ip Open Stack

Added post_uri parameter to the SoftLayer driver. Run script in process create node

thanks for the contribution, post_install_script_uri might be a more obvious kwarg name, but thats no biggie. I've added a note with regards to testing absent values.

+1 on @tonybaloney's comment and thanks for the contribution :)

@onecloudportal @marcydoty @jvitorsf please see previous comment, if you can please make the changes I'd be happy to merge.

Hi when is this request merged?

@tonybaloney, is it possible to assign the public/private vlan during the vs creation?


Maintenance spot check for build fix

For the maintenance release https://github.com/phetsims/chipper/issues/1189.
I'd appreciate a 5-15 second test per sim below, to make sure nothing is horribly broken (and some sims had client guide updates that I had to fix, checking that the client guides load on phet-io sims would be helpful).


pkg/report: include information about USB buses for USB bugs

Requested in a mailing list.
Hi,

here I understand what is happening, but not why it can happen. Usbnet
checks the endpoint type.

May I request an addition to syzbot? Could you include the output of
"lsusb -v" at the time
of the error condition for USB bugs?

    Regards
        Oliver

Not entirely obvious how to best implement that. We definitely cannot query that information at the time of a crash because the VM is no longer running.
Can syzkaller affect the output of lsusb -v during fuzzing? If not, we could probably query that information as a part of collectMachineInfos and then attach that info to the report if it's a seemingly USB bug.
Cc @xairy

lsusb -v shows connected USB devices. Syzkaller's USB pseudo-syscalls can connect new devices, so collecting lsusb -v once during VM startup won't work.

And most bugs abort the kernel. Also not clear what are "USB bugs".
If kernel could detect "USB bugs", it could dump the necessary info on panics.

Thinking about this more: to be of any use, lsusb -v must be collected exactly at the point when a USB crash occurs. A moment later the buggy USB device might already be disconnected.
Dumping the same info from the kernel is a viable approach. USB bugs can be identified as the ones that "have USB pseudo-syscalls in the reproducer if there's one". However, I don't think upstream will be happy about adding USB-related things to panic reports.
A better solution is collecting usbmon 0u trace when running a reproducer for USB bugs. It's not as visual as lsusb -v, but it provides a more accurate information about what's happening on the USB bus.

Would it work if kernel would log attach/detach events? This would be useful for any kernel testing system.

That's what usbmon is for, kind of.
Attaching a USB device is not a single event. It's a process that involves multiple messages between the device and the host. lsusb -v is the way to know the result of that process, and usbmon allows to follow it message-by-message.
Maybe there's a way to make usbmon print all communications to the kernel log.

lsusb comes from usbutils package and buildroot has BR2_PACKAGE_USBUTILS.
I don't have usbmon installed and apt-cache search usbmon does not give me anything.

Is it guaranteed to print the info before kernel crashes?

Not sure. The kernel probably puts packet data into some global queue before processing it. However, a userspace reader might only get to reading this data after the kernel has crashed.

lsusb comes from usbutils package and buildroot has BR2_PACKAGE_USBUTILS. I don't have usbmon installed and apt-cache search usbmon does not give me anything.

You don't need any package, just enable CONFIG_USB_MON and read from /sys/kernel/debug/usb/usbmon/0u.

Interesting. What does it take to enable KDB? How can it be communicated? Does it have any other side-effects?

What does it take to enable KDB?

As I understand, we just need to enable some build-time config options.

How can it be communicated?

It should be accessible via the serial port. Actually, we already do a similar thing for OpenBSD and FreeBSD:
https://github.com/google/syzkaller/blob/44d1319aab39b23be41fbf75d9d37ef9aaa665f2/vm/vmimpl/openbsd.go#L11-L23

FTR managed to configure a Linux instance on qemu to enter kdb mode on crash.
I took https://github.com/google/syzkaller/blob/master/dashboard/config/linux/upstream-apparmor-kasan.config and the latest Linux kernel source (v5.16).
Add to .config file
CONFIG_CONSOLE_POLL=y
CONFIG_KGDB=y
CONFIG_KGDB_SERIAL_CONSOLE=y
CONFIG_KGDB_KDB=y
CONFIG_KDB_KEYBOARD=y
CONFIG_PANIC_TIMEOUT=0

Add to kernel command line:
 oops=panic
We'll probably also need to connect to it via gdb in this case. It must be possible. Then we'll have access to all the debug info and it'll be easy to evaluate expressions.

The following approach seems to work:

Enable kdb and kgdb.
After a panic, kdb starts automatically.
I type kgdb command, it starts expecting gdb packets (though it seems that this step is unnecessary).
I run gdb ./vmlinux and then target remote /* serial port */
It becomes possible to evaluate expressions containing global and per-cpu variables.

(gdb) p *(struct xa_node *)(usb_bus_idr.idr_rt.xa_head)
$4 = {shift = 41 ')', offset = 0 '\000', count = 0 '\000', nr_values = 0 '\000', parent = 0x59e0000000000000, array = 0xdd8ffffffff8ca5, {private_list = {next = 0xdd8ffff88804326, prev = 0xffff88804326}, callback_head = {
      next = 0xdd8ffff88804326, func = 0xffff88804326}}, slots = {0xe000000000000000, 0x3000ffff888017f3, 0x3000ffff888045f2, 0x3000ffff888045f0, 0xb000ffff88801782, 0x3000ffff88804529, 0xb000ffff8880419b,
    0xb000ffff8880409e, 0xb000ffff8880457b, 0x4000ffff8880178f, 0xffff88801288, 0x4000ffff8880409e, 0x8000ffff8880409e, 0xc000ffff8880161d, 0xc000ffff8880161d, 0xffff888041f5, 0x4000ffff88804579, 0x8000ffff88804579,
    0xc000ffff888041d0, 0x8000ffff888041d0, 0x8000ffff888041f5, 0xc000ffff8880460a, 0xffff8880460a, 0xffff8880405d, 0x4000ffff88801796, 0x8000ffff88801796, 0xc000ffff8880463f, 0xffff8880463f, 0x4000ffff8880177f,
    0x8000ffff8880177f, 0x4000ffff88801756, 0x8000ffff8880405d, 0xc000ffff888041a5, 0xc000ffff888041a5, 0x8000ffff88801756, 0xc000ffff88804688, 0x8000ffff88804688, 0xc000ffff8880468f, 0x8000ffff8880468f,
    0xc000ffff8880169d, 0x8000ffff8880169d, 0xffff88801294, 0x0 <fixed_percpu_data> <repeats 21 times>, 0x1000000000000}, {tags = {{281474909601792}, {0}, {1188950301625810944}}, marks = {{281474909601792}, {0}, {
<PHONE_NUMBER>625810944}}}}

If I understand it correctly, all the necessary data is accessible via the usb_bus_idr global variable. Though it would be definitely not straightforward to traverse it..
One time there was a radix tree-parsing gdb script, but later it was reverted and does not seem to be returned back.

There is something called crash, which is special debugger for kernel:
crash - Analyze Linux crash dump data or a live system
https://linux.die.net/man/8/crash
https://www.linuxjournal.com/content/oops-debugging-kernel-panics-0
Also a scriptable drgn debugger:
https://github.com/osandov/drgn
Maybe they can simplify extraction of info from dumps (but I did not look at them in detail).


error: legacy-install-failure

"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\tonia\AppData\Local\Programs\Python\Python310\include -IC:\Users\tonia\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppycrfsuite/_pycrfsuite.cpp /Fobuild\temp.win-amd64-3.10\Release\pycrfsuite/_pycrfsuite.obj
_pycrfsuite.cpp
pycrfsuite/_pycrfsuite.cpp(13546): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
pycrfsuite/_pycrfsuite.cpp(13562): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
pycrfsuite/_pycrfsuite.cpp(13906): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
pycrfsuite/_pycrfsuite.cpp(17069): error C3861: '_PyGen_Send': identifier not found
pycrfsuite/_pycrfsuite.cpp(17074): error C3861: '_PyGen_Send': identifier not found
pycrfsuite/_pycrfsuite.cpp(17158): error C3861: '_PyGen_Send': identifier not found
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> python-crfsuite
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
C:\Windows\system32>

I solved this issue by using Anaconda and couldnt find a solution without using it. After downloading Anaconda, from Anaconda prompt, run conda create -n myenv python=3.7 and source activate myenv.
Then run pip install neuralcoref. In this way it should work.


Fix to support UTC timezone

Description
Adds support for UTC timezone.
Related Issue(s)

relates to #1019

Documentation

Thanks for your PR @andrei-ionescu 👍
Could you please add a unit-test to better describe the issue fixed?

@fvaleye I added a few tests on the timestamp date type, both ways. I did not add negative tests for other timezones as we may want to support all timezones. I'm not sure why some of the checks do fail. It shows linting errors on files I did not touch at all. Is this a know issue?


Thicker table (v)line becomes longer and exceeds the table bounds/borders

Description
The code:
#table(columns: 2, [a], table.vline(stroke: 2pt), [b])

Outputs:

Which is true for different PDF viewers and for 1000 PPI PNG. This is clearly visible on PDF and PNG at a normal zoom, probably will be visible on a A4 paper as well. And it appears there is no solution to make the table line thicker without extending its ends outside of the table's borders. IMO, this is a serious limitation on table customization, even though tables only "recently" (end of last year?) got a major update. The issue can go as a feature request as well, but I chose to treat it as a bug.
Reproduction URL
No response
Operating system
Linux
Typst version

[X] I am using the latest version of Typst

In principle this isn't a bug, lines normally expand on all sides, which is important to make corners merge together, otherwise the corners would be empty. With that said, there could be an additional option for stroke.cap controlling which sides to expand on.

As a limited solution, you can increase the thickness by around 90% via gutter:
#table(columns: 2, column-gutter: 0.9pt, [a],  [b])

Which would give nice and crisp result:

If the gutter uses +100% of the line thickness, then you would see the gap between the cells, like this:

which is important to make corners merge together, otherwise the corners would be empty.

Right.

In principle this isn't a bug, lines normally expand on all sides

Yes, but you can literally say table.vline(stroke: (thickness: 2pt)) which, in the context of middle vertical table lines, means that you want to change only the thickness, i.e., expand the line horizontally. Instead, it expands it in all directions. So it all depends on what you/user thinks the stroke should do. In this situation, it clearly shouldn't expand in all directions. Therefore, I consider it's a bug, but it also doesn't matter.

In principle this isn't a bug, lines normally expand on all sides, which is important to make corners merge together, otherwise the corners would be empty. With that said, there could be an additional option for stroke.cap controlling which sides to expand a line's thickness on, so that could be considered a feature request.

I mean, this is clearly not desired behavior, and I'd argue a bug. The line shouldn't expand past the extent of the horizontal stroke it intersects with.

I mean, this is clearly not desired behavior, and I'd argue a bug. The line shouldn't expand past the extent of the horizontal stroke it intersects with.

It's complicated, since they are just lines, so there is no hierarchy of strokes when things are being drawn. With your proposal, you'd get sample A instead of B.

Strokes have a few intrinsic problems as well, such as which lines to draw on top, horizontal or vertical lines. We chose the thickest lines to be drawn on top, which is what browsers do. But there are other things which are much harder to solve. We could try to think of an alternative way to handle strokes if we want to tackle this.

I mean, this is clearly not desired behavior, and I'd argue a bug. The line shouldn't expand past the extent of the horizontal stroke it intersects with.

It's complicated, since they are just lines, so there is no hierarchy of strokes when things are being drawn. With your proposal, you'd get sample A instead of B.

I don't understand your logic. I'm mot saying they shouldn't extend. I'm saying they should only extend by half the stroke width of the horizontal line, and not past it. That would give you B.

I thought of a quick and dirty solution like wrapping the table in block(clip: true) if the extended line doesn't actually take space (like place()). I haven't tried this, but this is probably can be added to the Rust code as a temporary/permanent(?) fix. Or some version of it.

In principle, I'm ok with adding this as a feature as far as is possible. I'm just not sure if this should be the default behavior, especially because different behaviors make more sense for different situations, so I think we should at least be able to switch between both behaviors.
With that said, there are still design decisions to make:

What if there is no horizontal line at the top in the initial example? Should the line not extend at all, or should it behave as it does today?
What if the two cells around the vertical line have strokes with different thicknesses? Should it stop at the stroke with largest thickness?

What if there is no horizontal line at the top in the initial example? Should the vertical line then not extend at all, or should it behave as it does today?

No horizontal line would be the same as a stroke of width zero, so it shouldn't extend

What if the two cells around the vertical line have strokes with different thicknesses? Should it stop at the stroke with largest thickness?

Yes, though I can imagine having three options. Either no extension, extend to the smallest, or extend to the largest. It would also make sense to have the ability to shorten lines instead. That would be 5 options total.

I don't think so.
#let columns = 10
#let N = 5 // rows
#let Mth = 2 // Mth row (0-based)
#table(
  columns: columns,
  row-gutter: range(N).map(i => if i == Mth { 0.9pt } else { 0pt }),
  align: center,
  ..range(columns * N).map(i => str.from-unicode(
    "a".to-unicode() + calc.rem(i, 26),
  )),
)

You can extend this to a more general use case:
#let table-stroke = 2pt

#let make-em-thicc(N, list) = {
  range(N).map(i => if i in list { table-stroke * 0.9 } else { 0pt })
}

#set table(stroke: table-stroke)

#let columns = 10
#let rows = 5
#table(
  columns: columns,
  column-gutter: make-em-thicc(columns, (2, 5, 8)),
  row-gutter: make-em-thicc(rows, (0,)),
  align: center,
  ..range(columns * rows).map(i => str.from-unicode(
    "a".to-unicode() + calc.rem(i, 26),
  )),
)


Some UX and preference suggestions, licensing

Hi,
I've searched for a solution to see my Pocket list in my new tab and your extension ticked all the boxes!
Been using it for about two days now, and while I'm still exploring it, I'm loving it as a product and would like to suggest some preferences and UX suggestions:

Dark mode: With all the Pocket versions having an option for the dark mode, I don't see why this extension couldn't mimic that behavior.
Preferences:

I'm slightly bothered by having to click on "Open in Pocket" to see an article in Pocket. I wish there was a way to reverse that process, so that I would be able to click anywhere on a card and be redirected to Pocket, with a small "View original" label below that would allow me to see the original.
Some option to view tags. Tags, by themselves, are not that useful in the free version. However, they become exceptionally more useful once you have Pocket premium and once they are automatically suggested based on the content. With all that work done by Pocket, it's a shame not to be able to see them.
I'm slightly bothered by the way the extension handles bottom padding of the featured images (I would easily sacrifice cropping top and bottom to make them fit instead of leaving out white space if the image is wide).
Height of the cards themselves. Loosely associated with the previous thing, the cards themselves seem way too high. On my 14 inch monitor, I only see four articles at once. I've zoomed out the extension to 80% so that I would see the majority of two rows of cards. I would easily sacrifice smaller "My Pocket List" heading (or remove it all together, maybe the Pocket icon is enough?), and some of the featured image height to accomplish this. I would also suggest considering to move the "trending" toggle to the upper "status bar" as well.
Make the status bar fixed, so that it remains visible even while scrolling. Self explanatory, kind of annoying to have to scroll up the entire way if I want to switch to the "recommended" tab for example.

Add the license to this project. While you have indicated that you want the MIT license on Mozilla AMO, you haven't added the license to the repository. When not indicating a license, it's considered, by default, that the code is under your copyright. See this link, from which I'm sharing a quote below:

If you find software that doesn’t have a license, that generally means you have no permission from the creators of the software to use, modify, or share the software. Although a code host such as GitHub may allow you to view and fork the code, this does not imply that you are permitted to use, modify, or share the software for any purpose.

And, as a first option of me, as a user, in such a case:

Ask the maintainers nicely to add a license. Unless the software includes strong indications to the contrary, lack of a license is probably an oversight. If the software is hosted on a site like GitHub, open an issue requesting a license and include a link to this site, or if you’re bold and it’s fairly obvious what license is most appropriate, open a pull request to add a license.

I would also like to congratulate you for incorporating suggestions!
Yours is the first third party Pocket integration I've seen which shows me suggestions, and I know for a fact that suggestions aren't easily available over the current version of the API, so kudos to you!
I can't wait to find enough time to fiddle with the code to see how you've done it.

Thank you for this list!

Dark mode - sure, great idea.
i. I like to go to the website that is providing the content and not to pockets view. I have many coding articles and pocket can't handle all the code examples. That's why I have made it like this.
ii. I'll have to figure that tags system out, I don't use it myself and I don't have premium.
iii. This can be fixed.
iv. Will fix with previous point.
v. Will do.
I'll add MIT to repo.

I'll start adding those features. If you want to code too, you can make pull requests. Pocket API does have recommendations and trending items but they are not documented, I found that from Pockets own extension repo.

Added tags to 1.9.0 version! Everything else looks like is done too.


glibc: Strip bonus libraries

Glibc currently includes libiconv and libiintl from gettext. This is a constant thorn in our side because (all?) other libcs do not. This creates conditional soup everywhere for Darwin (and linux-musl, and other unix), and generally lures Linux software into being less portable than intended. We should build glibc without them to the extent that is permitted; I bet we could even get another distribution to follow suit!
Prerequisites:

#36948: No libgcc thrown in with glibc
#37012: Always depend on gettext and libiconv

CC @matthewbauer

One thing that might be easily fixed:
"gettext" does not provide libintl for Linux while it does for macOS. "libiconv" provides libiconv regardless of system though.

@Ericson2314 Is there a definitive list of these bonus libraries in Glibc? I just wonder if there could be a few other unusual libraries that might come up.
Related to this, I just found this link of "bonus libraries" in libSystem, which is what we use in Nixpkgs/Darwin world:
https://docstore.mik.ua/orelly/unix3/mac/ch05_02.htm
I don't know if any of those aren't in Glibc?

-nodefaultlibs might do this in GCC
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

Interestingly, I haven't found a comprehensive list of what these "bonus" libraries are.
[?]
[?]
[?]
[?]

The program used to generate is:
#include <sys/types.h>
#include <stdint.h>
#include <time.h>
#include <iconv.h>

#define bool int

double acos (double); // m
iconv_t iconv_open(const char *, const char *); // iconv
char *gettext (const char *); // intl
pthread_t pthread_self(void); // pthread
void si_search_module_set_flags(const char *, uint32_t); // info
bool has_colors(void); // curses
void res_close (void); // resolv
int clock_getres(clockid_t, struct timespec *); // rt
char *crypt (const char *, const char *); // crypt
int gethostname(char *, size_t len); // xnet
int dlinfo(void *, int, void *); // dl
int login_tty(int); // util

int main() {
  (void)acos(15);
  iconv_open("", "");
  gettext("HI");
  pthread_self();
  si_search_module_set_flags("", 0);
  has_colors();
  clock_getres(CLOCK_MONOTONIC, NULL);
  crypt("", "");
  gethostname((char *) "", 0);
  dlinfo(NULL, 0, NULL);
  login_tty(0);
}

If anyone has musl, MSVCRT, BSD libc, Bionic, or Newlib setup, please try compiling the above program and report the results to me!

@Ericson2314
Have you looked into filtering out the symbols from all Libcs? This is basically what is done on macOS & libSystem in Nixpkgs: https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/apple-source-releases/Libsystem/system_c_symbols
Having a restricted list of symbols for all Libcs would help with the "fail one place, fail everywhere" philosophy. I'm not sure how big a breakage would be for this, but as long as there is a flag to disable it in places that need the hidden symbols, it might be useful.
Also, I was looking to see if there is a way in either LLVM or GCC to disable compiler specific features? Basically if we could break everything that uses specific features (and have packages that rely on them explicitly set a flag to enable them).

Why not just do it the reverse way and have Darwin include whatever glibc includes?

Isn't it just enough to have the respective stdenvs but libiconv et al to buildInputs? Possibly with some -Wl,--as-needed -iconv etc. in the default linker flags.

Isn't it just enough to have the respective stdenvs but libiconv et al to buildInputs? Possibly with some -Wl,--as-needed -iconv etc. in the default linker flags.

I think @Ericson2314 supports doing the setup hook stuff. What stripping bonus libraries would do is break the case where "libiconv" is used but not declared as a build input. This only works on Glibc (and maybe some other Libcs that bundle iconv).

I still rather have more cc-wrapper extraPackages than a fatter libc derivation.

@Ericson2314 what's the status of this issue?

@Ericson2314 what's the status of this issue?

[x] libcrypt split in #181764
[x] libpthread was merged into libc upstream, I think; e.g. see
https://developers.redhat.com/articles/2021/12/17/why-glibc-234-removed-libpthread


Connecticut 81K wage joint one dep

Connecticut 81K wage joint one dep
http://taxsim.nber.org/out2psl/test22
Emulator shows correct taxable income, but tax is off.

Joint, household with dep implemented now, closed with PR #88


feat/starknet_chainId

Issue: Implement starknet_chainId RPC Call
Description:
The starknet_chainId RPC call has been implemented but requires further testing and verification against the entire state. This RPC call returns the currently configured StarkNet chain id.
Parameters:
None.
Expected Result:
The chain id this node is connected to.
Testing:
Initial testings can be found here. However, these should not be considered complete and improvements are welcome.
Resources:

Alchemy RPC API Endpoint Documentation
Starknet API OpenRPC Spec

Comments:
Please comment below for coordination.

can I take this one

This issue could go a bit further to bring support to a dynamic chain id based on cli on the whole codebase. @nils-mathieu initiated the --network handling now the code base should be updated accordingly to relay it until the rpc client side.
Also please support integration network: https://github.com/KasarLabs/deoxys/blob/main/crates/node/src/commands/run.rs#L91


Russian guide fix

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
no

Thanks!


Update about-security-overview.md for customer feedback

Why:
Closes: https://github.com/github/docs-content/issues/13287
What's being changed (if available, include any code snippets, screenshots, or gifs):

Updates the permissions information to explicitly mention team members (previously we assumed that organization members was enough since it contains team members).
Explicitly tells people that anyone with read or triage access only cannot view a repository at all.

Check off the following:

[ ] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.

[ ] For content changes, I have completed the self-review checklist.

@felicitymay I'll get this merged! ✨ Just a heads up, looks you opened this PR in the public Docs repo instead of the internal repo 💛 but that might have been your intention!

Many thanks @nguyenalex836 - 🤦🏻♀
It was an accident but since it's a small bug fix, it ought not to cause any problems.


[proposal] move LLC isolation plugin to qos-manager

What is your proposal:
Why is this needed:
Is there a suggested solution, if so, please add it:

/area koordlet
/assign stormgbs
/milestone v1.1


[Foreman::Procfile#load] Fail when empty

Followup to https://github.com/ddollar/foreman/pull/769
Includes logic to cause loading an empty Procfile to raise a Foreman::Procfile::EmptyFileError.
Keeps existing logic/error message for foreman check, just rescues this new error when doing so.

Thank you!


how to deploy in docker?

how to deploy in docker?

Thank you for this question.
Docker deployment definitions are currently defined under the docker folder:
https://github.com/microsoft/chat-copilot/tree/main/docker
This was a community contribution and additional insight might be available from the community.
We have not performed a docker deployment internally.

Could you please push it to Docker Hub?

I'm not sure we'dwill be able to manage that surface area.  Thank you for the suggestion, I'll run it by PM.

Thanks for looping me in @crickman. @win4r, unfortunately we won't be able to support this on Docker Hub, so for the time being, we won't be pushing it there.

Closing as response/answer from @matthewbolanos provided


How do I set the OCIO config to use from Python API?

Issue
How do I update the OCIO config used from the Python API?
Similar to this preference:

I couldn't find an entry in mrv2.settings or alike.
Or should I be setting OCIO env var instead?
Sidenote
It seems like the image related ocio methods are not documented in mrv2 0.8.1/docs/en/python_api:

image.setOcioIcs()
image.setOcioView()
image.ocioIcs()
image.ocioView()
image.ocioIcsList()
image.ocioViewList().

Unfortunately, setting an environment variable won't work.  I added an image.setOcioConfig() and image.ocioConfig()  in this pre-release version of mrv2 v0.8.2:
.exe installer:
https://mega.nz/file/GepQSKrT#mvu-lD5r74ry8IyWJwIuAALwYXohMBYUj3Wfv65XgAw
.zip:
https://mega.nz/file/bDAUABCS#YrUdBj-VUOQwIrTRSGqK7P6piwgK07g8UKY7Bhvd6bU
This version also addresses your Python Editor issues.

I also updated the documentation, btw.  You are my best beta-tester and a true perfectionist!


Adding artifacts

Cxx and CxxWrap need a julia binary at build time. Following a discussion with @giordano and @Gnimuc on slack how to specify julia as a binary dependency in BinaryBuilder, this is my first attempt to help with that.
I don't really know what I'm doing so this may or may not work.

I think it's better to put this into a JLL package.  Also, I don't know if a Artifacts.toml is expected to live in this registry.

OK, so do you suggest to create a new package under JuliaBinaryWrappers/?

Probably, but I'd suggest to wait for @staticfloat.


option to enable or disable android or ios

Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch<EMAIL_ADDRESS>for the project I'm working on.
I'm using this for iOS https://github.com/MaxAst/expo-share-extension
but for android I want to use an intent filter and launch the app, so it makes sense to use expo-share-intent to launch for android and disable the plugin for ios.
Here is the diff that solved my problem:
diff --git a/node_modules/expo-share-intent/plugin/build/index.js b/node_modules/expo-share-intent/plugin/build/index.js
index b538162..950046e 100644
--- a/node_modules/expo-share-intent/plugin/build/index.js
+++ b/node_modules/expo-share-intent/plugin/build/index.js
@@ -16,9 +16,9 @@ const pkg = {
 const withShareMenu = (0, config_plugins_1.createRunOncePlugin)((config, params = {}) => {
     return (0, config_plugins_1.withPlugins)(config, [
         // IOS
-        withIosAppEntitlements_1.withAppEntitlements,
-        () => (0, withIosShareExtensionConfig_1.withShareExtensionConfig)(config, params),
-        () => (0, withIosShareExtensionXcodeTarget_1.withShareExtensionXcodeTarget)(config, params),
+        // withIosAppEntitlements_1.withAppEntitlements,
+        // () => (0, withIosShareExtensionConfig_1.withShareExtensionConfig)(config, params),
+        // () => (0, withIosShareExtensionXcodeTarget_1.withShareExtensionXcodeTarget)(config, params),
         // Android
         () => (0, withAndroidIntentFilters_1.withAndroidIntentFilters)(config, params),
         () => (0, withAndroidMainActivityAttributes_1.withAndroidMainActivityAttributes)(config, params),

This issue body was partially generated by patch-package.

Good idea ! I'll make a PR for it!


how to see changed data?

I use RDS and try to replicate to my local so i can not get mysql-bin-changelog, can you tell me more information?
> db.binlog.find({})
{ "_id" : ObjectId("59afaf452692a0d7bef94348"), "filename" : "mysql-bin-changelog.000059", "position" : NumberLong(4) }

this is not an issue, the data is synced well in different database. thank you.


could not compare 4.4.3  to 4.5.0-beta1

running pester test runner from azure devops pipeline i'm getting this error and it's failing the task
System.Management.Automation.RuntimeException: Could not compare "4.4.3" to "4.5.0-beta1"
Error: "Cannot convert value "4.5.0-beta1" to type "System.Version". Error: "Input string was not in a correct format."" ---> System.Management.Automation.PSInvalidCastException: Cannot convert value "4.5.0-beta1" to type "System.Version". Error: "Input string was not in a correct format." ---> System.FormatException: Input string was not in a correct format.
Not sure where it's getting the beta1 from.

kinda new to this.  pretty sure it's a private agent.  I've got 5 agents and tasks and it only fails on 1 of them with this error.
does this help.  not sure where to put the system.debug
at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
2019-01-04T16:59:19.2877283Z    at System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent)
2019-01-04T16:59:19.2877536Z    at System.Version.TryParseVersion(String version, VersionResult& result)
2019-01-04T16:59:19.2877686Z    at System.Version.Parse(String input)
2019-01-04T16:59:19.2877842Z    --- End of inner exception stack trace ---
2019-01-04T16:59:19.2878054Z    at System.Management.Automation.LanguagePrimitives.ConvertViaParseMethod.ConvertWithoutCulture(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
2019-01-04T16:59:19.2878266Z    at CallSite.Target(Closure , CallSite , Object , Object )
2019-01-04T16:59:19.2878403Z    --- End of inner exception stack trace ---
2019-01-04T16:59:19.2878576Z    at CallSite.Target(Closure , CallSite , Object , Object )
2019-01-04T16:59:19.2878771Z    at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
2019-01-04T16:59:19.2879152Z    at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
2019-01-04T16:59:19.2879641Z    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

The line or two above that is what populates $NewestPester using Find-Module but that shouldn't show prerelease versions by default, so something like $PSDefaultBoundParameters must be changing how it's making its calls. I've got a fix in mind that should override that and ensure it only looks for full releases.
I should be able to get that fix out tomorrow or the day after.

From: JoshDouglasOU<EMAIL_ADDRESS>Sent: Friday, January 4, 2019 9:28:49 PM
To: rfennell/AzurePipelines
Cc: Chris Gardner; Assign
Subject: Re: [rfennell/AzurePipelines] could not compare 4.4.3 to 4.5.0-beta1 (#412)
this is where it's failing
Find-Module -Name Pester | Sort-Object Version -Descending | Select-Object -First 1
If ((Get-Module Pester -ListAvailable | Sort-Object Version -Descending| Select-Object -First 1).Version -lt $NewestPester.Version)
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/rfennell/AzurePipelines/issues/412#issuecomment-451573778, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQDqFk-cHvgOI0Pdx1TWKHCaNxYmGb86ks5u_8eRgaJpZM4Zp_m1.

thank you.  Yes agree. In testing, newestpester is coming back with the prerelease and I couldn't figure out why since default was don't show prerelease

I've just release 8.9.1 which should fix this by forcing -AllowPrerelease to be false when running Find-Module.
Can you test it and let me know if it's still happening for you.


git compare hangs after launching tab in Firefox

When I run git compare on the command line, git hangs with the following error...
(process:9116): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
This probably is not a bug in hub, but I wanted to double check that the expected behavior would be that a tab opens in the browser and the terminal returns to the command prompt. Instead I end up having to ctrl-c to exit the process.
I am running Ubuntu 14.04 and here is my git and hub versions...
git version 2.4.3
hub version 2.2.0-40-g5209bbf

Thanks for reporting. What is the output of:
browser="$(which xdg-open cygstart x-www-browser firefox opera mozilla netscape | head -1)"
echo $browser
"$browser" https://github.com

The output is
(process:10324): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
but the command "$browser" https://github.com does return to the command prompt.

What is the output of echo?

/usr/bin/xdg-open

Might it be an issue with xdg-open on your system?

I think this is a problem with xdg-open on your system and not hub. Let us know if you think we can do something to avoid this.


Compiling error when migrating to V11

Describe the Bug
I'm using<EMAIL_ADDRESS>and I need to upgrade to V11, when I do that, I receive this error:
<EMAIL_ADDRESS>152:84
Module parse failed: Unexpected token (152:84)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|     rfId
|   } = useStore(selector, shallow);
>   const elementWidth = (style === null || style === void 0 ? void 0 : style.width) ?? defaultWidth;
|   const elementHeight = (style === null || style === void 0 ? void 0 : style.height) ?? defaultHeight;
|   const scaledWidth = boundingRect.width / elementWidth;

I already saw some issues about it but couldn't solve the problem
Some issues related:

Reactflow bundling error in storybook
Importing reactflow v11 causes error "module parse failed: unexpected token"
V11 Build Errors with Webpack & Gastby

Here our dependencies list:
"dependencies": {
    "@react-pdf-viewer/core": "^2.3.0",
    "@react-pdf-viewer/default-layout": "^2.3.0",
    "@sentry/react": "^7.56.0",
    "ace-builds": "^1.4.12",
    "antd": "4.14.0",
    "axios": "^0.21.0",
    "d3": "^7.8.5",
    "dangerously-set-html-content": "^1.0.8",
    "date-fns": "^2.17.0",
    "es5-shim": "^4.5.15",
    "es6-shim": "^0.35.6",
    "identity-obj-proxy": "3.0.0",
    "immer": "^9.0.6",
    "jschardet": "^3.0.0",
    "lodash": "4.17.19",
    "object.entries": "^1.1.4",
    "object.values": "^1.1.4",
    "papaparse": "^5.4.1",
    "pdfjs-dist": "2.5.207",
    "plotly.js": "^1.58.4",
    "promise.prototype.finally": "^3.1.2",
    "randexp": "^0.5.3",
    "rc-color-picker": "^1.2.6",
    "rc-select": "^14.4.0",
    "re-resizable": "^6.9.0",
    "react": "17.0.1",
    "react-ace": "9.3.0",
    "react-app-polyfill": "^1.0.6",
    "react-avatar-editor": "^11.1.0",
    "react-copy-to-clipboard": "^5.0.3",
    "react-dnd": "^15.1.2",
    "react-dnd-html5-backend": "^15.1.3",
    "react-dnd-touch-backend": "^16.0.1",
    "react-dom": "17.0.1",
    "react-dropzone": "^11.2.4",
    "react-flow-renderer": "^9.6.6", //Older version
    "react-grid-layout": "1.3.0",
    "react-highlight-words": "^0.16.0",
    "react-jsx-parser": "^1.28.1",
    "react-number-format": "^4.4.1",
    "react-phone-input-2": "^2.15.1",
    "react-plotly.js": "^2.5.1",
    "react-redux": "^7.2.2",
    "react-router-dom": "^5.2.0",
    "react-scroll": "^1.8.2",
    "react-select": "^5.7.4",
    "react-slick": "^0.28.1",
    "react-textarea-autosize": "^8.3.2",
    "react-toastify": "^7.0.4",
    "react-typist": "^2.0.5",
    "reactflow": "^11.8.3", //New version
    "redux": "^4.0.5",
    "redux-thunk": "^2.3.0",
    "sanitize-html": "^2.3.0",
    "slick-carousel": "^1.8.1",
    "sockjs-client": "^1.5.0",
    "stompjs": "^2.3.3",
    "typescript": "^4.7.4",
    "uuid": "^8.3.2",
    "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz"
  },

Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
I couldn't reproduce this error
Expected behavior
It's expected that the project compiles the new version of reactflow
Screenshots or Videos

Platform

OS: macOS
Browser: Chrome
Version: Latest

Additional context
This React code is ejected and we use storybook, but the error happens when we try to run yarn start

Are you using an older version of create-react-app? If so, you need to transpile React Flow as described here https://github.com/wbkd/react-flow/issues/2453#issuecomment-1620059828

Are you using an older version of create-react-app? If so, you need to transpile React Flow as described here #2453 (comment)

It works!! Thanks man <3 u're the best
Thats why I wasn't able to reproduce the error. I was creating a new project with a upgraded version of CRA


RSS option for user views

Is your feature request related to a problem? Please describe.
I have no way to subscribe to updates for a person's public profile.
Describe the solution you'd like
I want the ability to subscribe to an RSS feed of a public profile so that I can use a traditional RSS feed reader library to be notified of new data.

Not really sure what you'd use this for, but should be easy enough to build 😅


Potd Chimera

Description
Description of the issue you're seeing.
Additional information
If available, please include any logs or screenshots depicting the issue you're experiencing.

When fighting a chimera in Potd on floors 181-189 every time it uses rams voice or dragons voice the tts says interrupt or get out or interrupt or get in.  The problem is by the time the prompt says “interrupt or get” you’re already dead if you haven’t gone out or In without the tts prompt.  It would honestly be better if all it said was “get in” or “get out” or just “in” or “out”.  At the very least suggest the interrupt after the movement prompt but honestly the fight lasts long enough at least solo that you could only interrupt 1/4 of the moves if you’re are even on a job that can interrupt.  The way it is now it’s more likely to get someone killed than help them in any way.


Automatic error report

Spyder does not display Image numpy array.
I used SimpleITK library to convert raw data images to numpy arrays, then I tried to open this to inspect the values but I got this error from Spyder.

This worked yesterday but as I run spyder with a set environment from git bash,
i got this errro, maybe is because I am running Spyder from git bash but that should not be a problem.
In git bash I got this error

QQuickWidget: Cannot render due to failing makeCurrent()

This is fixed in our latest version. Please update by opening the Anaconda Prompt and running there
conda install spyder=3.3.4

It didn't work!

I update spyder as you said, then I activated again my environment, and run spyder but it did not work! I checked this by using the default environment and it worked

If you have Spyder installed in you environment, you also need to update it there.


Fails to build on Windows

This definitely will be fixed. Thanks for reporting!

@vinipsmaker, could you please provide more details about what errors do you get while building on Windows?
Appveyor CI builds seem to be producing correct results on both MSVC x64 and 32-bit MSYS: https://ci.appveyor.com/project/nbaksalyar/rust-streaming-http-parser

It was on the AppVeyor on one of the commits of this PR: https://github.com/maidsafe/crust/pull/715
However, I rebased the PR and lost the history of the commits (and I don't know where the AppVeyor log went).
You could try to build this: https://github.com/vinipsmaker/http-pull-parser-rs/tree/0.1.2

Cannot compile on Windows (win10), error:
error: failed to run custom build command for `http-muncher v0.2.0`
Process didn't exit successfully: `X:\rust\chat\target\debug\build\http-muncher-a20d24bca88ab602\build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("0")
PROFILE = Some("debug")
TARGET = Some("x86_64-pc-windows-gnu")
debug=true opt-level=0
HOST = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-o" "X:\\rust\\chat\\target\\debug\\build\\http-muncher-a20d24bca88ab602\\out\\http-parser\\http_parser.o" "-c" "http-parser/http_parser.c"
ExitStatus(ExitStatus(1))

command did not execute successfully, got: exit code: 1

--- stderr
http-parser/http_parser.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
 /* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev
 ^
thread '<main>' panicked at 'explicit panic', C:\Users\hkmp7\.cargo\registry\src\github.com-88ac128001ac3a9a\gcc-0.3.28\src\lib.rs:840
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Any ideas?

@red2awn, it seems that 64-bit MSYS GCC isn't supported by the underlying library, https://github.com/nodejs/http-parser.
I'm not sure about the reason, because it compiles OK with the 64-bit MSVC compiler.
I'll take a look into that, thanks for the report!


⚠ OBSN has degraded performance

In c8e9ce6, OBSN (https://obsn.org) experienced degraded performance:

HTTP code: 200
Response time: 27343 ms

Resolved: OBSN performance has improved in ad233b2 after 7 minutes.


I can use it only as a client to connect to an API?

I want to change the way I connect to a websocket, looking for efficiency. I'm not a developer, and I'm having a hard time understanding if websockets is the way to go.
I currently connect using websocket
    self.socket = websocket.WebSocketApp(self.session.wsUrl,
                                         on_message=self.on_message,
                                         on_error=self.on_error,
                                         on_close=self.on_close,
                                         on_open=self.on_open,
                                         header=self.session.authtoken)
    self.startSocket()

websockets relies on Python's asyncio framework, which is a non-trivial barrier to entry.
Considering that you describe yourself as "not a developer", I don't think you want to put "learn asyncio" between your current situation and your target.


Button text selectable

[ x ] I have searched the Issues to see if this bug has already been reported
[ x ] I have tested the latest version

Steps to reproduce

Create any button with text inside

Current behavior
The text can be selected, but by default it shouldn't

Expected behavior
By default the text should not be selectable in a button

I don't experience this on https://www.flowbite-react.com/docs/components/button, can you provide an example?

In my case yes, it does the same:

You need to click ouside of the button and drag the cursor over the button like if you wanted to select several buttons at the same time.
I think it would be solved if in the theme base you added select-none, but I haven't looked at it in detail

I can't reproduce that on Firefox but I can on Chromium-based browsers. However, that's the current behavior of the vanilla Flowbite library, so I don't think we have any need to take action here. I'm not sure I understand the motivation in the first place. Why shouldn't the text be selectable?


Can  anyone  help me to to fix  this problem?

An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\ABDUL JALEEL\anaconda3\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\ABDUL JALEEL\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\ABDUL JALEEL\anaconda3\lib\site‑packages\spyder_kernels\console_main.py", line 23, in
start.main()
File "C:\Users\ABDUL JALEEL\anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 289, in main
import_spydercustomize()
File "C:\Users\ABDUL JALEEL\anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 39, in import_spydercustomize
import spydercustomize
File "C:\Users\ABDUL JALEEL\anaconda3\lib\site‑packages\spyder_kernels\customize\spydercustomize.py", line 17, in
import pdb
File "C:\Users\ABDUL JALEEL\anaconda3\lib\pdb.py", line 73, in
import cmd
File "C:\Users\ABDUL JALEEL\anaconda3\lib\cmd.py", line 50, in
IDENTCHARS = string.ascii_letters + string.digits + ''
AttributeError: module 'string' has no attribute 'ascii_letters'

@jkinya thanks for reporting this. Can you check if you created a file called "string.py" in your home directory, your project directory or your working directory? If that's the case, you need to change the name because there is a standard library module that has the same name.

@juanis2112   just now i installed anaconda,  while opening spyder it showing the error above i posted

Yeah, but if you created this file (even if it was before the installation) it can conflict with spyder. Take a look at https://docs.spyder-ide.org/current/common-illnesses.html#attributeerror-importerror

@juanis2112 I had created a string.py  for pycharm project,  now i  changed a file name
so  my problem  is solved.
Thank you .

You're welcome. I'm glad you solved it!


Migrate to mamba-org/setup-micromamba

[x] Closes #1746
[x] I am familiar with the contributing guidelines
[x] Pull request is nearly complete and ready for detailed review.
[x] Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Migrating to mamba-org/setup-micromamba, as outlined in #1746

@wholmgren since it's my first pvlib pr, looks like some workflows require approval to trigger? I've taken a shot at addressing #1758, ready to review!

Looks good to me, thanks @d-watt!  Can you also make a brief note under Testing and add yourself to the contributors list in https://github.com/pvlib/pvlib-python/blob/main/docs/sphinx/source/whatsnew/v0.9.6.rst?

Thanks @kandersolar! Missed that in the contributing guidelines. Ready to re-review.

Looks good to me, thanks @d-watt! Can you also make a brief note under Testing and add yourself to the contributors list in https://github.com/pvlib/pvlib-python/blob/main/docs/sphinx/source/whatsnew/v0.9.6.rst?

Alright @kandersolar, ready for another look!


Unreported permissions problem creating pipeline in fruit stand example

pachctl list-job
ID
59585d4d85bc6ad70d3fe6369db9b13f
67c30d70ba9d2179aa133255f5dc81db
pachctl get-logs 59585d4d85bc6ad70d3fe6369db9b13f
0 | 2016-10-06T08:21:39Z ERROR fuse.DirectoryLookup {"directory":{"file":{"commit":{"repo":{}}}},"name":"prev","err":"operation not permitted"}
0 | cat: /pfs/prev/apple: Operation not permitted
0 | 2016-10-06T08:21:39Z ERROR fuse.DirectoryLookup {"directory":{"file":{"commit":{"repo":{}}}},"name":"prev","err":"operation not permitted"}
0 | cat: /pfs/prev/orange: Operation not permitted
0 | 2016-10-06T08:21:39Z ERROR fuse.DirectoryLookup {"directory":{"file":{"commit":{"repo":{}}}},"name":"prev","err":"operation not permitted"}
0 | cat: /pfs/prev/banana: Operation not permitted

Hi @bhueth this actually looks like it might be correct behavior. The fruit stand job reads from /pfs/prev to try to find the old value of the pipeline, if this is the first run of the pipeline then /pfs/prev won't exist and it'll get an error which is what you're seeing here. However it handles this error by using 0 in that case since it's performing a sum. The result is you'll see this error in the logs but the job shouldn't fail because of this. Are you seeing a failing status for the job?

I think so? Here's what I see:
pachctl create-repo data
pachctl put-file data master sales -c -f set1.txt
pachctl create-pipeline -f pipeline.json
pachctl list-job
ID                                 OUTPUT
5eebd488fbd96dee3dc4d746a879b14c   sum/2a5de2d05f0c41b9abccee30cd6b4aaa/0
67c30d70ba9d2179aa133255f5dc81db   filter/0fc94f46efb4401090ea09c22c948fca/0
pachctl list-repo
NAME                CREATED              SIZE
data                About a minute ago   874 B
filter              22 seconds ago       400 B
sum                 22 seconds ago       24 B
pachctl get-file sum sum/2a5de2d05f0c41b9abccee30cd6b4aaa/0 apple
commit sum/2a5de2d05f0c41b9abccee30cd6b4aaa/0 not found in repo sum

Ah, I see the problem. The command should be pachctl get-file sum 2a5de2d05f0c41b9abccee30cd6b4aaa/0 apple. get-file takes the arguments
  . Sum is the repo name and
2a5de2d05f0c41b9abccee30cd6b4aaa/0 is the commit ID. I can definitely see
how that's confusing so we can change the headers there to make that
clearer.
does pachctl get-file sum 2a5de2d05f0c41b9abccee30cd6b4aaa/0 apple return
correctly?
On Thu, Oct 6, 2016 at 3:52 PM, Brent Hueth<EMAIL_ADDRESS>wrote:

I think so? Here's what I see:
pachctl create-repo data
pachctl put-file data master sales -c -f set1.txt
pachctl create-pipeline -f pipeline.json
pachctl list-job
ID OUTPUT
5eebd488fbd96dee3dc4d746a879b14c sum/2a5de2d05f0c41b9abccee30cd6b4aaa/0
67c30d70ba9d2179aa133255f5dc81db filter/0fc94f46efb4401090ea09c22c948fca/0
pachctl list-repo
NAME CREATED SIZE
data About a minute ago 874 B
filter 22 seconds ago 400 B
sum 22 seconds ago 24 B
pachctl get-file sum sum/2a5de2d05f0c41b9abccee30cd6b4aaa/0 apple
commit sum/2a5de2d05f0c41b9abccee30cd6b4aaa/0 not found in repo sum
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pachyderm/pachyderm/issues/948#issuecomment-252110706,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABtjwGCNukBvghEmx5H7jgG6Wo_UNHGwks5qxXvJgaJpZM4KPrO6
.

Sure does. Thanks.

I believe this issue has been fixed.  This line ignores /prev if it doesn't exist.


List & watch can be authorized on named resources

As of 1.11, resource names for list & watch requests are populated from a field selector on metadata.name [1]. Update the RBAC documentation to reflect this change.
[1] https://github.com/kubernetes/kubernetes/pull/63469
/assign @liggitt
/cc @wojtek-t @haiyanmeng

/cc @misterikkit

/lgtm

/approve


Upgrade conection modal

Codecov Report

Merging #158 into master will decrease coverage by 0.55%.
The diff coverage is 20%.

@@            Coverage Diff             @@
##           master     #158      +/-   ##
==========================================
- Coverage   22.97%   22.41%   -0.56%
==========================================
  Files          95       94       -1
  Lines         653      647       -6
  Branches       42       43       +1
==========================================
- Hits          150      145       -5
- Misses        483      484       +1
+ Partials       20       18       -2

Impacted Files
Coverage Δ

app/redux/bets/bets.actions.js
18.18% <ø> (ø)
:arrow_up:

app/redux/stadiums/stadiums.actions.js
18.18% <ø> (ø)
:arrow_up:

app/redux/teams/teams.actions.js
20% <ø> (ø)
:arrow_up:

app/redux/groups/groups.actions.js
27.77% <ø> (ø)
:arrow_up:

app/redux/matches/matches.actions.js
16.66% <ø> (ø)
:arrow_up:

app/screens/App/ConnectionWidget/User/User.js
66.66% <ø> (-4.77%)
:arrow_down:

app/redux/users/users.actions.js
20% <ø> (ø)
:arrow_up:

app/screens/App/App.js
0% <0%> (ø)
:arrow_up:

.../screens/App/ConnectionWidget/ConnectionWidget.jsx
0% <0%> (ø)

...pp/screens/App/ConnectionModal/ConnectionModal.jsx
66.66% <100%> (ø)

... and 1 more

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 7bc6997...5cfb7e5. Read the comment docs.


ZI add support for DAQ module

This replaces #978 for reference

This has been deprecated and replaced by the drivers in https://github.com/zhinst/zhinst-qcodes/


'Realm.Configuration' has no member path

Goals
using RealmMapView
Actual Results
Pods/RealmMapView/RealmMapView/RealmMapView.swift:282:13: Value of type 'Realm.Configuration' has no member 'path'
Steps to Reproduce

Add following lines to podfile

pod 'RealmMapView'
# Map data set
pod 'RealmSwiftSFRestaurantData'

Build

Version of Realm and Tooling
ProductName:    Mac OS X
ProductVersion: 10.11.5
BuildVersion:   15F34
/Applications/Xcode.app/Contents/Developer
Xcode 7.3.1
Build version 7D1014
/Users/Air/.rvm/gems/ruby-2.1.1/bin/pod
1.0.0
Realm (0.103.1)
RealmSwift (0.103.1)

Any updates on this?

For those looking for a temporary fix, you can use my fork here:
pod 'RealmMapView', :git => 'https://github.com/v-ken/ABFRealmMapView.git'

Realm configuration has deprecated path attribute. Use fileURL instead. Something like this:
config.fileURL = [NSURL fileURLWithPath:ABFRestaurantScoresPath()];

instead of
config.path = ABFRestaurantScoresPath();

private func toRLMConfiguration(configuration: Realm.Configuration) -> RLMRealmConfiguration {
    let rlmConfiguration = RLMRealmConfiguration()

    if (configuration.fileURL != nil) {
        rlmConfiguration.fileURL = configuration.fileURL
    }

    if (configuration.inMemoryIdentifier != nil) {
        rlmConfiguration.inMemoryIdentifier = configuration.inMemoryIdentifier
    }

    rlmConfiguration.encryptionKey = configuration.encryptionKey
    rlmConfiguration.readOnly = configuration.readOnly
    rlmConfiguration.schemaVersion = configuration.schemaVersion
    return rlmConfiguration
}

Try to use this
Realm.Configuration.defaultConfiguration.fileURL!


When there are quite a few comments, one can't easily figure out what packages the update contains without having to scroll up

This is probably because I keep my terminal fonts quite large to try and not strain my eyes :nerd_face:  . In quite a few updates, because there already are multiple comments, the information about the update (the top bit) doesn't fit in the screen any more. So one has to repeatedly scroll up to see what packages are in the update and so on.
I was wondering if something could be done to prevent this from happening. Maybe filter out the automated comments that bodhi drops, for example?

I've been thinking about how to solve this for a while, but I didn't come up with a good solution.
The bodhi web interface uses a different style for comments from bodhi itself (like This update's test gating status has been changed to 'ignored'. etc. messages). I think I could just filter out all comments from the bodhi user (since those only contain information that is displayed somewhere else already)?

I've implemented filtering out comments made by bodhi itself in this commit:
https://github.com/ironthree/fedora-update-feedback/commit/8c6be52
This should reduce noise and the number of displayed comments considerably.
It will be part of the next release (1.1.0) once I have my other changes ready.

Yeh---the bodhi comments are reflected in other fields, so this would really help clean up the noise. Thanks very much :)

Released with version 1.1.0, will end up in Fedora repositories soon.


Spotdl refuses to work if playlist has an ampersand (&) character in the playlist link

System OS
Windows
Python Version
3.7 (CPython)
Install Source
pip / PyPi
Install version / commit hash
4.2.4
Expected Behavior vs Actual Behavior
Expected behaviour:
use
"spotdl https://open.spotify.com/playlist/5en4Jk4YVVwh4Z7umYGbRg?si=16f82dbdd0b2457d&pt=e57828ccc61768ec595f574959cf7975"
and start download.
Actual behaviour:
At line:1 char:94
+ ... tify.com/playlist/5en4Jk4YVVwh4Z7umYGbRg?si=11087a70cd4e4051&pt=7ee97 ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed

Steps to reproduce - Ensure to include actual links!
open windows command line
use "https://open.spotify.com/playlist/5en4Jk4YVVwh4Z7umYGbRg?si=4f41e10eb38f43df&pt=eb28c5474705d86a649f5a56fec10af1"
Traceback
At line:1 char:94
+ ... tify.com/playlist/5en4Jk4YVVwh4Z7umYGbRg?si=11087a70cd4e4051&pt=7ee97 ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed

Other details
No response

si and pt are the query param connected with &. Can you try to just use https://open.spotify.com/playlist/5en4Jk4YVVwh4Z7umYGbRg


Add x-client-sku and x-client-ver headers to UserRealm request

Enables Integrated Windows Auth in hybrids scenarios with Seamless SSO.

Already added: came for free as part of forking ADAL


Overwrite requestType property on ACDC requests

Looking at:
https://cmsweb.cern.ch/reqmgr2/config?name=vlimant_ACDC0_Run2016H-v1-BTagCSV-07Aug17_8029_170930_034619_4966
it says it's a ReReco workflow (since the original spec belongs to a ReReco one), while it's actually a Resubmission workflow:
request.schema.RequestType = 'Resubmission'
I think it's enough to keep OriginalRequestType and OriginalRequestName, unless there is a good reason to keep that spec like that.
@ticoann do you know if there was any reason to keep that original type?

In addition to that, a workload object has request_type (empty string) and requestType (with the original spec type). We can probably just remove the first one


Large peaklets for computing

Do not merge
Temporary fix to help computing. Larger chunks means fewer files -> less bookkeeping.
This branch should be up to date with master.

Closing due to divergence with master. Please reopen for high datarates


Add auto enable gerrit server repositories and auto enable git

Changes proposed ✍
What
copilot:summary

copilot:poem
Why
How
copilot:walkthrough
Checklist ✅

[ ] Label appropriately with Feature, Improvement, or Bug.
[ ] Add screenshots to the PR description for relevant FE changes
[ ] New backend functionality has been unit-tested.
[ ] API documentation has been updated (if necessary) (see docs on API documentation).
[ ] Quality standards are met.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.4 out of 8 committers have signed the CLA.:white_check_mark: khalifapro:white_check_mark: joanagmaia:white_check_mark: garrrikkotua:white_check_mark: bumblebee89:x: epipav:x: gaspergrom:x: sausage-todd:x: themaroltYou have signed the CLA already but the status is still pending? Let us recheck it.


5.4 Team's Reflection (D1)

Goh Guan Lin
Through the completion of D1, I learnt that communication is key for projects of this size, each team has to be aware of each other’s features, requirements and implementation in order for the product to come together as a system eventually. Reapplying the knowledge learnt from ICT2101, and the actual coding implementation highlighted the importance of high modularity and loosely coupled as we faced many troubles initially when we were trying to implement all our features separately for each team.
Having our software architecture laid out early into the project, we were able to translate our class diagrams into the coding implementation with the knowledge of what each team requires and provides. With the design well separated in the Presentation, Domain and Data Source layers with the MVVM architecture, it has allowed us to implement our features progressively and make changes to the features a breeze.

Bay Yi Kiat
I knew of the difficulties of working in a group before this project. However, I was only aware of how much communication was needed when working on this medium-sized project. I learned the importance of straightening out the details with other teams. It was minute unseen details like who is responsible for a component as such became stopgaps in our work progress. This sprint was a wholly new experience.
I understand more about software architecture and how MVVM aided me when I programmed the initial feature. MVVM has improved the separation of concerns by having ViewModel act as a mediator between Model and View to cleanly separate presentation logic from business logic. The greater degree of separation also helps with modularity, making a complex system easier to understand and manage. My experience of coding with MVVM can also help in terms of scalability.

Tan Ai Xin
In this project, I gained valuable experience in working with a real client and in a group setting on a medium-sized project with the class. I learned the importance of effective communication and collaboration. It is crucial to regularly communicate with the client to understand their requirements and with other teams to avoid miscommunication. Additionally, I learned the importance of requirements elicitation, as what we believe the client needs may not always align with their actual requirements. I understand that working with different teams can be challenging and requires constant communication and clear instructions to keep the project moving forward. Collaboration is also crucial, as all teams must adopt the same standards and procedures to build the system efficiently.
This project has also allowed me to develop my understanding of software design, including the ability to identify appropriate designs such as MVC or MVVM. I have also learned how to create class, sequence, and component diagrams based on these designs, which further strengthened my software design skills. Thus, this project has provided me with a glimpse into what working in the industry might be like and has taught me the importance of effective communication and collaboration in software development.

Loh Jing Yi
I have learnt a lot about Software Design such as the software design principles, patterns and architecture design. I have learnt that the higher the coupling, the higher the dependency. Therefore, it is important that software should have loose coupling otherwise high coupling makes modifying parts of the system difficult. I have also learnt that it is important to ensure that in component diagram, a component must provide an interface to another component.
Furthermore, I have also learnt that MVVM (Model View View-Model) is useful because it helps to separate the user interface from the business logic which makes it easier to maintain and test code. I have also learnt to use evaluation methods such as Architecture Tradeoff Analysis Method (ATAM) to evaluate software architectures’ quality attributes and mitigate risks on our software architecture and detailed design.

Gan Jia Xin
Upon completing D1, I realized the value of communication between teams from various modules and teams from the same module. When building the class component diagram that we submitted in on week 4, we will be able to determine what we need to give to other teams and what they require from us through communication. I'm especially delighted to see that we can interact with clients, as this helps me to recognize the importance of Agile ATAM. Aside from that, I also learned a lot over the course of the week about the various architectural patterns and styles used in our project and why we employ them. In our report, I was able to give justification to support the patterns that were employed.
The largest obstacle that my team has faced is that none of us has prior experience with ASP.Net core, C#, or React. This complicates our learning process and requires our coders to devote much more time to learning how to write code and comprehending the MVVM model and the many patterns used in the code.

Reviewed and Completed on Time: 10/2/2023


[web] rename  to

The tag name <flt-glass-pane> has become a misnomer as Flutter Web evolved. It's original role was to sit on top of the rendered content and intercept all pointer events (as if it's a "glass pane" covering a framed picture). As we changed our DOM structure to accommodate accessibility and platform views it has become the root element of the FlutterView being rendered.
This element is also a bit of a "public API", since it lives outside the shadow root and may be matched on by CSS selectors. A valid use-case to match on it is to style platform view content that's embedded in it.
A more appropriate name for this element would be <flutter-view>, which:

makes it clear that it's 1:1 to the FlutterView class.
is clear - it does not involve obscure metaphors ("glass pane") or abbreviations ("flt").

Unfortunately, it may break existing CSS selectors. We should consider if a better name is worth the trouble, and/or if there are more gradual ways to introduce it.

We should rename <flt-glass-pane> to <flutter-view>

This is a trivial change, however it has the potential of breaking the internet?
Follow up for: https://github.com/flutter/engine/pull/37738

This is fixed now.


Performance test infrastructure

[ ] Set up Google Compute Engine environment
[ ] Benchpress tests run on GCE
[ ] Travis CI calls out to GCE and gets results back

@jelbourn This week I started doing some research in this area. Since this is an area you're looking to dig into I thought I'd share what I've accomplished and hopefully you could provide some feedback.
Also, I'm looking to create a package that would allow other component libraries to easily consume and capture metrics.
My current process:

Create a module for the component
Compile an AOT/minified version of the component module factory
Open browser via protractor and bootstrap Angular
Once Angular is ready dynamically load component module factory

This is done to gather rough download size metrics

Gather metrics on size and performance

The metrics I'm currently capturing:

componentBootstrapTime: time it takes for ngModuleFactory and ngComponentFactory to create component
componentSize: gziped/minified size of the component and module factory
onInitTime: time OnInit runs (if available)
onAfterViewInit: time OnAfterViewInit runs (if available)
componentStableTime: time it takes for ngZone onStable to run after component has been created on View

@cgatian we actually already have something for this built; it uses some of Google's internal tooling. We use Angular's Benchpress to collect performance information.
The biggest challenge with running tests like this is having a normalized environment. Even if you run the tests on the same machine on the same browser, the results can be affected by any number of things going on with the machine (other processes running, memory usage, etc). In order to collect meaningful data over time, all of these factors need to be controlled.

@jelbourn sorry I should've mentioned this is using Angular Benchpress.
Normalized environments aside, I was looking for feedback in the types of metrics your team was looking to collect. I imagine you have put some thought into this and wondered how close or far off I was with my approach.  This is mostly due to the resources around the subject are extremely scarce.

Those are all useful metrics, though it's largely focused around start-up. Capturing metrics for interactions as well is useful.


[Feature request] fsr 1.0 implemenattion

HI, I was wondering if you would be interested in implementing FSR 1.0 into Sodium Extras. This would be beneficial because it would allow players with really bad PCs (like me) to play on a lower resolution (for performance) without the quality impacts of no upscaling.
Background
I have done lots of Reasearch on fsr improvements and I think it would really help players with ultra-low end pc's like me. Also it has been ported to opengl so it should be easy to include without a lot of extra work converting the glsl to opengl from vulkan.
Impact on players:
Imagine the frustration of a player with an outdated PC—struggling to run their favorite game smoothly. They face lag, stuttering, and pixelated visuals. FSR 1.0 changes that narrative. It evokes feelings of relief and excitement as players witness smoother gameplay, even on low-end systems. No more compromises between performance and visual quality.
Details
Let's delve into the technical details. FSR 1.0 employs advanced upscaling algorithms that dynamically enhance lower-resolution textures without sacrificing image quality. By intelligently interpolating pixels, it maintains sharpness while significantly boosting frame rates. The result? A win-win situation for both players and developers—better performance without compromising visual fidelity.
By incorporating FSR 1.0 into Sodium Extras, we empower players to enjoy their favorite games on older hardware, fostering inclusivity and expanding our player base. Let's make gaming accessible for everyone!

It also does it's magic before Hud is rendered like res control.

@FlawlessDeveloper

I think this isn't really doable as a solo project, and I also don't know how compatible this would be, as minecraft uses OpenGL and FSR is usually used with DirectX or Vulkan. (Yes I know there are ports to OpenGL but the last version of the one I found was 2 years ago)

thank you for your time


Scroll request has only succeeded on ### shards out of ###

Queries that previously worked have stopped working and return this error:
External search command 'ess' returned error code 1. Script output = "error_message=ScanError at "D:\Splunk\etc\apps\elasticsplunk-master\bin\elasticsearch\helpers_init_.py", line 394 : Scroll request has only succeeded on 3492 shards out of 3544. "
Any queries at any time ranges return this same error. The queries run OK directly from the Elasticsearch 6.3.1 API:
curl -k -X GET "http://es-host/winlogbeat-*/_search?q=event_data.param1:AP001175&pretty"
Ten records are returned, the response begins with:
{
"took" : 33521,
"timed_out" : false,
"num_reduce_phases" : 7,
"_shards" : {
"total" : 3544,
"successful" : 3492,
"skipped" : 0,
"failed" : 0
},

Issue has cleared on its own


Connected bindings not updated on same TaskQueue cycle

I'm submitting a bug report

Library Version:
1.0.1
OS:
Windows 10
Windows 8
Browser:
Chrome 52.0.2743.116
Opera 39.0.2256.48
Language:
all

Current behavior:
Two-way bindings on a custom element don't get updated before the change event handler is invoked. Bindables on the local custom element get updated before the change event, but any binding to the bindables do not get updated in the same cycle.
Current behavior shown here. Read the console messages: https://gist.run/?id=2f42ade7554b9249a5d7777f3961d1c3
Change the dropdown value. The console prints:
Dropdown changeEvent: 2
App filteredGroupChangeEvent:
Hopefully the gist makes more sense than my written issue :)
Expected/desired behavior:
Console prints:
Dropdown changeEvent: 2
App filteredGroupChangeEvent: 2

What is the expected behavior?
It looks like any custom element bindings are put on the TaskQueue as micro tasks. It is possible for the programmer to wrap his code in a micro task, but I'm not sure this is the desired behavior.
What is the motivation / use case for changing the behavior?
Avoid any confusing as to why the bindings don't update at the same time, and remove the need for the task queue as a developer.

Just for your info, I'm running OSX 10.10.2 Yosemite and I have tried your gist run on two different computers one with Chrome 51.0.2704.103 canary and another with Chrome 54.0.2824.0 canary.
Your gist runs and produces the desired output as follows:
Dropdown changeEvent: 2
App filteredGroupChangeEvent: 2
So there might be something else going here.  I also tried the code in the discussions and I received the desired results with or without the micro task.

Thank you @MiiCode2. Updated the issue with OS and browser versions.
@minro was the one posting the issue on gitter. I don't know what browser/os he's using, but he should be getting the same output as I.

I'm getting the same output as you are, both in Chrome latest version on windows and iE where my target is 11 (I can't run gists in iE but my own code (which is the basis of @CasiOo's example) produces the same result as stated for Chrome).

If the TaskQueue behavior is considered correct, I solved the issue by making the select value observable:
.html
<dropdown selection.two-way="filteredGroup" default="${'groupfilter' | t}" options.bind="groups"></dropdown>
.ts
@observable filteredGroup: string; private filteredGroupChanged() {...}
which means there are no other changes in the custom element apart from removing the change.delegate call.

Should now be fixed.

I am still facing this issue:
https://gist.run/?id=f1f10a46ea30ba9c4bcfef05755828a2


Randomize control channel for SubscriberTool

This allows the SubscriberTool to play a bit more nicely with other SubscriberTool instances on the same machine.  And also serves to bring the commit history into sync between real-logic/master and strangelydim/master.

Hold off on merging this for just a second... we're fixing one more bug.

OK, this is good to merge now.


pylance performance issue generated by vscode

 Environment data

Language Server version: 2024.6.1
OS and version: linux x64
Python version (and distribution if applicable, e.g. Anaconda):
python.analysis.indexing: true
python.analysis.typeCheckingMode: off

 Code Snippet

XXX

 Repro Steps

XXX

 Expected behavior
XXX
 Actual behavior
XXX
 Logs

XXX

thank you for reporting the issue. can you provide us some more detail?


Heapster race conditions with docker image heapster:canary

As in issue #780, I'm still seeing the race condition. Logs from my heapster pod that fail to create a DB in influxdb (and also fail to retry). I'm using the kubenernetes/heapster:canary image.
I0310 18:40:14.541729       1 heapster.go:61] /heapster --source=kubernetes:https://kubernetes.default --sink=influxdb:http://monitoring-influxdb:8086
I0310 18:40:14.541818       1 heapster.go:62] Heapster version 0.19.1
I0310 18:40:14.543349       1 kube_factory.go:172] Using Kubernetes client with master "https://kubernetes.default" and version "v1"
I0310 18:40:14.543363       1 kube_factory.go:173] Using kubelet port 10255
E0310 18:40:19.678442       1 manager.go:299] encountered following errors while setting up sinks - issues while creating an InfluxDB sink: failed to ping InfluxDB server at "monitoring-influxdb:8086" - Get http://monitoring-influxdb:8086/ping: dial tcp: lookup monitoring-influxdb: no such host, will retry on use
I0310 18:40:19.680930       1 heapster.go:72] Starting heapster on port 8082
E0310 18:42:00.005793       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/web-zelhp/c539e4e9-e6ef-11e5-8a2d-000c29fb6370/web - request failed - "404 Not Found", response: "no matching container\n"
E0310 18:42:00.010569       1 kube_pods.go:110] failed to get stats for container "web" in pod "default"/"web-zelhp"
E0310 18:42:05.011524       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/web-zelhp/c539e4e9-e6ef-11e5-8a2d-000c29fb6370/web - request failed - "404 Not Found", response: "no matching container\n"
E0310 18:42:05.011578       1 kube_pods.go:110] failed to get stats for container "web" in pod "default"/"web-zelhp"
E0310 19:19:35.006889       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/netperf-tester-client-59emk/0526e690-e6f5-11e5-8a2d-000c29fb6370/netperf-tester-client - request failed - "404 Not Found", response: "no matching container\n"
E0310 19:19:35.006983       1 kube_pods.go:110] failed to get stats for container "netperf-tester-client" in pod "default"/"netperf-tester-client-59emk"
E0310 19:19:35.007209       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/netperf-tester-host-irxrg/04d15616-e6f5-11e5-8a2d-000c29fb6370/netperf-tester-host - request failed - "404 Not Found", response: "no matching container\n"
E0310 19:19:35.007217       1 kube_pods.go:110] failed to get stats for container "netperf-tester-host" in pod "default"/"netperf-tester-host-irxrg"
E0310 19:19:40.024935       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/netperf-tester-host-irxrg/04d15616-e6f5-11e5-8a2d-000c29fb6370/netperf-tester-host - request failed - "404 Not Found", response: "no matching container\n"
E0310 19:19:40.024967       1 kube_pods.go:110] failed to get stats for container "netperf-tester-host" in pod "default"/"netperf-tester-host-irxrg"
E0310 19:19:40.025626       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/netperf-tester-client-59emk/0526e690-e6f5-11e5-8a2d-000c29fb6370/netperf-tester-client - request failed - "404 Not Found", response: "no matching container\n"
E0310 19:19:40.025637       1 kube_pods.go:110] failed to get stats for container "netperf-tester-client" in pod "default"/"netperf-tester-client-59emk"
E0310 19:19:45.006950       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/netperf-tester-client-59emk/0526e690-e6f5-11e5-8a2d-000c29fb6370/netperf-tester-client - request failed - "404 Not Found", response: "no matching container\n"
E0310 19:19:45.006967       1 kube_pods.go:110] failed to get stats for container "netperf-tester-client" in pod "default"/"netperf-tester-client-59emk"
E0310 19:19:45.010303       1 kubelet.go:102] failed to get stats from kubelet url: http://<IP_ADDRESS>:10255/stats/default/netperf-tester-host-irxrg/04d15616-e6f5-11e5-8a2d-000c29fb6370/netperf-tester-host - request failed - "404 Not Found", response: "no matching container\n"
E0310 19:19:45.010365       1 kube_pods.go:110] failed to get stats for container "netperf-tester-host" in pod "default"/"netperf-tester-host-irxrg"
If I restart the heapster pod, things seem to work fine:

kubectl --namespace=kube-system logs heapster-v10-6t5ju --follow
I0310 19:25:27.242994       1 heapster.go:61] /heapster --source=kubernetes:https://kubernetes.default --sink=influxdb:http://monitoring-influxdb:8086
I0310 19:25:27.243077       1 heapster.go:62] Heapster version 0.19.1
I0310 19:25:27.244369       1 kube_factory.go:172] Using Kubernetes client with master "https://kubernetes.default" and version "v1"
I0310 19:25:27.244383       1 kube_factory.go:173] Using kubelet port 10255
I0310 19:25:27.247568       1 driver.go:351] created influxdb sink with options: {root root monitoring-influxdb:8086 k8s false}
I0310 19:25:27.258551       1 driver.go:272] Created database "k8s" on influxDB server at "monitoring-influxdb:8086"
I0310 19:25:27.265837       1 heapster.go:72] Starting heapster on port 8082

Please try v0.20.0-alpha12.

Retrying works. Closing request


Backward scan when --tiebreak=end

In the following case:
echo foobar fb | fzf -q fb

fzf matches foob instead of fb since it scans forward and stops right after the first match is found. Although it would be very expensive to try to find the best match in any position in the input, it seems to make good sense just to scan backwards when --tiebreak=end is set.
We may even consider adding an option so that one can choose the direction of the scan: e.g. forward, backward, both. But this is optional.

echo -e "foobar fb\nfubar" | fzf -q fb

echo -e "foobar fb\nfubar" | fzf -q fb --tiebreak=end


short option does not parse "=" and recognizes it as part of the option string

If we have an option that can called with -x, using -x=test will give =test as x instead of test.
Using example from https://click.palletsprojects.com/en/8.1.x/options/#name-your-options
test.py:
import click

@click.command()
@click.option('-s', '--string-to-echo')
def echo(string_to_echo):
    click.echo(string_to_echo)

if __name__ == "__main__":
    echo()

try running python test.py -s=test_string, the output is =test_string. Using the long name python test.py --string-to-echo=test_string gives the right output of test_string.
Environment: MacOS

Python version: 3.11
Click version: 8.1.3

That's correct, that's the semantics of short option values. = is only a separator for long options.


Only one line in the output srt file!

`
from whisper_live.client import TranscriptionClient
client = TranscriptionClient(
"localhost",
9090,
lang="zh",
translate=False,
model="large-v3",
use_vad=False,
save_output_recording=False,  # Only used for microphone input, False by Default
output_recording_filename="./output_recording.wav",  # Only used for microphone input
)
client(audio='./test.mp4')
`
Here's the code I use.
In the srt file I only got one line, and the output in command line looked pretty mess...

But sometimes it worked pretty well...

When I use microphone, it always output one line, never success.

Same issue with me, not working with live transcription. Even for English transcription, it stops at "You You You" and nothing else appear. Help please.

Same issue with me.


Group Projects - Milestone 2

High priority (must-fix)

[x] Fix all the errors in the code
[x] Try different data cleaning methods (you are supposed to remove duplicates, not count)
[x] You are supposed to analyze and visualize the dataset before jumping to research questions
[ ] Explore the relationship between variables, most importantly explore the data
[x] Add description in all the graphs, especially define your motive and outcome.

Medium Priority (should-fix)

[x] Put all the data files in the data directory (either in raw or processed sub-directory)

Low priority (fix if there is time)

[ ] Explore which attribute or a set of attributes increases the educational qualification

Still, there are errors in some of the codes
def load_and_proccess function only removes the duplicates, other techniques were not used


The $changeStream stage is only supported on replica sets

to fix this '(Location40573) The $changeStream stage is only supported on replica sets', will require MongoDB replica set deployed or shredded cluster deployed.

form v0.1.0 there is new authorise middleware function for streams or listen requests. it can be used as follows,
// this middleware used for authorization of listen requests (mongorpc change request)
mongoRPCServer.Authorise = func(ctx context.Context, req interface{}) error {
	logrus.Infof("authorise request: %+v", req)
	return nil
}


Sort proxy in development branch

actually, thanks @KayHayen for pointing out of this

Actually, can I convince you to use the lazy package. It's easy for Nuitka to support that generically to produce optimal imports and attribute lookups due to a .pyi file. It also can be used to create code, as huggingface_hub does, that would be wonderful.

Hi @kayhayen,
We can certainly make some changes to our module proxy if it helps with Nuitka. Unfortunately using the lazy package isn't an option as pyglet has no install dependencies. Can you let me know what is causing the difficulty on Nuitka's side?

Well, the lazy loaders are not visible in static analysis. Nuitka would like to know that using pyglet.input attribute should have as a side effect, its import, and then use. So what ends up happening is that every package that does def __getattr__ on the module level to avoid people having to import pyglet.input is making ImportError with any attempt to not include the kitchen sink.
I think huggingface_hub vendored lazy and generated `.py code, just check its package file, they then do
__getattr__, __dir__, __all__ = _attach(__name__, submodules=[], submod_attrs=_SUBMOD_ATTRS) where the _attach is local code. I think lazy is not imported, only used to generate it. In your case, submodules would be a list.
Nuitka detect this kind of usage and generate what I internally call hard imports out of it. It is even possible to cut out the lazy loading for it, therefore removing its overhead entirely, although that may not matter to you. You also get a mechanism maintained by others, never a bad thing, since it will behave better potentially. I would like to see some standardization happening there, rather than every package doing their own thing. Like e.g. pydantic doing that manually.
With the other mode of operation, .pyi files become part of the code. There is something to dislike about it, but IDEs would love it so much, but I am sure lazy can also potentially generate .pyi files, but maybe not.
In your case, we cannot import pyglet and know which ones exist, except for checking its __dict__ for instances and checking their internals. Every programmer group is going to do it more or less slightly better, worse, and to me mainly different.

Thanks for the information @kayhayen. I see what you mean regarding lazy.
To clarify, are you saying the if TYPE_CHECKING block is adequate for Nuitka's needs? pyglet does already include that, but I suppose this is not enough.
I had a look at the _attach module, and it looks like a fairly straight forward approach using the "newer" module level __getattr__ and __dir__. This would be fine for pyglet to switch to. As long as lazy loading works, the exact implementation is not important. I'll try this in another branch.

Doing a lazy import approach using __getattr__ and importlib is easy enough, but this turned up another issue.
pyglet has lots of circular import issues when trying to run without any sort of lazy loading. It seems like we're relying on the more flexible nature of the ModuleProxy class, which is doing a little bit more than just lazy import.

It's not unusual for lazy imports to cause cyclic dependencies, they are also used as a solution for these, in some packages for a long time, I recall seeing some of them with comments, and actually once, I removed one, to find it breaks the package, may even have been mercurial a decade ago.
Anyway, Nuitka does not use the TYPE_CHECKING branch, and removes it. I was just contemplating what downsides the suggested lazy usage had, but turns out it's a non-topic, since it does it.
For Nuitka, it's most relevant to have a way to import a module of yours and extract a config out of it that describes what you do to attribute lookup in terms of side-effects for importing. The lazy will allow for generic code to do it. Self made approaches may not expose the data (like yours), may be buggy, may give worse tracebacks, may ... I hope have lots of reasons to convince people to use lazy to solve this.
In my mind, module attribute lookup should be changed in the Python core language to have a submodule import as a side effect. From the looks of it, everybody hates to import x.b to be able to use a.b and hates being forced to pre-load modules that are often unlikely to be used and just made program startup slow. Check out how os.path works occasionally for the oldest art in Python of how to do submodules in Python that need no import. That said, some people do import os.path because they do not expect that kind of inconsistency.
Depending on if I can convince you to change it, I would love to mention your project as an example and success story in an upcoming posting of mine. I think more projects need to be aware to not waste time of writing lazy loaders by hand.

Imports in the core language in general is another topic for discussion :smile:
Unfortunately the lazy module doesn't completely solve our circular import issues. I've tried the full version of the code without success. I've also boiled it down to it's most basic, and it seems to be doing exactly what the lazy import example from the importlib module page shows. Essentially this:
    __getattr__, __dir__, __all__ = _attach(__name__, submodules=submodules, submod_attrs=None)

can be distilled down to this.
    __all__ = ['app', 'canvas', 'clock', 'customtypes', 'event', 'font', 'gl', 'graphics', 'gui',
               'image', 'input', 'lib', 'math', 'media', 'model', 'resource', 'sprite', 'shapes', 'text', 'window']

    def __getattr__(name):
        if name in __all__:
            return importlib.import_module(f"pyglet.{name}")

    def __dir__():
        return __all__

This should be perfectly adequate if pyglet didn't have circular import issues. Ideally, we want to see if we can solve those. (There is one main import that seems to be a cause of trouble. I'm going to look into that.)
By the way, in fairness to pyglet's ModuleProxy class, it was written over 15 years ago. It's not exactly a case of re-inventing the wheel, since it even predates the importlib module itself. :smile:


Remove unused .yaml file

This patch removes mixer/adapter/kubernetesenv/config/.yaml which is
probably created by mistake. The actual file should be
mixer/adapter/kubernetesenv/config/kubernetesenv.yaml and already exist.
[X ] Policies and Telemetry

Hi @nak3. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Could anyone please add /ok-to-test ?

/ok-to-test
On Thu, Dec 26, 2019 at 4:04 PM Kenjiro Nakayama<EMAIL_ADDRESS>wrote:

Could anyone please add /ok-to-test ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/19795?email_source=notifications&email_token=AAEYGXLVZVQNSVSRWBJ6YSLQ2VA75A5CNFSM4J7K2JN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHWJL4I#issuecomment-569153009,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYGXOQZRI6RAPCQ5HZLYTQ2VA75ANCNFSM4J7K2JNQ
.