Remove statistics-based set_index logic from read_parquet

dd.read_parquet will only gather statistics for columns that either (1) have been designated as an index or (2) are being filtered. For this reason, it no longer makes sense to auto-infer an index that was not specified in the pandas metadata or by the user (via dd.read_parquet(..., index=)). By using statistics to automatically set an arbitrary sorted column as the index, we open ourselves up to problematic/surprising behavior (see https://github.com/dask-contrib/dask-sql/pull/903#discussion_r1022035461).
This PR proposes that we officially remove the logic use to automatically select an index column using statistics.

[ ] Closes #xxxx
[ ] Tests added / passed
[ ] Passes pre-commit run --all-files

cc @charlesbluca

+1 for the change itself. I don't think we should auto set the index. From a UX perspective, I could see this being a utility function answering the question "Are there sorted columns that could be useful to be an index in my dataset" but setting it automatically without opt-out appears to be strange.
This is likely breaking to some. I'm wondering if we want to communicate this somehow. How did we deal with these situations in the past?
Code also LGTM. I'm OK with merging after a brief discussion about deprecation cylce

This is likely breaking to some. I'm wondering if we want to communicate this somehow. How did we deal with these situations in the past?

Good point. Although this PR changes the code to be more consistent with documentation, I agree that some users may be expecting the "undocumented" behavior that we are trying to fix.
The good news is that the only case we are really changing here is when index=None and filters is defined. This is because we only collect min/max statistics for index columns and filtered columns anyway. Therefore, I was able to add a simple UserWarning for the case that we have detected a sorted column that is not being used as the index already (and index=None).


Incorrect type for t.File and t.Files

When using t.File or t.Files, the type is not displayed correctly.
For swagger-ui:

It does not render the endpoint params properly and gives me this error: "😱 Could not render Parameters, see the console."

For scalar:

Shows up as the literal "File"

hey @recanman thanks for reporting this issue!
we are working on adding file support for @scalar https://github.com/scalar/scalar/issues/1118


HIVE-22316: Avoid hostname resolution in LlapInputFormat

What changes were proposed in this pull request?

Making hostName field in LlapInputFormat static final
Why are the changes needed?

Improves performance by avoiding the hostname resolution every time LlapInputFormat is instantiated.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Unit and Integration tests.

LGTM. +1

Thanks @difin . Merging this PR.

Thanks @rbalamohan.


fix a flaky test

NetflixOSS » eureka » eureka-pull-requests #430 FAILURE
Looks like there's a problem with this pull request

NetflixOSS » eureka » eureka-pull-requests #431 SUCCESS
This pull request looks good


chore: Update .codegen.json with commit hash of codegen and openapi spec

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 70.887%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
4759

Relevant Lines:
6671

💛  - Coveralls


custom dataset retrieval

First of all, thank you for sharing your excellent research with the community.
I have a small question: Can you provide a tutorial or script to make UniIR compatible with custom datasets? This will provide greater help and impact to the community.

Hi,
Thank you for your kind words and interest in UniIR!
We are currently developing an API that will make UniIR easily adaptable to user-provided datasets.

Hi, Thank you for your kind words and interest in UniIR! We are currently developing an API that will make UniIR easily adaptable to user-provided datasets. I will keep you updated on our progress, and notify you as soon as the API is ready for use.

thanks! And could you provide API for inference the multimodal retrieval , which you said  in paper , Figure 3? I really need this API.

Thanks, I have an ongoing project and I'll be interested in that, too. Will be very beneficial for the community to use and cite.


Finding Papers and Grants from Direct Software Searching

@rlwhuang This is the issue where we can post ideas about a protocol for software searching:
Off the top of my head I think we should try searching GitHub + GitLab for a few journal title or common doi patterns.

Let's try to break this down by types of sources first:
Repository platforms:

Github
Gitlab

Language Libraries

CRAN
PyPi
NPM
crates.io (Rust)

Domain Repositories:

ASCL - http://ascl.net/
RopenSci
PyOpenSci (not sure if active)

I did several searches on these platforms:
https://docs.google.com/document/d/1Kdue9Luv7VtTSEUFwxkrhzyEXqoOZRwg5RI15mtOyMQ/edit?usp=sharing

Thanks Richard. A few follow ups:

I think "National Science Foundation" OR "NSF AWARD" OR "Support" AND "NSF" yields additional relevant results.
What information is available that we can or should record from these repositories? Here are some thoughts:

Name (author or PI)

Institution

Link to repository

Software Name

Software Language

Latest Commit (not entirely sure this is necessary)

Award Number (if available)


server: allows compute offering with or without constraints

Description
Problem: Custom compute offering does not allow setting min and max values for CPU and VRAM for custom VMs.
Root Cause: Custom compute offerings cannot be created with a given range of CPU number and memory instead it allows only fixed values.
Solution: createServiceOffering API has been modified to allow setting a defined range for CPU number and memory. Also, UI form for compute offering creation is provided with a new field named 'compute offering type’ with values - Fixed, Custom Constrained, Custom Constrained. It will allow creation of compute offerings either with a fixed CPU speed and memory for fixed compute offering, or with a range of CPU number and memory range for custom constrained compute offering or without predefined CPU number, CPU speed and memory for custom unconstrained compute offering.
To allow user to set CPU number, CPU speed and memory during VM deployment, UI form for VM deployment has been modified to provide controls to change these values. These controls are depicted in screenshots below for custom constrained and custom unconstrained compute offering types.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):
Create compute offering form

VM deployment form

How Has This Been Tested?

Moved https://github.com/apache/cloudstack/pull/3245


No context message

I'm always getting the following message from the bot:  I'm an assistant for answering questions. I don't have enough context to identify "it". Please provide more information.
No matter which PDF document I load or the question I ask.
Ollama server is running well, all the previous steps are working, but the bot doesn't seem able to chat on the document I loaded.

You have to use the name of the document. If you upload "test.pdf" you must ask something like "summarize test.pdf".

Can you share your question for the bot, does it relate to the uploaded file?


PRO TIP EXAMPLIFY VERSION

Sick and tired of indenting by tabbing manually?
Use the indent buttons!

I do wish Examplify can implement shortcuts for indenting and un-indenting though... how cool is that?

where are the indent buttons

do they actually care if missing a spacing or two? I remember hearing somewhere it's not important.

Are the indentation buttons the one next to the search icon on the right top? Will we get penalised for improper indentations?

Indent button is top right the one highlighted blue @lohkeyyy

wow! thank u brother <333 @quadryan

