Add modus-textarea-input component.

Description
Add modus-textarea-input component.
References https://github.com/trimble-oss/modus-web-components/issues/2327
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

How Has This Been Tested?
Added the following HTML to index.html:
<modus-textarea-input label="standard input"></modus-textarea-input>
<modus-textarea-input label="standard input with 3 rows" rows="3"></modus-textarea-input>

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

we need to add this new component to Storybook - it should be available below text-input with out deploy preview: https://deploy-preview-2336--moduswebcomponents.netlify.app/

@coliff I have added the page to storybook.

I don't see it on the deploy preview yet.
https://deploy-preview-2336--moduswebcomponents.netlify.app/

Updated and fixed.

I have squashed this into one commit as requested in the contributing guidelines.

@austinoneil @cjwinsor - I think it'd be good to get the conflicts resolved (sorry for letting this PR be open for so long!) and then reviewed and merged in time for the next release later this week. I know of a Trimble team interested in using this component.

@austinoneil @cjwinsor - I think it'd be good to get the conflicts resolved (sorry for letting this PR be open for so long!) and then reviewed and merged in time for the next release later this week. I know of a Trimble team interested in using this component.

I've been tied up, so I haven't properly reviewed. Though I did notice weird behavior with using the inputs resize handle. We could probably restrict that to only vertical, but it still gets a little crazy as you resize as the input resizing doesn't also resize the wrapping styling components.

oh right - yep, I see that...

heya. I wanted to get this merged but there are many unneeded files in the PR which I don't think are needed. Can you take a look pls?

I think a lot of the extra files are from attempting to resolve merge conflicts locally (the conflict arose with the gitignore pr).  I think we can remove any changes under react and angular workspaces.

I have removed most of the erroneously added files.  Some were gitignored in #2340 so I think that might be preventing me from running a git checkout main <path> and updating them.  I think owners for the repo might be able to remove them on the web UI, but I am not sure.


Implement device type 0x000F generic switch

Can you please implement device type 0x000F generic switch? Looks like you already have the Switch Cluster implemented. I would like to test and see if Apple has implemented support for this in IOS.   BTW, there are a lot more device types missing.
This is a scene controller switch. It is button around on the wall somewhere that tells the controller to trigger an automation.
<deviceType>
    <name>MA-genericswitch</name>
    <domain>CHIP</domain>
    <typeName>Matter Generic Switch</typeName>
    <profileId editable="false">0x0103</profileId>
    <deviceId editable="false">0x000f</deviceId>
    <clusters lockOthers="true">
        <include cluster="Switch" client="false" server="true" clientLocked="true" serverLocked="true"></include>
        <include cluster="Fixed Label" client="false" server="false" clientLocked="true" serverLocked="false"></include>
        <include cluster="User Label" client="false" server="false" clientLocked="true" serverLocked="false"></include>
    </clusters>
</deviceType>

Can you please implement device type 0x000F generic switch?

Yes, we will implement that.

BTW, there are a lot more device types missing.

Currently, the SDK supports a few device types. More device types will be added incrementally.

If you look in the Matter spec, Generic Switch has very specific events it needs to emit for single click, double click, multi-click etc. To make things easy for Matter implementers, the Espresif button library should emit those exact same events so that there is a 1:1 mapping onto the Matter API. Currently the events are similar, but not exactly the same.
The Espressif button library should also implement rocker switch (this is a switch type in the Matter generic switch spec). A rocker switch does not make contact when idle, then if you push on the top or the bottom it makes contact. Rocker switches have three wires - middle common, top button, bottom button.  Rocker switches are commonly used for window covering controls.
Maybe you can pass the Generic Switch spec over to the IOT Button group and suggest they copy it? Or make an esp-matter specific button library that exactly matches the spec?

Note that generic switch support has been added to the switch examples in the matter repository.

This is not critical to me now, I have a work around. Still need to be fixed so that you implement the spec.
    dimmer_switch::config_t switch_config;
    endpoint_t *endpoint2 = dimmer_switch::create(node, &switch_config, ENDPOINT_FLAG_NONE, switch_handle);

    cluster::switch_cluster::create(endpoint2, NULL, CLUSTER_FLAG_CLIENT);
    cluster::fixed_label::create(endpoint2, NULL, CLUSTER_FLAG_SERVER);
    cluster::user_label::create(endpoint2, NULL, CLUSTER_FLAG_SERVER);
    endpoint::add_device_type_id(endpoint2, 0x000F);  // Generic switch endpoint

@jonsmirl we are already working on a generic switch device type, We will add it to esp-matter soon.

I see the new generic switch code... doesn't also need...
cluster::binding::create(endpoint3, &(switch_config.binding), CLUSTER_FLAG_SERVER);
cluster::fixed_label::create(endpoint3, NULL, CLUSTER_FLAG_SERVER);
cluster::user_label::create(endpoint3, NULL, CLUSTER_FLAG_SERVER);

I see the new generic switch code... doesn't also need... cluster::binding::create(endpoint3, &(switch_config.binding), CLUSTER_FLAG_SERVER); cluster::fixed_label::create(endpoint3, NULL, CLUSTER_FLAG_SERVER); cluster::user_label::create(endpoint3, NULL, CLUSTER_FLAG_SERVER);

@jonsmirl you are right! these clusters are not mandatory for generic switch


Option to show context (N lines before & after)

It'd be nice to have an option to get the context for a command.
For instance, I ran some commands to get some processes to kill. I only remember I ran the kill command but only need the command before kill.
I know I could do history | grep -B 3 -A 3 "kill", and I think that'd a nice enhancement.

Hi @Zackhardtoname .
:question: Do you mean to use history instead of $HISTFILE directly (with numbering) and execute the command by number?

Oh sorry for not being clear. I actually have no idea how hstr works, I just mentioned history | grep -B 3 -A 3 "kill" as an example. :)

Hi @Zackhardtoname .
Yes. You really don't understand how hstr works. Right. :smile:


Clicking on author name should open their public profile in a new tab

Hi @Electromorphous! Would I be able to work on this issue as a new contributor to this repo?

Still blocked by public profiles


Taps Server Error: PGError: ERROR: time zone displacement out of range: "2011-11-15 12:00:00.000000+5894114400"

I run the following command to push the contents of my local database to Heroku:
heroku db:push --app my-app
which uses taps and from my home computer it works flawlessly but from my work computer I get this error:
Taps Server Error: PGError: ERROR: time zone displacement out of range: "2011-11-15 12:00:00.000000+5894114400"
I'm not sure where that date is coming from, I can't find it in the data anywhere. Any ideas what's going on and/or how to fix it?
Thanks.

This seems to happen with Ruby 1.9.3-p0 but not with 1.9.2.

Posted on sequel.
https://github.com/jeremyevans/sequel/issues/405

Same problem here. Ruby v1.9.3

This is a problem due to remote ruby version mismatching. Just use 1.9.2 until heroku updates to 1.9.3.


Cannot change the mouse cursor for unfocused windows

See https://github.com/kovidgoyal/glfw/commit/558aa2f9d321a46cab20f1c48bd01b8d136b55bf for details and a fix. And see https://github.com/kovidgoyal/kitty/issues/449 for the problem caused by this issue.

Link this topic to #1239 which is related.


🌱 use operator-registry's FBC types directly; add Resolver interface

Signed-off-by: Joe Lanford<EMAIL_ADDRESS>
Description
This is a code refactoring to:

align operator-controller's resolver to use the FBC types directly, which seems like it would be able to evolve better alongside FBC evolution.
introduce a resolver abstraction to the reconciler, which simplifies reconciler AND resolver testability

Reviewer Checklist

[ ] API Go Documentation
[ ] Tests: Unit Tests (and E2E Tests, if appropriate)
[ ] Comprehensive Commit Messages
[ ] Links to related GitHub Issue(s)

I'm hoping #1050 improves the situation on the upgrade-e2e. I'll rebase after that merges.

Rebased. Let's see if upgrade-e2e passes now.

also it may impact #1030 @bentito

Most recent push:

Rebases to main
Changes bundleutil.MetadataFor to fix GoDoc and avoid accepting a pointer to a blang semver version.


docker-openvpn/tests/openvpn_conf_options.test.sh has typo

For file: docker-openvpn/tests/openvpn_conf_options.test.sh currently the OVPN_DATA is set in this line to:

OVPN_DATA=opvn-data

My guess is that this is a typo and should be: ovpn-data
However to make it in sync with the other tests and not conflicting with the default ovpn-data of the readme my suggestion would be to change it to:

OVPN_DATA=options-data

Good catch.  Good to see someone reading the tests. :sunglasses:

Thanks!  I ported your project today to arm in order to run it on my pi and cubox, the test suite proved to be a good way of testing the end result!


Part 3 Luma3ds

im on Part 3 github guide now. When i do 16 (Press Start to boot RedNAND) there's just some colors on screen, and after this console restart and open Homebrew Launcher, not the default console menu.
tried to rerun plaisysupdater and deleting config file of luma3ds, doesnt helped.
what i should do?

Make sure your on sysnand 9.0-9.2 you may have updated your sysnand instead of your RedNand

On Jun 26, 2016, at 1:56 PM, klizzi<EMAIL_ADDRESS>wrote:
im on Part 3 github guide now. When i do 16 (Press Start to boot RedNAND) there's just some colors on screen, and after this console restart and open Homebrew Launcher, not the default console menu.
tried to rerun plaisysupdater and deleting config file of luma3ds, doesnt helped.
what i should do?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

9.2 sysnand right now, checked it.

This is something to do with luma, not my instructions. Make sure you have done everything right then ask @AuroraWright


JEI/REI under mouse API support

does this for jei mean implementing IGuiContainerHandler for our screens with ingredient slots?


If rejection reason is instance of Error it's stack trace get lost

When I got some syntax errors or any other - middleware overrides it with it's own error and it's stack trace get lost

Resolved and released as<EMAIL_ADDRESS>

This actually broke my whole app. Errors, not being thrown as an instance of Error now get reject with the false reason. This should be handled by the user and not by this lib. I'm voting for a rollback.

Yep, are rolling back in the next release @mrtnbroder. There is a PR open at #101.


Gate.io?

GATEIO missing from list but available on tradingview? Any help here?

Only assets with technical analysis available are listed in the database. Technical analysis is not available on every exchange. Try comparing this page with this page, there is no technicals tab. There will be no gate.io in the list because it does not exist in https://scanner.tradingview.com/crypto/scan.
If you're using tradingview-ta to retrieve technical analysis from TradingView, I suggest you use a different exchange as the indicators are not much of a difference.

