text:
Is OrientDB version 1.0.1 supports java 11?

OrientDB Version: 1.0.1
Java Version: java 11
OS: windows
Actual behavior
Apr 23, 2024 10:51:24 AM com.orientechnologies.common.log.OLogManager log
SEVERE: Error on loading index by configuration: {type:DICTIONARY,name:dictionary,clusters:[0],mapRid:#1:83}
java.lang.IllegalArgumentException: com.orientechnologies.orient.core.index.OIndexFactory is not an ImageIO SPI class
at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(Unknown Source)
at java.desktop/javax.imageio.spi.ServiceRegistry.lookupProviders(Unknown Source)
at com.orientechnologies.common.util.OClassLoaderHelper.lookupProviderWithOrientClassLoader(OClassLoaderHelper.java:25)
at com.orientechnologies.orient.core.index.OIndexes.getFactories(OIndexes.java:71)
at com.orientechnologies.orient.core.index.OIndexes.getAllFactories(OIndexes.java:86)
at com.orientechnologies.orient.core.index.OIndexes.createIndex(OIndexes.java:116)
at com.orientechnologies.orient.core.index.OIndexManagerShared.fromStream(OIndexManagerShared.java:144)
at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.reload(ODocumentWrapperNoClass.java:68)
at com.orientechnologies.orient.core.index.OIndexManagerAbstract.load(OIndexManagerAbstract.java:99)
at com.orientechnologies.orient.core.index.OIndexManagerAbstract.load(OIndexManagerAbstract.java:52)
at com.orientechnologies.orient.core.metadata.OMetadata$1.call(OMetadata.java:106)
at com.orientechnologies.orient.core.metadata.OMetadata$1.call(OMetadata.java:97)
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:53)
at com.orientechnologies.orient.core.metadata.OMetadata.init(OMetadata.java:96)
at com.orientechnologies.orient.core.metadata.OMetadata.load(OMetadata.java:53)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:110)
at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:47)
at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:47)
at com.accurev.accusync.storage.service.StorageService.openDb(StorageService.java:136)
at com.accurev.accusync.storage.service.StorageService.testOpen(StorageService.java:617)
at com.accurev.accusync.storage.service.StorageService.upgradeClasses(StorageService.java:701)
at com.accurev.accusync.core.launcher.DefaultLauncher.upgrade(DefaultLauncher.java:239)
at com.accurev.accusync.core.launcher.DefaultLauncher.startServices(DefaultLauncher.java:288)
at com.accurev.accusync.core.launcher.DefaultLauncher.run(DefaultLauncher.java:135)
Steps to reproduce
I am trying to run my application with java 11.There i am using orient DB version 1.0.1. With java 8 it was working fine. But with java 11 it is failing. Is this versions is n ot compatible with java 11?

OrientDB 1.x is long out of support, so not sure if is supported and if is not will never be.
Regards

authors: Thejas-Jain-M-J tglman

repo: orientechnologies/orientdb


text:
exception with sql subselects

the query is (it is a simplified query, it does not make sense)
select * from sqltestmodel where title = ? and id in (select id from sqltestmodel where title = ? or title = ?) limit 1

and yes I am binding 3 values correctly (works with postgres, h2, fails with orientdb jdbc)
com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.select * from sqltestmodel where title = ? and id in (select id from sqltestmodel where title = ? or title = ?) limit 1
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1190)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1173)
	at com.orientechnologies.orient.core.sql.query.OSQLQuery.run(OSQLQuery.java:71)
	at com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.run(OSQLSynchQuery.java:85)
	at com.orientechnologies.orient.core.query.OQueryAbstract.execute(OQueryAbstract.java:33)
	at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1178)
	at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:385)
	at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:216)
	at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at com.orientechnologies.orient.core.sql.filter.OSQLPredicate.bindParameters(OSQLPredicate.java:380)
	at com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract.assignTarget(OCommandExecutorSQLResultsetAbstract.java:190)
	at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.assignTarget(OCommandExecutorSQLSelect.java:438)
	at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.executeSearch(OCommandExecutorSQLSelect.java:420)
	at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.execute(OCommandExecutorSQLSelect.java:391)
	at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:64)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1184)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1173)
	at com.orientechnologies.orient.core.sql.query.OSQLQuery.run(OSQLQuery.java:71)
	at com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.run(OSQLSynchQuery.java:85)
	at com.orientechnologies.orient.core.query.OQueryAbstract.execute(OQueryAbstract.java:33)
	at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1178)
	at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:385)
	at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:216)
	at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65)

works in 2.1-rc3

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Allow returning @depth from MATCH

MATCH provides much better syntax than TRAVERSE, but does not allow capturing @depth context variable.
It would be very convenient to have the ability to return @depth from MATCH as well, so that it would be a proper superset of TRAVERSE
Thanks

Hi @lodrion
Unfortunately there is no such option for now, but I think it would be really useful.
I'm flagging it as an enhancement, I'll work on it as soon as I can
Thanks
Luigi

@luigidellaquila is this already supported in 3.0?

Not yet, please keep it open
Thanks
Luigi

authors: lodrion luigidellaquila lvca


text:
Back to Origo-map

Link in the bottom of lefthand menu is off

..and the top Origo icon link


text:
Click on playlist to play does not work

Clicking on any playlist after I sign in does not add the songs to the queue. It throws a 403 forbidden error actually when I looked the response it says the request query was not formatted properly.

@orizens I would love to work on it, in fact I am looking at the code right now, would love of you can give some pointers which might help me resolving this, thanks!!!

hi @ashish173
thanks for reporting - this is indeed a bug.

license: mit

license_source: bigquery


text:
The command php app/console generate:bundle doesn't exist anymore

I would like to create a new bundle from scratch but the command php app/console generate:bundle dosn't existe anymore in the last version (1.8).

Hi, @startupz!
Please run composer install without --no-dev option

www-data@vmsrv44:~/public_html/crm-application$ php composer.phar install --prefer-dist
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package rhumsaa/uuid is abandoned, you should avoid using it. Use ramsey/uuid instead.
Generating autoload files
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Oro\Bundle\InstallerBundle\Composer\ScriptHandler::setPermissions
> Oro\Bundle\InstallerBundle\Composer\ScriptHandler::installAssets

I already install with --no-dev option. Does I need to make an update? But I want to keep composer.lock versions.

I just make a fresh install. And the command is missing :
 git clone https://github.com/orocrm/crm-application.git oro
  535  cd oro/
  536  curl -s https://getcomposer.org/installer | php
  537  php composer.phar install --prefer-dist
  538  mysqladmin -f -usynbshop drop synbshop_jvi_oro
  539  mysqladmin -f -usynbshop create synbshop_jvi_oro
  540  php app/console oro:install --timeout=0
  541  vim app/config/parameters.yml
  542  php app/console oro:install --timeout=0
  543  php app/console
  544  php app/console generate:bundle

I got the same problem with fresh install of crm-application v1.8.
I had to require bundle after install :
composer require sensio/generator-bundle:^3.0@dev
But then generate:bundle didn't ask me anymore to skip automatic update of routing and kernel like is sayed here : http://www.orocrm.com/documentation/index/current/cookbook/how-to-create-new-bundle.
So I ended by creating bundles manually.
Maybe something wrong with composer.lock ?

Hi!
composer require sensio/generator-bundle:~2.5.0 will install required version.
Fix will be in application repository soon. Thanks!

It works!

still missing ...

Hi @karol-gontarski,
the dependency is in place https://github.com/orocrm/platform/blob/1.9.1/composer.json#L82, but pay attention that composer.lock file for application is generated for prod environment, so it excludes require-dev section (https://github.com/orocrm/platform-application/blob/master/composer.lock).

authors: iklymenko karol-gontarski robertocastro sergeyz startupz

repo: orocrm/platform


text:
Uses public methods for query cache access

A follow-up to #47.
In all supported versions of ActiveRecord, both query_cache_enabled and query_cache are public accessors.
Using those in place of instance_variable_get means we can support cases where the connection is wrapped in a delegator one way or other (plus instance_variable_get is a little unsightly ^__^)

I'll wrap this into #47, actually. Getting the build to pass seems like it's going to be a challenge.

source: gharchive/pull-request

repo: orslumen/record-cache


text:
Content dissapears on click

It's a weird behaviour. It must be in someplace inside this library, angular-medium or medium-editor itself.
See it running: http://codepen.io/Mr-K/pen/vGbaMy
As you can see, we have multiple instances of medium-editor working which each contains an initial value. The content is binded, and it seems ready to edit.
So far so good.
BUT when you click at it, the content is replaced by nothing. It's missing. Gone, completely.
You can see it in the codepen above.

Any clues?

The problem is in this library.
Without including it, it works just fine.

You have a lot of additional code in your codepen example. Can you verify that even if you strip everything and leave only MediumEditor + plugin, the bug is still there?

@matikbird was the content you want to edit with editor with insert plugin preprocessed with medium editor?
In my case, I had one form which was filled by user with plain text. User clicked save and post with plain text was saved to db. Than user could edit it, but with medium editor this time. I prefilled medium editor with post plain text from db using editor.setContent(content, 0);. After clicking editor contenteditable, content disappeared!
The solution is to surround content with p tags and only then paste them to editor with method mentioned.
Maybe that's your case?

Actually I'm waiting for the 3.0v that @orthes it's developing, full standalone.
The current has a lot of libraries on it, like handlebars ─a template system─... and the whole thing contains like 10 buttons.
But I fell in love with the 3.0v. I'd rather waiting with what @orthes is doing, which's amazing.

authors: ignacy130 injectless matikbird orthes

repo: orthes/medium-editor-insert-plugin


text:
After registration webhooks aren't executed on native api flows

Preflight checklist

[X] I could not find a solution in the existing issues, docs, nor discussions.
[X] I agree to follow this project's Code of Conduct.
[X] I have read and am following this repository's Contribution Guidelines.
[ ] I have joined the Ory Community Slack.
[ ] I am signed up to the Ory Security Patch Newsletter.

Ory Network Project
No response
Describe the bug
When submitting a registration flow using the native API /self-service/registration/api the after registration password webhooks do not trigger. The same webhook triggers when using a browser API /self-service/registration/browser flow.
Reproducing the bug

Create n after registration password webhook
initialize and submit a native registration flow
See no webhook call

Repeat with browser flows and it will work.
Relevant log output
Browser flow TraceQL: 0000000000000000ba0a8901c31e8566
API flow TraceQL: 000000000000000048b633ec1449437d

Relevant configuration
No response
Version
latest
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
I'm unsure if other methods / flows are also affected and would require some investigation.

This sounds a bit unlikely - is it safe that this the request was using the same login / sign up method? Could also be a misconfiguration.