@ChounRH yes we will definitely be penalised for improper indentation that's why I'm trying to figure out where is the indent button :(( . Plus indentation will help make our code neater for ourselves and the marker :D

@lohkeyyy Okay thanks for clarifying :)

no problem bro @lohkeyyy
Admire you for helping out on github a lot!

didn't know about this tip, thanks so much!

thanks slayer hao dong!

BONUS
You can have SOC-RT delete your CodeCrunch account after the course.

Anyway on 1 May 2024, all my open issues will be closed in preparation for decluttering.
Since this forum will be closed, why not get together and clean up the forum by closing ALL our open issues?

oh wow thanks hao dong!

thank you

THANK YOU!


Study monitoring

Eliminate bottleneck created by parallel jobs updating status in studyinfo.mat

@asoplata could this be related to the slow down with 10000?

I'm not sure I understand this Issue, but no, I don't think so, since the 10,000 cell simulation I ran was a single simulation.


convert to go modules

I'm planning to make some changes, and i figured i'd upgrade this just like we did for Sopsorific.
/domain @Betterment/test_track_core @kelvin-acosta
/no-platform
cc @kelvin-acosta since you did the sopsorific one i think

<< domain LGTM!


knxd: init at 0.14.59

Description of changes
knxd is an advanced router/gateway for KNX.

Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux (cross)
[x] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 244694 run on x86_64-linux 1

1 package built:

knxd

$ results/knxd/bin/knxd --version
knxd 0.14.59

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2469

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2645


Save Maze level in Journal

In the Maze activity when the user stop the game the current level is not stored in the Journal. So at next restart the game start to the beginning.
Fixing this require also to add a new button in the toolbar to restart the game.
Source code for the Maze activity is available here: https://github.com/llaske/sugarizer/tree/dev/activities/MazeWeb.activity

Fixed in https://github.com/llaske/sugarizer/pull/270

Closed in https://github.com/llaske/sugarizer/commit/dd3c58d56981e4dfa6d94601b95d7117a3bc9241


Adds missing mxnet, pytorch, and pytorch-onnx-caffe2 integration tests

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1102/
Test FAILed.

@chester-leung Can you look into why the mxnet test is failing?

Just figured out the problem. I've committed (but not pushed) changes. Will
also need to update documentation a little bit. I'll push changes by this
week's meeting.
On Mon, Mar 12, 2018 at 11:51 PM Dan Crankshaw<EMAIL_ADDRESS>wrote:

@chester-leung https://github.com/chester-leung Can you look into why
the mxnet test is failing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ucbrise/clipper/pull/435#issuecomment-372564385, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ARrkCijkppHPYItBv-Pt1VKae2p_qPuHks5td2xggaJpZM4SoDK1
.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1130/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1133/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1168/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1221/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1225/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1227/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1229/
Test FAILed.

Jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1230/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1234/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1235/
Test FAILed.

Jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1236/
Test FAILed.

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1237/
Test FAILed.

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1238/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1239/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1240/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1241/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1242/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1243/
Test PASSed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1246/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1247/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1248/
Test FAILed.

we're experiencing some network issues from campus to the outside world.  i just ran ping github.com from one of the ubuntu workers and we're getting ~30% packet loss.

jenkins test this please


RWC problem

Hello! Recently Reddit Wallpaper Changer behaves odd. Too many requests (429). It renders the program almost completely useless. What should I do? Thanks in advance!

Me, too. Perhaps the Reddit API changes affected this application?


Fix parsing of generic type declarations in C# source files

Fixes #27235
The offending type declaration is:
class MyGreatClass : IList<int?> { ...

this is equivalent to:
class MyGreatClass : IList<Nullable<int>> { ...

The questionmark is what tripped up the current parser.

Thanks!

Cherry-picked for 3.1.1.


Odd number of characters

My best regards and thanks for your efforts with developing this tool. I'm getting two issues, maybe linked together.
If I use mi-fastboot to issue any command (even the simplest mi-fastboot devices) it just gets stuck forever and I need to terminate it by CTRL-C while if I use fastboot from Termux android-tools it works like a charm. I get the token by it then (being a Qualcomm and not a Mediatek, I've used fastboot getvar token) but when I execute get_token.sh I get the error:
Failed to decode response: Odd number of characters.
I don't know if it relates to TOKEN or DATA. Maybe TOKEN taken from fastboot (and not mi-fastboot as explained) is wrong, I don't know.
I'd like to add that I've run both mi-fastboot and fastboot as root by tsu given the advices that fastboot is working under Termux only in that way. mi-fastboot has the same behaviour no matter the level of privilege anyway.
Thanks in advance for your help and have a nice day! :)

I think you have made some mistake while pasting the account data token from the app

I can confirm that, in spite of the fact I still don't understand how it could happen given that I've double checked everything, the error was on my side as you were suggesting. Done everything again and now it 'works'. The quotation marks are because it gives me this error:
"SEVERE: Xiaomi server returned error 20031:
Error description: This device is not bound to your account
Turn on your device and bind your account to the device by going in MIUI's Settings > Developer options > Mi Unlock status
Server description: Please add your account in Settings > Developer options > Mi Unlock status."
which is UNTRUE and is exactly the same error I've got with an outdated official version (miflash_unlock-en-<IP_ADDRESS>) while with the latest miflash_unlock_en_7.6.727.43 I get the aforementioned error about device activation. I don't know what else to say.

I can confirm that, in spite of the fact I still don't understand how it could happen given that I've double checked everything, the error was on my side as you were suggesting. Done everything again and now it 'works'. The quotation marks are because it gives me this error:
"SEVERE: Xiaomi server returned error 20031: Error description: This device is not bound to your account Turn on your device and bind your account to the device by going in MIUI's Settings > Developer options > Mi Unlock status Server description: Please add your account in Settings > Developer options > Mi Unlock status."
which is UNTRUE and is exactly the same error I've got with an outdated official version (miflash_unlock-en-<IP_ADDRESS>) while with the latest miflash_unlock_en_7.6.727.43 I get the aforementioned error about device activation. I don't know what else to say.

Maybe it will be fixed by changing region

Hello again. Previously, as adviced around, I had set my region to United States. Now I've set it to my actual country and setting the region to europe for get_token.sh (it makes sense, even because the rom currently installed is an eu one) I get the same error than the newest official version:
SEVERE: Xiaomi server returned error 10013:
Error description: Unknown error: 10013
Server description: This device  is not activated, please activate it and try to unlock it again.
while with the older official versions I still get the wrong error that I need to bind my account. We're getting somewhere but I don't understand what's that activation thing.

If you have not received an SMS about mi activation from the sim card in your mobile, then that sim card will not be active in that mobile
How to check -
Settings-mi account - devices-select current device
Here shows your device active

Whenever a sim card is inserted in the mobile, a notification of Xiaomi activation service framework comes. This SMS is sent to activate the sim card for the mobile.

Thanks for your advices. This hadn't ever been a compulsory step for unlocking Xiaomis indeed I haven't ever needed to do it to successfully unlock. Just binding the account from developer options has always been enough and this was the case this time too. I can confirm your tool works just fine on HyperOS too. I've discovered that when you get the error about activation you just need to request for unlock immediately after without doing anything else: the error goes away by magic and the waiting time is displayed. If I knew it before, I hadn't wasted so much time.
Thanks for your work, help and advices and have a nice day! :)


[SPARK-43783][SPARK-43784][SPARK-43788][ML] Make MLv2 (ML on spark connect) supports pandas >= 2.0

What changes were proposed in this pull request?

Make MLv2 (ML on spark connect) supports pandas >= 2.0.
Why are the changes needed?

Supporting pandas 2.0
Does this PR introduce any user-facing change?

No.
How was this patch tested?

UT.

@itholic can you take a look please

Yeah, it's only for internal usage so should be fine


Can't override from when sending

The REST API specifies that it is possible to override "the originator that the message appears to originate from" (source: https://developers.esendex.com/api-reference#messagedispatcher) for all messages sent from a call to messagedispatcher or on a per message basis.
However, the Message type does not provide a way to specify this information even though it does allow most of the others. Is there a specific reason for this omission ?

You are right, you can override the originator of a message. I don't think there was a reason Josh purposefully omitted it. I can raise a story for the team to look at on the backlog. Alternatively if you are keen to have the feature soon I am more than happy to review a PR 😸
Thanks @lucsky

Sure thing, I'm glad you accept PRs. There you go: #5 😃

Accepted, thank you very much lucsky 🍰


Fix netns usage and improve network unit testing coverage

We first needed to fix the way we were using the netns. Indeed, it is not safe to switch to a netns, but instead we should execute a block of code inside the specified namespace.
This allowed us to avoid netns confusion and mixing with CNI plugin, and we have been able to add a new unit test relying on CNI network.

Coverage increased (+4.7%) to 67.601% when pulling db21524c522b98c9ce550ae536e876a3373ad40d on sboeuf/fix_netns into 93a59909340cab4d7ff67514586734b024cba7ed on master.


Asana automatic tagging isn't working

OS version: Windows 10 Pro
Browser version: Chrome 80.0.3987.132
Extension version: 1.60.5

Relevant integration (if any):

https://app.asana.com/
🐛 Describe the bug

When I start a timer for a task in Asana, the project populates automatically but tags never populate. I have tried it in virtually every different page/view in Asana and it never works. I have created the exact tag name in Toggl and the tags show up in the Toggl button extension dropdown list, but they never auto populate.
Expected behaviour

Tags should auto populate just like the project does when i slick the toggl button for a task in Asana.
Steps to reproduce

Simple. Using any toggl button from any view it does not work. But as the simplest of cases, see below...
Steps to reproduce the behaviour:

I click a Project to open it
Click "List" view
press the toggl button next to one of my tasks
Task name populates fine as the time description and the project auto populates but nothing populates for the tags.

Other details or context

See attached short video recording a couple examples. Also this link you can play the video but attaching in case the link doesn't work.
https://www.screencast.com/t/ZYTCXKogjZ
Toggl auto tagging issue with asana.zip

Did this get looked at by anyone? Thanks

Thanks for posting this issue @smurfman111 and sorry that there wasn't a response before now.
Good news - automatic tagging will be working in Asana very soon 😄 The issue will be updated when the extension update is released.

This feature is now available in the latest version 1.63.0 🚀
Please note that some pages in Asana don't show all of the tags associated with a task, or in some cases any tags at all, unless you click on the task to open the details. In those cases, we can't automatically add tags.


cmake, ci: Add 'Test dependency search' CI job

I've been working on a branch, which adds Qt stuff to the CMake-based build system.
However, it is possible that the package search code refactoring will be needed. Therefore, I'd like to get these CI tests in the staging branch to avoid any regressions.

Rebased.

@TheCharlatan

lgtm ACK c9a63f9
Agree that this is useful now and can eventually be dropped again.

Sorry, but this branch had to be rebased on top of the https://github.com/hebasto/bitcoin/pull/76.

Re-ACK


Prefer Map.member k to Maybe.isJust . Map.lookup k

I think this would be good to have in the default hlint config.
If not, I'd like help getting the rule to work for this code:
> import qualified Data.Maybe as Maybe
> import qualified Data.Map as Map
> -- given this code
> Maybe.isJust $ Map.lookup 1 (Map.fromList [(1,True)])
True
> -- want to recommend
> Map.member 1 (Map.fromList [(1,True)])
True

Here is what I tried as an hlint rule with HLint v2.2.11:
- error:
    name: Prefer Map.member k to Maybe.isJust . Map.lookup k
    lhs: Data.Maybe.isJust . Data.Map.lookup k
    rhs: Data.Map.member k

I wouldn't bother giving it a name - I suspect the default name it chooses (Use member) is probably better - no need to duplicate what the hint goes in the name. Do send a patch, seems very reasonable.

It's starting to look like there's an issue when attempting:
- error:
    name: Prefer member
    lhs: Data.Maybe.isJust $ Data.Map.lookup k m
    rhs: Data.Map.member k m

The rule works for most things except where the lhs function is composed into another like:
> import qualified Data.Maybe as Maybe
> import qualified Data.Map as Map
>
> let _foo = id . Maybe.isJust $ Map.lookup 1 Map.empty

The above code will not have hlint suggest anything while the code below does:
> import qualified Data.Maybe as Maybe
> import qualified Data.Map as Map
>
> let _foo = Maybe.isJust $ Map.lookup 1 Map.empty

Use brackets rather than $ in the LHS. I'd also drop the name entirely, it should be roughly the same.

- error:
    name: Prefer member
    lhs: Data.Maybe.isJust (Data.Map.lookup k m)
    rhs: Data.Map.member k m

Produces the same error, a composed function does not catch the LHS while a not composed function does.

There are two things here. The hint itself, which looks fine and I'd happy take as a PR. And where the hint applies. I've split the question of where the hint applies to another issue, #890, since it's general to all hints.

Happily the issue in #890 got resolved, so all we're in need of is the actual hint itself.


Update dependencies + loosen dependency requirements

Thanks for this!  I was just about to submit a PR to bump blizzapi, having spent a while debugging the auth issues I was seeing.  Thanks for being so on top of it. :D

@mwcz no problem :) Yeah, Blizzard broke their OAuth authentication flow in a very anticlimactic way. :(


CardAction Value is displayed when clicked

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
Microsoft.Bot.Builder 4.0.7
Bot Framework Emulator (V4 PREVIEW) version: 4.0.0-preview.40025
Describe the bug
I'm using a carousel with many ThumbnailCard, and each thumbnail has a CardAction button, to add the item to the basket. The code for the creating the CardAction goes like this:
CardAction addToBasketButton = new CardAction()
{
    Value = $@"{{ 'ActionType': '{BotActionTypes.AddBasket}', 'ProductId': '{catalogItem.Id}' , 'ProductName': '{catalogItem.Name}', 'PictureUrl': '{catalogItem.PictureUri}', 'UnitPrice': '{catalogItem.Price}'}}",
    Type = ActionTypes.ImBack,
    Title = "Add to cart",
    DisplayText = $"{catalogItem.Name} added to cart"
};

In previous BotFramework version, I could use this "trick" to get back to the bot the item that was clicked in the carousel. But in v.4, when you click in the button, the Value is then displayed in the emulator (see attached screenshot), what doesn't look nice at all. I tested with several settings, removing/setting values in Title, DisplayText, Value and Type, but to no avail. Is this a bug or a feature?
To Reproduce
Steps to reproduce the behavior:
Check code in previous section
Expected behavior
In v.3 and old emulator, when the CardAction was clicked, the Value was not print out. I was expecting same behaviour now. I'd better to show Title or DisplayText values
Screenshots

Additional context
Add any other context about the problem here.
[bug]

I can ask you the same thing: is there any reason you advise  me to use an AdaptiveCard? In my case, I use a ThumbnailCard because I don't need anything else but the thumbnail, a couple of lines and the button.
Although this doesn't hide the fact that the value is displayed in the emulator: is this a bug or is by design?? And the problem is that maybe I'm not the only one using this approach in the Value field, so this could provoke a bug when migrating bots to the new framework.
But also I really appreciate your help and suggestions, and by that, if you suggest me I could solve this problem using an AdaptiveCard, I can take another approach to solve problem
thanks

As I understand it, Adaptive Cards were meant to unify and replace the other types of rich cards and are recommended in all cases. Therefore we might expect them to be better supported. Go ahead and give them a try and see if that fixes things.

@FrancescaLazzeri sorry for the delay. You should be using PostBack not ImBack if you don't want the value displayed.

I'm testing with the release version 4.0.7, and I tested with PostBack and ImBack, and the result is the same: the Value is displayed when the button is clicked. Are you testing the nightly version?

adding @compulim to comment as PostBack should definitely not be rendering the value to the user.

Thanks @Stevenic for the clarifications.
We have the correct behavior in Web Chat v4. But it repro on v3, will ask PM to prioritize on this.
https://github.com/Microsoft/BotFramework-WebChat/issues/1431

@franperezlopez @stevenic I checked postBack is working properly and will hide the result.
Repro
This repro is tested using Web Chat v3, which Emulator v4 is currently using.
We ran another test on Web Chat v4 earlier, and it is also no repro. As this bug is targeting Emulator v4, I am only including Web Chat v3 repro steps here.
postBack card action
postBack card action does not show the JSON value appears to be sent by the user. After clicking on the button, MockBot v3 will echo back the post back value, as the second bubble. Note this bubble is from the bot and is a feature from MockBot v3 (echo-ing back everything it receive from the user).

{
  "value": "{{ 'ActionType': '{BotActionTypes.AddBasket}', 'ProductId': '{catalogItem.Id}' , 'ProductName': '{catalogItem.Name}', 'PictureUrl': '{catalogItem.PictureUri}', 'UnitPrice': '{catalogItem.Price}'}}",
  "type": "postBack",
  "title": "Add to cart (postback)",
  "displayText": "{catalogItem.Name} added to cart"
}

imBack card action
imBack card action do show the JSON value appears to be sent by the user. After clicking on the button, the second bubble is the JSON value sent by the user. And the third bubble is what MockBot echoed back.

{
  "value": "{{ 'ActionType': '{BotActionTypes.AddBasket}', 'ProductId': '{catalogItem.Id}' , 'ProductName': '{catalogItem.Name}', 'PictureUrl': '{catalogItem.PictureUri}', 'UnitPrice': '{catalogItem.Price}'}}",
  "type": "imBack",
  "title": "Add to cart (imback)",
  "displayText": "{catalogItem.Name} added to cart"
}

One more thing, you can use anonymous type object as the value to simplify your code. The value property support any types, not only strings.
Closing as no repro.

@compulim @Stevenic @cleemullins I see this has been closed?  However, I am still seeing this behaviour - can you let me know if this is a known issue at least with the emulator?
I am using a choice prompt as below and when I click one of the choice, the value is displayed back in the chat window, instead of the text or displayText.

                return await sc.PromptAsync(DialogIds.GuidedChoicePrompt, new PromptOptions()
                {
                    Prompt = sc.Context.Activity.CreateReply("Which one would you like?"),
                    Choices = categoriesToPrompt.Select(c => new Choice
                    {
                        Value = c.Id.ToString(),
                        Action = new CardAction(ActionTypes.ImBack, title: c.Name, value: c.Id.ToString(), displayText: c.Name),
                    }).ToList()
                });

Thanks - and happy new year!

Hi @garypretty
I've learned a bit more about cards since the time I was originally assigned this issue in October :)
I've found that a lot of people have this confusion because it seems like the Value property of a CardAction should correspond to the Value property of an Activity. This is not the case. The Value property of a card action serves the purpose of providing an argument that pertains specifically to whatever the action type is. As William said, the ImBack action is intended to send a message on the user's behalf as though the user typed that message, so in that case the Value property provides the text for that message. This is expected behavior and by design.
Happy New Year!
~ Kyle

Thanks for the response. Very helpful and makes sense.
Gary
Get Outlook for Androidhttps://aka.ms/ghei36

From: Kyle Delaney<EMAIL_ADDRESS>Sent: Wednesday, January 2, 2019 10:11:04 PM
To: Microsoft/botbuilder-dotnet
Cc: Gary Pretty; Mention
Subject: Re: [Microsoft/botbuilder-dotnet] CardAction Value is displayed when clicked (#1020)
Hi @garyprettyhttps://github.com/garypretty
I've learned a bit more about cards since the time I was originally assigned this issue in October :)
I've found that a lot of people have this confusion because it seems like the Value property of a CardAction should correspond to the Value property of an Activity. This is not the case. The Value property of a card action serves the purpose of providing an argument that pertains specifically to whatever the action type is. As William said, the ImBack action is intended to send a message on the user's behalf as though the user typed that message, so in that case the Value property provides the text for that message. This is expected behavior and by design.
Happy New Year!
~ Kyle
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/botbuilder-dotnet/issues/1020#issuecomment-451001182, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADuE6VhN3q6yUSuHgxwYkImpBt9y4xjmks5u_S54gaJpZM4XX9io.


fix: Remove unused var from BYBO example

chore: Remove unused var from BYBO example

This PR is included in version 1.20.2 :tada:


Fix cut off full width glyphs in last column

This resolves the issue with full width glyphs getting rendered in the
last column. Since they need at least two glyphs, it is not possible to
properly render them in the last column.
Instead of rendering half of the glyph in the last column, with the
other half cut off, an additional spacer is now inserted before the wide
glyph. This means that the specific glyph in question is then three
cells wide.
Fixes #2385.

Seems like the performance of this PR is actually better than before, after some minor tweaks.
Waiting for @kchibisov before merge, since he wanted to take a look..

There's a strange bug in bash. I've created a url with these symbols, and then start moving it to the new line. The space, that you can see wasn't added by me. and in fact if I move back to an original line everything will be the same. You can also see that a cursor is broken.

Moving double width chars(test this with URL) is inconsistent a bit. Sometimes you move entire chars and adding a space, sometimes they moved only half way, resulting a broken highlighting most of the time. To test this thing place a url
https://こんにち in the end of line in bash and start moving it through the end by char and highlight it. You should see that chars sometimes are not fully underlined or not moving to the next line, etc, etc. I guess selection across multiple lines not always working for double width chars is kind of related to that.

What do you mean by moving it and how does this behave before this patch?
I can't reproduce it, though I'm not sure I understand what you mean.

The performance of this branch is questionable btw.
Master:
nightly asrw 6.00107 +- 0.00357 seconds time elapsed  ( +-  0.06% )
stable  asrw 6.36960 +- 0.00118 seconds time elapsed  ( +-  0.02% )

PR:
nightly asrw 6.35584 +- 0.00284 seconds time elapsed  ( +-  0.04% )
stable asrw 5.84472 +- 0.00150 seconds time elapsed  ( +-  0.03% )

I mean it feels like there's a "flip" in rustc, since there's something similar between this benchmark results. I'm not sure what we should do about it, probably nothing, but ideally we can figure out what is causing this results and tune to be the same as our master. And I'm sure that I was benchmarking the right terminals.

@chrisduerr I hope these gifs can help you with my comment.
PR:

master:

The performance of this branch is questionable btw.

Which nightly are you running?

@chrisduerr I hope these gifs can help you with my comment.

Thanks, I wasn't aware this is about URL highlighting.

@chrisduerr rustc 1.41.0-nightly (c8ea4ace9 2019-12-14)

@kchibisov I still can't reproduce the bash issue with URLs btw. It is also noteworthy that both ZSH and bash seem to do their own custom shenanigans when double-width chars are in the last column.

The 2 bugs I've mentioned were the bugs related to my old (bash-4.4.23), the bash 5.0.11 is fine (at least on my 2 examples ;- )).

@kchibisov reflow should now behave correctly, feel free to give that another shot if you have some time.
I think the functionality should be in a good place now, though I have to test everything again just to make sure. I still need to clean up the grow_cols and shrink_cols methods since they're pretty massive now, but that shouldn't affect functionality.

I wasn't really able to clean up the shrink_cols and grow_cols methods much, since there's a lot to them and moving things into other functions quickly leads to massive lists of parameters with issues about multiple mutable borrowers.
Likely the only way to clean this up significantly would be to rewrite it, but I don't want to make such big changes in this PR and I'm not sure if that would improve anything. So I think it should be fine for now hopefully.
I've made some fixes to the behavior of shrinking column which should now hopefully give us fully accurate shrinking and growing behavior. I've also copied VTE's behavior of not performing this kind of reflow in the alt screen, which I think makes sense.


[WIP / don't merge] Fix publishing unit test reports

(PR was just for testing the CI pipeline. close)


Confirm dialog dont show correctly on mobile

Overview of the problem
Buefy version: latest
Vuejs version: latest
OS/Browser: ios/safari
Description
Confirm dialog dont show correctly on mobile
Steps to reproduce

Open "https://buefy.github.io/?#/documentation/dialog" on safari on iOS
Click on "Confirm default" button.

Now i think it is a more generic problem. Tested on mac/safari, same problem.

You mean the 'OK' is disaligned? Could you try to debug for me whats the cause of the problem? I don't have mac to test it.

I solve the problem setting "display:inline" on the footer buttons:

Take a look at the PR, display: table-cell on buttons, will be fixed in next release.

Ok, have any date to next release? I want launch my new tool version with it fixed too. Thanks.


Wifi icon

Describe the bug
Sometimes there is no internet and when the internet is back to normal, the icon of the Wi-Fi still says that there is no Wi-Fi. Also when the internet connection is bad, and when the internet connection is back good, it still says that the Wi-Fi is bad
Expected behavior
When the Wi-Fi is bad and back good after sometime, please say that it is good already in the icon and when there is no Wi-Fi and the Wi-Fi is back after sometime, please say that the Wi-Fi is back
System information:

Windows version: Windows 10 Home Single Language
Cairo version: <IP_ADDRESS>95
32-bit or 64-bit: 64-bit
In Cairo Settings > Advanced, is Cairo set as shell?: Yes

Describe the bug
Sometimes there is no internet and when the internet is back to normal, the icon of the Wi-Fi still says that there is no Wi-Fi. Also when the internet connection is bad, and when the internet connection is back good, it still says that the Wi-Fi is bad
Expected behavior
When the Wi-Fi is bad and back good after sometime, please say that it is good already in the icon and when there is no Wi-Fi and the Wi-Fi is back after sometime, please say that the Wi-Fi is back
System information:

Windows version: Windows 10 Home Single Language
Cairo version: <IP_ADDRESS>95
32-bit or 64-bit: 64-bit
In Cairo Settings > Advanced, is Cairo set as shell?: Yes


NVIDIA Ampere (30x0) support

Are there any plans to add support for the NVIDIA Ampere architecture in the new 30x0 series GPUs?

Are there any plans to add support for the NVIDIA Ampere architecture in the new 30x0 series GPUs?

Hello @lemketron, the Ampere architecture support is already WIP in master HEAD.  Just run dev_start.sh --dist testing to experiment with it.

Are there any plans to add support for the NVIDIA Ampere architecture in the new 30x0 series GPUs?

Hello @lemketron, the Ampere architecture support is already WIP in master HEAD. Just run dev_start.sh --dist testing to experiment with it.

Can I understand that it has been supported?

Are there any plans to add support for the NVIDIA Ampere architecture in the new 30x0 series GPUs?

Hello @lemketron, the Ampere architecture support is already WIP in master HEAD. Just run dev_start.sh --dist testing to experiment with it.

Can I understand that it has been supported?

Experimental support only. We haven't checked that everything works well with this testing Docker. It needs time to stablize...

@storypku would you be able to share which Ampere architecture cards you guys have tested with? I'm specifically interested in knowing if the RTX 3060Ti is able to run Apollo.

@storypku would you be able to share which Ampere architecture cards you guys have tested with? I'm specifically interested in knowing if the RTX 3060Ti is able to run Apollo.

@storypku would you be able to share which Ampere architecture cards you guys have tested with? I'm specifically interested in knowing if the RTX 3060Ti is able to run Apollo.

Hi @hadiTab , sorry for the late reply. I am currently running Apollo on an RTX 3090, and I believe that Apollo should work smoothly on RTX 3060Ti cards.

@storypku would you be able to share which Ampere architecture cards you guys have tested with? I'm specifically interested in knowing if the RTX 3060Ti is able to run Apollo.

Hi @hadiTab , sorry for the late reply. I am currently running Apollo on an RTX 3090, and I believe that Apollo should work smoothly on RTX 3060Ti cards.

Hi there,
I am trying to build Apollo on a RTX3090 however I get the following error during the build.
nvcc fatal : Unsupported gpu architecture 'compute_86'
I have following driver specs
NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2
nvcc: release 10.1, V10.1.243
Thank you for your help

Hi there,
I am trying to build Apollo on a RTX3090 however I get the following error during the build.
nvcc fatal : Unsupported gpu architecture 'compute_86'
I have following driver specs
NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2
nvcc: release 10.1, V10.1.243
Thank you for your help

Hi there,
I am trying to build Apollo on a RTX3090 however I get the following error during the build.
nvcc fatal : Unsupported gpu architecture 'compute_86'
I have following driver specs
NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2
nvcc: release 10.1, V10.1.243
Thank you for your help

SOLVED: Even though nvidia-smi was telling me that it used CUDA 11.2, the apollo built was using  CUDA 10.0
Changed CUDA version to 11.2 and Apollo is now running on a RTX3090

Hi there,
I am trying to build Apollo on a RTX3090 however I get the following error during the build.
nvcc fatal : Unsupported gpu architecture 'compute_86'
I have following driver specs
NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2
nvcc: release 10.1, V10.1.243
Thank you for your help

SOLVED: Even though nvidia-smi was telling me that it used CUDA 11.2, the apollo built was using  CUDA 10.0
Changed CUDA version to 11.2 and Apollo is now running on a RTX3090

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.


Use -H for hostname in CLI; use -h for help

I think using -h to display help is a better UX than what we have currently. I propose to use capital -H for host names and a capital -P for ports (for symmetry with -H).

Fixed by #1039


deprecate python 3.8, test all versions

test that the library is working with all python versions, and consider deprecating 3.8 support, since it's gonna have punishing build-times for users with newer python versions.

@ctdegroot, do you still need this library to support Python 3.8, or would it be ok to upgrade to 3.9 now?

I am ok with moving to 3.9. Thanks for checking.
On Thu, Dec 05, 2024 at 11:09 AM, zargot<EMAIL_ADDRESS>wrote:
@ctdegroothttps://github.com/ctdegroot, do you still need this library to support Python 3.8, or would it be ok to upgrade to 3.9 now?
—
Reply to this email directly, view it on GitHubhttps://github.com/Big-Life-Lab/PHES-ODM-Validation/issues/230#issuecomment-2520788979, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSTJVMSMKAP2NL2EUV3IBD2EB3C3AVCNFSM6AAAAABRSKPBSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRQG44DQOJXHE.
You are receiving this because you were mentioned.Message ID: @.***>

I am ok with moving to 3.9. Thanks for checking.

Great! Thanks for letting me know.


Eliminate Scala warnings in Spark module

Eliminate Scala warnings in Spark module. Issue for PR #478

Fixed in master.


NewPCT fixed

Fixed urlrewrite. You can use newpct or newpct1 feed, for users that have newpct blocked by their ISP.

@malkavi any updates on this?

I can't make it work without using entry['urls'] instead of entry['url']
I don't know where is the problem.

We need an update to latest develop and a bit more investigation in the comments if we are going to merge this.


[For Review] Spark 2.1 PR

What changes were proposed in this pull request?
Just for review, since I can't find a better way.

Reason for "FileFormatWriter extends Serializable"
Caused by: java.io.NotSerializableException: org.apache.spark.sql.execution.datasources.FileFormatWriter
Serialization stack:

object not serializable (class: org.apache.spark.sql.execution.datasources.FileFormatWriter, value: org.apache.spark.sql.execution.datasources.FileFormatWriter@7856f41a)
field (class: org.apache.spark.sql.execution.datasources.FileFormatWriter$$anonfun$write$1, name: $outer, type: class org.apache.spark.sql.execution.datasources.FileFormatWriter)
object (class org.apache.spark.sql.execution.datasources.FileFormatWriter$$anonfun$write$1, )
field (class: org.apache.spark.sql.execution.datasources.FileFormatWriter$$anonfun$write$1$$anonfun$3, name: $outer, type: class org.apache.spark.sql.execution.datasources.FileFormatWriter$$anonfun$write$1)
object (class org.apache.spark.sql.execution.datasources.FileFormatWriter$$anonfun$write$1$$anonfun$3, )
at org.apache.spark.serializer.SerializationDebugger$.improveException(SerializationDebugger.scala:40)
at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:46)
at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:100)
at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:295)
... 78 more

@adrian-wang @yueawang @lee-lei
Hi,
This PR is ready to merge.
I think we can merge it first. I will keep on reviewing and fixing the code style issues.

Close this. Use #337 instead


Submitting Multiple solutions to same Question

when submitting various answers codes to same problem, save it in different branch so that all the solution codes are available.

when submitting various answers codes to same problem, save it in different branch so that all the solution codes are available.

IMHO you can view all those solutions anytime by referring to the file history.
This will be more useful to you, as you get to see exact changes in your code too.

Thanks. You are doing a great job. :)


Highlight containers on select & hover like space views

I’d expect a blue rectangle around the selected container and the usual grey ones on hover. Right now there's no feedback, meaning that when one creates several empty containers it's easy to loose track which one is which

This got fixed in 0.17!


CMake Error, cannot find: boost_python37

Hi there, I am trying to work with Object detection on a Jetson NX Xavier computer and ran into the issue with boost when doing: catkin_make -DCMAKE_BUILD_TYPE=Release. I'd appreciate any help. The following is the error:
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
No header defined for python37; skipping header check
Call Stack (most recent call first):
vision_opencv/cv_bridge/CMakeLists.txt:11 (find_package)
CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message):
Unable to find the requested Boost libraries.
Boost version: 1.65.1
Boost include path: /usr/include
Could not find the following Boost libraries:
      boost_python37