I hope this answers your question. If you have further questions please reply to my comment. Have a good one!


received 0 items of ancdata

When I executed the train.py, I encountered the following error, how can I solve it?
Traceback (most recent call last):
File "train.py", line 192, in
trainer.train(train_dataset=train_ds, val_dataset=val_ds)
File "/home/hdc/zjh/Diff-UNet-main/LiTS/light_training/trainer.py", line 262, in train
self.train_epoch(
File "/home/hdc/zjh/Diff-UNet-main/LiTS/light_training/trainer.py", line 361, in train_epoch
for idx, batch in enumerate(loader):
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 517, in next
data = self._next_data()
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1182, in _next_data
idx, data = self._get_data()
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1148, in _get_data
success, data = self._try_get_data()
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 986, in _try_get_data
data = self._data_queue.get(timeout=timeout)
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/multiprocessing/queues.py", line 116, in get
return _ForkingPickler.loads(res)
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/multiprocessing/reductions.py", line 282, in rebuild_storage_fd
fd = df.detach()
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/multiprocessing/resource_sharer.py", line 58, in detach
return reduction.recv_handle(conn)
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/multiprocessing/reduction.py", line 189, in recv_handle
return recvfds(s, 1)[0]
File "/home/hdc/anaconda3/envs/pytorch/lib/python3.8/multiprocessing/reduction.py", line 164, in recvfds
raise RuntimeError('received %d items of ancdata' %

First, you can switch the env from "DDP" to "pytorch", using single GPU or CPU to run the code. Then you also need to check the training data.


Update RELEASE.md - link to dtensor fft blog post.

Try with updating the RELEASE.md file by adding a hyperlink to the dtensor fft blog post. Make sure the link is clickable and directs to the correct URL of the blog post.


Fixing region fail over issue for direct tcp calls

Currently for tcp network exception we are doing region failover, which is causing problem for some users where due to some intermittent network issue on BE nodes sdk is sending traffic for next 5 min to other available region.
This PR will limit the region failover only in case of http network failure.

Discussed the above comments with @simplynaveen20 offline. Good to go from my side.

looks good to me thanks Naveen.
Once scenario we haven't covered is when address resolution request to GW fails.
This will cause a region failover, but instead we should be more lenient toward GW address all and not fail over the region.

Yes as discussed , its not only address resolution, we need to think and change region fail over for all GW calls.


Allow users to reset their password

https://elifesciences.slack.com/archives/C011EQLKP51/p1703756930917889

We followed this link to get more information:
https://support.google.com/accounts/answer/6010255?sjid=17351330427669231881-EU#zippy=%2Cif-less-secure-app-access-is-on-for-your-account%2Cuse-an-app-password%2Cuse-more-secure-apps
The 'Less secure app access' had to be turned on to be able to send password reset emails.
It had to be turned on for the user<EMAIL_ADDRESS>which is configured to be used with auth0.
Unclear whether this might be automatically turned off by Google in the future.


chore: add missing support of NATS as messaging protocol

Purpose

Adds missing support for NATS as messaging protocol.
Relates to #1584.
Remarks

PR introduces (a) breaking change(s): no
PR introduces (a) deprecation(s): no

Is it sufficient to simply add NATS?
Or are there any other aspects we should account for?
Is there still something missing?

@bossenti looks good to me!
I don't think anything else is needed.


/cmd_vel no subscribers

Robot Model
Turtlebot4 Lite
ROS distro
Humble
Networking Configuration
Discovery Server
OS
Ubuntu 22.04
Built from source or installed?
Installed
Package version
ubuntu@ubuntu:~$ dpkg -s ros-$ROS_DISTRO-turtlebot4-PACKAGE_WITH_ISSUE
dpkg-query: package 'ros-humble-turtlebot4-package_with_issue' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.

Type of issue
Other
Expected behaviour
When I publish to /cmd_vel, or use teleop, I expect the bot to move.
Actual behaviour
My turtlebot does not respond to Teleop or /cmd_vel.  When I view info on the /cmd_vel topic I see that it has a publisher but no subscriber -- I expect it to have a subscriber and no publisher as I'm not publishing anything.  On the Turtlebot I get:
~$ ros2 topic info /cmd_vel
Type: geometry_msgs/msg/Twist
Publisher count: 1
Subscription count: 0

From my PC, I get 2 publishers:
~$ ros2 topic info /cmd_vel
Type: geometry_msgs/msg/Twist
Publisher count: 2
Subscription count: 0

I can see contents of other topics, like /tf fine.
Error messages
No response
To Reproduce
I installed the latest firmware on the Create and did a factory reset.
I reinstalled the latest RPi image like here: https://turtlebot.github.io/turtlebot4-user-manual/setup/basic.html#install-latest-raspberry-pi-image
I followed all the instructions on setting up the Discovery Server here: https://turtlebot.github.io/turtlebot4-user-manual/setup/discovery_server.html
Other notes
No response

@smatarCPR Thank you for the namespace suggestion.  When I set the namespace, then the new cmd_vel with namespace had a subscriber and I could control the Turtlebot!


Support for multiple statements?

Apologies if this is already supported, but would it be possible to get the ability to run multiple statements in one request? Something like
await conn.execute("INSERT INTO foo(x) VALUES(12); SELECT LAST_INSERT_ID() as id;")

Obviously you can achieve that with separate queries, but that would require blocking until the insert is done, and then blocking while you grab the inserted id.

The issue currently is needing support for this on the server. I plan on adding some multi statement API but haven't gotten to it yet. It'd be more like a pipeline where the server would just execute them sequentially to avoid round trips.

Oof - look forward to seeing that! Thanks!

Correct, I'm not sure why this is closed either, I'm guessing in error.
I assume once we get the server support, it'll be easy to add in here.

Gotcha - just glad I'm not crazy. I don't have access to re-open, so feel free to, unless you have this work tracked elsewhere.
Also just curious how high of a prio this is these days. Seems like it's be a huge perf win, letting you do batch operations (ie, insert ids into a temp table, then run two queries against it) without server roundtrips.

Yeah I guess that can be tricky. If I send a batch of 5 queries, the first 4 succeed, the 5th throws an error ....

fwiw I've had an internal issue open for the server side implementation for this feature. So it's definitely on my mind.

In case anyone else has to manually migrate data into Planetscale or just has any other use case where they want to insert multiple records at the same time, here's a non-edge solution using mysql2:
utils/database.ts
import * as mysql from "mysql2/promise";

export const createDirectConnection = async (): Promise<
    mysql.Connection & { close: () => Promise<void> }
> => {
    const connection = await mysql.createConnection(process.env.DATABASE_URL);

    return Object.assign(connection, {
        close: connection.end,
    });
};

index.ts
import { createDirectConnection } from "./utils/database";

const inserts = [
    [
        1,
        "your",
        "values",
        "here",
    ],
    [
        2,
        "your",
        "values",
        "here",
    ],
];

await database.query(
    "INSERT INTO table (`id`, `column1`, `column2`, `column3`) VALUES ?",
    [inserts]
);

I've tried the above solution with batches of 1000 records each, working flawlessly. Though, inserts of this size will take exponentially longer — keep that in mind.
Also, inside the database.query function, inserts is wrapped by another pair of []. This is very important to insert multiple records simultaneously in mysql2! (Meaning, the second parameter is actually [ [ [ 1, ... ], [2, ... ] ] ])
I'm debating on hosting my own proxy on Cloud Run, which handles batch inserts exclusively, as this is a crucial feature for any database.
In my project, I have to insert data into multiple tables simultaneously. This goes up to 25 records, taking up to 1500ms per transaction, which is everything but acceptable for an API.

Reopening because this isn't implemented and I still would like to see this through.
The API to support this still needs to be shipped first before implementation can be done in here, but the client implementation should be rather simple.

I would like to see this as well.

Same here, I'd like to be able to batch inserts and updates.


refactor solid-experience by solid-start

Hi, solid-experience is a great product, and solid community is rapidly growing, and brings more and more changes.
It seems that solid-start is a good start point and is in beta status. Any thoughts about using solid-start to refactor solid-experience?

Hi @hhhxxjj !!
Thank you for your interesting in Solid Experience.
For now, its complicated to add more changes. But we intend to accomplishment that objective.
Regard to solid start, I never could the posibility to test it.
Looking a little bit the documentation, I can see its a great package to implement here.
It would be nice to be able to implement it soon.
Thanks for the information.


Blob types need to be defined

The current implementation includes 3 blob types: antibody, gold particle and protein.

Antibody and protein should be removed as these can be represented in other ways.
The list should include 'gold particle' and 'bead' and allow the user to add their own annotation.

fixed in 2017-10-10 update.  Custom types can be defined as below:
org.helm.webeditor.blobtypes = ["Bead", "Gold Particle", "Other"];
I recommend to have Antibody and Protein there.  For an ADC, if the Antibody is unknown, users can use this way to express it.

If there is an unknown peptide, you should represent that as a * monomer of type peptide. The blob is for more generally unknown entities. We should add that recommendation to the user guide.

Discussed the blob types with the HELM team and confirmed that Gold particle and Bead are sufficient for now. Peptide and antibody should not be used.


feat: adds signup function to the cli for both students and professors

This pull request introduces a new feature that enabes users to create new user profiles directly from the command line interface (CLI). The users can be either students or professors.
Changes made:

Added register method in the FirebaseDB class in database.py
Created a file signup.py to register users
Added the signup function in cm_cli.py
Created interactive prompts for gathering user information
Users are stored in the real time database

To use the feature run, codemark signup

Solves #1

Everything looks good to me! I will do some testing on my side, before I merge in!


Documentation on camera calibration file

I was able to build and run the node on Raspberry Pi 3B+ (running Ubuntu 22.04). I can stream to the Mac but there is some warning about missing camera calibration file.
[INFO] [1665126984.521708471] [camera]: using default calibration URL
[INFO] [1665126984.522385146] [camera]: camera calibration URL: file:///home/USERNAME/.ros/camera_info/ov5647__base_soc_i2c0mux_i2c_1_ov5647_36_1920x1080.yaml
[ERROR] [1665126984.524095166] [camera_calibration_parsers]: Unable to open camera calibration file [/home/USERNAME/.ros/camera_info/ov5647__base_soc_i2c0mux_i2c_1_ov5647_36_1920x1080.yaml]
[WARN] [1665126984.524412357] [camera]: Camera calibration file /home/USERNAME/.ros/camera_info/ov5647__base_soc_i2c0mux_i2c_1_ov5647_36_1920x1080.yaml not found

Is there a place to learn more about this to finetune the experience? Right now, the framerate is low at 1920x1080 (I am using raw topic camera/image_raw to test things out) so I want to at least reduce the resolution.

You are touching two issues here:

camera calibration
settings

The warning "Camera calibration file [...] not found" comes from the camera info manager. It manages the camera intrinsics. Those can be provided directly by the camera hardware or stored on disk. In this case, they are stored in a yaml file, which does not exist because the camera has not been calibrated. I haven't tested this myself, but https://navigation.ros.org/tutorials/docs/camera_calibration.html seems to be a good start.
If you start the node without configuration, it will use default values. To see all available parameters, run ros2 param list. You can set parameters on the command line at the start or dynamically during the runtime. See https://docs.ros.org/en/foxy/Tutorials/Beginner-CLI-Tools/Understanding-ROS2-Parameters/Understanding-ROS2-Parameters.html for details. To change the resolution at the start, append --ros-args -p width:=320 -p height:=180 to the command line.

Thanks for the help. Adding --ros-args makes the video stream smooth enough for me.
I will try out the camera calibration once I get access to a printer to print out the pattern.

I will try out the camera calibration once I get access to a printer to print out the pattern.

You can also use a screen for this :-) As long as the surface is flat and you can measure the lengths, you can use any surface for this.

You can also use a screen for this :-) As long as the surface is flat and you can measure the lengths, you can use any surface for this.

