Gorm - Panic: runtime error: invalid memory address.

Hi, To check the consistency of my server I am calling an API multiple times that interacts with a database and retrieve some amount of data.
Unfortunately, I am getting the below error and my server can't able to recover from it.
I am using "Chi" as a http router and "Gorm" as an ORM library.
Could you please help me in resolving this issue. Thanks
Error logs :
[error] failed to initialize database, got error commands out of sync. Did you run multiple statements at once?

 panic: runtime error: invalid memory address
or nil pointer dereference

 -> gorm.io/gorm.(*DB).getInstance
 ->   C:/files/projects/golang/
src/gorm.io/gorm/gorm.go:271

    gorm.io/gorm.(*DB).Raw
      C:/files/projects/golang/src/gorm.io
/gorm/chainable_api.go:283
    github.com/bmknaidu555/paperbun/p
kg/db.GetLastEmailSentTimeDiff
      C:/files/projects/golang/src/github.
com/bmknaidu555/paperbun/pkg/db/db_auth.go:115
    github.com/bmknaidu555/paperbun/p
kg/api/auth.IsUserVerifiedEmail
      C:/files/projects/golang/src/github.
com/bmknaidu555/paperbun/pkg/api/auth/auth_register.go
m:127
    net/http.HandlerFunc.ServeHTTP
      C:/Go/src/net/http/server.go
;1m:2012
    github.com/go-chi/chi.(*Mux).rout
eHTTP
      C:/files/projects/golang/src/github.
com/go-chi/chi/mux.go:431
    net/http.HandlerFunc.ServeHTTP
      C:/Go/src/net/http/server.go
;1m:2012
    github.com/go-chi/chi/middleware.
Recoverer.func1
      C:/files/projects/golang/src/github.
com/go-chi/chi/middleware/recoverer.go:37
    net/http.HandlerFunc.ServeHTTP
      C:/Go/src/net/http/server.go
;1m:2012
    github.com/go-chi/chi/middleware.
StripSlashes.func1
      C:/files/projects/golang/src/github.
com/go-chi/chi/middleware/strip.go:25
    net/http.HandlerFunc.ServeHTTP
      C:/Go/src/net/http/server.go
;1m:2012
    github.com/go-chi/chi/middleware.
Timeout.func1.1
      C:/files/projects/golang/src/github.
com/go-chi/chi/middleware/timeout.go:45
    net/http.HandlerFunc.ServeHTTP
      C:/Go/src/net/http/server.go
;1m:2012
    github.com/go-chi/chi.(*Mux).Serv
eHTTP
      C:/files/projects/golang/src/github.
com/go-chi/chi/mux.go:86
    net/http.serverHandler.ServeHTTP
      C:/Go/src/net/http/server.go
;1m:2807
    net/http.(*conn).serve
      C:/Go/src/net/http/server.go
;1m:1895
    created by net/http.(*Server).Serve
      C:/Go/src/net/http/server.go:
2933

https://stackoverflow.com/a/31468146/5067875

https://stackoverflow.com/a/31468146/5067875


Create NOX.Type "EncryptedText"

EncryptedText

Do we want to support multiple Encryption Algorithms (AES, ECC, PGP, RSA ...) exposed throug an EncryptedTextTypeOptions?

Yes, lets support only AES for now (EncryptedTextTypeOptions)
PrivateKey can be stored in the environment variable
EncryptedTextTypeOptions:
Algorithm, PublicKey

If we want to support multiple algorithms, What would be the default algorithm and what options we should expose?

AES

Do we want to have Salting on the Encrypted Text and where we would define that, or maybe there would be a new type for that?

Yes

// No other references (ddls) for implementation ... if there is a need for it first discuss it with the team


fdo-manufacturing-client plain-di does work

As described in https://fedora-iot.github.io/fido-device-onboard-rs/specs/diun.html,
manufacturing-server needs to get public key prior to the start of the protocol.
Currently manufacturing-server tries to load the public key here:
https://github.com/fedora-iot/fido-device-onboard-rs/blob/69fec227de04d98c51a5b5d8eb218bdc264f0a3f/manufacturing-server/src/handlers/di.rs#L77-L84
but there are several problems for it.

The file path is {public_key_store}/{msg_info}, which msg_info is not a pub key file name. It should allow uses to set the path like public_key_path via configfile.
It calls store.load_data() to load the public key but load_data() deserialize the public key. It is not practical that users need to set the public key with the format change.

Also, there is no integration test to reveal fdo-manufacturing-client plain-di does not work.

We already configure it with a configuration file (https://github.com/fedora-iot/fido-device-onboard-rs/blob/main/examples/config/manufacturing-server.yml#L10); the mfg_info there specifies the file inside that directory, which matches a device's serial number or MAC address, and it's what we use to uniquely identify a device.

I agree, it expects cbor and makes the rest fail because we are supplying plain data


Mic2music alternative

Alternative version of mic2music that attempts to sound more musical by adding background chords and making use of musical scales. In addition, a new auto-correlation based method for fundamental frequency detection was implemented.

Thank you MrMho!


Sudenly I get: Update failed: You have the latest version of the plugin.

Hi, please help me with this. Everything was working fine, and sudenly when I click "Update now" on the WP Plugins list, i get the message:
"Update failed: You have the latest version of the plugin."
I didn't make any recent changes, and since the begining the only modification was creating a new PHP file:
download-auth.php

class UpdateServerAuth extends Wpup_UpdateServer {

	protected $license_key = "my-secret-license-key-xD";

	public function __construct() {
		parent::__construct();
	}

	protected function filterMetadata($meta, $request) {

		$meta = parent::filterMetadata($meta, $request);

		//Include license information in the update metadata. This saves an HTTP request
		//or two since the plugin doesn't need to explicitly fetch license details.
		if( $request->param('license_key') && $request->param('license_key') == $this->license_key ){
			$meta['license_status'] = 'License valid';
		} else {
			//No license = no download link.
			$meta['license_status'] = 'License invalid';
			//unset($meta['download_url']);
		}

		return $meta;

	}

	protected function checkAuthorization($request) {

		parent::checkAuthorization($request);

		if( $request->action==='download' ) {

			//Prevent download if the user doesn't have a valid license.
			if( empty($request->param('license_key')) || $request->param('license_key') != $this->license_key ){
				// Provided @license_key not valid
				$message = 'Sorry, your license is not valid.';
				//$this->exitWithError($message, 403);
			}

		}

	}

}

As you can see I tried to comment the line unset($meta['download_url']); and $this->exitWithError($message, 403); which could be causing some problem, but with no luck.

Try opening the metadata URL and the download URL in the browser. Does it work fine when you do that? Is all of the update metadata that you see correct, and are does the download URL return the correct file?

Yes, metada URL is working fine, and the information displayed is correct, and the download URL inside it point to the correct file.

Just to be clear, are you saying that the download URL looks correct, or that it actually downloads the correct file when you try to open it?
Another thing to check would be the version number of the currently installed version and the version number in the update ZIP file. Normally, the updated version should be higher. Also, if there's anything that modifies or filters the plugin version number (in the plugin itself, not the update server), that could be worth investigating.

The url is something like:
"https://domain.com/updater-folder/?action=download&slug=my-plugin-slug"
I open it in the browser and i get the correct plugin file

The version number is hardcoded in the bgining of the plugin file:
/**
* @wordpress-plugin
* Plugin Name:
* Plugin URI:
* Description:
* Version: <IP_ADDRESS>
* Author:
* Author URI:
* Text Domain:
**/

There is no filter to modify the version. I even tried to change the versioning and go directly to version 1, i tried several combinations but no change, the error message after clicking "Update now" and waiting a while is that "I already have the latest version"

It sounds like the update server is working fine. I'm not sure why you're suddenly getting an error when trying to install the update. Perhaps there's something wrong with the site where the plugin is installed?
Here are a few more ideas:

Install the Debug Bar plugin and look at the information shown in the "PUC (your-plugin-slug)" section. Does everything look correct? Try clicking the "Check Now" and "Request Info" buttons and see if it successfully returns the update information.
Temporarily deactivate all other plugins and switch to the default theme to check if there's a conflict of some kind.
See if the server that's running the WordPress site has some kind of firewall that could be blocking some outgoing requests.
Try updating through the "Dashboard -> Updates" page instead. Does it show the same error, or does something different happen?

Thank you for your time.

Updating through the "Dashboard -> Updates" page WORKS perfectly, but not in plugins list.

I already tried Debug Bar some time ago but it doesn't show "PUC (your-plugin-slug)" section. I tried it again just now and it still doesn't show anything besides "Wp_Http" and "Object cache"

I already tried deactivating everything and switching to default template, did again now, deleted every cache file, and browser cache, but no luck.

The update server and the WP site is the same server.

That's interesting, and gives me another idea: Is there, by any chance, some kind of an if-condition that controls when your plugin initializes the update checker? If so, try removing that condition so that the update checker instance is always created.

Yes, you are right, problem solved!
I did my best to always load only strictly necessary files, depending on several conditions, so the update checker was running strictly on admin, and not on ajax requests.
The truth is this never crossed my mind, I wasted 2 weeks, looking in every file, doing all kinds of tests before writing here, and it never occurred to me that the update was an Ajax request.
Thank you for your time.

All right, sounds good. I'll close this issue now.


[stable/jenkins] fix subPath indentation in jenkins-master-deployment.yaml

fix indentation for subPath

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @maorfr


Resolves #1131: Suppress logging when allowMajorUpdates, allowMinorUp…

…dates and allowIncrementalUpdates are in valid combination

There're more places to be FIXED by this pattern but I think they should be refactored firstly and all of them should get fixed once.

@gmshake thanks


Use slimmer protobuf definitions on k8s structures

With this slimmer Pod structure, Cilium won't need to convert a Pod into
another structure that Cilium understands. This conversion will
automatically happen when doing the unmarshal of k8s event. Thus,
providing better memory management as well as CPU consumption since
Cilium will only unmarshal the fields that actually need.
Note for reviewers:

a lot of the code is auto-generated
please take a look at pkg/k8s/types/slim/README.md

test-me-please

test-me-please

test-me-please

Coverage decreased (-2.3%) to 42.176% when pulling bd2804dff32e0172731e0900a8e5f8dafeefb824 on pr/use-slimmer-protobuf-definitions into 447bb4c8bc040bc800af0a8b1f36a9292dd6e0b7 on master.

test-me-please

test-me-please

test-me-please

test-me-please


[Feat] Feature for sellers to add a billboard

Description
Feature Request: Add Cover Picture for Sellers via Dashboard
Description:
We need to implement a feature allowing sellers to add a cover picture to their shop through their dashboard. This cover picture will be displayed on their shop profile page and also on the shops listing page of the website.
Requirements:

Cover picture upload functionality on the seller’s dashboard.
Display the cover picture on:

Shop profile page.
Shops listing page.

Database schema modification to store the cover picture URL or binary data.
Frontend changes to:

Include a file upload input for the seller's dashboard.
Display the cover picture on relevant pages.

Backend API endpoint to handle the upload, storage, and update of the cover picture.

Steps to Implement:

Modify the database schema to store the cover picture field.
Add file input to the seller's dashboard for uploading a cover picture.
Create a backend endpoint to update the cover picture.
Update the frontend to display the cover picture on the shop profile and listing pages.

Environment:

Frontend: React, Next.js 14.2.14
Backend: Node.js, Express.js, Prisma
Database: MongoDB

Please let me know if any further clarifications are required.
Screenshots
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@ShivanshPlays you are assigned.


use RouteRoules for middlewares

Is your feature request related to a problem? Please describe.

@harlan-zw
Could you type here your solution so that we could keep track of it? :)
Describe the solution you'd like