No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
vision_opencv/cv_bridge/CMakeLists.txt:11 (find_package)
-- Found OpenCV: /usr (found suitable version "4.1.1", minimum required is "4") found components:  opencv_core opencv_imgproc opencv_imgcodecs
-- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found suitable version "2.7.17", minimum required is "2.7")
-- +++ processing catkin package: 'darknet_ros_msgs'
-- ==> add_subdirectory(darknet_ros/darknet_ros_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Generating .msg files for action darknet_ros_msgs/CheckForObjects /home/a07/catkin_ws/src/darknet_ros/darknet_ros_msgs/action/CheckForObjects.action
-- darknet_ros_msgs: 10 messages, 0 services
-- +++ processing catkin package: 'image_geometry'
-- ==> add_subdirectory(vision_opencv/image_geometry)
-- Found OpenCV: /usr (found version "4.1.1")
-- +++ processing catkin package: 'darknet_ros'
-- ==> add_subdirectory(darknet_ros/darknet_ros)
-- Darknet path dir = /home/a07/catkin_ws/src/darknet_ros/darknet
-- CUDA Version:
-- CUDA Libararies: /usr/local/cuda/lib64/libcudart_static.a;-lpthread;dl;/usr/lib/aarch64-linux-gnu/librt.so
-- Searching for X11...
--  X11_INCLUDE_DIR: /usr/include
--  X11_LIBRARIES: /usr/lib/aarch64-linux-gnu/libSM.so/usr/lib/aarch64-linux-gnu/libICE.so/usr/lib/aarch64-linux-gnu/libX11.so/usr/lib/aarch64-linux-gnu/libXext.so
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   thread
--   chrono
--   system
--   date_time
--   atomic
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Checking and downloading yolov2-tiny.weights if needed ...
-- Checking and downloading yolov3.weights if needed ...
-- Checking and downloading yolov2.weights if needed ...
-- Configuring incomplete, errors occurred!
See also "/home/a07/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/a07/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

Can you try with the recently updated version?

Feel free to reply.

Hello, I have tried recently and have the same problem using the jetson nano.

Hi there, I am trying to work with Object detection on a Jetson NX Xavier computer and ran into the issue with boost when doing: catkin_make -DCMAKE_BUILD_TYPE=Release. I'd appreciate any help. The following is the error:
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message): No header defined for python37; skipping header check Call Stack (most recent call first): vision_opencv/cv_bridge/CMakeLists.txt:11 (find_package)
CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message): Unable to find the requested Boost libraries.
Boost version: 1.65.1
Boost include path: /usr/include
Could not find the following Boost libraries:
      boost_python37

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): vision_opencv/cv_bridge/CMakeLists.txt:11 (find_package)
-- Found OpenCV: /usr (found suitable version "4.1.1", minimum required is "4") found components: opencv_core opencv_imgproc opencv_imgcodecs -- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found suitable version "2.7.17", minimum required is "2.7") -- +++ processing catkin package: 'darknet_ros_msgs' -- ==> add_subdirectory(darknet_ros/darknet_ros_msgs) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Generating .msg files for action darknet_ros_msgs/CheckForObjects /home/a07/catkin_ws/src/darknet_ros/darknet_ros_msgs/action/CheckForObjects.action -- darknet_ros_msgs: 10 messages, 0 services -- +++ processing catkin package: 'image_geometry' -- ==> add_subdirectory(vision_opencv/image_geometry) -- Found OpenCV: /usr (found version "4.1.1") -- +++ processing catkin package: 'darknet_ros' -- ==> add_subdirectory(darknet_ros/darknet_ros) -- Darknet path dir = /home/a07/catkin_ws/src/darknet_ros/darknet -- CUDA Version: -- CUDA Libararies: /usr/local/cuda/lib64/libcudart_static.a;-lpthread;dl;/usr/lib/aarch64-linux-gnu/librt.so -- Searching for X11... -- X11_INCLUDE_DIR: /usr/include -- X11_LIBRARIES: /usr/lib/aarch64-linux-gnu/libSM.so/usr/lib/aarch64-linux-gnu/libICE.so/usr/lib/aarch64-linux-gnu/libX11.so/usr/lib/aarch64-linux-gnu/libXext.so -- Boost version: 1.65.1 -- Found the following Boost libraries: -- thread -- chrono -- system -- date_time -- atomic -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Checking and downloading yolov2-tiny.weights if needed ... -- Checking and downloading yolov3.weights if needed ... -- Checking and downloading yolov2.weights if needed ... -- Configuring incomplete, errors occurred! See also "/home/a07/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/a07/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