That's a great idea.


ticker.StrMethodFormatter("{x:0.0f}") appears to obscure rather than clean year values

On, e.g., ch3-ex2 and ch4-ex1, a string formatter is used to 'format' years on the x-axis which would otherwise appear as decimals (2015.0 -> 2015, 2017.5 -> 2018). This, however, appears to distort the actual x-axis labels, showing '2018' when at the spot which ought to be labeled '2017.5'.
You can see this from the following 2 code snippets using chapter3-example2, cell 8 (note the difference in the 2017.5 and 2018 labels which point to the same location):
fig, ax = plt.subplots()
ax.plot(avg_by_year.year, avg_by_year.comb08)
ax.xaxis.set_major_formatter(ticker.StrMethodFormatter('{x:0.0f}'))

fig, ax = plt.subplots()
ax.plot(avg_by_year.year, avg_by_year.comb08)
ax.xaxis.set_major_formatter(ticker.StrMethodFormatter('{x:0.1f}'))

I think the correct code to avoid the '20XX.5' in years might be something like ax.set_xticks(np.arange(2000, 2020, 2))?

Ah. Great catch! Thanks for pointing this out. I definitely didn't catch this.
You're correct the np.arange() code your using is a good alternative. I'm going to also look through the Matplotlib docs and see if something here might be a good alternative that is more "date-aware"
https://matplotlib.org/stable/api/dates_api.html
I'm going to keep this open until I figure out the best approach and how to update the course.
Thanks again!


!How can dotspatial zoom the map?

Can dotspatial scale the map to fit the paper size? For example, scaling from original size to A4?

Save your graphic to the proper dimensions.


Removing code smells.

Short description outlining key changes/additions
Removing code smells from main branch
JIRA Ticket Number
Type of change

[ ] Bug fix
[ ] New feature
[ ] Breaking change
[ ] Infrastructure change

Pull request checklist

[ ] I have added unit tests for new code that I have added
[ ] I have added/updated functional tests where appropriate
[ ] The code follows our coding standards

An exhaustive list of peer review checks can be read here

CI: No security warnings found

CI: No security warnings found