Describe alternatives you've considered

Additional context

@harlan-zw
Do you have any news regarding this feature?

Thanks for the ping @Baroshem. I didn't hear back from Pooya but I'm guessing that this implementation is still a good idea.
So currently the current config API does is quite restricted in terms of what rules each route has. To solve this issue we can move the config on to the route rules.
Users should be able to provide route rules with keys for applicable nuxt security config.
For example:
export default defineNuxtConfig({
  routeRules: {
    '/login': {
      rateLimiter: {
          tokensPerInterval: 30,
          interval: "hour",
        },
      }
    },
    '/api/forms/*': {
      allowedMethodsRestricter: ['POST'],
      requestSizeLimiter: { maxUploadFileRequestInBytes: 9000000 }
    },
  }
})

Hey @harlan-zw
Thanks for the research and example of the implementation. I agree that this is better option for the future as it will allow to support different rules for different routes (something not achievable right now).
I am just wondering about the interface of the nuxt configuration options to not change it that much so that the current users would be able to easily migrate to the newer version.

I will work on it for the next release (one after this one) because for the upcoming release I have already some features and bug fixes that should be released first :)

Just for more context it could work like this:
export default defineNuxtConfig({
  routeRules: {
    '/api/login': { rateLimit: 5 },
  }
})

const routeRules = getRouteRules(event)
const cachedLimiter = new RateLimiter(routeRules.rateLimit || securityConfig.rateLimiter.value)

I think we should discuss more in general for Nitro and Nuxt about advising to use routeRules by nuxt modules.
There are some important points:

Additional rules by modules like nuxt-security, can possibly conflict with built-ins unless explicitly prefixed with module name '/api/login': { nuxtSecurity: { rateLimit: 5 } }
Additional rules are platform specific and need to be treeshaken from client bundle and platforms

I see. I will do some research about it and contact you about it once I will have something working :)
Thanks for clarification!

https://github.com/Baroshem/nuxt-security/releases/tag/v0.13.0


Added type hinting

Added parameter and return type hinting for "mimesis/" and "mimesis/builtins/".
Also, enabled the sphinx extension for type hinting as requested in #259

@lk-geimfari Mind reviewing?

To many unannotated arguments inf methods. Please, fix it.

I purposefully left that whole directory alone, but sure, I can add those as well

This should be everything.

@DefaltSimon Also, please merge type-hinting with your branch.

Requested changes done.
Also, don't mind the big list of commits, that's because I synced the branch with the current type-hinting and it had to merge stuff.


uuid default?

$table->uuid()->primary();

Could this be made to set something like this?
DEFAULT uuid_generate_v4()
Currently doing it like this.
DB::statement('ALTER TABLE some_table ALTER COLUMN uuid SET DEFAULT uuid_generate_v4();');

This works just fine for me:
$table->uuid()->primary()->default(DB::raw('uuid_generate_v4()'))

My plan is to only extend Laravel with PostgreSQL features, I don't want to change any behavior of Laravel. Installing this plugin should not break any existing code because e.g. defaults have been changed. The solution by @boris-glumpler is perfectly valid, and I am doing that way too.


[19.0.x] Fix for WFLY-13210, open-tracing layer must depend on microprofile-config

Without microprofile-config, we can't deploy a jaxrs endpoint.

Please include JIRA links in the PR description. :)


fix: js pow calculate imprecision

Codecov Report

Merging #212 (5f1bebc) into main (292c797) will decrease coverage by 3.16%.
The diff coverage is n/a.

:exclamation: Current head 5f1bebc differs from pull request most recent head f4537d3. Consider uploading reports for the commit f4537d3 to get more accurate results

@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   41.08%   37.92%   -3.17%
==========================================
  Files          23       17       -6
  Lines        1969     1743     -226
  Branches       48        0      -48
==========================================
- Hits          809      661     -148
+ Misses       1160     1082      -78

Impacted Files
Coverage Δ

...es/eth-contracts/contracts/libraries/SafeERC20.sol

...th-contracts/contracts/libraries/MultisigUtils.sol

...ain-modules/eth-contracts/contracts/test/ERC20.sol

...les/eth-contracts/contracts/libraries/SafeMath.sol

...ules/eth-contracts/contracts/libraries/Address.sol

...in-modules/eth-contracts/contracts/ForceBridge.sol

Continue to review full report at Codecov.

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


Update docs for agent version 3.34.1

This adds the --reject-secrets flag and the BUILDKITE_AGENT_PIPELINE_UPLOAD_REJECT_SECRETS envar for the buildkite-agent pipline upload command

Looks good in the test deploy 👍🏼

Cheers folks!


drt: Fix error message for invalid via in pin options

Signed-off-by: Anton Blanchard<EMAIL_ADDRESS>

Any reason why not to merge this?


Ctrl-F to focus search also when text is not changed

Currently, pressing Ctrl-F (Find) focuses search text box only when the text is changed. What we like to have is that you can go to search box anytime you want to modify search string by pressing Ctrl-F.

Now it does exactly this.


Data model

In this PR I did following features:

Created a new blog-app.

Initialized project with Git.

Setup Postgres database.

Builded project schema.

Created and run the necessary migration files.

Table and column names matched the ERD diagram.

Foreign keys included.

All columns that are foreign keys have a corresponding index.

STATUS: INVALID CODE REVIEW REQUEST 🛑 🛑
Hi @OpondoG,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You do not have a descriptive README. Kindly format your README using the Microverse template. You also have not used the correct workflow. You should request a merge to the develop branch, not main branch based on gitflow
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear. And please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.


object exported (Export-Clixml) and imported (Import-Clixml) resulting in different objects

Hi,
This could just be me not understanding something important about what's going on under the pwsh hood. If so, sorry.
I'm attempting to export and import some state to file. Getting a serialization error, which seems to indicate the export / importing is not working as described.
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-clixml?view=powershell-7
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-7
object [System.Data.DataTable] exported and imported with Export-Clixml and Import-Clixml resulting in differing objects
$DataTableOriginal
col1      : test
RowError  :
RowState  : Added
Table     : {System.Data.DataRow}
ItemArray : {test}
HasErrors : False
$DataTableImported
col1 : test
Steps to reproduce
$DataTableOriginal = [System.Data.DataTable]::new()
$DataTableOriginal.Columns.Add('col1', [string]) | Out-Null
$row = $DataTableOriginal.NewRow()
$row.col1 = 'test'
$DataTableOriginal.Rows.Add($row)
$DataTableOriginal | Export-Clixml -LiteralPath    "C:\temp\delete\ExportImport_DataTable\state1.xml"

$DataTableImported = Import-Clixml -LiteralPath "C:\temp\delete\ExportImport_DataTable\state1.xml"
# errors with:  Method invocation failed because [Deserialized.System.Data.DataRow] does not contain a method named 'NewRow'
$RowNew = $DataTableImported.NewRow()

Expected behavior
would expected the methods to carry over between export and imports

Actual behavior
Method invocation failed because [Deserialized.System.Data.DataRow] does not contain a method named 'NewRow'

Environment data
Name                           Value

PSVersion                      7.1.0-preview.1
PSEdition                      Core
GitCommitId                    7.1.0-preview.1
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

@Conan1989 deserialization of objects is expected behaviour. When you export data to a file, you're always losing some of the data, this isn't avoidable. .NET objects have a lot of metadata in their live state that can't be restored directly.
When constructing a .NET object, we're entirely limited to what their design allows us to provide in terms of data. If we were to try re-creating a live object from every deserialized object, we'd need a pretty complex algorithm to attempt to recreate the object using its available constructors and settable properties, and even then it would most likely fail to be a faithful recreation a majority of the time.
When you load an object that has been serialised like that, it's pulled back in as (effectively) a PSCustomObject with a typename referencing the original type. There aren't really many or any effective ways around that. If you want to try recreating the original object with the available data from the deserialised object, you are more than welcome to try. Typically the results are fairly lacklustre, but it may be enough for your specific use case. 🙂

@Conan1989, if you want a high-level overview of what happens during serialization / deserialization, see https://stackoverflow.com/a/59180367/45375


addVariable doesn't properly support Domain subclasses

It seems like addVariable is intended to support using a subclass of Domain as a domain.  However, this logic:
if hasattr(domain, "__getitem__"):
    domain = Domain(domain)
elif isinstance(domain, Domain):
    domain = copy.copy(domain)

will always convert to a Domain, since Domain objects implement __getitem__.  It would appear that replacing it with this code would fix it:
if isinstance(domain, Domain):
    domain = copy.copy(domain)
elif hasattr(domain, "__getitem__"):
    domain = Domain(domain)

Hi @WillDHB
PR with tests are always welcome
Kind regards

Done.  Sorry the code in the bug report was mangled; I didn't notice until just now.

To avoid code to be mangled, you just need triple backtick (see my edit)


Ilegales

### Tasks
- [x] Add a draft title or issue reference here
- [ ] https://github.com/github/gh-actions-importer/issues/118
- [ ] https://github.com/github/gh-actions-importer/issues/25
- [ ] https://github.com/github/gh-actions-importer/issues/114
- [ ] https://github.com/github/gh-actions-importer/issues/115

Open

???

Gft42eww@32


Unify the ErrorCode to common