Have you solved the problem yet?


Switch to Visual Studio for building Windows Glulxe

libxml2 will be needed for the Glulxe debugger.

Created a separate repository for Windows Glulxe, see https://github.com/DavidKinder/Windows-Glulxe


⚠ Samsung has degraded performance

In 0f592b4, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2475 ms

Resolved: Samsung performance has improved in 5f63fce.


Model 'text-unicorn' returns error "ResourceExhausted: 429 Quota exceeded" with langchain-google-vertexai versions >= 1.0.4

While running the following script:
from langchain_google_vertexai import VertexAI
llm = VertexAI(model_name="text-unicorn@001")
llm.invoke("Hello, what is your name?")

It prints the following:
Retrying langchain_google_vertexai.llms._completion_with_retry.<locals>._completion_with_retry_inner in 4.0 seconds as it raised ResourceExhausted: 429 Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai..
Retrying langchain_google_vertexai.llms._completion_with_retry.<locals>._completion_with_retry_inner in 4.0 seconds as it raised ResourceExhausted: 429 Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai..
Retrying langchain_google_vertexai.llms._completion_with_retry.<locals>._completion_with_retry_inner in 4.0 seconds as it raised ResourceExhausted: 429 Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai..
Retrying langchain_google_vertexai.llms._completion_with_retry.<locals>._completion_with_retry_inner in 8.0 seconds as it raised ResourceExhausted: 429 Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai..
Retrying langchain_google_vertexai.llms._completion_with_retry.<locals>._completion_with_retry_inner in 10.0 seconds as it raised ResourceExhausted: 429 Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai..