RFC: add `escalation' level to Rewrite

This is something I've been thinking about while working on https://github.com/nrc/rustfmt/issues/17. A common problem there is that there are generally many ways to split a path over multiple lines.
For example, we format write
let some_random_var = long::path::With::<'alotof, Parameters, And>::other::stuff(arg1, arg2, arg3, arg4);

as
let some_random_var = long::path::With::<'alotof, Parameters, And>::other::stuff(arg1,
                                                                                arg2,
                                                                                arg3,
                                                                                arg4);

but also as
let some_random_var = long::path::With::<'alotof,
                                         Parameters,
                                         And>::other::stuff(arg1, arg2, arg3, arg4);

or
let some_random_var =
    long::path::With::<'alotof, Parameters, And>::other::stuff(arg1, arg2, arg3, arg4);

Properly formatting those expressions is one of the core problems of the project. Unfortunately, we are ill-equipped to deal with this. Currently, the deepest expression is the first forced to break the line and only when that is found impossible other options are considered. In the example above, this would always force us in the first case, which may not always be the optimal solution.
To remedy this, I propose to add an - my English lacks a more suitable word - escalation argument to Rewrite's method. The space of escalation parameters could be any well-ordered set. We would assign such an escalation value to every line-breaking operation and only perform those below the current escalation level.
Instead of returning None on rewrite failure, we should return the minimum observed escalation above the current escalation level to determine what the next escalation level should be.
A pseudo program:
trait Rewrite {
    const escalation; // do trait constants work like this?

    fn rewrite(&self,
               context: &RewriteContext,
               width: usize,
               offset: usize,
               escalation: Escalation) -> Result<String, Escalation>
    {
        match self.subexpr.rewrite(.., escalation) {
            good@Ok(..) => {
                good
            }
            Err(next_esc) if next_esc <= Self::escalation => {
                self.rewrite(.., next_esc)
            }
            Err(..) if escalation >= Self::escalation => {
                line_breaking_operation();
                try!(self.rewrite(.., Escalation::global_min());
                Ok(format!(...))
            }
            Err(next_esc) => {
                Err(::std::cmp::min(next_esc, Self::escalation))
            }
        }
    }
}

This should give us a lot more control over expressions. If we choose our escalation set wisely, we even get to parameterise the behaviour easily (by changing the order).
What do you folks think? Would this adequately solve our problem? Is it too complex? What are the alternatives?

Could you give a concrete example of the escalation levels, like how it would work for the assingment example you gave? I can't quite understand the proposal without an example.
It is definitely a problem we need to solve. I had hoped that to some extent we could do without anything so sophisticated - that any given rewrite would do its best to fit the budget, and if it can't then the parent has to come up with more budget. Your example is a good example of where this would give really bad formatting - the path elements can format within their budget, but breaking the assignment gives better looking formatting. I'm not sure how to quantify 'better' here, nor how much we should search for better formattings. Does your escalation idea help here?
nb, associated consts basically don't work at all yet.

The escalation levels would basically be an ordering of where the line break generally looks best. For example, we could say:
binary operator break < assignment break < list break (horizontal listing -> vertical) < parenthesis break < path break

I think this approach would force that we try options from left to right, even though they may be higher up in the AST.

I wonder if there are circumstances where which kind of break depends on context? E.g., we might prefer list breaking when each item is long, but prefer breaking at an assignment when they're short, e.g.,
let this_long_variable_name =
    foo(x, y, z, a, b, c);

// vs

let x = foo_bar_baz_qux(some_long_name,
                        foo.bar.baz.some_method(),
                        another_long_name);

Can escalation levels cope with this?
I'm not sure about the heuristic that gives these formattings - something like optimising for the number of non-whitespace chars per line. Perhaps if we can find an heuristic we can actually just search for an optimal formatting. As long as the search space is not too big and we don't have to do it very often, that might work. A lot of 'if's there.

Hmmm, nope, I don't think escalation levels can deal with such a situation. That's an important case.
I like the idea of having a search space. Maybe there is a way to construct a tree based on potential line breaks. We could then run arbitrary heuristics on that. For expression that aren't excessively deep we could maybe even do an exhaustive search!
Anyway, it's clear that escalation isn't quite generic enough. Closing this for now. Plenty to think about!


statx redefinition error

glibc has recently added statx which results in following redefinition error:
cc -D__EXTENSIONS__ -D_ATFILE_SOURCE -D_BSD_SOURCE -D_DARWIN_C_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DBFS_VERSION=\"1.2.2-10-g9caf477\" -D_FORTIFY_SOURCE=2 -std=c99 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MD -MP -MF typo.d -c typo.c -o typo.o
In file included from stat.c:27:
/usr/include/linux/stat.h:56:8: error: redefinition of 'struct statx_timestamp'
 struct statx_timestamp {
        ^~~~~~~~~~~~~~~
In file included from /usr/include/sys/stat.h:446,
                 from stat.c:23:
/usr/include/bits/statx.h:25:8: note: originally defined here
 struct statx_timestamp
        ^~~~~~~~~~~~~~~
In file included from stat.c:27:
/usr/include/linux/stat.h:99:8: error: redefinition of 'struct statx'
 struct statx {
        ^~~~~
In file included from /usr/include/sys/stat.h:446,
                 from stat.c:23:
/usr/include/bits/statx.h:36:8: note: originally defined here
 struct statx
        ^~~~~
make: *** [Makefile;64: stat.o] Error 1
make: *** Waiting for unfinished jobs....

Pulseaudio had a similar situation when glibc added memfd, here is their solution: https://github.com/pulseaudio/pulseaudio/commit/dfb0460fb4743aec047cdf755a660a9ac2d0f3fb#diff-a3824a947f7132abd61ce6a8a9b5e2a4
You could possibly check if __NR_statx defined, but I'm not sure.
Alternatively it might be better to expose a -D flag via the Makefile and guard against that in the implementation.  That way I can compile it with make HAVE_STATX=1 or something like it.

Ah finally!  Thanks for the heads up.

You could possibly check if __NR_statx defined, but I'm not sure.

It already checks that actually, to see if the syscall is available for the current arch.
The issue is that glibc now declares its own versions of the kernel types, which conflict with the names of the linux/stat.h ones.  So if glibc has statx() support, we have to avoid including the kernel headers.  I have a patch that does this, just need to test it against a new glibc with the wrapper.
I see the new glibc wrapper doesn't cache the ENOSYS, so there may be a performance regression on systems with new glibc and older kernels.  I expect such configurations are rare though.


Add the ability to add custom actions buttons

Hello everyone,
At the moment there is no way to define a custom action in the BREAD browse overview. Only the default view, delete and edit actions are available. With this pull request it is possible for someone to add a for example a download action to a certain datatype.
The way you would do this is create a new class DownloadAction and extend it with the AbstractAction. You can give it a title, icon and set the attributes. You can also specify which on which DataType you want too show the action and define custom routes for each datatype.
Let me know what you guys think! Feedback is appreciated!

This will need to go in 1.x-dev.  Make sure you talk to @emptynick about his BREAD redesign so this can get implemented with it

We can't use the @each blade helper cause that doesn't inherit the variables of the parent view and we need the $dataType and $data. So now we use the @include blade helper with a different view.

Thanks.  Can you resolve the conflict as well?  Just pull 1.x-dev into your branch, discard the conflicted change, keeping your version (with the @foreach and @include), then update your Action classes to use the voyager:: prefix in your getTitle() methods

hi, I think could be usefull if add like BREAD-EX permissions. For each BREAD  exists add permissions  "Export".

This PR was merged ~3 months ago.  Bugs and Feature requests should be reported as their own issues here, not on closed issues/PRs.


Change background of sticker/ text/ card

Hey! is there a way to change the background of a sticker/ text/ card instead of being transparent? For the text, if we add a background (I tried using the setBackground method with the TextStyleBuilder) but it highlights the text only, I want to change the color of the whole view inside the frame. Hope my point is clear.

@LeenD11 You can do it by modify the library by import as library module.  The text and sticker layout is in (res)[https://github.com/burhanrashid52/PhotoEditor/tree/e91baade7b7120c74ecd4f3e82e44383391cd0c9/photoeditor/src/main/res/layout] folder. You can modify as per your need.


libcudamat.so?

Hi,
I tried to run lstm_combo.py, but I got the error: OSError: dlopen(/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/libcudamat.so, 6): image not found
Where can I get libcudamat.so? Thank you in advance!

you need to go first inside cudamat folder and install it by running "make"
make sure to set correct path to relevant dependencies inside Makefile

Thanks a lot!

But after successfully complying CUDA, I still got an error:

I believe the error comes from the wrong configuration in Makefile. Since my graphics card, NVIDIA GTX 650, maybe different from yours. So here's my unsuccessful trial:

Therefore, I suspect the way of editing the makefile was incorrect?
Thanks!

The complied .so files can't be used, so I think the way I edited MakeFile was wrong? My graphics card is GTX 650m, OS is mac. I've updated the issue on github. Thanks!
Best,

Yantian

From: Elman Mansimov<EMAIL_ADDRESS>Sent: Sunday, March 13, 2016 10:45 PM
To: emansim/unsupervised-videos
Cc: YantianZha
Subject: Re: [unsupervised-videos] libcudamat.so? (#5)
you need to go first inside cudamat folder and install it by running "make"
make sure to set correct path to relevant dependencies inside Makefile

Reply to this email directly or view it on GitHubhttps://github.com/emansim/unsupervised-videos/issues/5#issuecomment-196153118.

You can see that the error says that the cuda toolkit version you are using is incompatible with your gpu GTX 650.
Which version of cuda toolkit you are using ? I would maybe suggest downgrading to older toolkits that support your gpu and changing the path to it in Makefile

Thanks! After a survey, I found I can't use CUDA 6.5 (with mac of EI Capitan). So I used CUDA 7.5. But it seems that I must use CUDA 6.5? Here is the error:
Traceback (most recent call last):
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/lstm_combo.py", line 1, in
from data_handler import *
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/data_handler.py", line 3, in
from util import *
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/util.py", line 3, in
import cudamat as cm
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/init.py", line 1, in
from cudamat import *
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/cudamat.py", line 11, in
_cudamat = ct.cdll.LoadLibrary(os.getcwd() + '/cudamat/libcudamat.so')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/libcudamat.so, 6): Library not loaded: @rpath/libcublas.7.5.dylib
Referenced from: /Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/libcudamat.so
Reason: image not found
Thanks!


Fix typo

fucntionality -> functionality

@lgirvin : Thanks for your contribution! The author, @edmacauley, has been notified to review your proposed change.

@lgirvin Thanks for the correction! Signing off.


Implements a small carousel of testimonials at the bottom of the homepage.

Description
A small spot gets added to the bottom of the page (a series of divs) where we render all our testimonials, but only one div is visible at a time. Rotates every 25 seconds.
Issues Resolved
#1034
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

@nateynateynate
I like the carousel you've placed at the bottom of the homepage to highlight the testimonials a lot!
Please put back the original page.headline and hero banner placements at the top though so we can still use that hero banner functionality I had in there when we need to.

@nateynateynate I like the carousel you've placed at the bottom of the homepage to highlight the testimonials a lot!
Please put back the original page.headline and hero banner placements at the top though so we can still use that hero banner functionality I had in there when we need to.

All set. Have another look.


test: remove the "xfail" markers about dataset alias

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.921%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5292

Relevant Lines:
6382

💛  - Coveralls


The number of agents that start microservices seems to be limited.

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.

Requirement or improvement

Hello, I use the agent to start the microservice. When I start the 21st microservice, I will squeeze out other microservices.That is, when the microservice is started by the agent to the 21st, other microservices cannot be started.
Is this situation encountered, or can this number of startups be configured?

No. We have nothing related to this. And I am not sure, what is your status of can't be started?
In our users, SkyWalking is monitoring hundred, even thousands services, nothing special.

OK，I got it. May be insufficient memory allocation, thank you~


Feature: interfacing with on-device data from sensors or frameworks

I was asked about if accessing a framework like FinanceKit would be possible in LVN, I figured yet but if we don't currently have an api for doing this we probably should. It's going to seem convoluted but in the case of FinanceKit I think the data should be sent to the server over a phx event so that server can decide how it wants to represent that data in the app screen. It seems kind of stupid to send data from the phone, render, then send back to the phone but I don't think it makes sense to mix any render state changes client-side

It sounds like this is proposing creating elements that allow data to be pushed up to the server with a customizable event name:
<FinanceKit phx-change="receive-finance-data" />

But for something custom like this, is there a reason why they can't use the existing pushEvent/receiveEvent API? This provides more flexibility. Also they will need to write logic in Swift to configure what data should be collected, request permission from the user, etc.
I think this would more closely match LiveView itself, which provides a pushEvent function to send information collected via JavaScript to the server.

yeah that makes sense

Closing as this is a forever-issue that we can address per-addon


Issue regarding AddAuthenticationCore and cookies

(Manually transferred from an issue filed by @ffMathy in the corefx repo.)
Before in my old code, I used to do:
services
    .AddAuthentication(options =>
    {
        options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
        options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
        options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
        options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
    })
    .AddCookie(options =>
    {
        options.LoginPath = "/Admin/Account/Login";
    });

To get auth with cookies working.
Now, after migrating to .NET Core 3 while still using the above code, my identity showed as never authenticated. I found something referring to something being moved around, and concluded I needed to use AddAuthenticationCore.
I couldn't find any documentation on how to get the same working with that, so I ended up with the following code:
services.AddAuthenticationCore(options =>
{
    options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
    options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
    options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
    options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;

    options.AddScheme<CookieAuthenticationHandler>(CookieAuthenticationDefaults.AuthenticationScheme, null);
});

But now I get the following error:

Unable to resolve service for type 'Microsoft.AspNetCore.Authentication.ISystemClock' while attempting to activate 'Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler'.

The reason I tried using this approach, is that AddCookie no longer exists with the new method approach.
What can I do to get this working?

Do you have UseAuthentication and UseAuthorization in your startup.cs? What order is your middleware in?
You shouldn't need the AddAuthenticationCore() call

Here's the simplified version:
services
    .AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
    .AddCookie(options =>
    {
        options.LoginPath = "/Admin/Account/Login";
    });

I got it working now, it was just me messing around. I had to clear my browser cookies for it to work properly.

In other words, this issue can be closed I think 😄


BEFORE_ROUTE action doesn't return the right route.

Hello,
When I activated the following to see what I get from the action, it looks like the action returned by BEFORE_ROUTE is not correct.
case Actions.BEFORE_ROUTE:
	console.log('BEFORE_ROUTE:', action);
	return state;
case Actions.AFTER_ROUTE:
	console.log('AFTER_ROUTE:',  action);
	return state;

Navigating from login to register, then from register to login, I get this:

BEFORE_ROUTE: Object {} Object {type: "BEFORE_ROUTER_ROUTE", route: Route, name: "register"}
index.ios.js:20 AFTER_ROUTE: Object {} Object {type: "AFTER_ROUTER_ROUTE", route: Route, name: "register"}
index.ios.js:23 BEFORE_POP: Object {} Object {type: "BEFORE_ROUTER_POP", route: Route, name: "register"}
index.ios.js:26 AFTER_POP: Object {} Object {type: "AFTER_ROUTER_POP", route: Route, name: "login"}

As you can see, the BEFORE_ROUTE says register while it should return login, because before I was on the login page.
My router looks like this:
class MyApp extends Component {
	render() {
		return (
			<Provider store={store}>
				<Router name="root">
					<Schema name="default" sceneConfig={Navigator.SceneConfigs.FloatFromRight} />
					<Route name="login" component={Login} initial={true} title="Login" renderTitle={false} rightTitle="Register" onRight={() => {
						Actions.register();
					}} />
					<Route name="register" component={Register} title="Register" />
				</Router>
			</Provider>
		);
	}
}

3.0 version is released. Closing this ticket (because it is for outdated 2.x release)

@aksonov is their still a BEFORE_ROUTER_ROUTE event that gets called in 3.0?


Cost of building and querying each index

From the document it was clear that we can find the values of last_token_usage
Also it is mentioned cost of building and querying each index is a TODO in reference documentation.
Please help me with the below questions:

Any update or estimated time for update on cost of building and querying each index
What is the default embedding model used if there is no embedding model specified
I am connecting llama_index to Azure Openai and if the embedding model is not specified, does it incur a cost on the default embedding model

Have you tried using the mock LLM and embedding predictors to estimate token usage?
https://gpt-index.readthedocs.io/en/latest/how_to/analysis/cost_analysis.html

Thank you for your response. Yes i tried using the mock LLM and embedding predictors to estimate token usage.
I want to understand if embedding model text-ada-002 is used internally and if any cost is incurred in the same.

@ShubhamVerma16 yea text-ada-002 is the default embedding model. It's pretty cheap, $0.0004/1k tokens

the problem is when building index there is no way to get the consumed tokens response from openai, so get_openai_callback.total_tokens and index.service_context.llm_predictor.total_tokens_used are both always 0

Up to date way to get token counting: https://gpt-index.readthedocs.io/en/latest/examples/callbacks/TokenCountingHandler.html


NFC: simplify code in Coalesce.cpp, also add DEBUG_ONLY support

Summary:
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:

please apply pre-commit


Callback Constants

Hey guys. Sorry for opening another issue, but I feel this one's important.
According to the README there are some constants for the callback, depending on the type of share you select.
Let's take Facebook as an example.
ACTIVITY_FACEBOOK: UIActivityTypePostToFacebook
But when evaluating this on runtime:
case dk.napp.social.ACTIVITY_FACEBOOK:
Ti.API.info("User shared on Facebook");
break;
...I never get into the selected case.
After debugging I discovered the Activity Name differs a little, not only from the constant but also between devices.
For iPhone: com.apple.UIKit.activity.PostToFacebook
For iPad: com.facebook.Facebook.ShareExtension
[INFO] :   {
[INFO] :       activity = 383813760;
[INFO] :       activityName = "com.facebook.Facebook.ShareExtension";
[INFO] :       bubbles = 1;
[INFO] :       cancelBubble = 0;
[INFO] :       platform = activityPopover;
[INFO] :       source = "[object DkNappSocialModule]";
[INFO] :       success = 1;
[INFO] :       type = complete;
[INFO] :   }
Probably UIActivityTypePostToFacebook is from older versions of the Facebook app and also iOS.
Same happens for Twitter, and even the Mail app.
I hope this is helpful as a report. Thanks!!

Hi @JuanP6, I don't use the module but I think you have to call the constant on the declared variable of the module. If you have var social = require("dk.napp.social"); than you call it on social. ACTIVITY_FACEBOOK.

Hi @hansemannn,
Certainly! I am already doing that.
The problem is that the module's constants are not matching the actual name of the activity.
The value of Facebook's constant is UIActivityTypePostToFacebook.
But for instance, in iOS 9, the actual name of said activity is com.apple.UIKit.activity.PostToFacebook.
So in the callback, I can't really use the constants for operations.
Actual code snippet from my project:
//case Alloy.Globals.Social.ACTIVITY_FACEBOOK:
case "com.apple.UIKit.activity.PostToFacebook":
(...)
break;
And this is only for iPhones. For tables, the activity es a modal, and the event returns "com.facebook.Facebook.ShareExtension".
This is certainly iOS and Facebook's fault, it renders the module's constants useless.
Same for twitter.
Phones: "com.apple.UIKit.activity.PostToTwitter"
Tablets: "com.atebits.Tweetie2.ShareExtension"

The reason is, that it calls different share extensions (see here). So I think you should use the iPad sharing dialog there. Does that help?


Error: Failed to match ReRoute configuration for upstream path: /

Expected Behavior
We are using ocelot to create an API gateway for microservices / APIs which are deployed in Azure Kubernetes.  We use a global configuration:
{
  "GlobalConfiguration": {
    "ServiceDiscoveryProvider": {
      "Namespace": "default",
      "Type": "kube"
    }
  }
}
// And configuration for each microservice where we use the service name in AKS.
{
  "ReRoutes": [
    {
      "DownstreamPathTemplate": "/api/{everything}",
      "DownstreamScheme": "http",
      "RateLimitOptions": {
        "ClientWhitelist": [],
        "ClientIdHeader": "LoginId",
        "EnableRateLimiting": true,
        "Period": "1s",
        "PeriodTimespan": 1,
        "Limit": 50
      },
      "ServiceName": "clientserviceapi",
      "UpstreamPathTemplate": "/api/client-service/{everything}",
      "UpstreamHttpMethod": ["Options", "Get", "Post", "Put", "Delete"]
    }
  ]
}

Actual Behavior
Everything works find but we are seeing continuously the following error:
previousRequestId: no previous request id, message: Error Code: UnableToFindDownstreamRouteError Message: Failed to match ReRoute configuration for upstream path: /, verb: GET. errors found in ResponderMiddleware. Setting error response for request path:/, request method: GET
It seems like the ocelot is trying to find a configuration for some root path (/) which is though not required.
Can we add a configuration to ignore this error?
Many thanks
Specifications

Version: 13.5.2 (Ocelot + Ocelot.Provider.Kubernetes)
Platform:  Azure AKS
Subsystem: ASP.NET Core 2.2

https://github.com/ThreeMammals/Ocelot/blob/develop/src/Ocelot/Responder/ErrorsToHttpStatusCodeMapper.cs#L41-L44
This is important error of logic! It cannot be ignored or switched off.
But if you don't want to see it in the log, you can define a fake route to nowhere.
{
  "Routes": [
    {
      "DownstreamPathTemplate": "/api/{everything}",
      "DownstreamScheme": "http",
      "RateLimitOptions": {
        "ClientWhitelist": [],
        "ClientIdHeader": "LoginId",
        "EnableRateLimiting": true,
        "Period": "1s",
        "PeriodTimespan": 1,
        "Limit": 50
      },
      "ServiceName": "clientserviceapi",
      "UpstreamPathTemplate": "/api/client-service/{everything}",
      "UpstreamHttpMethod": ["Options", "Get", "Post", "Put", "Delete"]
    },
    // fake route
    {
      "DownstreamPathTemplate": "/",
      "UpstreamPathTemplate": "/",
      "UpstreamHttpMethod": ["Options", "Get", "Post", "Put", "Delete"]
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
           {
             "Host": "www.google.com",
             "Port": 443
           }
      ]
    }
  ]
}

:rofl:


Fix scrollbar pushing UI to the left on toggle

Fixes https://github.com/snapshot-labs/snapshot/issues/1644
Changes proposed in this pull request:

Fix scrollbar pushing UI to the left on toggle
Remove redundant sticky component
Fix settings sidebar not filling width

left Scroller is not covered by the overlay anymore

Settings sidebar now behaves a bit weird on smaller screens.

I know we don't need this to be responsive all the way down to small phone screens but on these screen sizes it should still look somewhat ok I'd say.  The fixed position was more important.

@mktcode good catch, couldn't see the Scroller z-index issue on dark mode 😆 added the other fixes too, had a wrong breakpoint md instead of lg


Error when creating or importing private key

I am using the app on my redmi note 10 pro with lineage os 21(Android 14) installed(I know it is not designed to be run on custom roms but I have used it on the stock ROM for quite a while now and I would love to continue using it on my new ROM). When I create a key or try to import an old one I get a toast saying java.lang.IllegalStateException: Digests not specified.
I don't know if this is specific to lineage os or if it is a general android 14 problem.

Hi,
well that warning about custom ROMs was more in terms of security - you never know how the key storage is implemented.
Back to your issue: there is a Support & Feedback menu on the scanner screen (upper-right corner), please try to capture logcat output using that menu after the toast has been displayed. It should contain more details on the issue (stack trace). You can then post it here or send it per mail to me.
Best,
stud0709

There is also an error that when Bluetooth is on basically nothing works, will capture both logs and send them via Mail when I come home


Update examples

Great lib.
Could you please update the examples?  deduper.sample seems not working for versions >1.5.3
Thanx

which example is not working? @mdaniloff
On Wed, Dec 14, 2016 at 8:35 PM, mdaniloff<EMAIL_ADDRESS>wrote:

Great lib.
Could you please update the examples? deduper.sample seems not working for
versions >1.5.3
Thanx
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/datamade/dedupe-examples/issues/46, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAgxbaOw1q9kcCjvcAqdG4mjGuk5tnqmks5rIKdwgaJpZM4LNpvq
.

--
773.888.2718

in pgsql_big_dedupe_example.py when I run sample of the records
deduper.sample(temp_d, 75000)
Traceback (most recent call last):
File "C:\projects\gitlibs\dedupe-examples-master\pgsql_big_dedupe_example\pgsql_big_dedupe_example.py", line 135, in
deduper.sample(temp_d, 75000)
File "C:\Python27\lib\site-packages\dedupe\api.py", line 832, in sample
self.active_learner.sample_combo(data, blocked_proportion, sample_size)
File "C:\Python27\lib\site-packages\dedupe\labeler.py", line 148, in sample_combo
super(RLRLearner, self).sample_combo(*args)
File "C:\Python27\lib\site-packages\dedupe\labeler.py", line 47, in sample_combo
in blocked_sample_keys | random_sample_keys]
KeyError:<PHONE_NUMBER>

Hmm.. can't reproduce. Could you tell me what the maximum integer is for your python http://stackoverflow.com/questions/7604966/maximum-and-minimum-values-for-ints

2147483647

it works if I change dedupe/core.py as it used to be numpy.arange(n, dtype='f')

I thought that sounded familiar. Per Wikipedia:
"The number 2,147,483,647 (or hexadecimal 7FFF,FFFF16) is the maximum positive value for a 32-bit signed binary integer in computing"
32-bit Postgres?

I think I fixed this here: https://github.com/datamade/dedupe/commit/6528b75605dc5e3ddccc6f8054ba2f314f5a5194
Could @mdanlioff or @stucka confirm?

err @mdaniloff


Exclusions

Got exclusions working! I'm not 100% happy with this, but it's okay for now. Tests included.
With this, we're switching to walkdir for our directory traversal needs.
Example usage:
name: example-blueprint
version: 1
author: Brian S<EMAIL_ADDRESS>Tomasz K<EMAIL_ADDRESS>description: Just an example blueprint for `express`.
exclusions:
- "foo/non_existent_excluded_file"
- "excluded_file"
values:
- name: name
  description: The name of your project
  required: true
- name: version
  description: The version of your project
  default: 1
- name: extra_info
  description: This isn't really needed

The excluded files will still be copied to the target folder, but the templating engine will not touch them.
Note that the exclusions field can be completely omitted from the YAML.

Code looks good. Question though, seems like the exclusions list matches on exact path, is there a way to make that match a pattern instead? That way we could do something like - '.*\.png' or whole directories - '^images/.*'.

Ah, yeah. I thought about it before, but then decided I'll focus on just getting specific paths working first. I don't yet know what the simplest way to do it would be. Maybe deserialize exclusions into Strings rather than PathBufs, and then construct these? https://docs.rs/glob/0.3.0/glob/
If you want to take a shot at it, you'll probably want to focus on the is_excluded method. Otherwise I could add that tomorrow.

Introduced glob patterns using https://docs.rs/glob/0.3.0/glob/. I didn't need to operate on real files - the glob library has the Pattern struct that lets you match your pattern against strings/paths.
I think it's probably better than regex for two reasons:

regex can easily get overcomplicated
this thing is specifically designed for paths and lets you match one level vs an arbitrary number of levels

That said, if we ever need to, we can switch to regex.
I think this is good. What do you think?


Language ID experiments on CommonLanguage

Recipes for Language ID on CommonLanguage (CommonVoice dataset for LID) were added and a short description of the dataset. Two models were used for this task:

X-Vector: pretrained on Speaker ID task on VoxCeleb, the embedding module is part of the model. Cosine Similarity and Additive marginal loss are used to classify languages.
ECAPA-TDNN: (same as for X-Vectors) fine-tuning of speaker embeddings to LID task.
In both cases, batch size and augmentations were limited by compute limitations.
No results posted as, to find how well the models can perform, more augmentation and higher batch size may be required.
Overall, the recipe is highly inspired by Speaker ID task on VoxCeleb, as fine-tuning these embeddings proved to outperform other methods.

Thank you for this contribution @paul-ruban! After the tests, I'm going to merge it and share the pre-trained model on HuggingFace...


ppc64le: remove go SHA check

Makes it consistent with other Dockerfiles.
Signed-off-by: Christopher Jones<EMAIL_ADDRESS>

At least it compiled ok.
LGTM

LGTM

@thaJeztah can I get this added to the next 1.12.x milestone 🙏  (I don't see a 1.12.2 one)? This fixes a major issue in 1.12 on power when building dind with a go version that isn't 1.6.2.

@tophj-ibm marked it for cherry pick. No idea when/if there will be a 1.12.2 release at present.

thanks! just wanted to make sure it would be in if there was


Ability to provide a url and auto-download the theme from there

Since most color scheme authors host their tmTheme files at a different place, it seems like a good idea to allow specification of a url where the theme is downloaded from automatically.
https://github.com/aziz/tmTheme-Editor does this.
Also, I don't know if the ST plugin auto-updates themes (since they can already be updated) but that would be a nice feature as well, imo. I haven't actually used it though.

I'm not sure about specifying the URL, that seems like a larger discussion. I wouldn't want the client to download content from arbitrary servers (!!!), if that's what you were thinking.
However, the auto-updating is an interesting idea. Currently the plugin does update the theme list, but would only update the current theme if the user reselects it. My main concern would be pulling a user's theme from under their feet if the author makes a change they don't like.

I was actually thinking of downloading the files on the colorsublime server and then providing the themes there for download. If you are concerned about arbitrary servers you could restrict it to github urls (which seems to be rather dominant, see https://github.com/aziz/tmTheme-Editor/blob/master/public/gallery.json).

So the URL feature is a no-go for now. We don't actually have a server to do it with. Aside from the server we host the website with everything is done off Github. Creating the infrastructure for this feature is prohibitively expensive time-wise.
Although I like the auto update feature. Since that is plugin related I'll close the discussion here and move that feature to the plugin roadmap.
Thank you for your input.
Cheers! :beers:


perf(bot-detection) replace ngx.re.match with find

Summary
We don't need to use the match's return value, only whether the match
happened.
This PR is a branch rename of #2689

Merged w/ minor changes (use double quotes " instead of single quote ' around constant strings by convention). Thanks!


nixos/rspamd: add release notes

Motivation for this change
Document #93293
Rendered:

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

cc @tnias @Mic92

Thanks! I think this covers everything.


fix: typos in python files of directory qiskit/algorithms/optimizers/

Summary
This pull request fixes typos in function helper documentation text in python files of the directory qiskit/algorithms/optimizers/gradient_descent.py
Details and comments
Following are the typos fixed in this pull request:

lenght -> length
accomodate -> accommodate
ammount -> amount
supress -> suppress
directon -> direction
optmization -> optimization
funtion -> function
paremeters -> parameters

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for the corrections - it looks fine to me. I will note that the whole of qiskit.algorithms is deprecated and soon to be removed (after the imminent release) Qiskit/qiskit#10991. Since this will still exist in the docs for this upcoming version, and that already has its own branch as a release candidate, I marked this to be backported so it can go with that when its published. The algorithms now exist in separate repo https://github.com/qiskit-community/qiskit-algorithms but I will note that a spell checker was enabled there and at a quick glance the above fixes have been taken care of there due to them being picked up by the spell checker after the code was migrated there.

LGTM to merge/backport this fix, but as @woodsp-ibm mentioned, please remember for future contributions that qiskit.algorithms is deprecated and soon to be removed from qiskit, as it has been migrated to a separate repo: https://github.com/qiskit-community/qiskit-algorithms.

I'll keep that in mind. Thanks! :heart:


Session delegate (Alamofire) support - closes #11, closes #12

Adds support for data task delegate
Adds support for download task delegate
Adds .gitignore
Sets 4 space tab setting on project file

This enables DVR to work with Alamofire.
let delegate = Manager.SessionDelegate()
let session = Session(cassetteName: "example", delegate: delegate)
let manager = Manager(session: session, delegate: delegate)

Can you clarify why you need to create and manage task ids?

Because NSURLSessionDataTask/NSURLSessionTask does not implement taskIdentifier property.
If you try executing
let task = NSURLSessionDataTask()
print(task.taskIdentifier)

your program will crash. I guess under the hood it's implemented as Objective-C @dynamic property.
That's why I need to handle task identifiers and other properties that I've overridden manually.

Can Alamofire be used with DVR even without this PR? Supposedly this Alamofire PR allows DVR to be used with it.

@phatmann the Alamofire PR you mention is absolutely advancing the goal of DVR + Alamofire. What it does is add a failable init to configure a Manager with a different Session. That's great and it works great. On DVR's side there are things required in order to work:

We need to be able to set the delegate.
SessionDataTask needs a taskIdentifier

Let me know if I can do anything to advance this PR and give it a chance to be merged. It would be great to have that Alamofire supported.


spectate

when admin spectates person and stop spectating, player who was spectated can hear him talking

This script does not support any type of spectating.

was using this https://github.com/SmokeEnergy/EasyAdmin-Mumble-Voip-

it's made for an old version of mumble (pre-refactor)
I never made it so why should i support it
He even included an old version with his changes instead of a pull request


Error when cloning project (streamlit)

error: invalid path 'streamlit/pages/02_🔎_app:_explore_dataset.py'
fatal: unable to checkout working tree
This occurs when trying to clone the project in both Visual Studio Code and GitHub Desktop.

This was reported in the past from a windows user here.
Could you try the suggestions there and follow up in that other issue if you have any trouble?


generateChangelog creates invalid changelog

Search first

[X] I searched and no similar issues were found

Description
Using latest Liquibase compiled from master I am running generateChangelog, directly followed by validate. The result looks like this:
Unexpected error running Liquibase: Validierung war nicht erfolgreich:
     894 Changes erfüllten die Anforderungen während der Validierung nicht
          initiallyDeferred is not allowed on asany, dbchangelog.xml::1689061476606-280::Quipsy (generated)
          deferrable is not allowed on asany, dbchangelog.xml::1689061476606-280::Quipsy (generated)
…

Apparently generateChangelog has a bug here, because it knows that it reads from asany, so it should not create something that is unsupported on asany.
Steps To Reproduce
liquibase generateChangelog
liquibase validate

Expected/Desired Behavior
Validation should not find any problems.
Liquibase Version
master
Database Vendor & Version
SAP SQL Anywhere 17.0.11
Liquibase Integration
N/A
Liquibase Extensions
N/A
OS and/or Infrastructure Type/Provider
Windows 10 Pro (German)
Additional Context
N/A
Are you willing to submit a PR?

[X] I'm willing to submit a PR (Thank you!)

Hi @mkarg , how are you?
For clarification, are you doing anything with your environment before running generateChangelog? Do you have an existing database with tables or other configurations? Or are you running the command straight from the compiled code?
Thanks!

Hi @tati-qalified! We are an SAP OEM Partner, and since few weeks I am working on making Liquibase much more compatible with SQL Anywhere with the kind support of @nvoxland and @filipelautert. The particular test that lead to this bug report is a huge database with multiple schemas that more or less makes use of any specials SQL Anywhere provides (so it is rather perfect to find more or less all existing bugs). In particular we want to see if the read-part and the write-part of the SQL Anywhere support are actually compatible, or if one side lacks support for something.

(Started to work on a PR fixing this issue, I assume it will be ready to review today)


Inconsistent behavior of $null assignment for property in custom class and variable with String type

Steps to reproduce
Define a custom class and create a object of its type:
class ConstructionMaterial {
    [string]$Color
    [string]$Shape
}
$obj = New-Object -TypeName ConstructionMaterial
$obj.Color = "Dummy"

Set Color property to $null and check the equality with eq operator:
PS /mnt/d/Lab/afd> $obj.Color.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     String                                   System.Object

PS /mnt/d/Lab/afd> $obj.Color = $null
PS /mnt/d/Lab/afd> $obj.Color -eq $null
False

It outputted "False" and the behavior is not aligned with assigning $null to  variable with the same "String" type:
PS /mnt/d/Lab/afd> $dummyObj = "Dummy"
PS /mnt/d/Lab/afd> $dummyObj.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     String                                   System.Object

PS /mnt/d/Lab/afd> $dummyObj = $null
PS /mnt/d/Lab/afd> $dummyObj -eq $null
True

Expected behavior
$obj.Color -eq $null

Should return "True"
Actual behavior
"False" is returned

Environment data
Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Linux 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

By design, [string]-typed variables and properties in PowerShell never contain $null - only the empty string, even if you explicitly assign $null.
In cases where a true null must be passed to a .NET method call, use [NullString]::Value.
While you can use this to effectively initialize [string] variables / properties to $null, it is best avoided, because other code may not expect to encounter true $null in [string] type-constrained values.
# !! $null is quietly converted to the empty string.
PS> [string] $foo = $null; $null -eq $foo
False

# Works, but isn't obvious, and other code may not expect it.
PS> [string] $foo = [NullString]::Value; $null -eq $foo
True

@mklement0 , thanks a lot for the detailed explanation.


Nexus 3 supports RubyGems and PyPI

Sonatype Nexus 3 does support RubyGems and Python Eggs (PyPI) per their
documentation:
https://www.sonatype.com/download-oss-sonatype
https://books.sonatype.com/nexus-book/3.0/reference/index.html

Make both entries green with a check mark.

That as of 3.0.2 announced on September 12th on http://www.sonatype.org/nexus/2016/09/12/nexus-repository-oss-3-0-2-release/


Struggling video layer when navigating between partially played items

As a user I want the best possible user experience when navigating a playlist. Currently this is not the case:

Open the playlist example (URL or URN).
Move to the 2nd item and play for a while.
Return to the 1st item and play it through.
The player struggles to restore the position in the 2nd item (at least visually since audio seems to resume just fine).

Acceptance criteria

Video never hangs when navigating playlist examples.

Tasks

[x] ~Investigate and fix if possible.~
[x] ~Report any AVQueuePlayer bug to Apple.~

To ensure AirPlay stability (see #134) we now create items from scratch when navigating the playlist. The position until which a media was played is therefore reset to 0 and there is no struggling anymore. This issue is therefore not relevant anymore.


Android support

would be cool :)

I agree! I will need to do this soon for my app. But I really don't know Android too well yet. Any ideas on how to implement this?

probably can steal/inspire from what I've done in gl-react-native https://github.com/ProjectSeptemberInc/gl-react-native/blob/master/android/src/main/java/com/projectseptember/RNGL/GLCanvas.java#L329 + https://github.com/ProjectSeptemberInc/gl-react-native/blob/master/android/src/main/java/com/projectseptember/RNGL/GLCanvas.java#L180-L242
I have both "view -> bitmap" and "bitmap -> send back to js / save to file" implemented in iOS and Android. (with also a way to express the quality of the generated snapshot, can also choose between jpg and png. we can probably have this in your lib too)

Ah nice! I'll look at this later this week. Feel free to submit PR :)

@gre I went through the discussions you have linked. In this case since there is no ViewManager unlike in GLCanvas. And at present there is no way to look up a view given a reactTag id , Right ?

https://github.com/facebook/react-native/pull/4438#issuecomment-196212926
https://github.com/facebook/react-native/pull/6431

Looks great, nice work @gre

Closing this out in favor of the work being done on React Native core by @gre.

(not only me, I just made the Android impl)

@jsierles you might not want to deprecate this package yet https://github.com/facebook/react-native/pull/6431#issuecomment-204418900
if it doesn't make it , i'll PR to you :) but we will still need the method i'm discussing there (resolve a view for a given tag)

Yep, agreed. Definitely want to get back on this.

I'll update the README - meanwhile maybe a new issue needs to be opened on RN just for the view tag ?

yeah, i'm waiting the guys to respond on that question I asked and i'll probably try to send a PR to RN

Any desire to still work on this? :)

Any updates?

sorry, have been busy recently.
there is still my PR out there, that adds the snapshot feature inside React Native.
unfortunately it does not seem to get accepted yet, while the iOS still being there inside RN.
so before RN, finally make a decision for this, we should still provide a PR that will, instead of implementing screenshoting inline in Android, at least provide a method to get a view for a tag.
If anyone want to work on that, please comment, otherwise i'll try to to it as soon as I find time (can't guarantee when)

Thanks for chiming in @gre. I've been looking over this and agree. I would love to work on getting that in. Any tips?
I noticed here that React.findNodeHandle is used:
https://github.com/facebook/react-native/pull/3621/files#diff-0f0686c8f59ec7730c2f90a6bdb590a1R171

To complete this thought, why can't we use the method (https://github.com/facebook/react-native/pull/4438#issuecomment-163533312)[recommended by @kmagiera] to use UIManager.dispatchViewManagerCommand for now, which wouldn't require adding a convenience method to React Native I believe?

As far as I remember:
findNodeHandle is resolving a node in JavaScript side. We want the exact same thing but on the Java side. So a third party can do whatever with a View like screenshoting it.
I think dispatch command only works on a custom view but not on any arbitrary view (to be confirmed)

hope support android!!

https://github.com/facebook/react-native/commit/af28de5300b015169b262b440acf1ac30c0044b5
is shipped in RN 0.30.0
so I can do a PR for this.
But best is probably to do this PR after @jsierles refactor the lib so it takes the RN iOS implementation with the same API.
@jsierles what do you think? Also I think it would be great the iOS specific to be in a ios/ folder like bunch of RN libs do.
Thanks :)

Circumstances have led to me not really needing this plugin anymore. So I won't be doing any refactors in the short term. Feel free to take this on if you need it!

Hi,
I've just released react-native-view-shot which addresses both #4 and #9 .

It takes the implementation of React Native UIManager.takeSnapshot, (with a minor subset simplification that it doesn't support the "window" screenshot of takeSnapshot, I feel it should just be another plugin if there is a need for this).
The Android implementation is just the one I implemented some months ago in this gist.
There is an example that shows it: https://github.com/gre/react-native-view-shot-example

We are going to maintain it because we need it at ProjectSeptember, so feel free to use it and help us making it better :)

@jsierles I hope you don't mind I create a new plugin from scratch as it's written from scratch.

@gre looks good. I will deprecate this one and mention yours in the README. Thanks for picking it up!


Bugfixes with multicodec simulcast

No longer require explicit settings in BackupVideoCodec
Fix crashes when backupCodec isn't set
Avoid using default settings, instead use the track's publication options
Correctly set SVC codec layers

There's one remaining issue, which is when AV1 is used, the publisher's connection quality is marked POOR.

There's one remaining issue, which is when AV1 is used, the publisher's connection quality is marked POOR. This doesn't happen when no subscriber is in the room.

Yes, I have observed this, but the ConnectionQualityInfo seems to be sent by SFU, is it possible that the server is not calculating the AV1 quality accurately? When I received the POOR, the publisher reported from rtcStats that the total sending bit rate was about 2500kbps.


Power Bi + ClickHouse ODBC for DirectQuery mode

Hello, Is it possible to use DirectQuery when working with Power BI Desktop?
I installed the driver and then added it as ClickHouse Unicode.
There are a couple of ODBC drivers on this list that support DirectQuery: Jethro ODBC, MarkLogic ODBC. This Issue 89 says that direct query mode is used, but I have no choice when receiving the data.
In general, I saw that it is quite possible to make this mode for the ODBC driver, so is it possible to enable this mode? Or am I connecting the driver itself incorrectly? Or for this, you need to build the driver yourself?

As far as I understand DirectQuery should be supported by data source/connector: https://docs.microsoft.com/en-us/power-bi/power-bi-data-sources
And for generic ODBC drivers it is not supposed to work. Hence, this driver cannot be used with DirectQuery.

Thanks for the answer, I will look for a solution :)

@Alexeykhr I tested this by buidling a custom connector on top of clickhouse ODBC. It is not going to work, the way Clickhouse deals with aliases (they are global for a query) is not SQL-conformant and does not work with the SQL generated by powerquery.

@Alexeykhr I tested this by buidling a custom connector on top of clickhouse ODBC. It is not going to work, the way Clickhouse deals with aliases (they are global for a query) is not SQL-conformant and does not work with the SQL generated by powerquery.

Has someone tested https://github.com/belyaevvo/ClickHouseConnector ?


[embedded] Expand dummy runtime to handle stack promoted refcounted objects

Adding an example test that triggers an interesting pattern from refcounting perspective: Stack promoted class object that still needs (strong) refcounting to happen on it, and needs the destructor to be called on the last swift_release, but it must not be free()'d (as it's stack allocated).

@swift-ci please test

@swift-ci please test


Bug report: querying for tags should be case insensitive

What happened?
Querying for tags should not be case sensitive, since Obsidian itself handles tags in a case insensitive manner, as showcased by the tag pane. This seems to affect both DQL and dvjs.

DQL
Table
from #Zeit

Table
from #zeit

JS
const lowercasedTag = dv.pages("#zeit");
dv.paragraph(lowercasedTag.length);

const capitalcasedTag = dv.pages("#Zeit");
dv.paragraph(capitalcasedTag.length);

Dataview Version
0.5.33
Obsidian Version
Obsidian 0.14.15
OS
MacOS

Hmm I'll have a crack at this next week.

Hmm, I looked through the metadataCache and it seems Obsidian indexes these differently. Do you think it would still make sense for it to be case insensitive?


My entire chat history and characters are suddenly gone.

I mostly use OpenCharacters from my phone, on the default Chrome browser. Everything was fine, I went to have lunch, and when I came back to keep chatting, I got an error message (can't really remember what it said). I refreshed the tab and now everything is gone. Is there any way to recover what I lost? This is extremely frustrating.

Hey Rich, very sorry about this!! But I'm hopeful that this is just a bug. I've just pushed some code which should make the bug's error message visible to you. Please refresh the page a few times to make sure your browser's page cache is cleared. Then copy/screenshot the error and paste here. Also, try clicking the export button and let me know if you get an error for that too.

Sorry, I've been gone for quite a bit, but it's fixed! Thank you! Everything went back to normal and I have all my convos and characters back.

Glad to hear! It's likely that it was just a UI bug (that I've since fixed) that was preventing the convo/character lists from rendering.


hoverProvider range doesn't work (even in the playground example)

Hi, the hoverProvider doesn't respect range, even in the example given here: https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-hover-provider-example
Whatever you change line 8 to, the range applies to everything. There seems to be no way at all to actually limit the hover provider to some subsection.
This is a real shame because it could otherwise be an amazing feature.
Hopefully this is something you can fix.
PS: The Monaco editor is AMAZING, thank you so much for your work on this, it's easily one of my 5 favourite modules anywhere - maybe number 1.

You should take the given position into the account, otherwise, you return Hover for any position. Try the following code in the playground:
monaco.languages.register({ id: 'mySpecialLanguage' });

monaco.languages.registerHoverProvider('mySpecialLanguage', {
	provideHover: function(model, position) {
        const range = new monaco.Range(1, 1, 1, 4);
        if (range.containsPosition(position)) {
            return {
                range,
                contents: [
                    {
                        language: 'html',
                        value: '<h>Hello Wordl!</h>'
                    }
                ]
            }
        }
        return null;
    }
});

monaco.editor.create(document.getElementById("container"), {
	value: 'Hover over this text',
	language: 'mySpecialLanguage'
});

@bluelightning2k The second argument of the provideHover function is a position. That is where the mouse sits when the hover wants to be shown.
Thank you @akosyakov


Fix autocomplete crash as it would infinite loop

Adds a check before calling _guess_method_return_type_from_base() inside _guess_expression_type() of modules/gdscript/gdscript_editor.cpp. Assures that the base.value variant is not nil. Otherwise, it can lead to an infinite loop if _guess_method_return_type_from_base() calls back _guess_expression_type().
Will need to be tested to know if there's not side effects to this added test.
Fixes #69779 - Editor Crashes On Autocomplete With Custom Classes In Some Circumstances

Thanks!


Add 2 player versions

Gauntlet
Gauntlet II
Teenage Mutant Ninja Turtles
Teenage Mutant Ninja Turtles - Turtles in Time
The Simpsons

in Colors.ini I also removed the controls for the existing 2 player versions that had config like they were.  the 4 player versions

Thanks again @marchah!


ImportError: cannot import name 'Mapping' from 'collections'

I am using python 3.10 and I am having trouble training data when testing the installation.

Since python 3.10 there Mapping is in collections.abc, quick fix would be to change:
from collections import Mapping, defaultdict

to
from collections import defaultdict

try:
    from collections.abc import Mapping
except ImportError:
    from collections import Mapping

However, I don't know if there maybe is some better way to handle this.


Update luftdaten to 3.1.0

Please update my adapter ioBroker.luftdaten to version 3.1.0.
This pull request was created by https://www.iobroker.dev c0726ff.

3.1.0 created 25.10.2023
140 user
OK


Possibility to hide the window from the taskbar/dock

I'm providing my own interface for Spotify with an AvaloniaUI application, and everything is covered through APIs from Spotify except registering a local playback device and play through this. This is only possible with the websdk:
https://developer.spotify.com/documentation/web-playback-sdk/
However as the name suggests it only works in a browser and Avalonia does not support browser like controls (without bundling 200mb chromium) This is where this create project comes to play, I already tried it out and it works absolutely fine with registering the player and having playback BUT: I kinda need to hide the window because in itself it provides no feedback its just for registering the player and having soundout, the JS will be controlled with a websocket connection between the page its displaying and the main Avalonia application.
Is it maybe possible to add the feature that the window can be hidden from the taskbar/dock?
Thanks for reading :)

Looks like there are some options to achieve that, talked about in these SO threads:
https://stackoverflow.com/questions/33538264/win32-is-it-possible-to-show-the-window-but-to-hide-it-from-taskbar
https://stackoverflow.com/questions/2157712/remove-application-from-taskbar-with-c-sharp-wrapper
https://stackoverflow.com/questions/2285860/change-win32-window-style
An implementation example can be found here:
https://www.codeproject.com/Articles/191/Creating-an-application-with-no-taskbar-icon
and here:
https://www.codeproject.com/articles/6720/how-to-hide-a-window-in-taskbar#:~:text=To hide all windows in a process you,interface to remove the window from the taskbar.
With additional documentation here:
https://learn.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles
For Mac there is an approach here:
https://stackoverflow.com/questions/23313571/hiding-the-dock-icon-without-hiding-the-menu-bar/23314366#23314366
For Linux on GTK based UI:
https://stackoverflow.com/questions/51323238/x11-create-a-window-without-showing-up-on-taskbar
Seems like something we could put on our radar to tackle in the future, unless someone would like to give it a shot and provide a PR :-)


Changed velocity equations for solitary waves in WaveTools.

The test_wavetools equations have been updated and a reference has been added.

@bchambers28 this has gone in. Thanks for spotting this


Need more config and detail.

Hello! This is a great work! I wonder if you can provide more config files for different X modal experiments.
I train the MFNet RGB-T with mit_b2 backbone, modifing the config as follow (The other part are the same as the repo):
# Dataset config
"""Dataset Path"""
C.dataset_name = 'MFNetRGBT'
C.dataset_path = osp.join(C.root_dir, 'datasets', 'MFNetRGBT')
C.rgb_root_folder = osp.join(C.dataset_path, 'RGB')
C.rgb_format = '.png'
C.gt_root_folder = osp.join(C.dataset_path, 'Label')
C.gt_format = '.png'
C.gt_transform = False
# True when label 0 is invalid, you can also modify the function _transform_gt in dataloader.RGBXDataset
# True for most dataset valid, Faslse for MFNet(?)
C.x_root_folder = osp.join(C.dataset_path, 'Thermal')
C.x_format = '.png'
C.x_is_single_channel = True # True for raw depth, thermal and aolp/dolp(not aolp/dolp tri) input
C.train_source = osp.join(C.dataset_path, "train.txt")
C.eval_source = osp.join(C.dataset_path, "test.txt")
C.is_test = False
C.num_train_imgs = 1176
C.num_eval_imgs = 393
C.num_classes = 9
C.class_names =  ["Unlabeled", "Car", "Person", "Bike", "Curve", "Car Stop", "Guardrail", "Color Cone", "Bump"]

I merge the train.txt and val.txt in MFNet dataset as train.txt and test.txt in MFNet dataset as test.txt. After that, there are 1176 train imgs and 393 eval imgs. Then I used 8x 2080Ti training.
Finally, I get the mean_IoU 58.200% , Although consistent with the paper, I found Guardrail IOU just 0.211%, far from 8.1% in paper. Then I use the weight you provide, the result is mean_IoU 58.985%, and all class IOU looks good.
So, my question is:

Is my config or seeting correct, why I use the weight you provide but get the better result than paper.
Why I trained 500 epoch, get the Guardrail IOU just 0.211%

And I'm appreciate it if you can provide more config files for different X modal experiments, so that I can understand it better.
Many thanks to your wonderful work!

Hi, thank you for your interest on our work.
I think you config is correct, however, I notice that you trained the model with 8 GPUs, so you may use a larger batch size (we set the batch size to 8, and trained on 4 2080Ti). For more implementation details of other datasets, you can refer to the appendix of our paper.
Besides, the mIoU is different in different trainings even they use the same training settings. The reason is that some categories only appears in few images on the training and testset (guardrail). The result iou of these categories will not be very robust (unbalanced dataset), and causes a difference on mIoU.

Thanks for your reply!


Pip can't find iarm

After running pip install iarm it gives the error
  Could not find a version that satisfies the requirement iarm (from versions: )
No matching distribution found for iarm```