Need to wait for the nebula-graph and nebula-storage repo to synchronize PR

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: laura-ding:x: critical27You have signed the CLA already but the status is still pending? Let us recheck it.


How to sync between different devices

People might work on desktop in the office and their own Macbook. I wonder if there is a way to sync between different devices.

at the moment I use a github repo for that. but I do not sync that often, so I could imagine that this is not an option for you

I am working on a service for this which should be available soon.

Thanks @tsujp

you can also checkout taskline, an updated version of taskbook which has the functionality to share sync tasks.

taskline is independend of taskbook, it is not an update or a updated version, please do not confuse the people and take advange of the work that @klaussinani has created for the open source community


SCRUM-1724 create endpoint to generate AGMDiseaseAnnotationDTO

Do we not have endpoints for these?

No. we don't. We have an endpoint to load bulk data but I cannot use it as it basically drops and re-loads according to the submitted file.

And you don't want to use the endpoint for the AgmDiseaseAnnotation object directly?

No, I need to have all the internal / curiie ids.

I would prefer to not go down the road of using the DTO's. Those are only for ingest data and will go away once a mod moves over. So it would mean that we have 2 create methods for each data type. It would be better to use only one create API call.


Fix typo in Android Poselandmark CameraFragment.kt

Description
In the CameraFragment.kt file of the Android Poselandmark module, I've corrected a typo. The word posele has been changed to handle.
Checklist
Please ensure the following items are complete before submitting a pull request:

[x] My code follows the code style of the project.
[ ] I have updated the documentation (if applicable).
[ ] I have added tests to cover my changes.

Type of Change
Please check the relevant option below:

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

Screenshots
If applicable, please add screenshots to help explain your changes.
Additional Notes
Add any additional information or context about the pull request here.

Ha, that's a great copy+paste/rename find :P Thanks!


Allow any function for primary key generation

When overloading the id field it is not possible to define a function for generating default values besides EdgeDB's uuid_generate_v1mc() and uuid_generate_v4() from the std library. There is a hardcoded check for both functions.
On the other hand client option allow_user_specified_id allows the insertion of any UUID without any check for a standardized version and supports any data with a length of 36 characters.
Instead of the hardcoded whitelist for allowed generator functions, it would imo make more sense to allow any function as long as they return a value of type UUID.