Then returns the error:
---------------------------------------------------------------------------
_InactiveRpcError                         Traceback (most recent call last)
File ~/path/to/venv/lib64/python3.11/site-packages/google/api_core/grpc_helpers.py:76, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs)
     75 try:
---> 76     return callable_(*args, **kwargs)
     77 except grpc.RpcError as exc:

File ~/path/to/venv/lib64/python3.11/site-packages/grpc/_channel.py:1181, in _UnaryUnaryMultiCallable.__call__(self, request, timeout, metadata, credentials, wait_for_ready, compression)
   1175 (
   1176     state,
   1177     call,
   1178 ) = self._blocking(
   1179     request, timeout, metadata, credentials, wait_for_ready, compression
   1180 )
-> 1181 return _end_unary_response_blocking(state, call, False, None)

File ~/path/to/venv/lib64/python3.11/site-packages/grpc/_channel.py:1006, in _end_unary_response_blocking(state, call, with_call, deadline)
   1005 else:
-> 1006     raise _InactiveRpcError(state)

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.RESOURCE_EXHAUSTED
	details = "Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:<IP_ADDRESS>:443 {created_time:"2024-07-05T07:30:56.642365345+00:00", grpc_status:8, grpc_message:"Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai."}"
>

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

ResourceExhausted                         Traceback (most recent call last)
Cell In[1], line 3
      1 from module_name import VertexAI
      2 llm = VertexAI(model_name="text-unicorn@001")
----> 3 llm.invoke("Hello, what is your name?")

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_core/language_models/llms.py:276, in BaseLLM.invoke(self, input, config, stop, **kwargs)
    266 def invoke(
    267     self,
    268     input: LanguageModelInput,
   (...)
    272     **kwargs: Any,
    273 ) -> str:
    274     config = ensure_config(config)
    275     return (
--> 276         self.generate_prompt(
    277             [self._convert_input(input)],
    278             stop=stop,
    279             callbacks=config.get("callbacks"),
    280             tags=config.get("tags"),
    281             metadata=config.get("metadata"),
    282             run_name=config.get("run_name"),
    283             run_id=config.pop("run_id", None),
    284             **kwargs,
    285         )
    286         .generations[0][0]
    287         .text
    288     )

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_core/language_models/llms.py:633, in BaseLLM.generate_prompt(self, prompts, stop, callbacks, **kwargs)
    625 def generate_prompt(
    626     self,
    627     prompts: List[PromptValue],
   (...)
    630     **kwargs: Any,
    631 ) -> LLMResult:
    632     prompt_strings = [p.to_string() for p in prompts]
--> 633     return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_core/language_models/llms.py:803, in BaseLLM.generate(self, prompts, stop, callbacks, tags, metadata, run_name, run_id, **kwargs)
    788 if (self.cache is None and get_llm_cache() is None) or self.cache is False:
    789     run_managers = [
    790         callback_manager.on_llm_start(
    791             dumpd(self),
   (...)
    801         )
    802     ]