The setup.py worked, though you may want to mention whether this python 2 or 3

iarm was added as a python package and should now be pip installable.
e92bb79b2f3965e7ead46a0d7d7d7bb463f3230d added a note in the readme saying iarm is a python 3 program.


View novo atendimento

Implementa de agendamento de novo atendimento.

Current coverage is 0.00% (diff: 0.00%)

Merging #35 into master will not change coverage

@@           master    #35   diff @@
====================================
  Files          55     41    -14
  Lines        1631   1250   -381
  Methods         0      0
  Messages        0      0
  Branches      135    115    -20
====================================
  Hits            0      0
+ Misses       1631   1250   -381
  Partials        0      0

Powered by Codecov. Last update d8f5292...d1f703c

 DEV - Implementar a view de criação de um novo atendimento.


[Pi4] Couldn't get V3D IDENT0: Invalid argument

Vulkaninfo:
Couldn't get V3D IDENT0: Invalid argument     <-----------------------------------------------
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to CreateInstance in ICD 0.  Skipping ICD.
Cannot create Vulkan instance.
/build/vulkan-tools-hvsg2w/vulkan-tools-1.1.97+dfsg1/vulkaninfo/vulkaninfo.c:918: failed with VK_ERROR_INCOMPATIBLE_DRIVER
PI 4 With FULL KMS[new kernel 5.4]
Does this mean that the externals need updated for VC6[drm headers, brcm headers]