We do have at least one test  it("should pass transient_payload to webhook", () => { in the native API cypress suite so this could also be misconfiguration.

It's possible, I haven't done a deep investigation into it. But what could not be configured correctly if the browser flows work correctly and native don't?

Please tell the customer to move the session hook to the very bottom of the list of after-registration hooks and try again.

authors: Benehiko aeneasr alnr

repo: ory/network


text:
Request Onboarding to OSC Data Commons

Requesting onboarding for github user:
Request access to github team: <team-name(s)>
View teams here: https://github.com/orgs/os-climate/teams
Onboarding resources:

Data Commons environment setup
credentials.env file

Onboarding checklist:

[ ] new user invited to os-climate github org
[ ] user invited to requested teams

Hi @toby944 can you please let me know which workstreams of OS-Climate you are interested in, as well as what group/org you are from?

Hello Heather,
Thanks for your response. At the moment we are mainly interested in accessing data on companies to be able to use the ITR tool for OS-Climate and SBTi.
I work for SCOR, but we are not yet an official OS-Climate member as we are at the minute just testing out the tools.
Many thanks,
Toby

repo: os-climate/OS-Climate-Community-Hub


text:
Nuget Support

Is there any plan to support Nuget in the registries?

It is not in high priority, but it could be a good start for contributors. If you can add StackOverflow examples with links, install commands, and advisories showing an analysis of the Nuget package, the issue will be ready for implementation.

This is a good start point
https://learn.microsoft.com/en-us/nuget/nuget-org/publish-a-package
you need to get api key to publish a package

@amielnoy This project is not about publishing packages, but it is about finding suggestions for packages and analyzing the suggestions.
I can't see how documentation about publishing a Nuget package will help us.
I'm looking for information about what the installing commands for Nuget are looks like, with real examples from StackOverflow.

authors: WanielDeiss amielnoy baruchiro

repo: os-scar/overlay

license: MIT


text:
[rhel 8.7/9.1] explicitly add containernetworking-plugins to edge

Cherry-picked #2951 for backported release into RHEL 9.1.0.

In podman v4.0.0 the default network backend was switched from cni to netavark.  However, podman will choose cni if there are already containers, images, or cni networks preset on a system [1].
Starting with podman v4.2.0, containernetworking-plugins is no longer a hard requirement for podman.  So when an edge commit is built with an embedded container, podman v4.2.0+ will choose the cni network and fail with an error because the plugin isn't installed.
Adding the package explicitly alongside podman to avoid this issue with future RHEL 9.1 edge builds when they include containers.
This change does not affect test manifests.  The package is already included in manifests as a dependency of podman < v4.2.0.
See rhbz#2123210
[1] https://github.com/containers/common/blob/a083f790abf21048518f2d66b7e01370cc055790/pkg/config/containers.conf#L275-L278

The diff-manifests script needed a fix for PRs made against any branch other than main.  Branches aren't synced to GitLab so we need to fetch the base branch from GitHub.

Added commits required to fix some CI jobs.

Failures in new ostree test are being fixed in https://github.com/osbuild/osbuild-composer/pull/2979

repo: osbuild/osbuild-composer


text:
Call to a member function getDomain() on null in Safari

I logged in https://partners.shopify.com/xxxxxxx/resources/get_started to the Apps section. ->Test Application -> Select Store -> name-store. The error is only in safari. Chrome and Mozilla are fine.
Does anyone have any ideas?

@artem55555p   This is not package  Error you have to check the database you clean-up manfully  so Delete app and Install again.

I've tested this successfully on my own apps and new blank build. Closing it for now as the issue is quite old. Reopen if it still exists.

repo: osiset/laravel-shopify


text:
Cpu middleware

WHAT DOES THIS PR DO?
Adds CPU metrics of each pod
HOW TO TEST THIS PR:
Ensure minikube is running with minikube start
Run gh pr checkout 33 && npm install && npm run backend
Send a GET request to localhost:3000/metrics and ensure you get a console log of an array of objects back with podId and cpu with no cpu values of 0 and podIds of undefined.

this is the correct console.log, right?

repo: oslabs-beta/Kubiquity


text:
Compile error on latest clang

I'm seeing some compile errors when including libosmium in another project on latest clang:
Clang-version:
clang++ --version
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

...
In file included from ../third_party/libosmium/include/osmium/io/pbf_output.hpp:45:
In file included from ../third_party/libosmium/include/osmium/io/detail/pbf_output_format.hpp:37:
../third_party/libosmium/include/osmium/io/detail/output_format.hpp:216:51: error: class with destructor marked 'final'
 cannot be inherited from [-Werror,-Wfinal-dtor-non-final-class]
                ~BlackholeOutputFormat() noexcept final = default;                                                                                ^
../third_party/libosmium/include/osmium/io/detail/output_format.hpp:202:19: note: mark 'osmium::io::detail::BlackholeOu
tputFormat' as 'final' to silence this warning
            class BlackholeOutputFormat : public osmium::io::detail::OutputFormat {                                                      ^
DELETED
In file included from ../third_party/libosmium/include/osmium/io/pbf_output.hpp:45:
In file included from ../third_party/libosmium/include/osmium/io/detail/pbf_output_format.hpp:63:
In file included from ../third_party/libosmium/include/osmium/visitor.hpp:38:
In file included from ../third_party/libosmium/include/osmium/io/reader_iterator.hpp:37:
In file included from ../third_party/libosmium/include/osmium/io/reader.hpp:36:
../third_party/libosmium/include/osmium/io/compression.hpp:236:38: error: class with destructor marked 'final' cannot b
e inherited from [-Werror,-Wfinal-dtor-non-final-class]
            ~NoCompressor() noexcept final {                                                                                ^
../third_party/libosmium/include/osmium/io/compression.hpp:219:15: note: mark 'osmium::io::NoCompressor' as 'final' to
silence this warning
        class NoCompressor : public Compressor {                                                                                ^
../third_party/libosmium/include/osmium/io/compression.hpp:291:40: error: class with destructor marked 'final' cannot b
e inherited from [-Werror,-Wfinal-dtor-non-final-class]
            ~NoDecompressor() noexcept final {                                                                                ^
../third_party/libosmium/include/osmium/io/compression.hpp:267:15: note: mark 'osmium::io::NoDecompressor' as 'final' t
o silence this warning
        class NoDecompressor : public Decompressor {                                                                                ^
3 errors generated.

I currently work around this with the following patch in the main project:
+
+#ifdef __clang__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wfinal-dtor-non-final-class"
+#endif
 #include <osmium/io/pbf_output.hpp>
+#ifdef __clang__
+#pragma GCC diagnostic pop
+#endif

This has already been fixed in master.
Generally you should include code you don't own as "system include" (with -isystem instead of -I on many compilers), that way warnings like this from the library code will not affect your build.

:+1: I should've checked that before filing the issue. Thanks!

authors: PureW joto

repo: osmcode/libosmium


text:
performance of SqlTileWriter.runCleanupOperation()

Issue Type
[ *] Bug
Description and/or steps/code to reproduce the problem
When the maximum cache size is exceeded and runCleanupOperation() is called, it can cause the device to freeze for several minutes.  Presumably this is a very cpu and disk intensive operation and can overwhelm the device to such an extent that it stops responding and I can't close the application.  I do have cleanOnStartup=false to avoid purging the cache if I don't have network connection.
Possible ideas for improvement:

create an index for COLUMN_EXPIRES
perform 'DELETE FROM' in several chunks (eg. 10) rather than one go (perhaps not without an index?)
split the database into several (eg. 5) files and just delete the oldest one when the cache size is exceeded (may slow tile search?)
don't batch delete tiles at all, just delete/replace individual tiles with newly downloaded ones when full

Maybe some of these have been tried before, or are known not to work?
If it's a bug, version(s) of android this affects:
5.1
Version of osmdroid the issue relates to:
6.0.1

SqlTileWriter.runCleanupOperation is commented: this could be a long running operation, don't run on the UI thread unless necessary.
It's currently called in 3 places :

in the cleanOnStartup mode, it's called async'ly in a Thread with low priority
when it's called in saveFile, it's called sync'ly in two cases: beyond the functional space threshold, or when there's really no space left.

The code itself is:

check database size
if it's not too big (by default, under 600Mb), return
pre-computation with unnecessary approximation, and then a big ineffective SQL DELETE statement

In your case, the problems I see are:

it's called sync'ly
it's called with a very bad timing - as you're currently saving a new tile into the database
it's very slow

What I suggest in order to fix it:

call it async'ly (instead of sync'ly) when you exceed the threshold (when it's first called in saveFile), possibly using a singleton in order to avoid running tons of Threads
as you suggested, split the big DELETE statement into a loop of single row DELETE statements - something like "while we are beyond the threshold, get the eldest row, delete the row, continue if needed". No more bulk DELETE, just a string of harmless single row DELETE statements

To be confirmed: I guess the main problem with the current big DELETE statement is the eldest tiles selection as there's no index: it must perform a full scan of the SQL table.
Of course adding an SQL index on column expires would help,  but it takes space in the database too.
I also have this dream of splitting the database into 30 tables, one for each zoom level (0-29). Doing so you would have better performances (smaller tables), and you'd be able to run SQL statements in parallel on all tables. Maybe not 100% relevant in this issue, though.

I think the biggest problem is that it is very slow and intensive, it froze the phone not just the app so I don't think another thread or timing is going to help much until that is resolved.
Is a big DELETE necessarily ineffective?  I could imagine that there are efficiencies to be gained by reducing the number of queries/calls, particularly if it has to search for the oldest expiry each time.  I was thinking 10 not quite so big deletes, not thousands.
Adding an index also has potential to make a big delete slower, as it will have to be rebuilt in that case.
Perhaps ideas 3 (delete whole file outside of SQL) & 4+1 (delete individually on demand using index) have the greatest potential.  It can be quite laborious to test since it need a reasonable size cache to be noticeable, which takes a lot of map viewing to fill.  In normal usage there are a few months between these events.  However for these two solutions the problem is eliminated by design and it is easier to test that general cache performance is not significantly affected.

good points all around. We can add indexes to the expires column if needed, that may be the easiest

Additional comments (regardless of the specific recycling algorithm):

I'd like to implement some kind of "garbage collector" design pattern (not sure if that exists), with an async gc singleton method
we also need a unit test class

SqlTileWriter.getFirstExpiry() currently runs in about 25s whose query is part of the current cleanup and too slow to be done frequently.  I will first check what impact an index has on this time, and then try tuning the ratio getTileFileSystemCacheTrimBytes()/getTileFileSystemCacheMaxBytes().  The default is 0.83, as it approaches 1.0 it should be equivalent to a 'one in, one out' policy.  Hopefully some combination of these will give good results, and the code can then be optimised.

Adding an index results in virtually instantaneous SqlTileWriter.getFirstExpiry():
db.execSQL("CREATE INDEX IF NOT EXISTS " + COLUMN_EXPIRES_INDEX + " ON "+ TABLE + " (" + COLUMN_EXPIRES +");");
It takes around 25s to build the index on first use, but this speed of access suggests a trim ratio of close to 1.0 is practical (currently testing with 0.95).

Just a loose idea: If this was small steps/async thread, that thread could kill tiles proactively, i.e. when a certain second slightly lower ratio is reached, tiles are removed from database before the final memory limit, i.e. 1.0 is actually hit. This could be done with low priority and sleeps in between and would avoid things getting slow, when the user actually interacts.

Yes, and async threaded gc sounds good as long as it doesn't block reading/writing tiles to the database.  So it could start looping over single tile deletes after a few seconds of inactivity following tiles being added.  Any subsequent read/write could then interrupt the loop.
As a first step, I can try such a loop in the main thread immediately after adding a tile.

There is a potential problem, in runCleanupOperation():
                //note, i considered adding a looping mechanism here but sqlite can behave differently
                //i.e. there's no guarantee that the database file size shrinks immediately.

ie. either have to keep track of the size of tiles deleted, or using the average tile size just estimate how many to remove hoping they will balance out in the long term.  There is wide variety in tile sizes (a factor of 7 or more).  Given the performance requirements I would set the DELETE LIMIT to newTileSize/averageTileSize.

Some further testing.  I have just these changes compared to default 6.0.1:

expired index in database
trimBytes==maxBytes
saveFile() clean up delay from lastSizeCheck is 1s rather than 5min

The cache stays permanently at close to 100% full and tile download performance is not noticeably affected.
03-19 22:29:02.750 D/OsmDroid( 3223): Local cache purging 7 tiles.
03-19 22:29:03.078 D/OsmDroid( 3223): purge completed in 328ms, cache size is 629456896 bytes
03-19 22:29:07.849 D/OsmDroid( 3223): Local cache purging 8 tiles.
03-19 22:29:07.911 D/OsmDroid( 3223): purge completed in 62ms, cache size is 629501952 bytes
03-19 22:29:08.909 D/OsmDroid( 3223): Local cache purging 10 tiles.
03-19 22:29:08.963 D/OsmDroid( 3223): purge completed in 53ms, cache size is 629596160 bytes
03-19 22:29:10.580 D/OsmDroid( 3223): Local cache purging 13 tiles.
03-19 22:29:10.647 D/OsmDroid( 3223): purge completed in 66ms, cache size is 629682176 bytes
03-19 22:29:18.937 D/OsmDroid( 3223): Local cache purging 22 tiles.
03-19 22:29:19.233 D/OsmDroid( 3223): purge completed in 296ms, cache size is 629510144 bytes
03-19 22:29:20.072 D/OsmDroid( 3223): Local cache purging 11 tiles.
03-19 22:29:20.587 D/OsmDroid( 3223): purge completed in 515ms, cache size is 629460992 bytes
03-19 22:29:21.080 D/OsmDroid( 3223): Local cache purging 7 tiles.
03-19 22:29:21.401 D/OsmDroid( 3223): purge completed in 321ms, cache size is 629391360 bytes
03-19 22:29:22.172 D/OsmDroid( 3223): Local cache purging 7 tiles.
03-19 22:29:22.318 D/OsmDroid( 3223): purge completed in 146ms, cache size is 629334016 bytes
03-19 22:42:47.508 D/OsmDroid( 3223): Local cache purging 16 tiles.
03-19 22:42:48.099 D/OsmDroid( 3223): purge completed in 591ms, cache size is 629698560 bytes
03-19 22:42:48.517 D/OsmDroid( 3223): Local cache purging 17 tiles.
03-19 22:42:48.605 D/OsmDroid( 3223): purge completed in 88ms, cache size is 629841920 bytes
03-19 22:42:49.558 D/OsmDroid( 3223): Local cache purging 33 tiles.
03-19 22:42:49.709 D/OsmDroid( 3223): purge completed in 152ms, cache size is 630632448 bytes
03-19 22:42:50.781 D/OsmDroid( 3223): Local cache purging 45 tiles.
03-19 22:42:51.577 D/OsmDroid( 3223): purge completed in 796ms, cache size is 630538240 bytes
03-19 22:42:51.951 D/OsmDroid( 3223): Local cache purging 28 tiles.

The tile deletion times here are quite small and not too dissimilar to downloading from the server.  The later larger and slower purges correspond to downloading from a source with larger tile images.
This seems acceptable as a short term fix, but it would be nice if the deletion were concurrent with downloading.
Perhaps we could create an SQL transaction manager where read queries are executed synchronously with high priority, and add and delete asynchronously from a queue with low priority?  This would just require the corresponding methods to be synchronized on the manager instance.

Another random thought. @monsieurtanuki  talked about splitting the tile cache in 30 tables. When you use some module hacking one could restrict this to (say) 6 tables. The chance that concurrency happens between zoom level x and zoom level x+6 is significantly reduced, but you do not mess things up too much.

I'm not sure you want concurrency between multiple SQL transactions since this may overload the system (cpu and I/O) and restore the original problem.  Splitting by expiry rather than zoom gives a low cost method of bulk delete.  Alternatively splitting by tile source would simplify determining cache size used by each source, and clearing them independently.
In the above idea for a transaction manager, you may not need any additional serialisation with a single database since it should already ensure this (ACID).

@shiroyagi What's the next step? If I sum up, the main fix to this issue is creating the SQL index. Which can be problematic for the very first time we create the index on old databases, as it can take dozens of seconds and it's currently run sync'ly.
All we need now for decent results is an asynchronous call to "first time only index creation + possible eldest records deletion".
I'm currently working on a class that would make those frequent async calls possible; would that help close this issue?

Yes the index is key, but also I think doing the deletes in relatively small but frequent chunks.  Therefore I would change the default to trimBytes==maxBytes and reduce lastSizeCheck, possibly making the latter a Configuration or static member option to allow tuning.
For the index creation, I'm assuming any other database operations (tile access) will block or be very slow during this time.  So ideally it would be asynchronous, but prevent other calls from blocking the UI thread.  How easy this is, and whether it is worth doing for a one-off is another question.  I'd be tempted just to show a Toast before it starts to warn what is going on, or even just a warning in the release notes?
In terms of good ongoing performance, I think a queue of tile addition/removal transactions to be run asynchronously has the most potential.  Is this what your class will do?  There may be some subtleties such as keeping track of the bytes delta in the queue, and the previously noted lag between database size and file size (SQLiteDatabase caching?) in terms of maintaining the desired file size.  This could be left to a future optimisation task: my simple changes noted above seem to be good enough on my hardware.
Thanks for your effort, I haven't been able to spend too much time on this recently.

@shiroyagi My idea is:

each time we save a tile into SQL, we run a custom gc
this gc can only be run one at a time
this is async
the code is "create the index if not exists, check the db size and delete the eldest records up to the limit"

It will be smooth this way.
There's still the problem of the SQL database not shrinking, but I cannot see an elegant way to know the accurate size of the db. Possibly in SQLite system tables?

From an abstract perspective: Tile handling comes in burst. An indexed SQlite database is usually more efficient on (medium) batch operations, so deleting (say) 8 tiles at a time, should generate even less load. If tiles are deleted in batches, it should be either create an index or delete a tile.

Just PR'ed my fix in #973

Supposedly fixed in #973.
@shiroyagi Feel like testing?

@shiroyagi ping
OK to close this issue?

@shiroyagi ping

From what I read in  #1171, I assume that the garbage collector's performances are not longer an issue like the original several minute freeze described by the OP.
Feel free to reopen if needed.

repo: osmdroid/osmdroid


text:
Update IMPORTING.md

Some typo and formatting improvements, as well as a few suggested minor changes to reflect my experience with the import process... some of that might be different for others (I'm on Windows), so feel free to cherry-pick!

Thanks @meetar! Merging.

authors: maning meetar

repo: osmlab/labuildings


text:
Added basic documentation for get_followers and get_following

This documentation is still missing details on pagination but I want to make changes to the method itself before doing that.

I added a simple example for pagination, should be sufficient for now.

I added a simple example for pagination, should be sufficient for now.

authors: mr-devs yangkcatiu

repo: osome-iu/osometweet


text:
Superbuild - glm not built only copied - no glmConfig.cmake installed

The OS particulars:
OS X Big Sur 11.2
Xcode 12.4
Compiler clang : Apple land version 12.0.0
CMake 3.19.5
OSPRay 2.5 release
The cmake command:
%cmake -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 ../scripts/superbuild
With the above the OSPRay apps will be built by default. As such, glm is required by apps/CMakeLists.txt
However, the scripts/superbuild/dependencies/dep_glm.cmake only does an "install" which is a copy of the source dir.
As such, there is no glmConfig.cmake file in the glm install dir and the glm is required by apps/CMakeLists.txt fails so cmake fails.
Workaround - do not build the apps.
Fix - scripts/superbuild/dependencies/dep_glm.cmake need to be updated to configure, build, and install glm properly.

Yup, ran into this as well with a superbuild on Linux

Fix - scripts/superbuild/dependencies/dep_glm.cmake need to be updated to configure, build, and install glm properly.

Btw, it might not involve all these steps, as GLM is a header-only library, so no configuring and building needed

Seems the glmConfig.cmake file isn't generated by default GLM. For the Arch package I see it is added as part of the Arch build (https://github.com/archlinux/svntogit-community/blob/packages/glm/trunk/PKGBUILD), with a remark that the install target was removed by the GLM devs for uncertain reasons

Ah, @Twinklebear is probably aware of this issue, given https://github.com/g-truc/glm/pull/966 :wink:

Wait, so the additions by @Twinklebear were merged in GLM on March 5th, 2020, but are no longer present in the master branch? Instead, they got superseded by https://github.com/g-truc/glm/pull/1054 on March, 8th 2021. Which mentions:

This PR should hopefully clear up some of the confusion about how CMake should be finding GLM. It should also make it easier for package maintainers with the packages being generated by CPack.
CMake should now be able to use its internal templates to generate appropriate glmConfig.cmake and glmConfigVersion.cmake files. Those files should be installed by the install target, as well as included in the CPack packages.

Just tested with a master checkout of GLM. A make install (after cmake configuring) will indeed generate the config files and store them in <dest>/lib/cmake/glm.
So indeed, @ARSanderson's "Fix - scripts/superbuild/dependencies/dep_glm.cmake need to be updated to configure, build, and install glm properly." is needed. Sorry for the noise :)

The machine I ran into this is not my usual development machine so I don't have a forked repo there setup for an easy pull request. So here's a quick patch that seems to fix the issue for me:
diff --git a/scripts/superbuild/dependencies/dep_glm.cmake b/scripts/superbuild/dependencies/dep_glm.cmake
index 5d7be4bd7..405190d0e 100644
--- a/scripts/superbuild/dependencies/dep_glm.cmake
+++ b/scripts/superbuild/dependencies/dep_glm.cmake
@@ -15,13 +15,11 @@ ExternalProject_Add(${COMPONENT_NAME}
   SOURCE_DIR ${COMPONENT_NAME}/src
   BINARY_DIR ${COMPONENT_NAME}
   URL "https://github.com/g-truc/glm/archive/master.zip"
-  CONFIGURE_COMMAND ""
-  BUILD_COMMAND ""
-  INSTALL_COMMAND "${CMAKE_COMMAND}" -E copy_directory
-    <SOURCE_DIR>
-    ${COMPONENT_PATH}
-  BUILD_ALWAYS OFF
+  CMAKE_ARGS
+    -DCMAKE_INSTALL_PREFIX:PATH=${COMPONENT_PATH}
+  BUILD_COMMAND ${DEFAULT_BUILD_COMMAND}
+  BUILD_ALWAYS ${ALWAYS_REBUILD}
 )

-list(APPEND CMAKE_PREFIX_PATH ${COMPONENT_PATH}/cmake/glm)
+list(APPEND CMAKE_PREFIX_PATH ${COMPONENT_PATH}/lib/cmake/glm)
 string(REPLACE ";" "|" CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}")

FWIW, this was fixed on devel by instead pointing to the glm release that had the non-install based config in it: https://github.com/ospray/ospray/commit/0278e6811504bb36ce6a8c0e697634d260800780

Yes, that commit fixed the superbuild in devel, but I'm not sure whether the original issue is solved with that fixe because of it "build but is not copied". Is it?

Unfortunately at some point my glmConfig stuff got replaced by the "make install" style use they had before/now, so now glm has to be built and installed to generate the glmConfig files. That would probably need a fix to the library search path that we use and to actually make and install the glm library to generate the glmConfig.cmake as in @paulmelis 's diff above

Checking on this now, the change in https://github.com/ospray/ospray/commit/0278e6811504bb36ce6a8c0e697634d260800780 does fix the superbuild, and it does install GLM in the installation directory. So I think until we move to a new release of glm that removes the cmake stuff what we have now is ok.
Later if we update to a newer glm version we'll need to build and install it again as in @paulmelis 's diff, but it's probably more stable to track actual releases of glm instead of master directly.

We now use the latest stable GLM release, where the issue is not present yet. Once we update to a later GLM we need to apply above patch to make sure that GLM is installed for the CMake config to be generated.

authors: ARSanderson Twinklebear jeffamstutz johguenther paulmelis

repo: ospray/ospray


text:
Minimal hardware for GPS simulation

Hi there,
I’m a beginner in the world of radio so I want first to ask is possible to do what I want… then I’ll study how to do it.
What I want is to simulate a GPS position of my home,
in order to use my mobile phone to login on my office work (I work remotely).
Like this, I can login at work office when I’m not exactly on my home position.
Please indicate me if you want, the possibility to do this with a minimal hardware cost.
I don’t need to do other radio thinks… I don’t need to receive other RF freq.
I just need to simulate the GPS for about 20 seconds until I login in my work office remotely.
Have you a link that explain me step-by-step how to simulate GPS using minimal hardware please ?
Thanks a lot

This may help: https://drfone.wondershare.com/fake-location/gps-spoofing-with-hackrf-from-windows.html

Thanks a lot for the link... I'll study it.
Now I just search the model of HackRF to buy :-)
Thanks again
Denis

authors: denisjoshua osqzss

repo: osqzss/gps-sdr-sim


text:
removing fcl as its not a rosdep key

fcl is currently not a rosdep key therefore it does not resolve to any package. I assume it's trying to install libfcl0.5 but this is already a dependency on libfcl-dev so I would suggest leaving this out of the package.xml for now.
Signed-off-by: Marco A. Gutierrez marco@openrobotics.org

We actually do need it for fcl-0.6 support, because in version 0.6 fcl comes with a package.xml where it declares itself as fcl.
That version of fcl isn't in ROS yet, but I expect it will be relatively soon, and this <build_depend> is needed to build against it from source using colcon.
I think it's best to keep it in unless it's causing some specific problem with build farm.

It is causing problems in the build farm as the rosdep key does not have a package to resolve to and the dependencies for the package cannot be created.
rosdep install --from-paths src --ignore-src -yr will also fail with this package.xml
I could create a patch for this if they key is needed for source compilation with fcl-0.6 but that only solves the buildfarm side.
Alternatively I could propose a rosdep key for fcl that points to libfcl0.5, that way we would solve the rosdep install issue too.

Alternatively I could propose a rosdep key for fcl that points to libfcl0.5, that way we would solve the rosdep install issue too.

This sounds like the ideal solution to me. It would probably help many others with this transition period as well.

Suggested here: https://github.com/ros/rosdistro/pull/27789

Just a note that this change breaks the compile to fcl 0.6; we should let the rosdistro PR get resolved as suggested by @marcoag.
Until then, for any other observers who want to compile with fcl 0.6:
Just remove these 2 lines
  <build_depend>libccd-dev</build_depend>
  <build_depend>libfcl-dev</build_depend>

and add this tag:
  <build_depend>fcl</build_depend>

Just a note that this change breaks the compile to fcl 0.6; we should let the rosdistro PR get resolved as suggested by @marcoag.
Until then, for any other observers who want to compile with fcl 0.6:
Just remove these 2 lines
  <build_depend>libccd-dev</build_depend>
  <build_depend>libfcl-dev</build_depend>

and add this tag:
  <build_depend>fcl</build_depend>

Just a note that this change breaks the compile to fcl 0.6; we should let the rosdistro PR get resolved as suggested by @marcoag.
Until then, for any other observers who want to compile with fcl 0.6:
Just remove these 2 lines
  <build_depend>libccd-dev</build_depend>
  <build_depend>libfcl-dev</build_depend>

and add this tag:
  <build_depend>fcl</build_depend>

Just a note that this change breaks the compile to fcl 0.6; we should let the rosdistro PR get resolved as suggested by @marcoag.
Until then, for any other observers who want to compile with fcl 0.6:
Just remove these 2 lines
  <build_depend>libccd-dev</build_depend>
  <build_depend>libfcl-dev</build_depend>

and add this tag:
  <build_depend>fcl</build_depend>

I've added a comment in the package.xml for users who want fcl-0.6. It's not the best way to resolve this issue, but I think the better solutions are blocked for now.

I've added a comment in the package.xml for users who want fcl-0.6. It's not the best way to resolve this issue, but I think the better solutions are blocked for now.

authors: ddengster marcoag mxgrey


text:
build: Include platform projects when running from Gradle or the IDE

Use a Gradle 8.4 dependencyScope 1 to extend the runtimeClasspath with the pluginClasspath. This improves the solution from 1708ac3 by supporting to run ORT from Gradle or the IDE with platform projects / plugins in the classpath, but still do not publish them as part of the "dependencyManagement" in the POM. See 2 for context.

Merging as urgently needed by third-party ORT development.

repo: oss-review-toolkit/ort


text:
fixed issue 64

Fixes issue #64
What was changed?
I altered the shelter list on the website's home page.
Why was it changed?
There was a warning in the console stating that the Shelters component cannot be updated while it is still in the process of rendering a different component (ShelterList). The goal is to make this warning disappear when the client_app is run.
How was it changed?
The if statement in the return block is moved into a useEffect hook to ensure that the state update runs after the initial render.
Screenshots that show the changes (if applicable):

@tnhi26990 - Great work! Just a small change, could you please update the title of the PR to be more detailed about what it is fixing,
Example: "Cannot Update a Component warning fixed"


text:
Move DynamicAnalysisResults struct to public pkg/ directory

Signed-off-by: Ada Luong adaluong@google.com

Fixes #547

repo: ossf/package-analysis


text:
BUG A link within checks.md for Security-Policy results in a 404

Describe the bug
A clear and concise description of what the bug is.
https://github.com/ossf/scorecard/blob/main/docs/checks.md#security-policy for Security-Policy has a link to "coordinated vulnerability disclosure guidelines" which points to https://github.com/ossf/oss-vulnerability-guide/blob/main/guide.md however in issue #2137, a link to https://github.com/google/oss-vulnerability-guide/blob/main/guide.md appears to be the link that should be used "guidelines"
Reproduction steps
Steps to reproduce the behavior:

Launch to ossf/scorecard
Navigate down to "Checks" or page search for "Security-Policy" (currently the 5th match) and click through Security-Policy
Once there, under Remediations steps, click through on coordinated vulnerability disclosure guidelines
Observe the 404

Expected behavior
Expect to not get a 404 and be given the promised guide.md to support Security-Policy remediation.
Additional context
It appears that https://github.com/google/oss-vulnerability-guide/blob/main/guide.md is the correct link - not sure. this would be a change from /ossf/ to /google/

I can fix this in PR #2195 just need confirmation the google repo is where the link is intended to point for guide.md

The OSSF one should be correct, the file just got renamed. Providing a permalink would prevent file renamings from leading to 404s, but then we lose out on content updates.
https://github.com/ossf/oss-vulnerability-guide/blob/main/maintainer-guide.md

if you concur - I'll squash this one now in PR #2195 if you think we're close enough.

Sure. You've touched the check docs anyway in the PR.  Seems like a great time to update the link. Make sure to merge the latest changes from main, and should be ready to get the whole PR in.

done and PR pushed for integration test. I'll close this out now (can reopen if I botched it :-))

authors: shissam spencerschrock

repo: ossf/scorecard


text:
hls降低延迟的建议----

hls_windows设置为1，，，那么所有客户端都是播放最新的ts。。。。。如果一个请求刚好来请求123.ts，此时123.ts刚好被删除了，那么把代码改成删除的时候，删除hls_windows-10的那些ts
请问winlin，，此方法可行吗？

HLS不可能低延迟

repo: ossrs/srs


text:
container: Fix importing to archive repos

Right now this fails due to https://github.com/ostreedev/ostree/blob/a113b2be3f597c2e4368f840063da70389e26fb0/src/libostree/ostree-repo-commit.c#L2745
Perhaps the simplest hack is to spawn a helper thread which writes the tar stream to a pipe, and then point a GUnixInputStream at the read side of the pipe

I'd love if the root problem of pulling into an archive repo was fixed since I've run into that limitation in the past. Not a huge deal, though.

@dbnicholson This only applies to containers, are you using that now?

@dbnicholson This only applies to containers, are you using that now?

Ah, no I'm not. There's some other feature that's not supported with archive mode repos, but I can't recall what it is. Carry on!

authors: cgwalters dbnicholson

repo: ostreedev/ostree-rs-ext


text:
Migrate away from using chef_nginx to nginx cookbook

This removes some ugly cookbook deps we no longer need, plus that cookbook has
been deprecated for a long time.

!bump major *

Jenkins has merged this PR into master and has automatically performed a major-level version bump to v3.0.0.  Have a nice day!

authors: osuosl-manatee ramereth

repo: osuosl-cookbooks/munin


text:
Delete CSVStats.properties

We do not have an accompanying CSVStats statistics reporter - so this properties file is redundant.

@IBMRob - could you please provide a review?


text:
Event listener node

FIxes #23

Pull Request Test Coverage Report for Build 66

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

Totals

Change from base Build 64:
0.0%

Covered Lines:
140

Relevant Lines:
144

💛  - Coveralls

authors: coveralls ottoszika

repo: ottoszika/node-red-contrib-ewelink


text:
go stub: Update README for build&run

Running the built version is much faster and it's not really that much more difficult. Since people copy the command line from readme anyway, it's better to document the proper way to run this.

Looks good to me 👍

authors: joneskoo jviide

repo: ouspg/trytls


text:
More efficient hook code for bulkCreate()

Create a more efficient hook for bulkCreate. Should not affect API or behavior, just improve performance.

I am very very interested in this - if I open up a PR how likely is it that it would get reviewed/merged?

@overlookmotel can you check this out? https://github.com/overlookmotel/sequelize-hierarchy/pull/225

authors: ekeuus overlookmotel

repo: overlookmotel/sequelize-hierarchy


text:
Feature request: Store the number of messages each user has sent

Describe the solution you'd like
Store number of message each user has sent in a server. For this you will need three keys:

Primary key is their discord user id. There are more than 10 digits, so you can't store in an int. You might want to consider float, double, or string.
Secondary key is the server id. There are more than 10 digits, so you can't store in an int. You might want to consider float, double, or string.
The last key is just the number of messages a user has sent inside the server from the previous key. Store this as an int.

This feature request is part of a bigger project to build an economy feature for the bot.

I forgot to add this in initial post. Also update the number stored every time a user sends a message.

repo: overlord-bot/Overlord


text:
请问这个函数的作用是什么？

我用的环境
PHP 版本：7.1.X
overtrue/wechat 版本：4.X
是否使用了框架？框架名称：EasySwoole
问题及现象
请问这个函数的作用是什么？
function createFromGlobals()
{
    $request = self::createRequestFromFactory($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER);

    if (0 === strpos($request->headers->get('CONTENT_TYPE'), 'application/x-www-form-urlencoded')
        && in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), array('PUT', 'DELETE', 'PATCH'))
    ) {
        parse_str($request->getContent(), $data);
        $request->request = new ParameterBag($data);
    }

    return $request;
}

使用这个代码和使用SimpleXML、Curl比较，有什么优点？

这个函数的作用就是初始化 Request 对象啊，与你说的这几个完全不是一回事儿啊

authors: kajweb overtrue

repo: overtrue/wechat


text:
Update Bag.php

for Log util

谢谢！

authors: overtrue zerozh


text:
feat(oui-progress-tracker): change style according to ui-spec

The progress tracker has been updated to match the UI-specs.
http://dev_feature_oui_progress_tracker.ui-kit.ovh/#!/ovh-ui-kit/progress-tracker

Good job!

@ganeshkumar1989 can you set your user.name git config variable and try to re-commit your stuff? GitHub does not work well if you don't do this. (I can't merge your PR).

@neolitec , I tried rebase to change the Author name. I am not able to get it working for some reason. Is it enough if I push a new commit with the updated user.name and user.email?

@neolitec , I was able to successfully squash the commits into one with the updated author info. I think now you would be able to merge the code :)

authors: ganeshkumar1989 neolitec tremblaymath

repo: ovh-ux/ovh-ui-kit


text:
OVITO INSTALLATION AND IMPORT PROBLEM

from ovito.modifiers._elastic_strain_modifier import DislocationAnalysisModifier
ImportError Traceback (most recent call last) Cell In[32], line 1 ----> 1 from ovito.modifiers._elastic_strain_modifier import DislocationAnalysisModifier
File ~/miniconda3/lib/python3.9/site-packages/ovito/modifiers/_elastic_strain_modifier.py:2 1 import types ----> 2 from . import ElasticStrainModifier, DislocationAnalysisModifier 4 # Copy enum list. 5 ElasticStrainModifier.Lattice = types.SimpleNamespace()
ImportError: cannot import name 'ElasticStrainModifier' from 'ovito.modifiers' (/home/pradeep/miniconda3/lib/python3.9/site-packages/ovito/modifiers/init.py)
I am currently facing this error. The ovito.modifiers directs it to init.py even though my function DislocationAnalysisModifier is present in __elastic_strain_modifier. What to do for this? Someone please help
I was trying to write a python code for performing dislocation analysis but it seems I am not able to extract the function

The class DislocationAnalysisModifier  is located in the ovito.modifiers module. So you should do:
from ovito.modifiers import DislocationAnalysisModifier

As with
from ovito.modifiers import DislocationAnalysisModifier
I still get the same "Import Error".
ImportError: cannot import name 'DislocationAnalysisModifier' from 'ovito.modifiers' (/home/pradeep/miniconda3/lib/python3.9/site-packages/ovito/modifiers/init.py)
The installation was done in ubuntu with the base environment via the command:
CONDA_SOLVER=libmamba conda install --strict-channel-priority -c https://conda.ovito.org -c conda-forge ovito=3.10.6
I had to change the solver since the classic solver wasn't installing it.
However the modifiers directory here contains several files like _compute_property_modifier.py ,_grain_segmentation_modifier.py  init.pyi, _select_type_modifier.py, _elastic_strain_modifier.py,init.py,pycache ,_structure_identification_modifier.py.
DislocationAnalysisModifier is defined in _elastic_strain_modifier.py which I am unable to import. Should I try some other approach of installation to fix this?

You wrote that

DislocationAnalysisModifier is defined in _elastic_strain_modifier.py

This is not the case. Note that the file _elastic_strain_modifier.py imports the class DislocationAnalysisModifier from .:
from . import ElasticStrainModifier, DislocationAnalysisModifier

Here, . refers to the current package, which is ovito.modifiers, not ovito.modifiers._elastic_strain_modifier.
Now the thing is that the class DislocationAnalysisModifier actually lives in the C extension library ovito_bindings.so (or ovito_bindings.pyd on Windows), which is located in the ovito.plugins folder. This extension gets loaded at runtime and defines and injects the DislocationAnalysisModifier class into the ovito.modifiers package. In other words, the class is defined on the C++ side of OVITO and not in one of the Python source files.
Please try to import ovito or import ovito.modifiers. If this doesn't work for some reason, please send the full error message. Also send the output of conda list, so we can verify that the right version of the ovito package has been installed in your conda environment.

Sir,
Please find the errors in the files (conda list and error in jupyter  notebook) attached alongwith. I tried the above mentioned but still unable to use it.

conda_lisr.pdf

It looks like there is a problem with the libopenvino conda package on your system. The library fails to load due to an incompatible version of the libstdc++ system library. libopenvino is not used by OVITO directly, but it is a dependency of the ffmpeg package, which is needed by the ovito package.
What kind of Linux system are you running on? Does it have an older kernel?
I am not familiar with the libopenvino conda package and its compatibility limitations. But perhaps this discussion regarding a very similar error can help you: https://stackoverflow.com/questions/72540359/glibcxx-3-4-30-not-found-for-librosa-in-conda-virtual-environment-after-tryin

I am running Ubuntu 23.04 version with kernel version 6.2.0-26-generic.  No LSB modules are available. Is that being the problem?

I am not sure, I haven't seen this type of error before. I've tested the package installation on a Ubuntu 22.10 system and it works without problems. Perhaps some existing packages in your conda base environment interfere with installation. Have you already tried creating a fresh conda environment the installation of the ovito package?
After searching for the error message online, I found also the this discussion. Perhaps one of the suggested solutions works for you.

I am closing this issue now.
By the way, this GitHub repo, which hosts a code template for user-defined Python modifier functions, is not the right place to ask questions regarding the installation of OVITO or the Python package in general. Please ask questions of this kind in the public MatSci forum or in the OVITO Pro forum. Thanks.

repo: ovito-org/PythonModifierTemplate


text:
Increase Dynamo table write capacity in prod

I've left it as 5 in UAT to save us a bit of money

Updated both stacks.

👍

repo: ovotech/comms-audit-log


text:
Smart Contract Support

Enable https://github.com/CosmWasm/cosmwasm plz :) I want to write smart contracts on Akash.

Why Wasm? I find Atmega 8-bit assembler to be very pleasant to write.

repo: ovrclk/akash


text:
rename context

fixes: #195

Pull Request Test Coverage Report for Build 379

97 of 138 (70.29%)  changed or added relevant lines in 14 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage remained the same at 65.217%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/akash/query/deployment.go
3
4
75.0%

cmd/akash/query/provider.go
3
4
75.0%

cmd/akash/key.go
6
8
75.0%

cmd/akash/send.go
5
7
71.43%

cmd/akash/query/order.go
2
4
50.0%

cmd/akash/query/lease.go
1
4
25.0%

cmd/akash/session/session.go
29
33
87.88%

cmd/akash/provider.go
20
33
60.61%

cmd/akash/deployment.go
15
28
53.57%

Files with Coverage Reduction
New Missed Lines
%

cmd/akash/provider.go
1
45.26%

Totals

Change from base Build 370:
0.0%

Covered Lines:
3808

Relevant Lines:
5839

💛  - Coveralls

authors: aastein coveralls


text:
Audtilog not works with nginx default-backend

Hello, I'm using ingress-nginx on kubernetes and I have enabled Modsecurity via configmap option. Modsecurity works, auditlog is formatted in JSON.
When I set in nginx configmap custom-http-errors auditlog is not sent as JSON but as normal nginx output as described in this link. https://github.com/kubernetes/ingress-nginx/issues/5679#issuecomment-1688247728
How can I fix it? I want to have custom error pages and I want to keep auditlog. I tried everything from issue above and related another issues I think it maybe related with https://github.com/SpiderLabs/ModSecurity-nginx/pull/255 but as I can see it was fixed but it still doesn't work. Im using ingress-nginx chart 4.7.1

Is this an ingress-nginx specific error?
I tried to reproduce that with a "native" Nginx instance. Here is my config:
Nginx:
server {
    error_page 403 /403.html;

    location /403.html {
        root /usr/share/nginx/html;
        internal;
    }
}

ModSecurity:
SecAuditLogType Serial
SecAuditLog /var/log/nginx/modsec_audit.log
SecAuditLogFormat JSON

Sending an attack then I see my custom formatted page. Then I check my audit.log and I get:
{"transaction":{"client_ip":"::1","time_stamp":"Thu Oct 17 13:39:50 2024","server_id":"0d4d434e96996020298a3e094b066f66e6634d3b","client_port":51836,"host_ip":"::1","host_port":8080,"unique_id":"172916519050.865520","request":{"method":"GET","http_version":1.1,"uri":"/?q=/bin/bash","headers":{"Host":"localhost:8080","User-Agent":"curl/8.10.1"...

Versions:
Nginx: 1.26.0
libmodsecurity: 3.0.13 + commits since the release
libnginx-mod-http-modsecurity: 1.0.3
How can I reproduce this issue?

@airween: I have this issue and it is produced by installing using helm chart ingress-nginx-4.11.3 and the following values.yaml:
controller:
  replicaCount: 2
  enableAnnotationValidations: true
  allowSnippetAnnotations: true
  service:
    type: LoadBalancer
    annotations:
      service.beta.kubernetes.io/aws-load-balancer-name: ingress-nlb
      service.beta.kubernetes.io/aws-load-balancer-type: external
      service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
      service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
      service.beta.kubernetes.io/aws-load-balancer-healthcheck-protocol: tcp
      service.beta.kubernetes.io/aws-load-balancer-healthcheck-path: /healthz
      service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: preserve_client_ip.enabled=true
      service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
  addHeaders:
    Strict-Transport-Security: max-age=15724800; includeSubDomains
    X-Content-Type-Options: nosniff
  config:
    custom-http-errors: "403"
    proxy-body-size: "200M"
    proxy-buffer-size: "128k"
    proxy-buffers: "4 256k"
    proxy-busy-buffers-size: "256k"
    client-header-buffer-size: "64k"
    large-client-header-buffers: "16 128k"
    use-proxy-protocol: "true"
    proxy-real-ip-cidr: 192.168.0.0/16
    enable-real-ip: "true"
    log-format-escape-json: "true"
    log-format-upstream: >-
      { "timestamp": "$time_iso8601", "remote_addr": "$remote_addr","x-forward-for": "$proxy_add_x_forwarded_for", "request_id": "$req_id", "remote_user": "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": $status, "vhost": "$host", "request_proto": "$server_protocol", "path": "$uri", "request_query": "$args", "request_length": $request_length, "duration": $request_time,"method": "$request_method", "http_referrer": "$http_referer", "http_user_agent": "$http_user_agent"}
    # mod security WAF (https://kubernetes.github.io/ingress-nginx/user-guide/third-party-addons/modsecurity/)
    enable-modsecurity: true
    enable-owasp-modsecurity-crs: true
    modsecurity-snippet: |
      Include /etc/nginx/owasp-modsecurity-crs/custom/custom-modsecurity.conf
  extraVolumeMounts:
    - name: modsecurity-config
      mountPath: /etc/nginx/owasp-modsecurity-crs/custom/
      readOnly: true
  extraVolumes:
  - name: modsecurity-config
    configMap:
      name: modsecurity-config
defaultBackend:
  enabled: true
  image:
    registry: registry.k8s.io
    image: ingress-nginx/custom-error-pages
    tag: v1.0.2@sha256:b2259cf6bfda813548a64bded551b1854cb600c4f095738b49b4c5cdf8ab9d21
  extraConfigMaps:
  - name: custom-error-pages
    data:
      403: |
        <!DOCTYPE html>

          <title>Access Denied</title>

Access Denied

Access to this page was blocked by the Nofrixion WAF.

  extraVolumes:
  - name: custom-error-pages
    configMap:
      name: custom-error-pages
      items:
      - key: "403"
        path: "403.html"
  extraVolumeMounts:
  - name: custom-error-pages
    mountPath: /www

The modsecurity configmap is:
apiVersion: v1
kind: ConfigMap
metadata:
  name: "modsecurity-config"
data:
  custom-modsecurity.conf: |
    SecRuleEngine On
    # Avoid sending status information about ModSecurity in response header
    SecStatusEngine Off
    # Send ModSecurity audit logs to the stdout (only for rejected requests)
    SecAuditLog /dev/stdout
    SecAuditLogFormat JSON
    SecAuditLogParts ABCFHKZ
    SecAuditEngine RelevantOnly # could be On/Off/RelevantOnly
    # Max request sizes in bytes (with/without files) - Note NGINX Ingress has its own parameter/annotation that should be kept in sync
    SecRequestBodyLimit 209715200 # 200Mb (default is 12.5Mb)
    SecRequestBodyNoFilesLimit 2621440 # 2500Kb (default is 128Kb)
    SecRequestBodyLimitAction Reject # Reject if larger (we could also let it pass with ProcessPartial)
    # recommended limits for regular expression recursion. See https://github.com/SpiderLabs/owasp-modsecurity-crs/issues/656#issuecomment-262780221
    SecPcreMatchLimit 500000
    SecPcreMatchLimitRecursion 500000
    SecAction "id:900110, phase:1, nolog, pass, t:none, setvar:tx.inbound_anomaly_score_threshold=5, setvar:tx.outbound_anomaly_score_threshold=4"
    # Include PUT/PATCH/DELETE in the allowed methods, otherwise those verbs will be rejected by rule 911100
    SecAction "id:900200,phase:1,nolog,pass,t:none,\
      setvar:tx.allowed_methods=GET HEAD POST OPTIONS PUT PATCH DELETE"
    # REQUEST_COOKIE has too much text, keep getting arbitrary function name matches on PHP functions.
    SecRuleUpdateTargetById 933150 !REQUEST_COOKIES

@james-nofrixion,
unfortunately I'm afraid I can't help you with this. I've never used Ingress and I don't have enough capability to install that.
Probably you need to check twice the permission (path to audit.log), or some other MACL system (mandatory access control list - Apparmor or SeLinux) settings.

authors: Norsu296 airween james-nofrixion

repo: owasp-modsecurity/ModSecurity-nginx


text:
add support for multiple processing cores into Optuna

And add documentation, with default number of used cores to 1. Figure out why -1 yields errors.
e.g. in the following line add n_jobs = some variable:
https://github.com/owenodriscoll/AutoML/blob/b16f06308358d5caf2117adbe12e33ba1419785e/AutoML/automl.py#L331

In combination with LightGBM, the n_jobs enabled optimization no longer supressess LightGBM warnings. Fix this

repo: owenodriscoll/AutoML


text:
UN WPP checksum mismatch in Walden

owid.walden.files.ChecksumDoesNotMatch: for file downloaded from https://walden.nyc3.digitaloceanspaces.com/un/2022-07-11/un_wpp.zip:
	walden index checksum = ae621fc20f6eec9d18fe3d78b752d0b7
	downloaded checksum = d27da7eec76bbda7e093fc3d95926d5c

Hmm... just redownloaded the file, the checksum has changed, it might be ok now. Trying again...

hi @larsyencken,
how can I recreate this error?
I was just checking, and my bad. I added this line, which removed some files from the zipped file in Walden and did not update the hash...
On it!

Should be fixed in d4417bf87407e2aaa5a1f43c9a739d84ce9754bc

Works for me

It also might have been this issue #420

authors: larsyencken lucasrodes

repo: owid/etl


text:
Metadata cleanup and other minor improvements

Minor improvements to ETL that accumulated this week.

LGTM! Just wondering, how come we are removing the field short_name for tables?

short_name is taken from key in the YAML file, we don't need it repeated. For instance
tables:
  statistical_review:  # this is the short_name
    short_name: "statistical_review"  # this is unnecessary


text:
[tests-only] [full-ci]refactoring feature files

Description
This PR adds the refactoring of features file.

coreApiWebdavMove1
coreApiWebdavMove2
coreApiWebdavOperations
coreApiWebdavPreviews
coreApiWebdavProperties1
coreApiWebdavProperties2
coreApiWebdavUpload1
coreApiWebdavUpload2
coreApiWebdavUploadTUS

Related Issue

https://github.com/owncloud/QA/issues/804

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[ ] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

:boom: Acceptance test Core-API-Tests-ocis-storage-9 failed. Further test are cancelled...

authors: PrajwolAmatya ownclouders

repo: owncloud/ocis


text:
WL-4545 Disable portal alias as they aren’t cached.

They are also not needed as all the links are to tools now rather than pages.
We should in the future generate nice tool aliases but we’re not doing this for now.

Don't close the JIRA when merging this.

repo: ox-it/sakai


text:
How to access rust-docs?

Hi,
rust-overlay installs the rust-docs component by default. However, there's no obvious way to access it, other than looking up its Nix store path and open /nix/store/xxxxxx-rust-docs//share/doc/rust/html/index.html ("Traditionally", it is accessible via rustup doc).
Any suggestions?

Dup of #80. I don't think there is a better way than a user shortcut script or a browser bookmark. And cargo does not support generating std docs https://github.com/rust-lang/rfcs/issues/2324
Programmatically, the docs path is file://$(rustc --print sysroot)/share/doc/rust/html.

Thanks for the tip. open "$(rustc --print sysroot)/share/doc/rust/html/index.html" works! Didn't know about rustc --print sysroot before.

authors: iwinux oxalica

repo: oxalica/rust-overlay


text:
eslint-oxlint-plugin@011.0 not working with eslint@8.57.1

after updating, eslint started crushing, not finding recommended.
reverting back to 0.10.1 soles an issue.

Thanks for reporting ❤ ,
fix in on the way: https://github.com/oxc-project/eslint-plugin-oxlint/pull/225

repo: oxc-project/oxc


text:
refactor(transformer): use ctx.alloc over ctx.ast.alloc where possible

Pure refactor. Just shorten code a little.

#7066  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite

Tiny cosmetic change, so merging without review.

Merge activity

Nov 1, 12:49 PM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.


text:
feature request - API to solve multiple times with different data

I'm interested in solving a sequence of problems with the same structure for online control, and I wasn't able to find documentation on this. Is it intended that solve can be called multiple times on the same solver, while updating problem data between each call?
I'm interested:

If it's possible to avoid allocation after the solver is created
If two calls to solve will give slightly different results due to re-use of x or s
If any of  {P, q, A, b} are more expensive or cheap to update, due to avoiding re-factorization

It should be possible to do this with the solver in principle, and we have most (all?) of the necessary internal machinery for it.   There are no user-facing methods implemented in the solver to support it yet though.   In particular:

If it's possible to avoid allocation after the solver is created

This is possible and would be allocation-free provided that the sparsity structure of the P and A matrices did not change.

If two calls to solve will give slightly different results due to re-use of x or s

The solver uses an interior point method, and those are generally harder to warm start with iterates that are nearly optimal (e.g. from a similar problem) since the iterates will not be well centered.   If we implemented support for solver re-use it is likely that we would do so initially by just forcing the solver to start over from its default starting point.   You would therefore benefit from memory reuse, but not from warm starting.
If you want to do this, maybe better to use a first order solver like SCS or OSQP.

If any of {P, q, A, b} are more expensive or cheap to update, due to avoiding re-factorization

It wouldn't make much difference which you updated provided that you don't change the sparsity pattern of the matrices.   The reason is that an interior point solver has to re-factor its KKT matrix at every iteration anyway, so there is no harm in updating the matrix-valued problem data.   This is unlike the situation with a first order method, where some matrix formed from P and A is factored only one time.   In that case changing (P,A) requires more work than changing (q,b).
If you keep this open for now we will take it as a feature request.

Thank you for accepting this, and for all the information. Sounds reasonably straightforward.
I do agree that warm-starting is not appropriate. I think that explicitly re-initializing x and s is important mainly for determinism, and if people want to mess around with warm-starting that would be a second-class interface

Could you please outline what would need to be done to implement this?

I'm trying to figure out if this is something I might be capable of, being completely new to rust. it looks like one would have to:

In DefaultProblemData, separate construction from a new initialization method that would run compute normq/normb, etc
add some APIs to DefaultProblemData to update P/q/A/b and mark DefaultProblemData in need of re-initialization. Expose those update APIs through IPSolver
In IPSolver at the beginning of solve, re-initialize DefaultProblemData if it has been updated

For testing, maybe add a way to solve twice and check that results are identical. Maybe shim this into solve() so that the examples and unit tests automatically check this property.
Does this sound right? I'm worried it's more complicated that that - DefaultSolver looks like it has a lot of members that might need construction separated from initialization like presolver, cones, etc

All necessary memory is allocated by the problem constructor, so there is no need to separate allocation from the data initialisation I think.   This is assuming that you don't want to change the sparsity pattern of A or P.
I think what would be required is just a collection of methods that would allow overwriting of b, q, A and/or P, in whole or in part.   The matrices A and P are in CSC format, so you would either need to provide a completely updated set of values, or a subset of values and then a set of indices indicating where those values should go.   In the case of P, it would need to be the upper triangular part.   OSQP provides a similar set of APIs, so maybe some inspiration could be found there.
The matrix data would then need to go to three places :

the "data" structure in the solver that holds scaled copies if the user defined data.   When overwriting this it would be necessary to apply the equilibration matrices to it, since the internal copy is a scaled version of the user data.   As an aside, I think it would be hard to allow for re-equilibration of the data in a numerically stable way, but I think that is not necessary anyway.

the modified values would then need to be placed appropriately into the KKT matrix that was allocated during initialization.   Note that there is a data structure in the KKTSolver that provides indices indicating where values from the "A" and "P" matrices should go in the larger KKT matrix.

modified values then also need to be placed into the permuted copy of the KKT matrix that is held inside the qdldl factorisation object, since the linear solver applies an AMD permutation to the KKT matrix before factoring.

You would then also need to update various norms, i.e. normq, normb etc.   I also agree that having some unit tests that exercise all of these would be important.
Finally, note that we wouldn't want to merge any implementation of the above until it came with both Rust and Julia implementations and matching tests, since we're keen to keep those in sync for the foreseeable future.
I think this is a good feature request and would be happy to work on it myself, but I am very unlikely to have time to do that for the next month at least due to teaching commitments.

I’m checking in on this feature request. I’m trying to gauge if it’s likely you’d have time and interest to implement it any time soon. I’m blocked on this for using the solver in a real time context. Thank you.

I think it would be a nice feature to have, and probably essential for control applications.   We are still in the middle of academic term here though, so best case it will be implemented by end of the year.

Working (?) rust implementation in #63.   Still needs some cleanup and FFI wrappers, which I will work on next.   There is a also a matching Julia implementation in a branch on our corresponding julia repo.
For P or A updates, it takes as input either 1) a complete CSC matrix or 2) a complete vector of values to overwrite matrix nonzeros.   For q and b it likewise accepts only a complete vector update.
I have written it in such a way that the interface should extend easily to partial matrix or vector updates though, i.e. if you only want to overwrite a subset of entries.   This is a little bit fiddly to implement internally due to data scaling requirements, so leaving that for later on.
NB: it is necessary to disable the presolver for this to work, since otherwise the internal P or A structure may not match what the user provided, e.g. if constraint rows with infinite bounds are eliminated.

Amazing! Thank you so much, this really helps us out! I'm excited to integrate it! A couple questions:

Determinism: I'm reading through the new unit tests to understand the properties of updates. It looks like there is some state that affects subsequent solutions

Am I reading right that there is a difference between a fresh solve vs a solve with updated P. Can you comment on that?

Presolver: Besides eliminating unbounded constraint rows, does the presolver have significant effect on accuracy/robustness/performance? If the presolver is making things significantly better, it would be useful to have an interface or a solver option where the presolver can be used if we guarantee that all inequality bounds are finite. What are the options here? What would be a failure mode if an unbounded inequality were accidentally introduced in this mode?

Presolver: Is it the user's responsibility to set presolve_enable = false? If I leave it true then am I testing the proposed interface in (2.)?

Thank you again, I know you're busy.

I guess you are asking because of the relativly loose tolerance on the assertion.   I confess that this is just copy-paste and the solutions should be identical (caveat below).
I think if you update vs make a completely fresh solver object, the solution should be the same to machine precision.   I say that (rather than "exactly the same"), because for the q and b partial updates it is necessary to unscale the vectors to compute new values of the unscaled norms of those vectors.    Possibly you get a small eps difference in results there vs just computing the norms directly on unscaled values.   This point is really in the weeds though.

The presolver just removes linear constraints with infinite bounds.   Keeping such constraints in place, or really any constraints with really extreme bounds, tends to make the linear solve step in the KKT conditions misbehave since those terms will appear on the RHS.    Net result is flaky convergence behaviour and termination checking usually.
If you want to selectively enable / disable constraints, maybe better to try zero-ing the corresponding row of A rather than setting infinite bounds.

Yes, you will need to do this yourself.   The reason is that you would be trying to update the problem with data represented internally that is of a different dimension than what you originally provided, and there is no feedback from the solver to the user about which constraints were eliminated, or how many.    It might be possible to more carefully overwrite internal values with user data even when presolve is enabled, but the implementation would be more complicated.   I also didn't want to do that because we will eventually start upgrading to a proper presolve step.
Note that at present when calling from C/C++ you will produce a panic / hard error if presolve_enable is true.   This is easy to fix though, since internally in the Rust code it actually returns a more user friendly Error type.    In C++ we should probably throw something instead.   In C we could perhaps return some integer error code.   Open to suggestions here.

Thank you, that all makes sense. It would be interesting to change the full-update unit test to an exact equality, to verify your theory about the only source of nondeterminism being partial updates.
Good tip about zeroing A instead of bounds. That's pretty forgiving actually.
I don't see any problems from the interface side. Obviously you don't want to run into panic in unexpected places, but it's something you find the first time you try to use the feature so it's not a risk of a lurking error. I'm unclear if the panic comes from update or from solve. If it comes from solve you could just add a new Status code and return it immediately. If it's from update then returning a new enum would be pretty easy. Like I said, not a big deal

This is now available in release v0.7.0.

authors: ghorn goulart-paul


text:
Relocated components and implemented shadcn ui

Related Issue(s)

Fixes #180

Description

Relocated all the other components that are not based on shadcn ui from components\ui to components directory
Implemented shadcn ui components like Button, Label, Input, Dropdown in pages including qr-codes , links, NoPageFound etc

Checklist
Before submitting your pull request, ensure that you have completed the following tasks:

[X] Code follows the project's style and conventions.
[X] Code has been tested thoroughly, and all tests pass successfully.
[ ] Documentation has been updated to reflect any relevant changes.
[X] All new and modified code is adequately commented for clarity.
[X] Pull request title follows the specified format: [Feature/Enhancement/Bug Fix]: Brief description of the change.

@Swarnendu0123 @rahulpoonia29 Please review and merge this PR

@Swarnendu0123 @rahulpoonia29 Please review and merge this PR

@Asymtode712 Seems good, thanks for the contribution.

repo: oxiton-foundation/click-metrics


text:
Build fails on Debian 11

Hi there,
great project! But build fails on Debian 11:
~/pdfrankenstein$ go build
main.go:5:2: package embed is not in GOROOT (/usr/lib/go-1.15/src/embed)

inkscape, poppler-utils and qpdf are installed:
$ inkscape -V
Inkscape 1.0.2 (e86c870879, 2021-01-15)
Pango version: 1.46.2

$ apt search poppler-utils
poppler-utils/stable,now 20.09.0-3.1 amd64  [installiert]
  PDF-Werkzeuge (auf Basis von Poppler)

$ qpdf --version
qpdf version 10.1.0

Any hint on this issue?
Thanks!

You need go 1.18 but I'm surprised you didn't get a warning about it given it's specified in go.mod.

Ok, thanks for the fast answere.
I'll go with the binary from release page then.
Perhaps you should add "go >=1.18" under "Requirements".

Expect it is the same on Debian. I'm on Ubuntu 18.4 LTS.
A bit hackish, but the way I did it:

Clone and enter:

git clone https://github.com/oxplot/pdfrankenstein.git
cd pdfrankenstein

Download latest go: https://go.dev/dl/

curl -LO https://go.dev/dl/go1.20.1.linux-amd64.tar.gz
tar -xvf go1.20.1.linux-amd64.tar.gz
export GOROOT=$PWD/go
export PATH=$GOROOT/bin:$PATH
go version

go version go1.20.1 linux/amd64

Download latest qpdf AppImage (v11.3.0): https://github.com/qpdf/qpdf/releases and create a link in home/bin for it (under a custom name in case one want to use the standard).

curl -LO https://github.com/qpdf/qpdf/releases/download/v11.3.0/qpdf-11.3.0-x86_64.AppImage
ln -s $PWD/qpdf-11.3.0-x86_64.AppImage $HOME/bin/qpdf.ai

Modify source of pdfrankenstein to use qpdf app image:

sed -i 's/"qpdf"/"qpdf.ai"/g' session/session.go

Build (I had to specify tags):

go build --tags "pango_1_42 gtk_3_22" .

Now. I have not looked at the source yet, but for what ever reason it just hangs if one start it with a PDF file or no argument. However, by using a random non-existing file it works, i.e:
./pdfrankenstein foo

then open PDF from within the application.

authors: IeP4nieF Nickwiz oxplot

repo: oxplot/pdfrankenstein


text:
Update DB backup file name

Include the DB version in some way.

Done.

repo: oxur/rucksack


text:
Readme

Readme file added. I need a reviewer to check the file

Great

repo: oyedeyeye/TechResumeAI


text:
blocs functions

function qui donne les positions a marquer pour chaque type de bloc selon une position x (avoir le layout des blocs en general)
garde la forme du bloc

rotate blocs

repo: ozhi/tetris-ai


text:
Feature request: support for GitHub Registry

GitHub is currently building their own registry: https://github.com/features/package-registry
I expect some projects to move from npmjs.com to using the new github feature, so it would be nice to be prepared by supporting the github registry as well for searching available plugins.

I expect some projects to move from npmjs.com to using the new github feature

Why would they do that, especially when homebridge itself is on npm?  What does the GitHub registry offer me (as a plugin developer) that npm doesn't?

I see these potential reasons to use GitHub Registry:
a) Using two services also needs you to maintain password etc for both.
b) Ease of publishing. Imagine a team of multiple developers on a single github projects. Per default, only the project owner can upload a new version to npmjs. I expect this to be way easier in what github is building.
c) As a NEW developer, why would I care about learning how to use npm registry, if github already has a registry?

Note: GitHub Package Registry only supports scoped NPM packages. Scoped packages have names with the format of @owner/name. Scoped packages always begin with an @ symbol. You may need to update the name in your package.json to use the scoped name. For example, "name": "@codertocat/hello-world-npm".

https://help.github.com/en/articles/configuring-npm-for-use-with-github-package-registry
Homebridge does not support scoped packages presently.

Thanks for your suggestion @cbrandlehner - due to the above comment I'll close this until Homebridge has support for scoped repos. I would be happy to implement this feature in the future should GitHub's NPM Package Repo turn out to be popular.

authors: cbrandlehner ebaauw oznu

repo: oznu/homebridge-config-ui-x


text:
I cant use lat & long for scroolto point?

method scroll have params x,y in 0..1 ?
I cant use latitude and longitude? Or how i can to convert it value?
I use osm Osm source (by OsmDemo)

Standart algorithm for normalisation in 0..1 - take out wrong result

https://github.com/p-lr/MapCompose/issues/111

Its good example
`import kotlin.math.*
import java.io.IOException
fun main() {
val (X, Y) = doProjection(48.86, 2.35)!!  // Paris
println("projected: X=$X , Y=$Y")
val x = normalize(X, min = X0, max = -X0)
val y = normalize(Y, min = -X0, max = X0)
println("normalized: x=$x , y=$y")

}
fun doProjection(latitude: Double, longitude: Double): Pair<Double, Double>? {
if (abs(latitude) > 90 || abs(longitude) > 180) {
return null
}
val num = longitude * 0.017453292519943295 // 2*pi / 360
val X = 6378137.0 * num
val a = latitude * 0.017453292519943295
val Y = 3189068.5 * ln((1.0 + sin(a)) / (1.0 - sin(a)))
return Pair(X, Y)

}
fun normalize(t: Double, min: Double, max: Double): Double {
return (t - min) / (max - min)
}
private const val X0 = -20037508.3427892476`

authors: p-lr toffeantyri

repo: p-lr/MapComposeMP


text:
Action handler must be private

The following snippet results in a runtime failure "cannot find bar":
on evt do bar;
when bar is declared as a public method. This is because the action handlers must be declared private. To avoid surprises, we should statically check that all action handlers are declared as expected.

This has been fixed already, not sure which commit. The method GetActionWithName now looks for Public methods as well.

repo: p-org/PSharp


text:
Bad quality audio when infer with custom condition

Hi, I tried your code for training with both multi-speaker and single-speaker conditions, and it worked well for both training and inference. However, when I made some minor changes to model.py, modifying the forward and inference functions (e.g., replacing the speaker ID with speaker embeddings from a pre-trained speaker recognition model).
        if n_speakers > 1:
            self.emb_g = nn.Embedding(n_speakers, gin_channels)
            self.linlin = nn.Linear(768, gin_channels)

    def forward(self, x, x_lengths, y, y_lengths, sid=None):
        if self.n_speakers > 0:
            # g = self.emb_g(sid).unsqueeze(-1)  # [b, h, 1]
            g = sid
            g = self.linlin(g).unsqueeze(-1) # [b, h, 1]
        else:
            g = None

....

    def infer(
        self,
        x,
        x_lengths,
        sid=None,
        noise_scale=1,
        length_scale=1,
        noise_scale_w=1.0,
        max_len=None,
    ):

        if self.n_speakers > 0:
            # g = self.emb_g(sid).unsqueeze(-1)  # [b, h, 1]
            g = sid
            g = self.linlin(g).unsqueeze(-1) # [b, h, 1]
        else:
            g = None
        x, m_p, logs_p, x_mask = self.enc_p(x, x_lengths, g=g)

....

Training works well and the loss convergence:
[2.560758352279663, 2.2537946701049805, 3.8962457180023193, 20.862136840820312, 0.8815252184867859, 2.2975285053253174, 24100, 0.00019459892692329838]
But when I infer, the quality of audio is so bad (audio can represent speakers style but can't represent any word).
Do you have any idea for this?
sample:
Text: Scarcely had he uttered the name when Pierre's closing eyes shot open
Audio: https://drive.google.com/file/d/1OtWPVw82alLTV3n4i7e9kb1FaKPJ0OBW/view?usp=sharing

maybe some issue with the tokens ("x") that is going in, maybe added blanks during training and not during inference?


text:
Better errors for undefined

The error coming from the following would be more useful if it were to complain about the undefined value in some way; what I really want is a documented way to test if it's undefined like this.  For the record, calling defined($!height) inside foo() also fails.
#!/usr/bin/raku

use     Physics::Unit;
use     Physics::Measure;

class   Test {
        has Length $.length;
        has Length $.width;

        method  foo {
                say $!length <=> $!width;
        }
}

my $a = Test.new();

$a.foo();

HTH,

hi @wayland - I tried this... with no Physics::Unit or Physics::Measure...
#!/usr/bin/raku
##use Physics::Unit;
##use Physics::Measure;
class Test {
has Real $.length;
has Real $.width;
method  foo {
say $!length <=> $!width;
}
}
my $a = Test.new();
$a.foo();
It gives this error:
Invocant of method 'Bridge' must be an object instance of type 'Real', not a type object of type 'Real'.  Did you forget a '.new'?
So I am wondering whether is this a general raku issue - you are comparing 2 undefined objects after all.
I kinda prefer my error ...
Cannot look up attributes in a Physics::Measure::Length type object
What specifically would you propose?
~p6steve


text:
training process

Hello author, thank you for your work. When I was training, I found that the generated files were not one, but multiple, and the generated file numbers were not consecutive. May I ask if this is normal?Looking forward to your reply, thank you.

Hello, I didn't run it anymore. But I learned from other projects. The discontinuous sequence number of the training is because only the files with good results are retained. I think pre training only requires a few rounds of training, and the second stage will continue to train for 80 epochs as usual. I used 3090 GPU @sayoko17

Hello, I didn't run it anymore. But I learned from other projects. The discontinuous sequence number of the training is because only the files with good results are retained. I think pre training only requires a few rounds of training, and the second stage will continue to train for 80 epochs as usual. I used 3090 GPU @sayoko17

你好，我是你之前联系询问MPI-INF-3HP数据集代码的那位，我注意到你已经找到了处理MPI-INF-3HP数据集的相关代码，但我没有找到，方便给我发一份吗？

你好，抱歉这么晚回你，我之前问的是如何获得AUC和PCK的值，这个代码里面可以得到。你说的处理MPI-INF-3HP数据集的相关代码这个代码里面不是你要的吗，还是什么别的呢@wangdazhong1112

你好，抱歉这么晚回你，我之前问的是如何获得AUC和PCK的值，这个代码里面可以得到。你说的处理MPI-INF-3HP数据集的相关代码这个代码里面不是你要的吗，还是什么别的呢@wangdazhong1112

我并没有发现有关于MPI-INF-3HP数据集的所有相关代码，有部分处理该数据集的代码，但没有处理MPI-INF-3HP数据集的代码，也没有计算AUC和PCK的值的代码

Hello, generating multiple. pth files. May I ask if IndexError: list index out of range appears during your testing? I found that when testing multiple files, the values are inaccurate and will not present the best epoch effect. May I ask how you resolved it. Looking forward to your reply, thank you. @sayoko17

你好，抱歉这么晚回你，我之前问的是如何获得AUC和PCK的值，这个代码里面可以得到。你说的处理MPI-INF-3HP数据集的相关代码这个代码里面不是你要的吗，还是什么别的呢@wangdazhong1112

我并没有发现有关于MPI-INF-3HP数据集的所有相关代码，有部分处理该数据集的代码，但没有处理MPI-INF-3HP数据集的代码，也没有计算AUC和PCK的值的代码

处理数据集脚本：./common/data_to_npz_3dhp.py和./common/data_to_npz_3dhp_test.py。 计算AUC和PCK脚本：./3dhp_test/test_util/mpii_test_predictions_py.m

This project has helped me a lot for constructing my work. But I have a question about the 3DHP dataset. During my training process, the mpjpe error of the  test set is very high. The  training mpjpe is about 36 but the  testing mpjpe is about 85. At
first, I thought my model has some problem, but after I shift the model to STMO, the  situation is  still  the same. I  use the traning  and testing 3DHP .npz data and data processing code in this project. Could you please give me some clues that what causes this problem ?

Regarding the total of TestSeq1-6 of PCK and AUC obtained from mpii_3dhp_evaluation_sequencewise.csv, which one should I choose?
I see that the Final result is obtained in the mpii_3dhp_evaluation_sequencewise.xlsx file, but not in the csv table, so I don't know which data in the csv table should I choose.

repo: paTRICK-swk/P-STMO


text:
Highcharts Dependency problem

We recently upgraded highcharts-ng from 1.0.1 to 1.1.0, which caused many of our charts to break. I believe the problem is this change mentioned in the readme:

Now has explicit dependency on highcharts.js.

We're running Highcharts in styled mode, meaning we configure Highcharts via CSS. To use Highcharts in styled mode, we import the node_modules/highcharts/js/highcharts-more.js file. By explicity including a dependency on highcharts.js, highcharts-ng is swapping out our highcharts-more.js file for the non-styled build.
I'm not the best way to fix this, but it's definitely pretty broken as it is. Here's an example of the before and after for a couple of our charts:
Before:

After:

Thanks!

Resolved in 1.2.0 release

authors: LandonSchropp pablojim

repo: pablojim/highcharts-ng