--> 803     output = self._generate_helper(
    804         prompts, stop, run_managers, bool(new_arg_supported), **kwargs
    805     )
    806     return output
    807 if len(missing_prompts) > 0:

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_core/language_models/llms.py:670, in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs)
    668     for run_manager in run_managers:
    669         run_manager.on_llm_error(e, response=LLMResult(generations=[]))
--> 670     raise e
    671 flattened_outputs = output.flatten()
    672 for manager, flattened_output in zip(run_managers, flattened_outputs):

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_core/language_models/llms.py:657, in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs)
    647 def _generate_helper(
    648     self,
    649     prompts: List[str],
   (...)
    653     **kwargs: Any,
    654 ) -> LLMResult:
    655     try:
    656         output = (
--> 657             self._generate(
    658                 prompts,
    659                 stop=stop,
    660                 # TODO: support multiple run managers
    661                 run_manager=run_managers[0] if run_managers else None,
    662                 **kwargs,
    663             )
    664             if new_arg_supported
    665             else self._generate(prompts, stop=stop)
    666         )
    667     except BaseException as e:
    668         for run_manager in run_managers:

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_google_vertexai/llms.py:231, in VertexAI._generate(self, prompts, stop, run_manager, stream, **kwargs)
    229     generations.append([generation])
    230 else:
--> 231     res = _completion_with_retry(
    232         self,
    233         [prompt],
    234         stream=should_stream,
    235         is_gemini=self._is_gemini_model,
    236         run_manager=run_manager,
    237         **params,
    238     )
    239     if self._is_gemini_model:
    240         usage_metadata = res.to_dict().get("usage_metadata")

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_google_vertexai/llms.py:70, in _completion_with_retry(llm, prompt, stream, is_gemini, run_manager, **kwargs)
     67         return llm.client.predict(prompt[0], **kwargs)
     69 with telemetry.tool_context_manager(llm._user_agent):
---> 70     return _completion_with_retry_inner(prompt, is_gemini, **kwargs)

File ~/path/to/venv/lib64/python3.11/site-packages/tenacity/__init__.py:336, in BaseRetrying.wraps.<locals>.wrapped_f(*args, **kw)
    334 copy = self.copy()
    335 wrapped_f.statistics = copy.statistics  # type: ignore[attr-defined]
--> 336 return copy(f, *args, **kw)

File ~/path/to/venv/lib64/python3.11/site-packages/tenacity/__init__.py:475, in Retrying.__call__(self, fn, *args, **kwargs)
    473 retry_state = RetryCallState(retry_object=self, fn=fn, args=args, kwargs=kwargs)
    474 while True:
--> 475     do = self.iter(retry_state=retry_state)
    476     if isinstance(do, DoAttempt):
    477         try:

File ~/path/to/venv/lib64/python3.11/site-packages/tenacity/__init__.py:376, in BaseRetrying.iter(self, retry_state)
    374 result = None
    375 for action in self.iter_state.actions:
--> 376     result = action(retry_state)
    377 return result

File ~/path/to/venv/lib64/python3.11/site-packages/tenacity/__init__.py:418, in BaseRetrying._post_stop_check_actions.<locals>.exc_check(rs)
    416 retry_exc = self.retry_error_cls(fut)
    417 if self.reraise:
--> 418     raise retry_exc.reraise()
    419 raise retry_exc from fut.exception()

File ~/path/to/venv/lib64/python3.

11/site-packages/tenacity/__init__.py:185, in RetryError.reraise(self)
    183 def reraise(self) -> t.NoReturn:
    184     if self.last_attempt.failed:
--> 185         raise self.last_attempt.result()
    186     raise self

File /usr/lib64/python3.11/concurrent/futures/_base.py:449, in Future.result(self, timeout)
    447     raise CancelledError()
    448 elif self._state == FINISHED:
--> 449     return self.__get_result()
    451 self._condition.wait(timeout)
    453 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:

File /usr/lib64/python3.11/concurrent/futures/_base.py:401, in Future.__get_result(self)
    399 if self._exception:
    400     try:
--> 401         raise self._exception
    402     finally:
    403         # Break a reference cycle with the exception in self._exception
    404         self = None

File ~/path/to/venv/lib64/python3.11/site-packages/tenacity/__init__.py:478, in Retrying.__call__(self, fn, *args, **kwargs)
    476 if isinstance(do, DoAttempt):
    477     try:
--> 478         result = fn(*args, **kwargs)
    479     except BaseException:  # noqa: B902
    480         retry_state.set_exception(sys.exc_info())  # type: ignore[arg-type]

File ~/path/to/venv/lib64/python3.11/site-packages/langchain_google_vertexai/llms.py:58, in _completion_with_retry.<locals>._completion_with_retry_inner(prompt, is_gemini, **kwargs)
     53 @retry_decorator
     54 def _completion_with_retry_inner(
     55     prompt: List[Union[str, Image]], is_gemini: bool = False, **kwargs: Any
     56 ) -> Any:
     57     if is_gemini:
---> 58         return llm.client.generate_content(
     59             prompt,
     60             stream=stream,
     61             safety_settings=kwargs.pop("safety_settings", None),
     62             generation_config=kwargs,
     63         )
     64     else:
     65         if stream:

File ~/path/to/venv/lib64/python3.11/site-packages/vertexai/generative_models/_generative_models.py:524, in _GenerativeModel.generate_content(self, contents, generation_config, safety_settings, tools, tool_config, stream)
    516     return self._generate_content_streaming(
    517         contents=contents,
    518         generation_config=generation_config,
   (...)
    521         tool_config=tool_config,
    522     )
    523 else:
--> 524     return self._generate_content(
    525         contents=contents,
    526         generation_config=generation_config,
    527         safety_settings=safety_settings,
    528         tools=tools,
    529         tool_config=tool_config,
    530     )

File ~/path/to/venv/lib64/python3.11/site-packages/vertexai/generative_models/_generative_models.py:613, in _GenerativeModel._generate_content(self, contents, generation_config, safety_settings, tools, tool_config)
    588 """Generates content.
    589
    590 Args:
   (...)
    604     A single GenerationResponse object
    605 """
    606 request = self._prepare_request(
    607     contents=contents,
    608     generation_config=generation_config,
   (...)
    611     tool_config=tool_config,
    612 )
--> 613 gapic_response = self._prediction_client.generate_content(request=request)
    614 return self._parse_response(gapic_response)

File ~/path/to/venv/lib64/python3.11/site-packages/google/cloud/aiplatform_v1beta1/services/prediction_service/client.py:2287, in PredictionServiceClient.generate_content(self, request, model, contents, retry, timeout, metadata)
   2284 self._validate_universe_domain()
   2286 # Send the request.
-> 2287 response = rpc(
   2288     request,
   2289     retry=retry,
   2290     timeout=timeout,
   2291     metadata=metadata,
   2292 )
   2294 # Done; return the response.
   2295 return response

File ~/path/to/venv/lib64/python3.11/site-packages/google/api_core/gapic_v1/method.py:131, in _GapicCallable.__call__(self, timeout, retry, compression, *args, **kwargs)
    128 if self._compression is not None:
    129     kwargs["compression"] = compression
--> 131 return wrapped_func(*args, **kwargs)

File ~/path/to/venv/lib64/python3.11/site-packages/google/api_core/grpc_helpers.py:78, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs)
     76     return callable_(*args, **kwargs)
     77 except grpc.RpcError as exc:
---> 78     raise exceptions.from_grpc_error(exc) from exc

ResourceExhausted: 429 Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: text-unicorn. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai.

Everything works fine for the bison and gemini models.
And the requests per minute are far from the default 60 req/m.
This issue started to appear on langchain-google-vertexai versions >= 1.0.4.

I encountered the same issue with mistral-nemo but didn't have any problems when using gemini-1.5-flash-001 using local json credentials. For the same project, I was able to use the default mistral-nemo example notebook in Colab Enterprise without getting the quota error, but this is with using my personal admin account credentials and not the role account (using google.auth.transport.requests and not langchain).
langchain                     0.2.5
langchain-core                0.2.29
langchain-google-vertexai     1.0.8
langchain-openai              0.1.8
langchain-text-splitters      0.2.1

@gawbul @jjaeggli Any workaround for that?

@lkuligin can this be reopened, please, as we are still experiencing this issue with no resolution that I can see. We are definitely not exceeding our quota limit.

I've looked into this a bit more and it appears in earlier versions of langchain the text-unicorn model was adhering to the Online prediction requests per base model per minute per region per base_model quota, however, in updated versions of langchain it is now utilising the Generate content requests per minute per project per base model per minute per region per base_model quota instead, which defaults to 0 for everything but the Gemini models, in our account at least. I'm not sure whether it is possible to request a quota limit for that particular one, in the region in question, though I have opened a support request to Google to check.
Is there any change in the code that would have caused this for this particular model? Things seem to work fine for text-bison-32k and other PaLM2 models?

Google got back to me and stated that the PaLM models are no longer supported, so they won't adjust any quota settings for us. It's strange that this works for text-bison-32k for us still, though. I see text-bison is mentioned explicitly in the code and covered as part of the GoogleModelFamily.PALM class. Is this treated differently from the Gemini models? Would there be any future possibility of supporting text-unicorn in the code base too?

Could you try it out whether this fix will fix your problem, please?

@lkuligin Thanks for the reply and for making an update to the code. I posted a comment in your PR, as there is a minor typo (should be unicorn).

@gawbul is your problem solved?

@gawbul is your problem solved?

Sorry, I'll try building with the branch, and test again.
Only just seen this 😣