The difficulty here is that we would have no way of validating that the specified function always* produces unique ids. EdgeDB relies on ids being unique across all objects (not just those of the same type), and for efficiency reasons we do not enforce this when using the default id functions. (We do enforce it with an exclusive constraint on each type, since we need an index anyway, but we don't need to check other tables for collisions).
When a user does an user specified id, then we do need to check every table for a collision. This is not the fastest thing in the world, and it's one of the reasons we generally discourage using this apart from when migrating to edgedb.
To support other key functions, we'd need to do one of:

Just trust that the provided function works well enough. If it doesn't, the failure modes are likely to be opaque and confusing.
Insert an id uniqueness check on every insert done with an overloaded id default. This will be pretty slow.

Both of these approaches are quite unpalatable to me.
What function do you want to use for id generation? We can potentially just add it.

Or rather, that the probability of producing colliding ids is several orders of magnitude lower than the probability of the data center being destroyed by a nuclear weapon, or whatever

@msullivan Thanks for the detailed reply and information. I was aware of EdgeDB's approach of using database-wide unique IDs.
We use a custom UUIDv8 implementation modeled after the time-based UUIDv7 draft. So implementing the function directly in EdgeDB isn't really a choice although I would love to see the addition of UUIDv7 which can be conveniently sorted like numeric IDs.
Generating IDs client-side would be possible as we also have implementations in Python and JS available, but as you pointed out, the check for uniqueness would turn this into a performance nightmare. Therefore option 2 does not seem very applicable to me.
I guess in the end you have to trust your custom function to provide the required uniqueness. But I can see a point in that simply allowing any function isn't the right way either and it must be clear to the user that he's on thin ice.
It would be useful to have the option of extending the whitelist server-side, maybe through an extension configurable similar in fashion of ext::auth, e.g. ext::customid::whitelist := ['default::my_uuid_generator']

@mritzerfeld, is there a significant difference in your implementation from the proposed UUIDv7?  That spec is nearing acceptance, and once it's final, we have a plan to switch EdgeDB to use UUIDv7 by default (where available).
Aside from concerns @msullivan highlighted above, there is another one: your ID function must be relatively monotonic, otherwise you can end up with fragmented indexes and significant write amplification issues arising from that.

Coming from an 11 character nanoid, I hate how long UUIDs are. And they can't be double clicked to select because of the dashes.
I'd love TypeID support.
26 character TypeIDs are much more palatable, and interchangeable with stored UUID values.
I toyed around with it, and it would be possible now to convert between them with a custom UUID codec in our app code. But then this leaves a disconnect between our app and the DB UI, which isn't the best DX either. Nor does it work for inlined EdgeQL values.
I do see support for UUIDs with and without dashes. Maybe it could be considered to support implicit conversion from the 26 char TypeID format as well?

A good use case is to actually encode some data in the id itself. Stripe uses that in their APIs where each type has ids that begin with a given prefix: sub for Subscriptions.
This has several benefits, for example:

Human readability: we know the type just from looking at the id.
Optimizations: knowing the type of an object can enable things like early returns, more efficient fetching of information ...

One suggestion here would be to allow defining a prefix / suffix that will be appended to the UUID.


Mineral fields have higher precedence in the area map printout than items

The reverse should be the case.

fb98db7 will be merged to master after this is fixed.

Fixed with 4e8a1c0.


Failing chmod of data mount in entrypoint when running rootless docker with specified --user

I'm trying to use the postgress docker image in the rootless docker daemon mode, which means that the entire docker daemon runs inside of a user namespace.
As expected, when I use this mode and mount a local directory, the local directory is owned by an arbitrary high user id (100069), which is mapped to root (uid 0) in the container. But when I then try to change the userid the container runs with to my own host user with --user 1000 (or user: 1000 in compose), the container gets stuck failing to chmod the data directory in the docker-entrypoint.sh:
chmod: /var/lib/postgresql/data: Operation not permitted

I think this error is coming from https://github.com/docker-library/postgres/blob/36906949307e9b00e0f8f6f05b342c0db2dc816f/13/alpine/docker-entrypoint.sh#L40 (or the non-alpine entrypoint)
but I don't understand why. I verified that the user inside the container is indeed 1000 by replacing the command with id.

Command which can be run with docker rootless mod to reproduce the issue:
docker run --user 1000 -v "$PWD/data:/var/lib/posgresql/data" postgres:alpine

I was able to reproduce without rootless -- I think the "correct" solution here is to make the chmod not fail (since PostgreSQL itself will validate later, likely with a better error message), but after applying that adjustment I run into the (expected) initdb: could not look up effective user ID 1000: user does not exist (https://github.com/docker-library/docs/tree/6b36a7702d4b98917b50155d7e38dfcdc59fa530/postgres#arbitrary---user-notes).


Obtaining the right google api key

Thanks for this project.  I'd like to explore the use of Google maps in my application based on Spring Boot framework and Vaadin.  I've not used Google maps API but as I explore and read about it it seems like there are a lot options and I want to avoid going down any rabbit wholes.
Please offer some guidance on what I need to look for in order to explore your project on my own?   What "product" and or  "project" I should be signing up for?
And then, where is the "-D  option set?
Any further directions one how to use the site to get the right key would be greatly appreciated.
Thanks

Here's the answer, thanks:

visit developer.google.com/maps, login to your favorite google account
Do the Get Started path, provide a credit card
Before you know you'll be given a google api key to cut/paste
On the command line within your cloned project issue "mvn jetty:run -Dgoogle.maps.api=
done.


Feature Request: Track costs for streaming with Cohere

Is your feature request related to a problem? Please describe.
Many providers are starting to add usage to streaming. This makes it much easier for Mirascope to calculate cost.
Describe the solution you'd like
Add a total_cost property to CohereCallResponseChunk. Read the "event_type": "stream-end" sent by Cohere API and calculate cost using
"token_count": {
    "prompt_tokens": ...,
    "response_tokens": ...,
    "total_tokens": ...,
    "billed_tokens": ...,
}

Update https://github.com/Mirascope/mirascope/blob/dev/mirascope/cohere/utils.py as necessary.

See #214 since these are related

Is your feature request related to a problem? Please describe. Many providers are starting to add usage to streaming. This makes it much easier for Mirascope to calculate cost.
Describe the solution you'd like Add a total_cost property to CohereCallResponseChunk. Read the "event_type": "stream-end" sent by Cohere API and calculate cost using
"token_count": {
    "prompt_tokens": ...,
    "response_tokens": ...,
    "total_tokens": ...,
    "billed_tokens": ...,
}

Update https://github.com/Mirascope/mirascope/blob/dev/mirascope/cohere/utils.py as necessary.

I am working on this but the problem I am facing is that event returned by co.chat_stream() is of type StreamedChatResponse and it's response property is of type NonStreamedChatResponse which does not have token_count property in it. I am not sure how do I access the token_count here.

Doesn't the NonStreamedChatResponse type have response.meta.billed_units, which return ApiMetaBilledUnits from which we should be able to grab the same usage statistics that we do for the normal response? We can likely massage that data into the form we need to calculate cost, right?

Doesn't the NonStreamedChatResponse type have response.meta.billed_units, which return ApiMetaBilledUnits from which we should be able to grab the same usage statistics that we do for the normal response? We can likely massage that data into the form we need to calculate cost, right?

Yes, it does, but according to the API docs, the streamed response has no meta.billed_units property. I does have toekn_count though. I can look again at what is happening on the API side and update here.

This is partially implemented with #307 where Cohere chunks will contain input_tokens and output_tokens which can be used to calculate cost. The only thing remaining that will need to be done is to pass cost into CohereCallResponseChunk.


Fix table of contents on readme

Signed-off-by: Juraci Paixão Kröhling<EMAIL_ADDRESS>

This change is


reminder: Replace SafeCastTemp

Component
General design optimization (improving efficiency, cleanliness, or developer experience)
Describe the suggested feature and problem it solves.
Reminder issue to replace SafeCastTemp when we have int128 -> uint128 in core
https://github.com/Uniswap/v4-core/pull/850
Describe the desired implementation.
No response
Describe alternatives.
No response
Additional context.
No response

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

completed in https://github.com/Uniswap/v4-periphery/pull/337


Adds refered links to Markdown

@Sija updated

I think it's kind of OK, there are many regexes and subtitutions, though, but I don't think the performance difference will matter. I'm not sure about replacing [...] with [...](...) and later processing things. I'll review it more thoroughly later.

Maybe you can remove the 2nd pass inprocess_for_references by converting references along with the rest of the doc? As for the first pass for gathering refs, I'm not sure it can be avoided.

@spalladino I'm not sure if I understand you.
I had an attempt before to process referenced links ([Name][label]) to html code (Name) in first pass but there was problem with mixing other markdown "tags", for example [Name **with strong**][label].
I could remove 2nd pass if there would exist parse method to just parse Name **with strong**. Current document parsing style is different and I have strong feeling against running parser within parser.
I'm more than ok with future optimization, but at this moment I don't think if I could make it faster, more markdown spec accurate and easily to maintain.

I think it's OK if we merge this. Eventually we should rewrite the whole parser with a better overall algorithm, maybe taking a look at how other parsers are implemented, or checking if the official site has some pointers on that.

@asterite I've checked very briefly and it was not enough. I'm writing my own Jekyll-like blog generator so markdown will be quite important to me. I'll work on it later.

@akwiatkowski you'll may like https://github.com/ysbaddaden/crystal-cmark for the time being?

#codetriage
Looking at the evolution here, there seems to be a couple of questions we should try to answer:

What spec does the stdlib markdown attempt to comply with? The Daring Fireball spec appears to state that these are meant to work. I recognize that it's not a full spec, and that's why CommonMark exists.
While the CommonMark lib is a viable alternative (:clap: @ysbaddaden), it is not the built-in for the language, and requires an external C library. While this may ultimately perform better, it is not common (pun!) to have languages embed the Markdown parser, rather rely on a pure-language implementation of the parser/renderer as external libraries. This has historically led to multiple implementations, with slightly different behaviors and semantics, so having The Right Thing in the language's stdlib goes a long way to reducing friction. Would having a pure Crystal implementation of the CommonMark spec in stdlib be the right way to go, and if so, how receptive are we to this kind of overhaul?

(incidentally, I wrote the link above with a reference link syntax, thanks GitHub editor!)

Would having a pure Crystal implementation of the CommonMark spec in stdlib be the right way to go?

Yes, definitely.
The cmark shard exists because I needed a complete Markdown implementation, cmark is the reference implementation of the CommonMark, and it only took minutes to write and publish bindings for it. Ultimately, a pure crystal, complete implementation of Markdow, following the CommonMark spec is the way to go.

I think it would be wise to port the CommonMark implementation, or just write an implementation that conforms to CommonMark, and replace the current one. The current one was just created so that docs can be generated and shown without a new dependency, but it's far from complete, and it probably has some bugs too.

Do we really need a markdown parser in the stdlib? I realise that it's required by the crystal compiler but if that's the only reason, wouldn't it be better to develop ways for the compiler to be able to use external shards?

Since we'll use markd in the future, which implements this, we can close this.


Site/vault writeup

As well as general tidy-ups across the whole site, this PR contains a condensed intro to Vault at docs/components/vault.md.
I didn't go too far with this as the CP site shouldn't be the Vault doc site, which already exists.

Mostly this page, the other changes are tidying up.
https://deploy-preview-105--iiif-canvas-panel.netlify.app/docs/components/vault


I create stns cache process.

STNS has  issue because cache files can modify by file owner.
file owner can pretend to be other user concreterly.
therefore, I decided create new cache process that provide cache function.
New libnss stns  associate with stnsd(cache process) and they are communicate by unix domain sockets.
In addition,  libnss stns is deleted any cache function.

todo

[ ] support header cache.
[ ] support locktime.


fix stackoverflow from 1789

Fix #1789
This only happens when front end &getExpressionType=true
We don't even need type information for dataverse types. Just short circuit and return empty.

✅ No public API change.


fix Input props caching

Hello, thank you for plugin!
I found an issue, which is when you calling setup it remembers M.Input object with all required calculations, and if screen size changed ( for me it was tmux splits ), popup config passed by user is not relevant anymore:
https://user-images.githubusercontent.com/21224705/142933682-c10fc841-df27-4013-9ea9-066f3d8471e8.mp4
so I just moved initialization of M.Input to open call to do it every time before rendering...
here is my config chunk:
            require("fine-cmdline").setup(
                {
                    popup = {
                        relative = "win",
                        position = {
                            row = "50%",
                            col = "50%"
                        },
                        size = {
                            width = "60%",
                            height = 1
                        }
                    }
                }
            )

That would break the before_mount hook.
It think it would be better to create a function to reset.
M.reset = function()
  M.setup(state.user_opts)
end

And then make an autocommand.
vim.cmd([[
    augroup fineline_commands
      autocmd!
      autocmd VimResized * lua require('fine-cmdline').reset()
    augroup END
]])

oh yes, for before_mount i should move input initialization a bit to the top....
i've just tested your proposition, but it did not worked for me, did you tried that autocmd with tmux pane resizing & terminal window resizing?

I did.
And even before that I tested VimResized (without my code), I used these commands to setup a variable and then increment.
:lua vim.g.times = 0
:autocmd VimResized * lua vim.g.times = vim.g.times + 1

After each test I used :lua print(vim.g.times)


Ruby LSP prevents dropping the database by keeping an active connection

Ruby LSP Information
VS Code Version
1.95.3
Ruby LSP Extension Version
0.8.13
Ruby LSP Server Version
0.22.1
Ruby LSP Addons

Ruby LSP Rails

Ruby Version
3.3.5
Ruby Version Manager
none
Installed Extensions

Click to expand

copilot (1.245.0)
copilot-chat (0.22.4)
gitlens (16.0.2)
ruby-lsp (0.8.13)
vscode-eslint (3.0.10)
vscode-pull-request-github (0.100.3)

Ruby LSP Settings

Click to expand
Workspace
{
  "rubyVersionManager": {
    "identifier": "none"
  }
}

User
{
  "enableExperimentalFeatures": true,
  "enabledFeatures": {
    "codeActions": true,
    "diagnostics": true,
    "documentHighlights": true,
    "documentLink": true,
    "documentSymbols": true,
    "foldingRanges": true,
    "formatting": true,
    "hover": true,
    "inlayHint": true,
    "onTypeFormatting": true,
    "selectionRanges": true,
    "semanticHighlighting": true,
    "completion": true,
    "codeLens": false,
    "definition": true,
    "workspaceSymbol": true,
    "signatureHelp": true,
    "typeHierarchy": true
  },
  "featuresConfiguration": {},
  "addonSettings": {},
  "rubyVersionManager": {
    "identifier": "none"
  },
  "customRubyCommand": "",
  "formatter": "auto",
  "linters": null,
  "bundleGemfile": "",
  "testTimeout": 30,
  "branch": "",
  "pullDiagnosticsOn": "both",
  "useBundlerCompose": false,
  "bypassTypechecker": false,
  "rubyExecutablePath": "",
  "indexing": {},
  "erbSupport": true,
  "useLauncher": false,
  "featureFlags": {}
}

Reproduction steps

Open any Rails project with PostgreSQL database.
Run the command bin/rails db:drop in the terminal.
Observe the error message stating that the database cannot be dropped because it is being accessed by another user.

This is expected because the Rails add-on would still have its Rails process active. I'm not sure how we could solve this, as we would to intercept that command and trigger the LSP to shutdown.
To workaround this for now, you should be able to stop Ruby LSP (Commmand-Shift-P then 'RubyLSP: Stop') before running db:drop.


Arabic Labels on Feedback Form should be RTL - issue on iOS only

Staging V 1.40.0: Arabic labels on Feedback Forms (screenshots 1, 2, 3) should be RTL. This issue seems to be on iOS only. Android looks fine.

Suggest an update Form:

This service no longer exists - “e.g. Service is permanently closed”

Other Suggestions - “Comment or suggest edits”

Acceptance Criteria

[ ]  Arabic labels on Feedback Forms on iOS should be RTL

Steps for QA:

Test the Arabic version of the app on iOS
Select a topic
Click "Find related services near me"
Open a Service Details page
Click "Suggest an update"
5a. Select Change name or other details:

[x] Arabic labels on Feedback Form should be RTL
5b. Select This service no longer exists:
[x] "e.g. Service is permanently closed" should be RTL
5c. Select Other suggestions:
[x] "Comment or suggest edits" should be RTL

Staging 1.42.0 - Passes


Problem with second argument in uncipherfile

uncipherfile is not created to handle multiple values. you can try ./message*.txt instead


Passing ${workspaceFolder} to extension development host has no effect

Version: 1.33.0-insider (user setup)
Commit: 0ac111466ec925fd5ca180ab9893f51531e419b2
Date: 2019-04-01T15:51:40.913Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763
Steps to Reproduce:

Create a new extension yo code
Change launch.json and include "${workspaceFolder}" as the first item in each args list.

Expected behavior: The workspace opened in the original instance to be also opened in the extension development host instance.
Actual behavior: The EDH opens without an active workspace.
I'm building an extension that, during tests, I need an active workspace. Not to repeat myself, here's my SO question.
Does this issue occur when all extensions are disabled?: Yes
Example project that exhibits the issue:
hello-world.zip

VS Code prevents to open a folder multiple times.


Sub tasks not on the board

One can add a subtask to a 'normal' Task.
would like to place subtasks as separate items on the board, so their status&progress can be followed individually.
I know about issue #371, metioning that it should be possible on the development version, which I am using. But I cannot seem to get subtasks as separate items on the board.
I do not want to use the task linking feature.

Ticket #371 is about showing subtasks in the dashboard not the board.
Subtasks are not displayed on the board, however you can see the status of each subtasks with the tooltip when you mouse over the subtasks progress status.
I don't plan in the future to display subtasks on the board in the same way as tasks.


clangd returns incorrect indent for snippets

For example, while will return the snippet, but the indent before statements is incorrect.
Logs
{
    "filterText": "while",
    "insertText": "while (${1:expression}) {\n${0:statements}\n}",
    "insertTextFormat": 2,
    "kind": 15,
    "label": " while (expression) {statements}",
    "score": 8,
    "sortText": "3f000000while",
    "textEdit": {
        "newText": "while (${1:expression}) {\n${0:statements}\n}",
        "range": {
            "end": {
                "character": 7,
                "line": 21
            },
            "start": {
                "character": 4,
                "line": 21
            }
        }
    }
}

System information
Output of clangd --version: clangd 12
Editor/LSP plugin: coc-clangd/vscode-clangd
Operating system: macOS

yes that's WAI. since running formatting on every code completion item in advance is not feasible latency-wise, we rather expect the user to trigger formatting explicitly, or the editor to send a format on type request after selection of a completion item.


WIP: Add new /verify/identity API

This will allow for 3rd party integrations that need to independently verify the identity of a keylime agent (such as for a future SPIRE node attestor plugin)

Nice feature. It would be good to include some documentation/examples. Do you plan to add it to keylime_tenant?

Yes, I need to add it to the API documentation.

Updated the REST API documentation with an example.

@mpeters any specific reason this is a get request and not a JSON object that gets posted? The later one is a bit more flexible when it comes to size.

@mpeters any specific reason this is a get request and not a JSON object that gets posted? The later one is a bit more flexible when it comes to size.

Yeah, I went back and forth on that. I was trying to follow the semantics of HTTP where PUT/POST are used for adding and updating data and GET for retrieval... But you're right that size can be an issue with GET requests. Are there other areas where we don't follow HTTP semantics that would set a precedent?

Are there other areas where we don't follow HTTP semantics that would set a precedent?

Not that I can think of. Either is fine for now, I think.

@stefanberger I've been getting the type linting stuff cleaned up for this change but am stuck on a certain error that I can't quite figure out:
keylime/keylime/cloud_verifier_common.py:359:13 - error: Argument of type "Column[str]" cannot be assigned to parameter "data" of type "str" in function "check_quote"

Just to push through I tried adding an ignore type comment line like  # type: ignore  # doesn't like Column[str] being used as str for some reason but that lead to a different error:
keylime/cloud_verifier_common.py:348: error: Unused "type: ignore" comment  [unused-ignore]

So what's the best way to fix this?

This here solve it for me:
diff --git a/keylime/cloud_verifier_common.py b/keylime/cloud_verifier_common.py
index 498b3a4..83fc0df 100644
--- a/keylime/cloud_verifier_common.py
+++ b/keylime/cloud_verifier_common.py
@@ -356,9 +356,9 @@ def process_verify_identity_quote(
         quote_failure = get_tpm_instance().check_quote(
             agentAttestState,
             nonce,
-            public_key,
+            public_key,  # pyright: ignore
             quote,
-            ak_tpm,
+            ak_tpm, # pyright: ignore
             {},  # skip tpm_policy check for identity quotes
             None,  # skip ima_measurement_list check for identity quotes
             None,  # skip runtime_policy check for identity quotes

# tox -e pyright,mypy,pylint
pyright: commands[0]> pyright
0 errors, 0 warnings, 0 informations
pyright: OK ✔ in 7.96 seconds
mypy: commands[0]> mypy keylime/
Success: no issues found in 128 source files
mypy: OK ✔ in 0.34 seconds
pylint: commands[0]> bash scripts/check_codestyle.sh
pylint 3.2.0
astroid 3.2.0
Python 3.9.18 (main, Sep  7 2023, 00:00:00)
[GCC 11.4.1 20230605 (Red Hat 11.4.1-2)]

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

  pyright: OK (7.96=setup[0.04]+cmd[7.91] seconds)
  mypy: OK (0.34=setup[0.01]+cmd[0.33] seconds)
  pylint: OK (36.10=setup[0.06]+cmd[36.04] seconds)
  congratulations :) (44.48 seconds)

/packit retest-failed

/packit retest-failed

/packit retest

After this is merged, the changes for the rust agent can also pass CI and be merged (https://github.com/keylime/rust-keylime/pull/758)


[Bug] [Data Source] Can not create oracle data source.

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
"Failed to load driver class oracle.jdbc.OracleDriver in either of HikariConfig class loader or Thread context classloader" is prompted when I build a oracle data source  connection. I have already copyed ojdbc6.jar or ojdbc8.jar file to all libs directories，and restarted servers .The jdbc file worked well in version 1.x.
(By the way ,there is no oracle datasource description in lastest DOC?)
What you expected to happen
create oracle data source properly
How to reproduce
Just create oracle data source.
Anything else
No response
Version
3.0.0-beta-2
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Currently, one task instance of hive data source uses one connection. The maximum number of concurrent connections is equal to the number of worker threads. It's recommended to improve the configuration of hiveserver2 or reduce the concurrency.

Due to incompatible license of Oracle. We can only introduce Oracle in a similar way to MySQL. I'll add this to the document.

We can only introduce Oracle in a similar way to MySQL. I'll add this to the

I can access mysql datasource by copying jdbc driver to libs directories,but can not access oracle datasource in same way.

We can only introduce Oracle in a similar way to MySQL. I'll add this to the

I can access mysql datasource by copying jdbc driver to libs directories,but can not access oracle datasource in same way.

Yes. It has been fixed in #11095.

And I tried ojdbc6.jar and ojdbc8.jar

Thank you for replying .Buy I dont care abort the DOC. I just want  Oracle datasource is available.


Thick lines

(changed branch name, this is a clone of #179)
Working my way through http://kt8216.unixcab.org/murphy/index.html
Closes #46
Please don't look at my code lol it's an abomination.
It'S a DrAfT pUlL rEqUeSt

As can be seen by the commit log, this ain't going well. I'll revisit it with a fresh mind one day. Could definitely use some help getting thick lines into e-g!

Could you restore the branch so others can look at the progress you have made until now?

I've restored it but it's pretty disgusting code lol. I thought it would be better to just start again, whether it's me implementing this stuff or someone else.


Saving a model for use later

Hi,
Is there a way to save a model and then test it on another set of data for a later use?
So the steps I'd like to take are:

Train the model on the training data
Test the model on the test set
save the current position of the Random Forest
Load that Random Forest
Test it again on a different test set

Or is there a way to test it on two test sets stored in two different files and get the metrics for each separately?

Hi,
I didn't implement saving and loading for it. However, you could either

append the two sets together, test them, and split the predictions subsequently to measure performance on both datasets. Or
change the config file to be able to read a list of files and change the codes here and here to enable loading and testing on multiple datasets.


implement gridsearchcv

let's get the structure of gridsearchcv in place before we make the pipeline much more complicated

done.


Error: Can't build plugin/preact-rectangles or plugin/preact-resizable templates

I'm getting a TypeScript error when trying to build the plugin/preact-rectangles or plugin/preact-resizable templates for the first time:
$ npm run build

> build
> build-figma-plugin --typecheck --minify

info Typechecking...
error TypeScript error

    node_modules/@create-figma-plugin/ui/lib/types/event-handler.d.ts:3:86 - error TS2344: Type 'Parameters<NonNullable<EventHandler>>' does not satisfy the constraint 'never[]'.
      Type 'any[]' is not assignable to type 'never[]'.
        Type 'any' is not assignable to type 'never'.

    3 type FirstArgument<EventHandler extends ((...args: any) => any) | undefined> = First<Parameters<NonNullable<EventHandler>>>;

Steps to reproduce (following the Quick Start guide):

$ npx --yes create-figma-plugin
Select plugin/preact-rectangles or plugin/preact-resizable
$ cd preact-rectangles
$ npm run build
TypeScript error

The same error occurs when attempting to add @create-figma-plugin/ui to an existing plugin following the instructions on the documentation website.

same issue here

Having the same issue. Did some tinkering and it appears the problem is Typescript 5.4. Installing typescript 5.3 instead fixed it for me.

Same error https://github.com/yuanqing/create-figma-plugin/issues/227

I ended up skipping the lib check to avoid this error, in tsconfig.json adding skipLibCheck: true
"compilerOptions": {
    ...
    "skipLibCheck": true
  },
...
}

This issue should be fixed as of 3.2.0
$ npx --yes --<EMAIL_ADDRESS>--template plugin/preact-rectangles
info Copying "plugin/preact-rectangles" template...
info Resolving package versions...
info Installing dependencies...
success Done

First:
  cd preact-rectangles

To build the plugin:
  npm run build

To watch for code changes and rebuild the plugin automatically:
  npm run watch

$ cd preact-rectangles
$ npm run build

> build
> build-figma-plugin --typecheck --minify

info Typechecking...
success Typechecked in 0.850s
info Building...
success Built in 0.327s


WSAS-2236 : Implemented Java 8 code formatting best practices and fixed IDE warnings

The above commits are included in the PR https://github.com/wso2/product-as/pull/348


partial eval silently skips effects

Description
import jax
from jax.experimental import checkify
from jax.interpreters import partial_eval

def fn(x):
    checkify.check(x < 10, "checkify")
    jax.debug.print("callback: {}", x)
    return x

jaxpr = jax.make_jaxpr(fn)(1)
jaxpr_known, jaxpr_unkown, out_unknowns, out_avals = (
    partial_eval.partial_eval_jaxpr_nounits(jaxpr, unknowns=[True], instantiate=False)
)
print(jaxpr_known, jaxpr_unkown, out_unknowns, out_avals)

prints
{ lambda ; . let _:i32[] = select_n False 1 -1 in () } { lambda ; a:i32[]. let  in (a,) } [True] []

I expected jaxpr_unkown to contain the effects.
possible workaround: wrap unknown args using a dynamic=False jaxpr trace. I also had to change how pjit_p is handled.
System info (python version, jaxlib version, accelerator, etc.)
jax:    0.4.28
jaxlib: 0.4.28
numpy:  1.26.4
python: 3.12.2 (main, Feb  6 2024, 20:19:44) [GCC 13.2.0]
jax.devices (1 total, 1 local): [cuda(id=0)]
process_count: 1

Thanks for raising this!
Actually, I'm not sure if we should call this a 'bug', since this is an internal API. Is there an issue you're seeing in a public API?
This is one of the main reasons partial_eval_jaxpr_stateful exists. The two may be merged someday, but for the moment this is essentially expected behavior for trace_to_jaxpr_nounits.
Can you say more about what problem you're trying to solve?

Here's how you would call it, but this is a very internal API so beware:
import jax
from jax.experimental import checkify
from jax._src.interpreters import partial_eval as pe

def fn(x):
    checkify.check(x < 10, "checkify")
    jax.debug.print("callback: {}", x)
    return x

jaxpr = jax.make_jaxpr(fn)(1)
jaxpr_known, jaxpr_unkown, out_unknowns, *_ = (
    pe.partial_eval_jaxpr_stateful(jaxpr.jaxpr, in_unknowns=[True],
                                   in_inst=[True], ensure_out_unknowns=False,
                                   ensure_out_inst=False, saveable=lambda *_,
                                   **__: True)
)
print(jaxpr_known, jaxpr_unkown, out_unknowns)

Thank you!
while im not using a public api, im during something similar to jax.linearize, which also have this problem
import jax
from jax import Array
from jax import numpy as jnp
from jax._src import checkify, effects

# effects.custom_derivatives_allowed_effects.add_type(checkify.ErrorEffect)

@jax.custom_jvp
def fn(x: Array):
    return x

@fn.defjvp
def testfn_jvp(primals: tuple[Array, ...], tangents: tuple[Array, ...]):

    (x,) = primals
    (tg,) = tangents

    jax.debug.print("callback: {}", tg)
    # checkify.check(tg < 0, "invalid tangent {}", tg)

    return x, tg

# jvp works
# jax.jvp(fn, [jnp.array(1.0)], [jnp.array(2.0)])

val, tang = jax.linearize(fn, jnp.array(1.0))
tang(jnp.array(2.0))

I think we should mark this as resolved, since it's about internal APIs. But I hope this suggestion worked for you.


Enable simple interpolation.

Get interpolation factor using getter. This allows for slowing/speeding up videos without reinventing the interpolation calculation already coded.

I integrated this in #199 , thanks for your help!


Intermitting error during cmake generate because the libxml2 mirror is unavailable, during vcpkg install, on Ubuntu 20, with curl returning error 503

This is an issue about CI reliability/consistency.
I have not seen this error before, but we can use this issue as a ref count in case we hit it again which would warrant further investigation.
From an unrelated PR: https://github.com/Azure/azure-sdk-for-cpp/pull/4311
The vcpkg install step is failing:

curl: (22) The requested URL returned error: 503

This URL is broken:
https://gitlab.gnome.org//GNOME/libxml2/-/archive/7846b0a677f8d3ce72486125fa281e92ac9970e8/libxml2-7846b0a677f8d3ce72486125fa281e92ac9970e8.tar.gz

https://dev.azure.com/azure-sdk/public/_build/results?buildId=2152475&view=logs&j=5312c7ff-5558-5a0c-4f25-5356448c148b&t=e3c187bf-1d33-550b-e246-d16bae1b130e
2023-01-31T23:56:40.7159836Z [DEBUG] 9368: cmd_execute_and_stream_data() returned 22 after 130557683 us
2023-01-31T23:56:40.7160512Z Error: Failed to download from mirror set:
2023-01-31T23:56:40.7161794Z https://gitlab.gnome.org//GNOME/libxml2/-/archive/7846b0a677f8d3ce72486125fa281e92ac9970e8/libxml2-7846b0a677f8d3ce72486125fa281e92ac9970e8.tar.gz:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2023-01-31T23:56:40.7162727Z                                  Dload  Upload   Total   Spent    Left  Speed
2023-01-31T23:56:40.7163073Z
2023-01-31T23:56:40.7163899Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2023-01-31T23:56:40.7164805Z   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
...
2023-01-31T23:56:40.7284495Z   0     0    0     0    0     0      0      0 --:--:--  0:02:10 --:--:--     0
2023-01-31T23:56:40.7285611Z   0     0    0     0    0     0      0      0 --:--:--  0:02:10 --:--:--     0
2023-01-31T23:56:40.7286583Z curl: (22) The requested URL returned error: 503
2023-01-31T23:56:40.7286891Z
2023-01-31T23:56:40.7287070Z
2023-01-31T23:56:40.7287585Z [DEBUG] /mnt/vss/_work/1/s/src/vcpkg/base/downloads.cpp(766):
2023-01-31T23:56:40.7288219Z [DEBUG] Time in subprocesses: 130559023 us
2023-01-31T23:56:40.7288814Z [DEBUG] Time in parsing JSON: 8 us
2023-01-31T23:56:40.7289278Z [DEBUG] Time in JSON reader: 0 us
2023-01-31T23:56:40.7289686Z [DEBUG] Time in filesystem: 134 us
2023-01-31T23:56:40.7290090Z [DEBUG] Time in loading ports: 0 us
2023-01-31T23:56:40.7290519Z [DEBUG] Exiting after 2.176 min (130558271 us)
2023-01-31T23:56:40.7290742Z
2023-01-31T23:56:40.7291218Z CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
2023-01-31T23:56:40.7291665Z
2023-01-31T23:56:40.7292033Z       Failed to download file with error: 1
2023-01-31T23:56:40.7292500Z       If you use a proxy, please check your proxy setting. Possible causes are:
2023-01-31T23:56:40.7292936Z
2023-01-31T23:56:40.7293363Z       1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
2023-01-31T23:56:40.7294082Z          to `https://address:port`. This is not correct, because `https://` prefix
2023-01-31T23:56:40.7294773Z          claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
2023-01-31T23:56:40.7295397Z          , etc..) is an HTTP proxy. Try setting `http://address:port` to both
2023-01-31T23:56:40.7295918Z          HTTP_PROXY and HTTPS_PROXY instead.
2023-01-31T23:56:40.7296289Z
2023-01-31T23:56:40.7296739Z       2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
2023-01-31T23:56:40.7297377Z          will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
2023-01-31T23:56:40.7298005Z          Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
2023-01-31T23:56:40.7298610Z          Change `http=address:port;https=address:port` to `address`, and fill the port number.
2023-01-31T23:56:40.7299089Z
2023-01-31T23:56:40.7299755Z       3. Your proxy's remote server is out of service.
2023-01-31T23:56:40.7300173Z
2023-01-31T23:56:40.7300596Z       In future vcpkg releases, if you are using Windows, you no longer need to set
2023-01-31T23:56:40.7301150Z       HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
2023-01-31T23:56:40.7301937Z       Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
2023-01-31T23:56:40.7302648Z       and (https://github.com/microsoft/vcpkg-tool/pull/77)
2023-01-31T23:56:40.7303049Z
2023-01-31T23:56:40.7303476Z       Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues
2023-01-31T23:56:40.7303766Z
2023-01-31T23:56:40.7304158Z Call Stack (most recent call first):
2023-01-31T23:56:40.7304696Z   scripts/cmake/vcpkg_download_distfile.cmake:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
2023-01-31T23:56:40.7305503Z   scripts/cmake/vcpkg_from_gitlab.cmake:118 (vcpkg_download_distfile)
2023-01-31T23:56:40.7306137Z   buildtrees/versioning_/versions/libxml2/e1262b96218e08ee3cc877999c759e658cca8273/portfile.cmake:1 (vcpkg_from_gitlab)
2023-01-31T23:56:40.7306716Z   scripts/ports.cmake:147 (include)
2023-01-31T23:56:40.7306921Z
2023-01-31T23:56:40.7307129Z
2023-01-31T23:56:40.7307761Z error: building libxml2:x64-linux failed with: BUILD_FAILED
2023-01-31T23:56:40.8928028Z error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
2023-01-31T23:56:40.8928894Z Then check for known issues at:
2023-01-31T23:56:40.8929421Z     https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libxml2
2023-01-31T23:56:40.8929923Z You can submit a new issue at:
2023-01-31T23:56:40.8930700Z     https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libxml2]+Build+error
2023-01-31T23:56:40.8931720Z Include '[libxml2] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
2023-01-31T23:56:40.8932603Z     vcpkg-tool version: 2022-10-17-3247920fbdd47d08f36cbd480addd9890d3c2435
2023-01-31T23:56:40.8933300Z     vcpkg-scripts version: 94ce0dab5 2022-10-19 (3 months ago)
2023-01-31T23:56:40.8933609Z
2023-01-31T23:56:40.8933779Z
2023-01-31T23:56:40.8934243Z Please use the prefilled template from /mnt/vss/_work/1/s/build/vcpkg_installed/vcpkg/issue_body.md when reporting your issue.
2023-01-31T23:56:40.8934927Z -- Running vcpkg install - failed
2023-01-31T23:56:40.8935610Z CMake Error at build/_deps/vcpkg-src/scripts/buildsystems/vcpkg.cmake:868 (message):
2023-01-31T23:56:40.8936144Z   vcpkg install failed.  See logs for more information:
2023-01-31T23:56:40.8936759Z   /mnt/vss/_work/1/s/build/vcpkg-manifest-install.log
2023-01-31T23:56:40.8937217Z Call Stack (most recent call first):
2023-01-31T23:56:40.8937874Z   /usr/local/share/cmake-3.25/Modules/CMakeDetermineSystem.cmake:124 (include)
2023-01-31T23:56:40.8938395Z   CMakeLists.txt:26 (project)
2023-01-31T23:56:40.8938651Z
2023-01-31T23:56:40.8938816Z
2023-01-31T23:56:40.8939327Z CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
2023-01-31T23:56:40.8939991Z CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
2023-01-31T23:56:40.8940607Z -- Configuring incomplete, errors occurred!
2023-01-31T23:56:40.8966861Z ##[error]Bash exited with code '1'.
2023-01-31T23:56:40.8980853Z ##[section]Finishing: cmake generate

I believe this is caused by an outage of the GNOME download servers:
https://github.com/microsoft/vcpkg/issues/29332
https://github.com/microsoft/vcpkg/issues/29331

Looks like it has been resolved (based on recent pipeline runs). Closing.


Add lymph gland stem cell terms

We do not currently have any terms for the lymph gland stem cells. A description can be found in FBrf0228311.

The term lymph gland stem cell has been added.


Question about Success Rate Evaluation

Thanks for this good work! I have minor problems with the evaluation. It seems the current code only calculates element_acc and action_f1. Will the code about the success rate be released?

Hi, thanks for the feedback! We will add the success rate metric in future release. Meanwhile, the calculation of success rate is rather straightforward: A task is considered success if and only if all steps are successful, that is have element_acc and action_f1 both as 1.

Hi @xiang-deng, thanks for the work! I was wondering if it is possible to have a more interactive style of evaluation, so we can give agents some partial scores even if the agent does some "wrong" actions that do not block it from finally accomplishing the task?  Sorry if it is a bit unclear, I was mainly trying to evaluate our recent work SwiftSage on Mind2web, but found the setup is a bit hard to match --- (we used a text game setup, so the agent will play in a "observation-->action-->next observation" format). Thanks!

Hi, thanks for the great question. Unfortunately at this stage Mind2Web is designed mostly for static evaluation. During the initial design phase, we decide to have diverse coverage of real websites which in turn limits our ability for interaction, as it is unlikely we can scrape and cache all possible states of the real website.
With that said, since all the data we have directly come from real websites. It is possible to have a live experiment that allow the agent to directly engage with the live site. How to improve on this direction is something the group is working on but not covered by Mind2Web yet.


Remove create array task

Removed

IOC-48: Removed CreateArrayTask
IOC-49: Removed CreateArrayTaskKind

Codecov Report

Merging #174 (7d51fc1) into master (88b2ad8) will increase coverage by 3.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #174      +/-   ##
==========================================
+ Coverage   95.79%   98.88%   +3.08%
==========================================
  Files         104       22      -82
  Lines        1594      359    -1235
  Branches      221       55     -166
==========================================
- Hits         1527      355    -1172
+ Misses         64        4      -60
+ Partials        3        0       -3

Flag
Coverage Δ

cuaktask
99.17% <ø> (ø)

iocuak
?

porygon
98.30% <ø> (ø)

porygon-typeorm
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...s/cuaktask/ContainerModuleServiceImplementation.ts

...lectMetadata/utils/domain/updateReflectMetadata.ts

...k/src/reflectMetadata/models/domain/MetadataKey.ts

...es/domain/ContainerRequestServiceImplementation.ts

...ng/services/domain/BindingServiceImplementation.ts

...ckages/iocuak/src/binding/decorators/injectable.ts

...ing/models/api/bindingScopeToBindingScopeApiMap.ts

...m/src/crud/adapter/typeorm/UpdateTypeOrmAdapter.ts

.../modules/cuaktask/TaskGraphExpandCommandHandler.ts

.../crud/modules/iocuak/TypeOrmReadContainerModule.ts

... and 71 more

Continue to review full report at Codecov.

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


WEIGHT of the vgg16_caffe-292e1171.pth

WEIGHT: 'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/vgg16_caffe-292e1171.pth'.This URL is not accessible,Do you have any suggestions for a solution?Thanks!!

Thanks for your interest! Please refer to the following onedrive link.
https://portland-my.sharepoint.com/personal/wuyangli2-c_my_cityu_edu_hk/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fwuyangli2-c_my_cityu_edu_hk%2FDocuments%2FResearch%2FOpen Source%2FCVPR22-SIGMA%2Fwell_trained_models%2Fvgg16_caffe-292e1171.pth&parent=%2Fpersonal%2Fwuyangli2-c_my_cityu_edu_hk%2FDocuments%2FResearch%2FOpen Source%2FCVPR22-SIGMA%2Fwell_trained_models&ga=1

Thank you very much, this seems to only log into your school email, I downloaded this dataset via another URL: https://download.openmmlab.com/pretrain/third_party/vgg16_caffe-292e1171.pth.

Built the environment, but there is a problem at fcos_core/modeling/rpn/fcos/inference.py under line 77:
Traceback (most recent call last):
File "tools/train_net_da.py", line 20, in
from fcos_core.modeling.detector import build_detection_model
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/detector/init.py", line 2, in
from .detectors import build_detection_model
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/detector/detectors.py", line 2, in
from .generalized_rcnn import GeneralizedRCNN
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/detector/generalized_rcnn.py", line 11, in
from ..backbone import build_backbone
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/backbone/init.py", line 3, in
from . import fbnet
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/backbone/fbnet.py", line 14, in
from fcos_core.modeling.rpn import rpn
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/rpn/rpn.py", line 9, in
from fcos_core.modeling.rpn.fcos.fcos import build_fcos
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/rpn/fcos/fcos.py", line 5, in
from .inference import make_fcos_postprocessor
File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/rpn/fcos/inference.py", line 77
pre_nms_top_n = pre_nms_top_n.clamp(max=self.pre_nms_top_n)runtimeerror: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead
^
SyntaxError: invalid syntax
Have you encountered this problem and what should I do to fix it?Thanks！

Thank you very much, this seems to only log into your school email, I downloaded this dataset via another URL: https://download.openmmlab.com/pretrain/third_party/vgg16_caffe-292e1171.pth.  Built the environment, but there is a problem at fcos_core/modeling/rpn/fcos/inference.py under line 77: Traceback (most recent call last): File "tools/train_net_da.py", line 20, in from fcos_core.modeling.detector import build_detection_model File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/detector/init.py", line 2, in from .detectors import build_detection_model File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/detector/detectors.py", line 2, in from .generalized_rcnn import GeneralizedRCNN File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/detector/generalized_rcnn.py", line 11, in from ..backbone import build_backbone File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/backbone/init.py", line 3, in from . import fbnet File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/backbone/fbnet.py", line 14, in from fcos_core.modeling.rpn import rpn File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/rpn/rpn.py", line 9, in from fcos_core.modeling.rpn.fcos.fcos import build_fcos File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/rpn/fcos/fcos.py", line 5, in from .inference import make_fcos_postprocessor File "/media/ubuntu/9a32be42-b1fc-4942-91da-4a28a2388ede/zyb/SCAN/fcos_core/modeling/rpn/fcos/inference.py", line 77 pre_nms_top_n = pre_nms_top_n.clamp(max=self.pre_nms_top_n)runtimeerror: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead ^ SyntaxError: invalid syntax Have you encountered this problem and what should I do to fix it?Thanks！

Hi, sorry for the wrong link. I have corrected it as this.
It seems that the project was built successfully. Did you use the DAOD benchmark dataset or your custom one?

Thanks for the reply! This is the cityscapes dataset run on SCAN. I will reproduce SIGMA and if I have any questions I will ask you again, thanks again for your excellent contribution.
I tried changing pre_nms_top_n = candidate_inds.view(N, -1).sum(1) to pre_nms_top_n = candidate_inds.reshape(N, -1).sum(1), and now it seems to work! Here is a preliminary run at cityscapes to cityscapes_foggy, is this correct?
2024-06-30 15:05:21,652 fcos_core.trainer INFO: Start training
/home/ubuntu/anaconda3/envs/SCAN/lib/python3.7/site-packages/torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument.
DONE (t=1.27s)
creating index...
index created!
Running per image evaluation...
Evaluate annotation type bbox
DONE (t=12.31s).
Accumulating evaluation results...
DONE (t=0.59s).
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.001
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.004
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.003
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.009
Maximum f-measures for classes:
[0.0, 0.019636301545291557, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
Score thresholds for classes (used in demos for visualization purposes):
[0.0, 0.23027010262012482, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
2024-06-30 15:11:52,272 fcos_core.inference INFO: OrderedDict([('bbox', OrderedDict([('AP', 5.6819832519004756e-05), ('AP50', 0.0003043063231258932), ('AP75', 2.225942018662298e-06), ('APs', 0.0003712871287128713), ('APm', 2.2652345072354306e-05), ('APl', 0.00036908724346504764)]))])


Event onVolumeChange

Please tell me how to determine the change in sound?
Or even be on pressing the volume buttons android devices.
I want to make a slider that will display the current state of sound. (v0.30.0)
Thank you.

You'd want to write a native module so that you can access the Android volume API from JavaScript. See https://facebook.github.io/react-native/docs/native-modules-android.html for how to write native modules.


RFC: Wip warrior - DO NOT MERGE

This is my attempt at a branch supporting warrior.  With this, I am able to build for the RpI, intel-corei7-64, qemux86, vexpress-qemu, and colibri-imx7 platforms.
I have not runtime tested them yet.
Also note that this needs custom forks of several other repos although the repo manifests here pull directly from my fork for testing. As the changes make their way into the other repos, these manifests will need to be updated to match.

Note that I have created a warrior branch,
https://github.com/mendersoftware/meta-mender-community/tree/warrior
The initial updates I have done covers:

meta-mender-raspberrypi
meta-mender-beaglebone
meta-mender-qemu
meta-mender-intel

I run-time tested all beside meta-mender-intel but here there is not much to test here either, if it does not work something is wrong in meta-mender and not here.
Please feel to pick parts from this PR and send them towards the new ẁarrior` branch.


Merge RELEASE notes

Archive 0.y.z release notes into RELEASE-0 and start a RELEASE-1.0 file.
Also updated the release script to update (preprend) into RELEASE-x.y.
...And pumped version back to -dev after the 1.0.0-alpha2 release

LGTM.


CMS view shows "Disconnect" on Table nodes

Azure Data Studio Version: master

Steps to Reproduce:

Connect to a CMS and expand a registered server
Expand down to tables and right-click on a table

Expected: Menu items match menu items for tables in Servers view.
Actual: Menu items don't match and contain "Disconnect", which makes no sense for a table.

@abist I thought in the design review we wanted to fix this for June, no?

@kburtram This is a data explorer issue with CMS and Azure both. I'll try to get a fix for CMS, however, it should be ideally handled by the Data Explorer. @anthonydresser, are there any nuances here or can I make changes to remove that action?

@abist I'm not sure-clear the distinction being made between CMS & Data Explorer, as CMS is being built as part of the Data Explorer workstream.  I assume the point is that the menu contributions are coming from the bit of code that attaches MSSQL schema contents to CMS\Azure tree nodes.  In this case, I agree that the fix should be made in that code rather than the CMS extension code.  I'll unassign and move into the Planning milestone to discuss tomorrow.

@abist it looks like Disconnect is still available on Tables, Views, etc.  Even though there are now the correct SELECT 1000, Edit Data, etc. commands.
Is this expected?  i.e., do we need a different fix to remove disconnect?  for some reason I thought this would be resolved by the change to add the correct commands.

Let me take a look. It should have been resolved.


How to update the browser history / url in the address bar when triggering onPrimaryAction={onSelect} in order to be able to reload the page selecting the same tree item?

Im searching in your list of examples a solution to update the browser history and/or the url in the address bar when f.e. triggering the onPrimaryAction event in order to be able to load and select the previously selected tree item. is there already something like this implemented or another solution? i wasnt able to find it.

Thank you for this very fast response. I will try to implement it and maybe post it here. anyway dont hesitate to close this issue so far.

Here a first solution:
sandbox
import {
  UncontrolledTreeEnvironment,
  Tree,
  StaticTreeDataProvider,
  TreeItem,
} from "react-complex-tree";
import { longTree } from "./data";
import "react-complex-tree/lib/style-modern.css";
import { Link, useNavigate } from "react-router-dom";

export default function () {
  const navigate = useNavigate();
  const onSelect = (item: TreeItem<any>, treeId: string): void => {
    console.log("onSelect", item, treeId);
    navigate("#" + item.index);
  };

  return (
    <>
      <UncontrolledTreeEnvironment
        dataProvider={
          new StaticTreeDataProvider(longTree.items, (item, data) => ({
            ...item,
            data,
          }))
        }
        getItemTitle={(item) => item.data}
        viewState={{
          "tree-1": {
            expandedItems: ["Fruit"],
          },
        }}
        onPrimaryAction={onSelect}
      >
        <Tree treeId="tree-1" rootItem="root" treeLabel="Tree Example" />
      </UncontrolledTreeEnvironment>
      <Link to="/test">Test</Link>
    </>
  );
}

and here the sourrounding RouterProvider
import { RouterProvider } from "react-router-dom";
import { router } from "./router";

export default function App() {
  return <RouterProvider router={router} />;
}

and here the routes
import React from "react";
import type { RouteObject } from "react-router-dom";
import { Outlet } from "react-router-dom";
import { createBrowserRouter } from "react-router-dom";
import Layout from "./Layout";
import Test from "./Test";
import Home from "./Home";

export const routes = [
  {
    path: "/",
    element: <Outlet />,
    children: [
      {
        index: true,
        path: "/",
        element: <Home />,
      },
      {
        path: "/test",
        element: <Test />,
      },
    ],
  },
] satisfies [RouteObject, ...RouteObject[]];

export const router = createBrowserRouter(routes, {
  future: {
    v7_normalizeFormMethod: true,
  },
});


Testing

Someone needs to test if this is guide is working and understandable. Could you help me @LMStudent?

@tbsvttr I'm not that into ruby and rails development. Just reviewed (not tested!) the OS X section. Looks good and understandable. Would it make sense to mark the steps regarding rbenv as optional?
From what I know about ruby is that rbenv is required to install different versions of ruby. Maybe this is not always required?
In general this is a really nice guide!

@suchja Thanks a lot. rbenv does not only helps you having multible instances of Ruby installed on your OS, but also automates the build process of Ruby. In the case of OS X having multible versions of Ruby is especially important, because you do not want to touch the preinstalled, custom Ruby by Apple. Apart from that one always should be able to create clean environments of a certian Ruby version for Ruby / Rails development due to complex dependecies of gems and usage of different Ruby or Rails versions.

That makes sense.


bug

border: 2px outset rgba(0, 0, 0, .9); ->  border: 2px outset;

Certainly.
But this is caused by CSSfmt or PostCSS, so it should be reported on their repository.
Please report issue on them?


Dead project takeover

In the jabbr page https://jabbr.net/#/rooms/SimpleAuthentication @jonh04 offered to take over, if the project is actually dead as it seems. Is it? Are you interested?

I'm still here. project isn't really dead. The other guy Phillip is prolly half dead cause he takes ages to get around to doing any SA stuff.
We're interesting in people helping of course! so sure .. if someone wants to help in the jabbr room - awesome!

Happy to have people help for sure.
I'm just super busy working on a personal project which I'm hoping to launch soon. And I'm sorta specing out an OWIN branch of SA.

Closing issue -> we're very happy to have people help us. Project isn't dead, just has low traffic.


Writing files with cdms2

I had iris updated on vortex the other day and it appears something has regressed because I can no longer write output files using cdms2 with /usr/local/anaconda/bin/python:
Traceback (most recent call last):
  File "/home/STUDENT/dbirving/climate-analysis/data_processing/calc_composite.py", line 201, in <module>
    main(args)
  File "/home/STUDENT/dbirving/climate-analysis/data_processing/calc_composite.py", line 149, in main
    outvar_axes_list)
  File "/home/STUDENT/dbirving/climate-analysis/modules/netcdf_io.py", line 926, in write_netcdf
    outfile.write(var)
  File "/usr/local/anaconda/lib/python2.7/site-packages/cdms2/dataset.py", line 1505, in write
    v[:] = var.astype(v.dtype)
  File "/usr/local/anaconda/lib/python2.7/site-packages/cdms2/fvariable.py", line 118, in __setslice__
    value.set_fill_value(saveFill)
  File "/usr/local/anaconda/lib/python2.7/site-packages/cdms2/tvariable.py", line 482, in set_fill_value
    AbstractVariable.setMissing(self, value)
  File "/usr/local/anaconda/lib/python2.7/site-packages/cdms2/avariable.py", line 357, in setMissing
    self.missing_value = value
  File "/usr/local/anaconda/lib/python2.7/site-packages/numpy/ma/core.py", line 3394, in set_fill_value
    _fill_value[()] = target
TypeError: 'numpy.float32' object does not support item assignment

From /usr/local/anaconda/lib/python2.7/site-packages/cdms2/fvariable.py it appears that if the variable in question is a masked numpy array then it tries to write the fill value and fails.
The problem doesn't happen when I use /usr/local/uvcdat/1.3.0/bin/python, but so far as I can tell it has exactly the same version of numpy and numpy.ma as /usr/local/anaconda/bin/python. (Which contradicts this person.

I fixed this problem by rewriting all netCDF handling with xray.


PA - MUSER PW Expiring

Problem statement
Muser's pw expiring
What you need to know
users whos pw are expiring are RptStreamSewsprod, pareportstream.

Document 1
Document 2
...

Acceptance criteria

[ ] ...

To do
assign to engineer and reset pw's

@Jcavallo7 Can I please get some more info on this? Both the links go nowhere and I'm not sure what MUSER is.

@adegolier Its about users passwords expiring on https://edcpwdmgr.pa.gov/, and needing to be updated there and in the azure vault.

That's not the same portal I was given for updating PA's passwords, but did this yesterday. Moved to awaiting confirmation because I want to give it a day or so to make sure it's working as expected since I can't run the check on a SOAP based transport.


[SCB-785] 支持在补偿方法里得到当前分布式事务的全局事务ID及本地事务ID

Improve 支持在补偿方法里得到当前分布式事务的全局事务ID及本地事务ID

补偿方法里通过omegaContext.globalTxId()和omegaContext.localTxId()可得到当前分布式事务的全局事务ID及本地
事务ID

Follow this checklist to help us incorporate your contribution quickly and easily:

[ x ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ x ] Each commit in the pull request should have a meaningful subject line and body.
[ x ] Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
[ x ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ x ] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

@jeremyxu2010  You can ping me at https://gitter.im/ServiceCombUsers/Saga if you have any other question want to ask.

There is a compile error from CI.
COMPILATION ERROR :
/home/travis/build/apache/incubator-servicecomb-saga/omega/omega-spring-tx/src/test/java/org/apache/servicecomb/saga/omega/transaction/spring/TransactionInterceptionTest.java:[365,14] constructor CompensationContext in class org.apache.servicecomb.saga.omega.context.CompensationContext cannot be applied to given types;
required: org.apache.servicecomb.saga.omega.context.OmegaContext
found: no arguments
reason: actual and formal argument lists differ in length

Coverage decreased (-0.1%) to 94.015% when pulling b1c3fb9b0b36315d441d95d3fadb11a9f56fdc92 on jeremyxu2010:master into 3f5c38a146982a04ed2b17759309de3e14f8c5ab on apache:master.


Adding previous contributors

Folks have been requested to grant permission to be included as historical co-authors in this repo. Accounts commenting with "+1" will be taken into consideration for being added. Thanks

+1

+1

+1


Games without metadata don't save playcount/lastplayed information

RetroHub doesn't save play info for games without metadata.

Fixed


linalg routines fail with pathologically edge cases

Description
This is discovered using the array-api-tests. I am not sure if the same behavior for handling 2D "scalar" matrices is applicable to all numpy.linalg routines, or just the two I posted here.
To Reproduce
>>> import numpy as np
>>> import cupy as cp
>>>
>>> # cholesky
>>> np.linalg.cholesky(np.empty((0, 0), dtype=np.float32))
array([], shape=(0, 0), dtype=float32)
>>> cp.linalg.cholesky(cp.empty((0, 0), dtype=cp.float32))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/leof/dev/cupy_cuda114/cupy/linalg/_decomposition.py", line 205, in cholesky
    potrf(
  File "cupy_backends/cuda/libs/cusolver.pyx", line 1205, in cupy_backends.cuda.libs.cusolver.spotrf
    cpdef spotrf(intptr_t handle, int uplo, int n, size_t A, int lda,
  File "cupy_backends/cuda/libs/cusolver.pyx", line 1212, in cupy_backends.cuda.libs.cusolver.spotrf
    check_status(status)
  File "cupy_backends/cuda/libs/cusolver.pyx", line 1062, in cupy_backends.cuda.libs.cusolver.check_status
    raise CUSOLVERError(status)
cupy_backends.cuda.libs.cusolver.CUSOLVERError: CUSOLVER_STATUS_INVALID_VALUE
>>>
>>> # matrix_power
>>> np.linalg.matrix_power(np.empty((0, 0), dtype=np.float32), n=-1)
array([], shape=(0, 0), dtype=float32)
>>> cp.linalg.matrix_power(cp.empty((0, 0), dtype=cp.float32), n=-1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/leof/dev/cupy_cuda114/cupy/linalg/_product.py", line 374, in matrix_power
    M = _solve.inv(M)
  File "/home/leof/dev/cupy_cuda114/cupy/linalg/_solve.py", line 323, in inv
    cupyx.lapack.gesv(a, b)
  File "/home/leof/dev/cupy_cuda114/cupyx/lapack.py", line 68, in gesv
    getrf(handle, n, n, a.data.ptr, n, dwork.data.ptr, dipiv.data.ptr,
  File "cupy_backends/cuda/libs/cusolver.pyx", line 1402, in cupy_backends.cuda.libs.cusolver.sgetrf
    cpdef sgetrf(intptr_t handle, int m, int n, size_t A, int lda,
  File "cupy_backends/cuda/libs/cusolver.pyx", line 1409, in cupy_backends.cuda.libs.cusolver.sgetrf
    check_status(status)
  File "cupy_backends/cuda/libs/cusolver.pyx", line 1062, in cupy_backends.cuda.libs.cusolver.check_status
    raise CUSOLVERError(status)
cupy_backends.cuda.libs.cusolver.CUSOLVERError: CUSOLVER_STATUS_INVALID_VALUE

Installation
No response
Environment
No response
Additional Information
No response

The previous tracking issue is #4330.

Thanks for the fixes @toslunar, looks like this issue can be closed now? 🙂

I'll fix eigh and eigvalsh.

Fixed by #6164, #6167, #6210.

Many thanks, @toslunar!


bump deps

Bumped react, react-dom major version in light of the React team's big release; bumped a couple other dep version numbers as well. Tests passed, locally.

thanks