This driver does not support the Raspberry Pi 4


HuggingFaceBgeEmbeddings error

System Info
Windows 10
langchain 0.0.279
Who can help?
@hwchase17
Information

[X] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[X] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
from langchain.embeddings import HuggingFaceBgeEmbeddings
model_name = "BAAI/bge-small-en"
model_kwargs = {'device': 'cpu'}
encode_kwargs = {'normalize_embeddings': False}
hf = HuggingFaceBgeEmbeddings(
model_name=model_name,
model_kwargs=model_kwargs,
encode_kwargs=encode_kwargs
)
Expected behavior

from langchain.embeddings import HuggingFaceBgeEmbeddings
Couldn't find HuggingFaceBgeEmbeddings

pip install -U lagchain


[10.0.x] Make error if remap ACL has more than one @action (#11911)

Backport #11911 to the 10.0.x branch.

For 10.0.x, making Warning instead of Error.
(cherry picked from commit a69662cfde90877ba9bb6049c7ec0f0730abf157)

[approve ci autest]


teach runtests.sh how to run all of the pythons

A few changes to runtests.sh:

The file is now executable, so it can be run as ./runtests.sh
When invoked without any arguments it will try to find different places where Python might be installed
When invoked with the argument fedora it will run the tests in a manner suitable for the Fedora RPM package, i.e. under both Python 2/3 and without using pip; see RH 1388294

This looks good from my PoV; where is the specfile for the rpm, out of curiosity?

Spec file is here: https://github.com/eklitzke/pyflame-rpm


Update deploy docs and add v0.0.11 example

What type of PR is this?
cleanup/documentation
Which issue does this PR fix:
Renew documentation, add new example (v0.0.11), and clear old example (v0.0.7).
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:
Testing done on this change:

Automation added to e2e:

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades. Has updating a running cluster been tested?:
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 31.82%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3169

Relevant Lines:
9959

💛  - Coveralls


Q maybe... findind default (must)    shutdown_value: 0.0   is BAD!

Klipper    issue??   seems flashing is an issue with anything other than   shutdown_value: 0.0    set.
this is NOT good...you should default to (hot end at a minimum) fans left on full power when the machine faults, to save clogs in the hot end from heat soak if the fan goes to zero when hot at fault.

I'm not sure what you mean here...Klipper does not flash any configuration values...The HW design is done in a way that during shutdown the hotend fan is automatically enabled without software request. Software request value in shutdown only works if the micro is still alive; if not, then it does not do anything...hence we have the HW implementation instead of software config.


updated citylearn installation to versioned release, figure reference

updated citylearn installation to versioned release, figure references to CityLearn master branch and text refactoring.

Ideally the notebook should run end-to-end even if the exercises are not complete. I see there is a dependency under the CityLearn Tabular Q-Learning Implementation section where random_env was defined in Exercise 1. Would you mind commenting out lines 10 in that cell, maybe with an instruction to uncomment them if Exercise 1 is complete? There are a couple additional references to random_env under Experiment 4.

I have commented out random_env with instructions to uncomment if Exercise 1 has been completed.

Thank you!