Tested using the branch and it appears to be working now (i.e. it isn't returning the 429 error any more), although I got a separate error regarding processing the JSON output in pydantic, but that's something I should be able to resolve in the code.


Adding additional attributes to a tagged object like "occluded"

First off, thanks for an awesome tool!
I have an image recognition problem where I'm generating a dataset of tagged images, and many of the objects in my images are partially occluded. One approach I've seen for dealing with this in an object-detection model is to include an attribute tag for occluded for those objects in the image-tagging process. Then, train the object-detection model separately on 1) all trainset images, and 2) just trainset images without occluded objects, to see which generates a model which performs better on the test set.
Is it possible with VOT to include tags for not just an object-name, but additional attributes like e.g. occluded? If so, I couldn't see how.
Max

Thanks for the feedback in the version of the tool in the dev branch. You can add more than one label to a bounding box that should support this scenario.

Related to #253


Add Home Assistant MQTT discovery

This adds MQTT Discoveryto the MQTT channel for the sensors on the wall panel. So you don't have to do anything in HA config for the wall panel devices to appear.

Sorry, I don't know Kotlin or Android development, so there would probably be some cleaner ways to implement this. I also had to create a new version of publish, which didn't fill me with joy.
I had to re-order the calls to listener?.handleMqttConnected() because the attempts to publish to MQTT in the handler were being blocked.
I added a couple of settings to control the HA MQTT Discovery settings. They will be disabled by default.

We have to do some refactoring on this.  I have to find time to go over and rewrite the code.

We have to do some refactoring on this.  I have to find time to go over and rewrite the code.

I’m happy to put more polish into it if you want to kick it back for any reason.

I’m happy to put more polish into it if you want to kick it back for any reason.

I’m happy to put more polish into it if you want to kick it back for any reason.
Like killing off publishEx, for example...

yes exactly, if we can clean that up and try to reuse, but its not 100% necessary.  If you require another methods, that's ok.  I do not like the name, maybe more descriptive at least.

I’m happy to put more polish into it if you want to kick it back for any reason.
Like killing off publishEx, for example...

yes exactly, if we can clean that up and try to reuse, but its not 100% necessary.  If you require another methods, that's ok.  I do not like the name, maybe more descriptive at least.

I'll tackle these and get back to you in a day or two. I want to collapse publish and publishEx into a single function, but that means moving responsibility of setting the base topic outside of the MQTT service class, and into the callers. Shout if that's not acceptable to you.

I'll tackle these and get back to you in a day or two. I want to collapse publish and publishEx into a single function, but that means moving responsibility of setting the base topic outside of the MQTT service class, and into the callers. Shout if that's not acceptable to you.

Do we still need to publish sensor data if we have now made them discoverable?   Seems we should have another option in the sensors section.  User's can wish to publish sensors, then select either manual publish (current behavior) or make them discoverable, but not both?

Do we still need to publish sensor data if we have now made them discoverable?   Seems we should have another option in the sensors section.  User's can wish to publish sensors, then select either manual publish (current behavior) or make them discoverable, but not both?

Not sure I follow you. The discovery entries just tell HA where to find the right topics for the published sensor data. We still need to publish the sensor data somewhere else.

Not sure I follow you. The discovery entries just tell HA where to find the right topics for the published sensor data. We still need to publish the sensor data somewhere else.

Not sure I follow you. The discovery entries just tell HA where to find the right topics for the published sensor data. We still need to publish the sensor data somewhere else.

Yeah, sorry, you're right was just thinking about the current published sensors, we need to match what we publish now right?

Not sure I follow you. The discovery entries just tell HA where to find the right topics for the published sensor data. We still need to publish the sensor data somewhere else.

Yeah, sorry, you're right was just thinking about the current published sensors, we need to match what we publish now right?

Yeah, so we clear out the discovery info by sending an empty string for the sensors that are disabled in config. Otherwise you have to remove them manually in HA (which does the same thing).

Yeah, so we clear out the discovery info by sending an empty string for the sensors that are disabled in config. Otherwise you have to remove them manually in HA (which does the same thing).

@MarkGodwin do we need to have the discovery topic be "homeassistant"  I did not see information in the MQTT Discovery documentation about how home assistant detects things.  I recall you maybe told me this needs to be homeassistant and that HA looks for this topic for discovery?

@MarkGodwin do we need to have the discovery topic be "homeassistant"  I did not see information in the MQTT Discovery documentation about how home assistant detects things.  I recall you maybe told me this needs to be homeassistant and that HA looks for this topic for discovery?

It's documented here.
The default is homeassistant, but you can set the discovery_prefix to change it. You have to edit the configuration.yaml file, so I doubt many people ever would. I think the format of the discovery is very specific to Home Assistant, but it's quite possible that other hubs with MQTT support might interpret the same data.

It's documented here.
The default is homeassistant, but you can set the discovery_prefix to change it. You have to edit the configuration.yaml file, so I doubt many people ever would. I think the format of the discovery is very specific to Home Assistant, but it's quite possible that other hubs with MQTT support might interpret the same data.


fix: workaround for Add actions being read slightly differently out of parquet files

This  workaround fixes #3030 but I'm not quite happy about how. I believe there is likely an upstream issue in arrow that I have not been able to reproduce where the nullable struct (deletionVector) which has non-nullable members (e.g. storageType) that are being read as empty strings rather than null.
This issue started to appear with the v0.22 release which included an upgrade to datafusion 43 and arrow 53. I believe the latter is causing the issue here since it affects non-datafusion code paths.
This workaround at least allows us to move forward and release a v0.22.1 while continuing to hunt down the issue.

@rtyler did you file an issue in arrow-rs?

@ion-elgreco my suspicions are that it lies upstream, but I don't have any confirmation


Set up CI with Azure Pipelines

Initial setup of yaml for Azure Pipelines, this will evolve over time.
@tylerbhughes please review


Viewer does not recognise date/time information

I get an error message that the time field is not in date/time format. However I have formatted in power query to Date/Time fornmat

Thanks for the feedback and can you share a sample PBIX file with me?

Hello,
Please see attached.
Regards
On Thu, 15 Dec 2022 at 22:35, Jan Pieter Posthuma @.***>
wrote:

Thanks for the feedback and can you share a sample PBIX file with me?
—
Reply to this email directly, view it on GitHub
https://github.com/liprec/powerbi-eventViewer/issues/32#issuecomment-1353676533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVPKUWMHX337GOMU7KCFAR3WNN6IZANCNFSM6AAAAAAS6Q4ZQI
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Regards,
Greg Karsten
+27 833 911 315


Please help, I have persisted it, but the table and data are not restored after restarting the container.

verion: postgres:15-alpine
Persistent mount (Similar to the following, I am sure that the persistent mounting of the data volume is successful):
volumeMounts:
- name: postgresql
  mountPath: /var/lib/postgresql

After restarting the container, the files in the directory are still there,

but the previous database and table are gone. Is there a way to restore it? How can I do it?

Container log after restart
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Asia/Shanghai
creating configuration files ... ok
running bootstrap script ... ok
sh: locale: not found
2024-07-01 11:53:41.292 CST [30] WARNING: no usable system locales were found
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
initdb: warning: enabling "trust" authentication for local connections


Fix formatting for JSON payload

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@snobu : Thanks for your contribution to the Azure documentation! The author, @naziml, has been notified to review your proposed change.

@snobu : Thanks for your contribution to the Azure documentation! The author, @naziml, has been notified to review your proposed change.

#sign-off


Update the installation docs to use correct Go version

Coverage remained the same at 33.962% when pulling 93bdd5a129bf84b195be6fdff578ad096e39b365 on update-go-version into 3c281fdae17ea33c216b45c89c2b73b30f4f9909 on master.


(MAINT) pin fakefs to < 0.14.0 for ruby 2.2

Looks like an unrelated transient failure, trying again:
Jenkins, test this please

@kevpl The beaker-ppuppet acceptance test suite failed because of the same fakefs version error
https://jenkins-sre.delivery.puppetlabs.net/job/sre_beaker_integration-system_beaker-puppet_master/38/
Gem::InstallError: fakefs requires Ruby version >= 2.3.0.
An error occurred while installing fakefs (0.14.2), and Bundler cannot continue.
Make sure that gem install fakefs -v '0.14.2' succeeds before bundling.


Demo Pomscale and jaeger container fails to run with below error

Hi Team,
I was trying out the demo and am trying to run on docker. The promscale db conainter fails with below error:
level=error ts=2022-09-22T06:26:40.246Z caller=runner.go:116 msg="aborting startup due to error" err="migration error: failed to install/upgrade promscale extension: error encountered while migrating extension: problem checking promscale extension version: promscale extension is installed but on an unsupported version: 0.6.0. Expected: >=0.5.0-alpha <0.5.99"
Looks like the promscale version is causing the issue. What would be the best way to downgrade the extension version?
Error from jaeger container :
{"level":"fatal","ts":1663829515.9538844,"caller":"./main.go:101","msg":"Failed to init storage factory","error":"grpc-plugin builder failed to create a store: error connecting to remote storage: context deadline exceeded","stacktrace":"main.main.func1\n\t./main.go:101\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.3.0/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.3.0/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.3.0/command.go:902\nmain.main\n\t./main.go:161\nruntime.main\n\truntime/proc.go:255"}
Colud you help with this?

I updated the 100_extension.sql with this : create extension if not exists promscale with version 0.5.99; specifying the extension version as 0.5.99 and it solved the issue.


docs: new dynamic form cookbook

Based on PR #925

@wardbell I have made updates based on our conversation earlier today.

Congratulations on your first cookbook!

Thanks! Hopefully the first of many :-)


I think this project 🐚

This project f****** s****! I'd rather not, s******.  That's some u*** code.


Conflict with RedirectorPage

Hey
I have a Redirectorpage with the url /om-os/ redirect to /om-os/hvad-star-vi-for/ .
If I then try to use this module to redirect for example /Om-os/Jobs.aspx to /om-os/jobs , it will redirect to /om-os/hvad-star-vi-for/ , which is wrong.
Any ideas on how to fix this?

Just a quick thought; have you tried not putting a redirect in for this? What I'm getting at is that I noticed just yesterday that trying with the following worked without having to add any redirections:
/about-us.html --> /about/
Basically, just humour me and remove the redirect entry for "/Om-os/Jobs.aspx" and see if it "Just works". If not, it sounds like the module will need to be patched to allow for (or possibly exclude) RedirectorPages.
HMmm, but the usual use-case for this module is when migrating from a legacy system onto a SilverStripe site, so can I ask why you even need the RedirectorPage? Personally, I've only had to use one once, but that was only because the site's IA was a little lacking in some areas :-)

That did not just work unfortunately :)
Our temporary fix is to just change the live sites url to something like /om-os-2/.
Regarding your question:
We are using the RedirectorPage to make a parent page redirect to its first child. We are using this module to redirect old urls (urls from the old website) to the correct pages on the new, live site.


chore: add FOSS files for eclipse project

This PR will add all the necessary legal files for the eclipse open source project.
Only the DEPENDENCIES are not yet analyzed, since there is no source code yet. This will follow in separate pull requests

Closing and reopening PR to trigger the ECA check again


why all the loaded data are deleted after the command "ycsb run elasticsearch"

I have already run "ycsb load elasticsearch" successfully, but then after I run "ycsb run elasticsearch", the records are all deleted. I have to load again, then run again. Is there a way that I can "ycsb run elasticsearch" with different workloads several times and get the results?

The dataset should persist across runs. Let's see if maybe @jasontedor knows what's up.

@lukawendy I suspect that this is because you're running in embedded mode with the defaults.
The Elasticsearch binding has two modes of operation, embedded mode and remote mode. In embedded mode, the client creates an embedded instance of Elasticsearch that uses a temporary data path which will not be the same between runs. However, if you specify the same data path between runs via -p path.data=<path> then the data will persist between runs.
For example, you could do:
$ mkdir /tmp/es
$ ./bin/ycsb.sh load elasticsearch -P workloads/workloada -p path.home=/tmp/es
$ ./bin/ycsb.sh run elasticsearch -P workloads/workloada -p path.home=/tmp/es

and the data will be persisted across runs.
In remote mode, the client will hit a standalone installation of Elasticsearch which could be a single-node instance on the same machine, or a remote cluster.
For example, you could start Elasticsearch:
$ <elasticsearch-path>/bin/elasticsearch --cluster.name=es.ycsb.cluster -d
$ curl -XGET localhost:9200/
{
  "name" : "Battletide",
  "cluster_name" : "es.ycsb.cluster",
  "version" : {
    "number" : "2.3.3",
    "build_hash" : "218bdf10790eef486ff2c41a3df5cfa32dadcfde",
    "build_timestamp" : "2016-05-17T15:40:04Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}
$ ./bin/ycsb.sh load elasticsearch -P workloads/workloada -p es.remote=true
$ .bin/ycsb.sh run elasticsearch -P workloads/workloada -p es.remote=true

If you want to connect to a cluster on another machine, you can use a comma separated list of hostname/transport port pairs: -p es.hosts=<hostname1:port1>,...,<hostname2:port2>.

Yes, that's it! Thank you soooo much! @busbey  @jasontedor

That's a great explanation @jasontedor. Could we add it to the README for the elasticsearch module?

@busbey Sure, I'll open a PR later today.

@busbey It took me longer to get to than I had intended, but I opened #800. :smile:

closed by #800.


Make convex hulls work outside of the XY-Plane

Currently, convex hull computation only uses the XY coordinates of the points. This makes it impossible to use convex hulls on any plane that is perpendicular to the XY-Plane.
The culprit is the line: https://github.com/gumyr/build123d/blob/dev/src/build123d/topology.py#L8421
Replacing this static selection of the XY coordinates with one that first computes a bounding box, selects the axis with the smallest size and then projects along that one would make it possible to make convex hulls work in arbitrary planes.
(As long as the points are co-planar, and the projection doesn't happen parallel to the shared plane, the convex hull is independent of the projection direction, so there is no need to use anything fancy like a PCA to fit an optimal projection plane, just choosing one of the main Planes that is not (close to) perpendicular to the shared plane of the points will be sufficient.)

My current hacky workaround for this is:
def hull_in_plane(edges: Iterable[Edge], plane: Plane):
    inv = plane.location.inverse()
    return plane.location * make_hull((inv * Compound(edges)).edges())

(A plane to project to must be explicitly provided, choose the one that is closest to parallel with the shared plane of your points)

All sketching is intended to be done on a local Plane.XY and positioned afterward to the target Plane as described here: https://build123d.readthedocs.io/en/latest/build_sketch.html#sketching-on-other-planes (this is a Builder description but the same applies to Algebra mode). As such, all sketching objects and operations are designed for Plane.XY.  Relocation happens automatically in Builder mode and manually (as you've done above) in Algebra mode.

So this is not something that is intended to be added/changed at some point?
An MRE of my main motivation to get something like this working is
parts = Box(1,1,1) + Pos(0,3,3) * Box(1,1,1)
projection = Sketch([p & Plane.YZ for p in parts])
hull = make_hull(projection.edges()) # -> QhullError
#hull = hull_in_plane(projection.edges(), Plane.YZ) # works
rib = extrude(hull, 0.1, both=True)

show(parts, rib)

i.e. I want to draw a hull around already existing features

You'll need to sketch on Plane.XY and transfer the sketch to the target plane.  There have been extensive discussions on this topic in the past where the pros and cons were analyzed resulting in the decision that sketching on an arbitrary plane is not supported - at least for the foreseeable future.


In the demo page, Hue Shifting does not change color pallet on the left

Chrome

by design. it did not perform very well


Allow for Arguments to be mapped to a Map or MultiMap

Add functionality to map all query arguments to a Map or MultiMap similar to RestController.

By query arguments, you mean URL query? Could you elaborate a bit on the need for this, given that HTTP is only a transport, and generally the main content is in the request body with the operation name, input arguments, and variables.


Bad parse of paren-less calls followed by single-line comments

Reproduction
$ cat <<EOF | python -m craftr.dsl -EC
print "Hello World"

# hello

print "And again"
EOF

__closure__['print']('Hello World', __closure__['print'], 'And again')

Adding a newline after the comment separates the two calls as expected
__closure__['print']('Hello World')
__closure__['print']('And again')

This also happens with the del keyword, but it works as expected when there's no inline-comment.
This fails because it tries to parse it as del(data[0]   # Foo:
del data[0]  # Foo


Semigroup, Monoid, Functor, Monad and basic Option implementation

I've added a few functional typeclasses using interfaces.
Also, this PR provides a basic implementation of Scala Option (or Haskell Maybe).
Option implements all included interfaces and comes with unit tests.

Thanks for the contribution. Could you update the README and add some use cases on how to use those data structures in real life? Our aim is to make a "popular" version of function constructs so that non-CS people (like me) can get it.
A few general remarks regarding code:

Before pulling we would love to see the C implementation as well
Every class/function should live in it’s own file. In case of class Option vs. function option it's alright to put both in one
We should rename Functional\append() as I would like to provide Functional\append(array $a1, array $a2) in the future

Rest of the comments inline

Thanks for the review.
I will definitely update the readme. Before doing so, I wanted to make sure you would agree about adding functional data structures to the library.
I fear I cannot provide the C equivalent. I never wrote C of my life, and honestly I don't feel like starting today. Maybe we can make an exception for data structures? There is a lot of them to cover, and not having to double-code them will definitely make it easier.
I'll move each interface to a separate file. About Option/Some/None, I suggest keeping them in the same file because they are strongly coupled. I'm fine with splitting them if you insist a little bit.
The append function could be renamed mappend for Monoid append. Or, I could make it a static function of the Semigroup interface.
It's hard to translate typeclass functionalities into PHP.
I answered the interface function visibility concern in the code.

Having functional data structures in Functional PHP sounds good to me. Critical here is to be able to explain things to mere mortals. That’s why the README is so important
C implementation: alright, fine. I’ll do it. That will mean I will first merge it into a separate branch
On class/interface per file: please do
Function name: mappend sounds alright

Thanks :)

I think it's ready for merge.


Consider making an open-source guardrails section

https://about.fb.com/news/2023/12/purple-llama-safe-responsible-ai-development/
https://www.zillow.com/tech/navigating-fair-housing-guardrails-in-llms/


Kubernetes node-level faults

Kubernetes node-level faults restructured.
Signed-off-by: Smriti S<EMAIL_ADDRESS>

Preview environment: https://ci.pr.harness.io/pr-494


[webpack v2]: broken with new use syntax

When I try to use this plugin like before, just using the new webpack v2 syntax (loaders -> rules, nested loaders -> use), this plugin breaks. Not sure it's intended, but it would be great if one would get an appropriate error message that this plugin should be used with loader: ExtractTextWebpackPlugin.extract(...) instead of use: ExtractTextWebpackPlugin.extract(...)

@mrtnbroder Thank you for writing this here! I have been migrating from webpack 1 -> 2 and this issue cost me way too much time..

Closing as a duplicate of #265. Thanks for the report, though.


Fix link to CHANGELOG

The last link identifier [3] was defined twice.
The first link [3] was pointing to the wrong changelog version

I had already raised a PR yesterday about this issue
https://github.com/apache/arrow/pull/1436

May be we can close that one and use this or vice-versa.

I'll push the update to the site

Just merged https://github.com/apache/arrow/pull/1436

thanks! forgot to look to see if one was open