latest nodejs client gives 403 Forbidden on trying to get schema from registry

Hi,
I am using this client package to connect to an existing Schema Registry that we have.  I created a new schema via POST api and verified it with AKHQ. I am using "@kafkajs/confluent-schema-registry": "^3.2.1"
When i try to read that schema object in my code:
    let registry = null;
    registry = new SchemaRegistry({ host: 'https://dev-schema-registry.xxxx.io' });
    const result  = await registry.getLatestSchemaId('event.nr.fileIngestion-value');
    console.log('result==', result);

I get 403 Forbidden error
ResponseError: Confluent_Schema_Registry - Error, status 403:
        <title>403 Forbidden</title>

403 Forbidden

            at D:\graphqlws\kafka-schema-registry-eg\node_modules\@kafkajs\confluent-schema-registry\dist\api\middleware\errorMiddleware.js:17:37
            at processTicksAndRejections (internal/process/task_queues.js:95:5) {
        status: 403,
        unauthorized: false,
        url: 'get https://dev-schema-registry.xxxx.io/subjects/event.nr.fileIngestion-value/versions/latest'
        }

Any other function also gives me same error.  When i try to connect to the same schema registry using python client, it works. You can refer to: https://github.com/aonamrata/schema-registry-eg for both the examples.
I also tried manually hitting https://dev-schema-registry.xxxx.io/subjects/event.nr.fileIngestion-value/versions/latest from browser and that works. It returns the json object.
Can someone please help me identity the problem? There is no auth that i know of because i can hit the url directly. Only via the module it gives me error.
Thanks.

What version of the schema registry are you using? This error is clearly coming from the server, so there must be some auth or restriction in place.
What happens if you just curl -XGET https://dev-schema-registry.xxxx.io/subjects/event.nr.fileIngestion-value/versions/latest?

What version of the schema registry are you using?

I am not sure but let me ask around. But i know that we are using docker image with  FROM confluentinc/cp-schema-registry:latest . But let me check when it was last deployed.

What happens if you just curl -XGET https://dev-schema-registry.xxxx.io/subjects/event.nr.fileIngestion-value/versions/latest?

Yea, this works. that is what is confusing. and its the same url even in the error message.

Could you share the docker-compose file you're using locally? I'm having issues trying to upgrade from confluent platform 5 to 6.

Could you share the docker-compose file you're using locally? I'm having issues trying to upgrade from confluent platform 5 to 6.

Hey @Nevon , Sorry for all the trouble. One of our devops engineer was help me out. It turned out that AWS WAF was blocking the requests with NoUserAgent HEADER from going to the server. That is why the url on its own worked but not from the module.
On closing note, we are using schema registry version 7.0.0.

That's an interesting observation though. I looked through both the Java and Python schema registry clients, and neither of them explicitly set a user-agent header, which probably means that they use whatever default user-agent header their respective HTTP libraries set. I can't tell with the Java client, but the Python client uses requests, which definitely does set a user-agent header by default. So to avoid this in the future, we should probably set a user agent as well. Opened up another issue for it #194


⚠ RPC server - Infura Mainnet has degraded performance

In 8f2d029, RPC server - Infura Mainnet ($INFURA_MAINNET_RPC_URL) experienced degraded performance:

HTTP code: 429
Response time: 243 ms

Resolved: RPC server - Infura Mainnet performance has improved in c7f549d after 6 minutes.


Added scrollbar

Added scrollbar in diaries and movies section .

@riyajaiswal25  Add a video with your PR  to showcase your changes .

@Tess-Vanta  Its #236


Update alphapept from within

Is your feature request related to a problem? Please describe.
For anybody less familiar with python, or less comfortable with computers in general a software update will be a pain as it is now.
Describe the solution you'd like
Add an update button to the version number. Can be restricted to the one-click installer version.
Additional context
Minimally it would be good to highlight whether a new version is available and provide a step by step guide to an update.

Moved to discussions https://github.com/MannLabs/alphapept/discussions/330


Problems using AddVersionedApiExplorer with AddMvcCore on .NET Core 2.2.106

Hi,
I'm getting an error using the AddVersionedApiExplorer with AddMvcCore on .NET Core 2.2.106:
'IMvcCoreBuilder' does not contain a definition for 'AddVersionedApiExplorer' and the best extension method overload 'IServiceCollectionExtensions.AddVersionedApiExplorer(IServiceCollection, Action)' requires a receiver of type 'IServiceCollection' (CS1929)
Here's the packages that I used:

Is there something that I missed out on this one?
Thanks!
Regards,
Ked

It looks like you might be upgrading from 2.x to 3.x? As noted in the release notes and the wiki, the AddVersionedApiExplorer moved from extending IMvcCoreBuilder to IServiceCollection so that it has better congruency with other service registrations starting in 3.0.
What used to be:
services.AddMvcCore().AddApiExplorer().AddVersionedApiExplorer();

or
services.AddMvcCore().AddVersionedApiExplorer();

is now simply:
services.AddVersionedApiExplorer();

The sample projects also reflects this. This change also addressed an issue where people commonly forgot to call AddApiExplorer(), which now happens automatically. I hope that helps.

Thanks for this @commonsensesoftware
I've combined everything and was able to make it work, I hope that this can help others as well:
Version:
.Net Core 2.2.106
So to make it work, I used the combination of this 3:

Also, another important learning for me was that you need to annotate your controller class with the [ApiController] attribute else Swagger won't be able to identify them when using API Versioning.

There's nothing wrong with adding services.AddMvcCore().AddApiExplorer(), but if you've moved up to the latest package version, this shouldn't be required anymore. API Versioning depends on this when you add the API Explorer support, so it's now called automatically on your behalf. services.AddMvc() also makes this call.
Starting in 3.0, there is support to filter controllers automatically by convention via the IApiControllerFilter service. The default implementation filters controllers that have the API controller conventions applied a la [ApiController]. This change makes supporting the mixing of API and UI controllers easier. A lot of people were mixing the two and frustrated by the versioning policies applied to UI controllers. Unfortunately, this causes a behavioral change that essentially breaks things when users upgrade to 3.0+. You can revert to the old behavior using options.UseApiConventions = false. This option was available prior to 3.0, but was false. Starting in 3.0, it's now true.
Dealing with breaking changes is difficult and they are limited to major releases. I always call out these changes. I suggest skimming through the release notes and samples during major version changes to verify your configuration.
Glad you got it all sorted out. Thanks.

It would appear this issue is resolved. Feel free to come back if you have more questions.


本地接口500

Describe the bug
本地
Generator.tsx? [sm]:53          POST http://localhost:3000/api/generate 500 (Internal Server Error)
Reproduction
POST http://localhost:3000/api/generate 500 (Internal Server Error)
System Info
Generator.tsx? [sm]:53          POST http://localhost:3000/api/generate 500 (Internal Server Error)
requestWithLatestMessage @ Generator.tsx? [sm]:53
await in requestWithLatestMessage (async)
handleButtonClick @ Generator.tsx? [sm]:30
eventHandler @ dev.js:369
Generator.tsx? [sm]:90 Error: Internal Server Error
    at requestWithLatestMessage (Generator.tsx? [sm]:66:15)

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

#157

同问题 我正在查看代码

According to the feedback from the community, it seems to have encountered some api exceptions today, and I wonder if this is the reason. Try to request the OpenAI API directly through the HTTP tool?

I use localhost:3000 for local access, no error found, but not with nginx reverse proxy, the same error prompted

Seems to need to open a proxy. https://github.com/ddiu8081/chatgpt-demo/issues/34

We've just added a more detailed error message output. You should now be able to see the cause of the error in the UI.


Remove diskio stats from being pushed to InfluxDB.

The stats are handled incorrectly.
#95

LGTM, merging now since it's only a nit.


resync 20240509

Add cherry-picks on top of current version:
https://github.com/openshift-kni/scheduler-plugins/commit/cd54de85fe4d5cce32a5b71e59a4b0f9a7f7dddf
update the NRT-related changes to consume the
fix to deal with ephemeral storage.

/retest

/jira refresh

Thanks for this!
lgtm. leaving room for others to review.


Subnet class should return the netwrok address.

Subnet class currently just returns the given IP address even if it's not the network address, e.g. <IP_ADDRESS>/24 return <IP_ADDRESS> as the network address when it should return <IP_ADDRESS>.

Done.  Kept basic .subnet attribute as the address entered by user but added .network and .networkcidr attributes to be the network address of the given subnet as well as .broadcast and .broadcastcidr attributes.


Please update to KSCrash 1.15.2

Hi,
can you please change the requirement to KSCrash 1.15.2 or tell me how to set the version in a local repo?
I tried to download bugsnag and set it manually in a local repo, but I always get the error message
None of your spec sources contain a spec satisfying the dependency: `KSCrash/RecordingAdvanced (> 1.11.2)`.

when I try to run pod update.
Thank you!

How strange. Last time I tested 1.15.2, I had some issues building, but I'll retry.

Did you try running pod repo update?
None of your spec sources contain a spec satisfying the dependency: `KSCrash/RecordingAdvanced (= 1.15.2)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

After looking into this further, the subspec we're using (RecordingAdvanced) does not exist in 1.15.2, nor do some of the functions from it which we use internally. I'll have to take a deeper look at what it would mean to upgrade.

Closing as we have forked and prefixed KSCrash within the library.


Patch 2

This PR is outdated as the work is being done in https://github.com/Specy/genshin-music/pull/49, i'll close this


updates for analyst mode

Significant changes to the models, etc

Closing. Going to merge into "analyst-mode" branch instead


GUI for Nuitka to compile .exe from Python

GUI for Nuitka to compile .exe from Python with D&D for files can be good idea?
Inspired by the last situation
https://github.com/Nuitka/Nuitka/issues/343#issuecomment-480751019
and fact that in many project I working with the many .bat files (for nuitka, py2exe, qt, other..)
What we need?

[ ] all options --
[ ] managment for compilators and
[ ] managment for pythons
[ ] managment for profile compilators (precofigurated options)
[ ] managment configuration in .config or .xml
[ ] logs to .txt/.csv to easy analysis
[ ] drag and drop for files (D&D)

Hope, that can be writed in python compiled by nuitka : )

Soo.. I'm thinking about  something like this

Nuitka-GUI_v3a.zip -.ui file and .ico
v1 was with tabs and checkbox but to much this all
v2 was with tabs amd table but to much this all
v3 is here.. - I think that all states as inputs or checkbos for funtions in options can be comfy in add more config for .ini files or .xml

you are aware that there already exists a repo to provide a Nuitka GUI?

and a smaller one in the utilities repo for standalone only.

I forgot about https://github.com/pombreda/nuitka-gui : )

but I remeber some problems on windows time ago.. maybe this is explanation
And first see the https://github.com/Nuitka/NUITKA-Utilities

Maybe some new view on topic? : )
And "merge" with this all?

@JorjMcKie That GUI repo is very outdated.


Support multiple apps

I created a pr to make the gem support multiple apps for our requirement. See if it's useful. Thanks.

Hi @jpoz , is there any issue with this PR? Do you plan to merge it to master?

@arthurchui Have you tested this branch?

Closing very outdated PR


tests: skip migration tests if LiveMigration is not enabled

What this PR does / why we need it:
Skip Migrations tests (i.e those from tests/migration_test.go) if LiveMigration feature gate is not enabled instead of running them and seeing them fail.
Special notes for your reviewer:
This is the same behaviour as DataVolume tests (tests/datavolume_test.go) which are skipped when DataVolumes feature gate is not enabled.
Release note:

NONE

good catch, looks good to me, let's wait for CI


macOS Calendar gets 403 response for PROPPATCH and stops after that

I use sabre/dav in my project to build a read-only CalDAV interface to the data of my web application.
Sabre version: 3.2.0
The following parts are custom, implemented by my application:

CustomAuthBackend extending Sabre\DAV\Auth\Backend\AbstractBasic
CustomPrincipalBackend implementing Sabre\DAVACL\PrincipalBackend\BackendInterface
CustomCalendarBackend implementing Sabre\CalDAV\Backend\BackendInterface

I have the following plugins activated:

Sabre\DAV\Auth\Plugin
Sabre\CalDAV\Plugin
Sabre\DAVACL\Plugin
Sabre\DAV\Browser\Plugin

CalDAV works fine with iOS and Android devices, but now I have tested with macOS' Calendar.app and I can't get it to download the events.
The following happens (observed in Charles Proxy):

PROPFIND /caldav/calendars/felixkiss/ => returns 401
PROPFIND /caldav/calendars/felixkiss/ (with Auth header) => returns

<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/">
	<d:response>
		<d:href>/caldav/calendars/felixkiss/</d:href>
		<d:propstat>
			<d:prop>
				<d:current-user-privilege-set>
					<d:privilege>
						<d:write />
					</d:privilege>
					<d:privilege>
						<d:write-properties />
					</d:privilege>
					<d:privilege>
						<d:write-content />
					</d:privilege>
					<d:privilege>
						<d:unlock />
					</d:privilege>
					<d:privilege>
						<d:bind />
					</d:privilege>
					<d:privilege>
						<d:unbind />
					</d:privilege>
					<d:privilege>
						<d:write-acl />
					</d:privilege>
					<d:privilege>
						<d:read />
					</d:privilege>
					<d:privilege>
						<d:read-acl />
					</d:privilege>
					<d:privilege>
						<d:read-current-user-privilege-set />
					</d:privilege>
				</d:current-user-privilege-set>
				<d:owner>
					<d:href>/caldav/principals/felixkiss/</d:href>
				</d:owner>
				<d:resourcetype>
					<d:collection />
				</d:resourcetype>
				<d:supported-report-set>
					<d:supported-report>
						<d:report>
							<d:expand-property />
						</d:report>
					</d:supported-report>
					<d:supported-report>
						<d:report>
							<d:principal-match />
						</d:report>
					</d:supported-report>
					<d:supported-report>
						<d:report>
							<d:principal-property-search />
						</d:report>
					</d:supported-report>
					<d:supported-report>
						<d:report>
							<d:principal-search-property-set />
						</d:report>
					</d:supported-report>
				</d:supported-report-set>
			</d:prop>
			<d:status>HTTP/1.1 200 OK</d:status>
		</d:propstat>
	</d:response>
</d:multistatus>

PROPPATCH /caldav/calendars/felixkiss/

Request:
PROPPATCH /caldav/calendars/felixkiss/ HTTP/1.1
Content-Type: text/xml
Authorization: Basic ZmVsaXhraXNzOmZlbGl4
Connection: keep-alive
Accept: */*
User-Agent: Mac+OS+X/10.12.2 (16C67) CalendarAgent/384
Content-Length: 425
Accept-Language: en-us
Accept-Encoding: gzip, deflate

<?xml version="1.0" encoding="UTF-8"?>
<A:propertyupdate xmlns:A="DAV:"><A:set><A:prop><B:default-alarm-vevent-date xmlns:B="urn:ietf:params:xml:ns:caldav">BEGIN:VALARM
X-WR-ALARMUID:CC59F3F7-020D-42BA-AA37-3EFD07055D32
UID:CC59F3F7-020D-42BA-AA37-3EFD07055D32
TRIGGER:-PT15H
ATTACH;VALUE=URI:Basso
ACTION:AUDIO
END:VALARM
</B:default-alarm-vevent-date></A:prop></A:set></A:propertyupdate>

Response:
HTTP/1.1 207 Multi-Status
Cache-Control: no-cache
Content-Type: application/xml; charset=utf-8
Date: Fri, 20 Jan 2017 17:54:53 GMT
Server: Caddy
Status: 207 Multi-Status
Vary: Brief,Prefer
X-Powered-By: PHP/7.0.14
X-Sabre-Version: 3.2.0
Content-Length: 402
Connection: Keep-alive

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/">
 <d:response>
  <d:href>/caldav/calendars/felixkiss</d:href>
  <d:propstat>
   <d:prop>
    <cal:default-alarm-vevent-date/>
   </d:prop>
   <d:status>HTTP/1.1 403 Forbidden</d:status>
  </d:propstat>
 </d:response>
</d:multistatus>

Another PROPPATCH similar to 3), but with default-alarm-vevent-datetime instead of default-alarm-vevent-date

REPORT /caldav/principals/felixkiss/ => return 401

REPORT /caldav/principals/felixkiss/ (with Auth header) => returns

HTTP/1.1 207 Multi-Status
Cache-Control: no-cache
Content-Type: application/xml; charset=utf-8
Date: Fri, 20 Jan 2017 17:54:53 GMT
Server: Caddy
Status: 207 Multi-Status
X-Powered-By: PHP/7.0.14
X-Sabre-Version: 3.2.0
Content-Length: 429
Connection: Keep-alive

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/">
 <d:response>
  <d:href>/caldav/principals/felixkiss/</d:href>
  <d:propstat>
   <d:prop>
    <cs:calendar-proxy-read-for/>
    <cs:calendar-proxy-write-for/>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
 </d:response>
</d:multistatus>

What I have tried:

I thought if request 2) would not return any write privileges, the client wouldn't try to set default-alarm-vevent-date in the first place, but a custom ACL plugin that only featured the {DAV:}read privileges did nothing
I searched through all interfaces that I implement myself but couldn't find anything I thought was related.

Any ideas or hints where I can continue debugging?

Hi @felixkiss ,
Can you try enabling a PropertyStorage plugin and try again? The 403 ideally shouldn't be a problem, but maybe something changed in the latest OS X.
The easiest is to enable it with the PDO backend for  testing:
http://sabre.io/dav/property-storage/
It's a really good idea to have this enabled regardless. It will make many clients a bit better.
cc: @DominikTo

@evert I've tested the property storage. I think now we are getting somewhere.
As you can see in the request/response pairings that happen, the client actually downloads the event data, but it is not being displayed. In fact, not even the calendar name is displayed in Calendar.app
Do the responses look good now? What might be the problem?

Hey @felixkiss ,
For some reason, the cal:supported-calendar-component-set is wrong. Any idea why that could be?

Thanks for the hint.
I fixed it in my custom Sabre\CalDAV\Backend\BackendInterface@getCalendarsForUser implementation:
before:
'{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set' => ['VEVENT'],

after:
'{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set' => new Sabre\CalDAV\Xml\Property\SupportedCalendarComponentSet(['VEVENT']),

Everything seems to work now. 🥇 🍻


TypeError: ruleConfiguration.forEach is not a function

Bug Report

TSLint version: 5.0.0
TypeScript version: 2.2.2
Node version: v6.9.1
Running TSLint via: Node.js API

Usage
import { Linter, ILinterOptions } from 'tslint';
import fs from 'fs-extra-promise';
import globby from 'globby';
import { project } from '../project';

const tslintConfig = require('../tslint.json');
const lintOptions: ILinterOptions = {
  formatter: 'codeFrame',
  rulesDirectory: [],
  formattersDirectory: '',
  fix: false
};
const defaultFilePatterns = [
  `${project.srcDir}/**/*.ts`
];

export async function lintAsync(filePatterns = defaultFilePatterns) {
  const filePaths = await globby(filePatterns);
  const contents = await Promise.all(filePaths.map(filePath => fs.readFileAsync(filePath, 'utf8')));
  const results = filePaths.map((filePath, index) => {
    const content = contents[index];
    const linter = new Linter(lintOptions);
    linter.lint(filePath, content, tslintConfig);
    return linter.getResult();
  });

  const errors = results.filter(result => !!result.errorCount);
  return errors;
}

Actual behavior
TypeError: ruleConfiguration.forEach is not a function
    at Object.convertRuleOptions (./node_modules/tslint/lib/configuration.js:357:23)

ruleConfiguration.forEach seems to expect a Map. Problem appeared after upgrading to v5. My node version should support Map:
$ node
> new Map()
Map {}

Expected behavior
No error?

Okay... Maybe I need this line const configLoad = Configuration.findConfiguration(configurationFilename, filename);? Because IConfigurationFile has a rules: Map<string, Partial<IOptions>>; property.

yeah you're using an untyped import require("../tslint.json") that does not give you an IConfigurationFile. check out how runner.ts uses findConfiguration

Library usage section of the README covers this

... but it looks like the docs site is outdated :( https://palantir.github.io/tslint/usage/library/

Library usage section of the README covers this
... but it looks like the docs site is outdated :( https://palantir.github.io/tslint/usage/library/

Yes, I saw this later yesterday. Would this be a correct usage example for README.md...?
import { Linter, Configuration } from "tslint";
import * as fs from "fs";

const fileName = "Specify input file name";
const configurationFilename = "Specify configuration file name";
const options = {
    formatter: "json",
    rulesDirectory: "customRules/",
    formattersDirectory: "customFormatters/"
};

const fileContents = fs.readFileSync(fileName, "utf8");
const linter = new Linter(options);
-const configLoad = Configuration.findConfiguration(configurationFilename, filename);
-const result = linter.lint(fileName, fileContents, configLoad.results);
+const configLoad = Configuration.findConfiguration(configurationFilename, fileName);
+linter.lint(fileName, fileContents, configLoad.results);
+const result = linter.getResult();

Hi,
What is the fix for this?
I am still having in issue using tslint-loader for webpack 2, trying to load my tslint.json in my tslint-loader configuration.
I tracked the issue down and my conclusion is that it fails because we pass in a dictionary of lint rules which is being iterated by a forEach in the function convertRuleOptions (file lib/configuration.js:355). However, it is a dictionary object, not an Array. So forEach is not available.
I tried converting rules in tslint-loader to an array of rule objects, but then the function fails since ruleName is expected to be a string name and not the array index.
I posted a possible fix by changing the forEach to an Object.keys() iteration. This seems to solve the issue but I am not sure if it is a symptom fix only.
Check other package for fix: https://github.com/wbuchwalter/tslint-loader/issues/73
Please advice?

If you look at the code, you'll see that the raw configuration file goes through the parseConfigFile function.
So you can't simply provide a JSON file as configuration.
The following example demonstrates correct usage (albeit with plain objects):
const tslint = require('tslint')

export const lint = text => {
  const options = {
    fix: false,
    formatter: 'json',
  }

  const rawConfig = tslint.Configuration.EMPTY_CONFIG

  rawConfig.rules = {
    semicolon: [true, 'always'],
  }

  const config = tslint.Configuration.parseConfigFile(rawConfig)

  const linter = new tslint.Linter(options)
  linter.lint('test.ts', text, config)
  return linter.getResult()
}


POL-14

Description
[Describe what this change achieves]
Issues Resolved
[List any existing issues this PR resolves]
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] New functionality has been documented in CHANGELOG.MD

          2 Errors

:no_entry_sign:
Please add a changelog

:no_entry_sign:
A README.md is required for new templates

          1 Warning

:warning:
Should this include readme changes

  Generated by :no_entry_sign: Danger


Set transaction metadata in each scope

Is your feature request related to a problem? Please describe.
At the moment neo4j while executing the request doesn't know anything about the end-user who is executing it. This then can bring complexity to the client application to implement such feature.
Describe the solution you'd like
On opening a request scope, the client app should save the User information as long as the scope is not closed.
Now on executing a transaction, we can pass the user info as metadata to neo4j. Now this information can be used by a trigger to be saved in neo4j.

/close
this is solved somewhere else since the transaction configuration is already exposed


OSError: Unknown template 'isyntax2raw.resources.ome_template'

After executing the command  for convetring isyntax format  image into tile
isyntax2raw write_tiles /home/dilip/pathology/isyntax/abcd.isyntax /home/dilip/pathology/tile_image
It throw the error
Traceback (most recent call last):
File "/usr/local/bin/isyntax2raw", line 11, in
load_entry_point('isyntax2raw==0.0.0', 'console_scripts', 'isyntax2raw')()
File "/usr/local/lib/python3.6/dist-packages/isyntax2raw-0.0.0-py3.6.egg/isyntax2raw/cli/isyntax2raw.py", line 63, in main
File "/usr/local/lib/python3.6/dist-packages/Click-7.0-py3.6.egg/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/Click-7.0-py3.6.egg/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/Click-7.0-py3.6.egg/click/core.py", line 1137, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/dist-packages/Click-7.0-py3.6.egg/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/Click-7.0-py3.6.egg/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/isyntax2raw-0.0.0-py3.6.egg/isyntax2raw/cli/isyntax2raw.py", line 53, in write_tiles
File "/usr/local/lib/python3.6/dist-packages/isyntax2raw-0.0.0-py3.6.egg/isyntax2raw/init.py", line 240, in write_metadata
File "/usr/local/lib/python3.6/dist-packages/Kajiki-0.8.2-py3.6.egg/kajiki/loader.py", line 73, in import
filename = self._filename(name)
File "/usr/local/lib/python3.6/dist-packages/Kajiki-0.8.2-py3.6.egg/kajiki/loader.py", line 124, in _filename
raise IOError('Unknown template %r' % name)
OSError: Unknown template 'isyntax2raw.resources.ome_template'
The above command sometime work or sometime not work.
When it not work that time it  only create the METADATA.json file.
When it successfully convert the image into tile then i apply the following command to convert tiles into OME-TIFF format
bin/raw2ometiff-master /home/dilip/pathology/tile_image /home/dilip/pyramid.ome.tiff
then it again throw the error
2020-04-01 20:21:27,944 [main] INFO  org.perf4j.TimingLogger - start[1585752687893] time[49] tag[initialize]
Exception in thread "main" picocli.CommandLine$ExecutionException: Error while calling command (com.glencoesoftware.pyramid.PyramidFromDirectoryWriter@46238e3f): java.lang.RuntimeException: loci.formats.FormatException: Could not create an N5 reader
at picocli.CommandLine.execute(CommandLine.java:1180)
at picocli.CommandLine.access$800(CommandLine.java:141)
at picocli.CommandLine$RunLast.handle(CommandLine.java:1367)
at picocli.CommandLine$RunLast.handle(CommandLine.java:1335)
at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243)
at picocli.CommandLine.parseWithHandlers(CommandLine.java:1526)
at picocli.CommandLine.call(CommandLine.java:1786)
at picocli.CommandLine.call(CommandLine.java:1710)
at com.glencoesoftware.pyramid.PyramidFromDirectoryWriter.main(PyramidFromDirectoryWriter.java:260)
Caused by: java.lang.RuntimeException: loci.formats.FormatException: Could not create an N5 reader
at com.glencoesoftware.pyramid.PyramidFromDirectoryWriter.call(PyramidFromDirectoryWriter.java:291)
at com.glencoesoftware.pyramid.PyramidFromDirectoryWriter.call(PyramidFromDirectoryWriter.java:97)
at picocli.CommandLine.execute(CommandLine.java:1173)
... 8 more
Caused by: loci.formats.FormatException: Could not create an N5 reader
at com.glencoesoftware.pyramid.PyramidFromDirectoryWriter.initialize(PyramidFromDirectoryWriter.java:501)
at com.glencoesoftware.pyramid.PyramidFromDirectoryWriter.call(PyramidFromDirectoryWriter.java:277)

isyntax2raw write_tiles /home/dilip/pathology/isyntax/abcd.isyntax /home/dilip/pathology/tile_image
It throw the error
...
raise IOError('Unknown template %r' % name)
OSError: Unknown template 'isyntax2raw.resources.ome_template'

We have seen this before with isyntax2raw installations from an egg, but it should have been fixed with https://github.com/glencoesoftware/isyntax2raw/pull/9.  Can you provide the exact steps (including specific commands) that you used to download and install isyntax2raw?
When it successfully convert the image into tile then i apply the following command to convert tiles into OME-TIFF format

bin/raw2ometiff-master /home/dilip/pathology/tile_image /home/dilip/pyramid.ome.tiff

then it again throw the error

2020-04-01 20:21:27,944 [main] INFO org.perf4j.TimingLogger - start[1585752687893] time[49] tag[initialize]
Exception in thread "main" picocli.CommandLine$ExecutionException: Error while calling command (com.glencoesoftware.pyramid.PyramidFromDirectoryWriter@46238e3f): java.lang.RuntimeException: loci.formats.FormatException: Could not create an N5 reader

This usually means that the tiles were not written.  Does the output of the ls -hl /home/dilip/pathology/tile_image/ command show that there is a pyramid.n5 directory?  If not, the tiles were not written and raw2ometiff should not be run.

Can you provide the exact steps (including specific commands) that you used to download and install isyntax2raw?
First I download the isyntax2raw.
After that unzip the zip file then i apply following command to install isyntax2raw
$ cd isyntax2raw-master
$ python3 setup.py build
$ python3 setup.py install

If you are having problems building from source, in particular with the XML templates, please install the prebuilt wheels from the releases:

https://github.com/glencoesoftware/isyntax2raw/releases


Fixes humble backport issues (#3070)

Description
Backport fixes for #3070

@sjahr I'm unsure why a planning scene monitor test failed as I've only touched pilz. Would it be possible to rerun the pipeline in case it's sporadic?

Looks good. Seems to also be needed for the Iron backport PR, by the way!


liburdfdom-tools and sdl-mixer for rosdep

I couldnt find other packages for liburdfdom-tools, hope its okay.

fine for now: people will add when needed. Thx.


TestKit backend: except txMeta as Cypher types

Depends on:

https://github.com/neo4j-drivers/testkit/pull/538

The same 5 tests as on 5.0 are failing.


Code Documentation Framework

It might be a good idea to change to a solid code documentation framework. This would pose the option to generate a webpage containing all our documentation and give easy hints for documentation.
A good list can be found at https://vue-community.org/guide/ecosystem/documentation.html. Vue Styleguidist (https://vue-styleguidist.github.io/docs/Documenting.html#code-comments) and Vuese (c.f https://dev.to/berniwittmann/quick--easy-documentation-generation-for-vuejs-components-7k6) looked interesting, Vue Styleguidist has the major advantage to use plain JSDoc comments we are already using, so this should be not a breaking change.
I tested Vue Styleguidist and jsdoc-vuejs, but both seem to struggle with the Composition API. Therefore, I would suggest to address this at earliest in summer, rather autumn (-> task for version >=3.1).

Closed because of many points:

vue-community.org and vuese.org do no longer exist anymore.
vue-styleguidist.github.io uses vue-cli which is replaced by vite in NEST Desktop v4.0

By the ways, I keep add code documentation for all/many functions and classes.


iGPU causing issues with compilation.

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.14
Custom code
No
OS platform and distribution
Linux Ubuntu 22.04 Server
Mobile device
No response
Python version
3.10
Bazel version
6.1.0
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
gfx1100 & gfx1032
Current behavior?
When I compile r2.14-rocm-enhanced branch, depending on whether the iGPU is enabled or not, it seems to produce a different output. If I disable the iGPU when building tensorflow, everything works as expected. If I build with the iGPU enabled, I get the following error when running new-ai-benchmark. Does the build process detect the GPUs in the system and use that information to produce different output? I'm just using build_rocm_python3 script. Is it not what's used to build the whl package for distribution?
Standalone code to reproduce the issue
Just build the same source code with the iGPU enabled and disabled.

Relevant log output
(tf) root@rocm:~/tmp# python benchmark.py
2023-11-05 01:42:47.001980: I tensorflow/core/util/port.cc:111] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-11-05 01:42:47.022108: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512F AVX512_VNNI AVX512_BF16 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-11-05 01:42:48.387035: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:48.395473: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:48.395500: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
>>   AI-Benchmark - 0.1.3.cm
>>   Let the AI Games begin
2023-11-05 01:42:49.487059: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.487110: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.487126: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.487190: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.487213: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.487232: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.487243: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1886] Created device /device:GPU:0 with 24024 MB memory:  -> device: 0, name: Radeon RX 7900 XTX, pci bus id: 0000:03:00.0
2023-11-05 01:42:49.623609: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623669: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623684: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623711: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623727: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623735: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1886] Created device /device:GPU:0 with 24024 MB memory:  -> device: 0, name: Radeon RX 7900 XTX, pci bus id: 0000:03:00.0
2023-11-05 01:42:49.623766: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623786: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623799: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623818: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623832: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:49.623838: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1886] Created device /device:GPU:0 with 24024 MB memory:  -> device: 0, name: Radeon RX 7900 XTX, pci bus id: 0000:03:00.0
*  TF Version: 2.14.0
*  Platform: Linux-5.15.0-88-generic-x86_64-with-glibc2.35
*  CPU: AMD Ryzen 9 7900X 12-Core Processor
*  CPU RAM: 62 GB
*  GPU/0: Radeon RX 7900 XTX
*  GPU RAM: 23.5 GB
*  CUDA Version: N/A
*  CUDA Build: N/A
The benchmark is running...
The tests might take up to 20 minutes
Please don't interrupt the script

1/19. MobileNet-V2

2023-11-05 01:42:50.860383: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:50.860468: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:50.860503: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:50.860561: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:50.860596: I tensorflow/compiler/xla/stream_executor/rocm/rocm_gpu_executor.cc:756] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-11-05 01:42:50.860616: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1886] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 24024 MB memory:  -> device: 0, name: Radeon RX 7900 XTX, pci bus id: 0000:03:00.0
2023-11-05 01:42:50.970363: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:382] MLIR V1 optimization pass is not enabled
2023-11-05 01:42:51.127972: I tensorflow/core/common_runtime/gpu_fusion_pass.cc:508] ROCm Fusion is enabled.
2023-11-05 01:42:51.580515: I tensorflow/core/common_runtime/gpu_fusion_pass.cc:508] ROCm Fusion is enabled.
2023-11-05 01:42:51.587953: W tensorflow/compiler/mlir/tools/kernel_gen/tf_gpu_runtime_wrappers.cc:30] 'hipModuleLoadData(&module, data)' failed with 'hipErrorNoBinaryForGpu'

2023-11-05 01:42:51.587983: W tensorflow/compiler/mlir/tools/kernel_gen/tf_gpu_runtime_wrappers.cc:30] 'hipModuleGetFunction(&function, module, kernel_name)' failed with 'hipErrorInvalidHandle'

2023-11-05 01:42:51.587992: W tensorflow/core/framework/op_kernel.cc:1827] INTERNAL: 'hipModuleLaunchKernel( function, gridX, gridY, gridZ, blockX, blockY, blockZ, 0, reinterpret_cast<hipStream_t>(stream), params, nullptr)' failed with 'hipErrorInvalidHandle'
2023-11-05 01:42:51.588012: I tensorflow/core/framework/local_rendezvous.cc:421] Local rendezvous recv item cancelled. Key hash:<PHONE_NUMBER>700386762
2023-11-05 01:42:51.593477: W tensorflow/compiler/mlir/tools/kernel_gen/tf_gpu_runtime_wrappers.cc:30] 'hipModuleUnload(it.second)' failed with 'hipErrorInvalidHandle'

Traceback (most recent call last):
  File "/root/tf/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1402, in _do_call
    return fn(*args)
  File "/root/tf/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1385, in _run_fn
    return self._call_tf_sessionrun(options, feed_dict, fetch_list,
  File "/root/tf/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1478, in _call_tf_sessionrun
    return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict,
tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found.
  (0) INTERNAL: 'hipModuleLaunchKernel( function, gridX, gridY, gridZ, blockX, blockY, blockZ, 0, reinterpret_cast<hipStream_t>(stream), params, nullptr)' failed with 'hipErrorInvalidHandle'
         [[{{node Mul}}]]
         [[output/_3]]
  (1) INTERNAL: 'hipModuleLaunchKernel( function, gridX, gridY, gridZ, blockX, blockY, blockZ, 0, reinterpret_cast<hipStream_t>(stream), params, nullptr)' failed with 'hipErrorInvalidHandle'
         [[{{node Mul}}]]
0 successful operations.
0 derived errors ignored.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/tmp/benchmark.py", line 11, in <module>
    results = benchmark.run()
  File "/root/tf/lib/python3.10/site-packages/ai_benchmark/core.py", line 57, in run
    return utils.run_tests(
  File "/root/tf/lib/python3.10/site-packages/ai_benchmark/utils.py", line 547, in run_tests
    sess.run(output_, feed_dict={input_: data})
  File "/root/tf/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 972, in run
    result = self._run(None, fetches, feed_dict, options_ptr,
  File "/root/tf/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1215, in _run
    results = self._do_run(handle, final_targets, final_fetches,
  File "/root/tf/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1395, in _do_run
    return self._do_call(_run_fn, feeds, fetches, targets, options,
  File "/root/tf/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1421, in _do_call
    raise type(e)(node_def, op, message)  # pylint: disable=no-value-for-parameter
tensorflow.python.framework.errors_impl.InternalError: Graph execution error:

Detected at node 'Mul' defined at (most recent call last):
Node: 'Mul'
Detected at node 'Mul' defined at (most recent call last):
Node: 'Mul'
2 root error(s) found.
  (0) INTERNAL: 'hipModuleLaunchKernel( function, gridX, gridY, gridZ, blockX, blockY, blockZ, 0, reinterpret_cast<hipStream_t>(stream), params, nullptr)' failed with 'hipErrorInvalidHandle'
         [[{{node Mul}}]]
         [[output/_3]]
  (1) INTERNAL: 'hipModuleLaunchKernel( function, gridX, gridY, gridZ, blockX, blockY, blockZ, 0, reinterpret_cast<hipStream_t>(stream), params, nullptr)' failed with 'hipErrorInvalidHandle'
         [[{{node Mul}}]]
0 successful operations.
0 derived errors ignored.

Original stack trace for 'Mul':

(tf) root@rocm:~/tmp#

Hi @briansp2020, you should disable the integrated graphics; see https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/prerequisites.html#disable-integrated-graphics-igp-if-applicable. With the iGPU enabled, ROCm is trying to use it and failing to do so as it is not supported.
You can try hiding the integrated graphics by setting HIP_VISIBLE_DEVICES to only your discrete GPU, but in general the integrated graphics should be disabled for ROCm to function properly. If you need additional guidance or this does not resolve your issue, feel free to comment and we can reopen.


Cannot run after add map.

I get the error:
Error: Type 'File' not found. Error: 'File' isn't a type. Error: The method 'File' isn't defined for  the class 'ImageOverlay'.
My code for adding map:
added import 'package:universe/universe.dart';
              U.OpenStreetMap(                 center: [-6.170039, 106.8241],                 zoom: 15,                 // by default, CircleLayer will use style from theme primaryColor                 circles: U.CircleLayer(                   [-6.170039, 106.8241],                   radius: 160,                 ),               ),
files:
lib/src/layer/overlay/image.dart
lib/src/layer/marker/layer.dart
found it missing import 'dart:io';
after adding to the files, it compiles, but just alot of exceptions
`══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performResize():
RenderConstrainedOverflowBox object was given an infinite size during layout.
This probably means that it is a render object that tries to be as big as possible, but it was put
inside another render object that allows its children to pick their own size.
The nearest ancestor providing an unbounded height constraint is: RenderFlex#23456 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
creator: Column ← ColoredBox ← Container ← MainScreen ← Semantics ← Builder ←
RepaintBoundary-[GlobalKey#e500d] ← IgnorePointer ← AnimatedBuilder ← Transform ← ScaleTransition
← FadeTransition ← ⋯
parentData:  (can use size)
constraints: BoxConstraints(w=392.7, h=802.9)
size: MISSING
direction: vertical
mainAxisAlignment: center
mainAxisSize: max
crossAxisAlignment: center
verticalDirection: down
The constraints that applied to the RenderConstrainedOverflowBox were:
BoxConstraints(0.0<=w<=392.7, 0.0<=h<=Infinity)
The exact size it was given was:
Size(392.7, Infinity)
See https://flutter.dev/docs/development/ui/layout/box-constraints for more information.
The relevant error-causing widget was:
OverflowBox
OverflowBox:file:///D:/Programmer/flutter/.pub-cache/hosted/pub.dartlang.org/universe-1.1.3-nullsafety/lib/src/map/universe.dart:212:16`

I found out this is because its not in a limited height box, my bad, after the adding of import 'dart:io'; it seems to work fine.


Adding icons on the navbar

Adding icons on the navbar for different sections such as doctors , appointments etc .

@itsmohit097  I want to work on this issue . Kindly assign me

Hii @itsmohit097
I would like to add icons to the navbar.
can you assign it to me under GSSOC24.

@Soumya6Tiwari good idea. Im making some changes to the structure of the project. After that I'll assign u. Atleast wait for 2-3 days🙏

@itsmohit097  sure :)


common: improve unit test coverage of 'kv' package

Signed-off-by: Lonng<EMAIL_ADDRESS>
What problem does this PR solve?
Improve unit test coverage of 'kv' package

/run-all-tests

/run-all-tests

@kennytm @july2993 PTAL

/run-all-tests

/run-all-tests

/run-all-tests


Quick Question

Where can I see the implementation of .partial_ratio() ? Can you let me know the logic which is utilized for this method.
Thanks in advance!

I am new to python!
So I went through the codebase of rapidfuzz. So basically the implementation of partial is divided to 2 parts
1. short needle implementation length<=64
Here a sliding window of length=min(len(s1),len(s2)) is used. and fuzz.ratio() is calculated on the all the alignments possible.
for example: I took this example from this issue
s1='real'
s2='barcelona'
fuzz.ratio(s1,s2)

So the best alignment here is  window size is equals to 4 here.
r_eal
rce_l

This requires two operations output is 1-2/(4+4) = 75 which is the exact output as given by rapidfuzz.
2. long needle implementation length>64
This is similar to as implemented by fuzzywuzzy. The logic here is find the best alignment from shorter string to the Longest common substring of longer string. and find similarity score using fuzz.ratio() from the needle to longest common substring.
Can anyone give example  clear this part up?
Any help would be appreciated regarding this.

Oh the documentation is simply outdated. In the past I did use two implementations since I didn't have a way to make the implementation for long needles reasonably fast. However this did mean that the implementation for longer needles was similar to whats done in fuzzywuzzy, which doesn't always provide the correct results.
I have since found a better way to filter out impossible results and so I use the "correct" implementation both for short and long needles. You will still notice a drop in performance once the needle has more than 64 characters though.
From a user perspective it's simply a sliding window where the substring taken from the longer string has a length of.

<= the length of the needle if it starts/ends at the start/end of the longer string
the length of the needle if it's somewhere in the middle of the longer string

The pure Python fallback implementation is: https://github.com/rapidfuzz/RapidFuzz/blob/9359be25a503ed5cb1fb75defac924c5e379048a/src/rapidfuzz/fuzz_py.py#L118
The C++ implementation is https://github.com/rapidfuzz/rapidfuzz-cpp/blob/10426d24cd7479df0fe8c78b17877e756e1c3cd5/rapidfuzz/fuzz_impl.hpp#L68
The actual implementation doesn't actually check all alignments since it can use knowledge about the maximum distance change per shift of the sliding window to filter out some comparisons.

Thank you @maxbachmann for clear explanation.
Do you plan on updating the documentation anytime soon?

Yes I will probably fix the docs at some point this week


Not compatible with nodejs 18

Just opening to let you know. I'll pin nodejs to <18
 #16 30.04   × Building wheel for quetz-frontend (pyproject.toml) did not run successfully.
#16 30.04   │ exit code: 1
#16 30.04   ╰─> [22 lines of output]
#16 30.04       yarn install v1.22.19
#16 30.04       [1/4] Resolving packages...
#16 30.04       [2/4] Fetching packages...
#16 30.04       error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "^12 || ^14 || ^16 || ^17". Got "18.12.1"
#16 30.04       error Found incompatible module.

Thanks @dhirschfeld-shell!


More flexible replacements

This PR does two things:

replacements can now switch out a function declaration as opposed to just variables. (allows replacing kernel F2/A2 functions).
replacements can replace a variable/function with more than one statement. (allows to replace, say, the F function with a whole ton of stuff)

Actually, there is a bug here that I didn't see before I enabled one of the transforms... Hold on...

There, should be good now =)


[WIP] single-cell RNA workflow

scRNA training material:

[X] single-batch runthrough
[X] multiple batches
[ ] Public Data

Obtained SRR5683689
UMI_tools takes 24 minutes to run this
Currently downsampling...

Can you please share me the history with your mm10 problem and the GTF file from the data library?


[JAVA] NPE if I try to serialize an object with a null property

During the marshalling this part throws the NPE
if (!this.property.isEmpty()) {

In my opinion null is overused in Java. As a result null checks are everywhere.
You are talking about strings. Is it not better to do the check at the place where the null pointer comes from? This isolates the issue and optimises controlled flows.

I'm not sure i understand what you're suggesting.
Let's say i have a class with 2 String properties. One of them mandatory and the second one optional. I would expect the second one to be null if not set.
How would you handle such a case?

Unset strings are empty ("") in Colfer objects. To check whether a field is defined you can use String#isEmpty().
Yes there are very rare cases where you want to distinguish between undefined and no value. Then you can add a boolean to make it explicit. It's actually faster too, also in terms of serialisation.

Now i get it thanks. I'll just check to not set null properties as you suggested for now, i don't think i have to distinguish null from empty strings atm.


test: covering descibed cases with ngrx #312

closes #312

Codecov Report

Merging #472 (e90dad0) into master (03ec7e1) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #472   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          200       200
  Lines         3615      3615
  Branches       770       770
=========================================
  Hits          3615      3615

Continue to review full report at Codecov.

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


Typography helper

Initial pull request to Typography helper. Changed to a Library class, no test. Thanks.

Wow, Mr. Ezell, this is the typical case or team-work where one helper ends up wondering "hum, who is helping who?".  Thanks.
Anyhow, foreach($of-your-comments as $comment) { return "got it, I'll do it"; }

Every thing is done. Thanks.

Looks like you missed a few comments.

All booleans should be represented as lower-case, not uppercase like you currently have.
Please rename the methods that start with an underscore by simply removing the underscore. And that should do it!

Done.

thanks!


what is kinect_azure shutter time from manufacturer

Describe the bug

what is the  kinect_azure shutter time from the manufacturer?
I want to know the time difference of two consecutive rows in the image due to the rolling shutter
thank you for the trouble

Are you referring to the color camera (since you are asking about rolling shutter times)?


Feature Request: Add support for Plank Make as an activity

Hi,
I was wondering if you might be able to add support for use of the Plank Make spell as one of the skilling toggles? While Plank Make can be manually cast to speed it up, it's also possible to leave it to run automatically, which is a slightly profitable and low intensity magic training method. I've been really enjoying this plugin, and was hoping you might expand it to support this too.
Other, similar spells that might be good additions if you were making changes in this space are Enchant Jewelry and Charge Orb from the standard spellbook, as well as Bake Pie and String Jewelry from the Lunar spellbook.
Thank you very much for the plugin!

Good idea @Car-Role 'sup

commit e1582cf3d151774d175b2973e9e9823d9725ca5e solved


prompt playground (edit received requests)

Will work only with OpenAI modes
How to store safely OpenAI keys? balek?


cy.react/cy.getreact fail to find component mounted with @cypress/react after 1st test

Steps to Reproduce:

Mount a component in 3 tests in the same file using @cypress/react
Use cypress-react-selector to attempt to find the component in each test
Run the tests in Cypress

Expected Results
Component found each time
Actual Results
Component is reliably found on the first test, always fails on the second and fails on the 3rd about 2/3rds of the time
I've added an example at https://github.com/DaveHarlow/cypress-react-selector-issue

Hey @DaveHarlow Thanks for raising the concern with the maximum details possible. Appreciate it. I will spend some time over the weekend to dig deeper.

Hey @DaveHarlow Thanks for raising the concern with the maximum details possible. Appreciate it. I will spend some time over the weekend to dig deeper.

Hello.
I have the same problem.
Have you not done this task yet?

Hi @chdg61 , i am really busy with day to day activities. But will defuse have a look in the upcoming weekend.
Till then have a look in this example https://github.com/abhinaba-ghosh/cypress-react-selector/blob/master/component/components/ProductsList.spec.js

OK. I see. I found out a problem. If I use resq$ without this wrapper then I get the same result.
The first test is correct, others are not.
I tried running native resq$ by example:
waitToLoadReact(2000).then(() => {
    const component = resq$('MyComponent');
    console.log('component', component);
});

As result, the first request has returned the correct data as ReactComponent.
But the second request has returned only that object:
{
_nodes: e(0),
}

Hey @chdg61 you have to mount and waitForReact before each test. Can you confirm the same?

Yes. I call mount and waitForReact inside a test. Because I have different components and props for render for each test.
I've played with resq$ library and found out that if I use this library without calling waitToLoadReact so it works correctly.
So this library lets use root element as the second argument: resq$('My*Component', root);
After was looking at the code of your library I tried to replace cy.react to cy.get('#__cy_root').react and cy.getReact to cy.get('#__cy_root').getReact. And that has worked as well.

If I will have free time I will try to make PR to fix it.
Sure, If I can understand all code and context inside the library :)

@chdg61 , that will be appreciated. Just wanted to check something, have you configured the root inside of your cypress.json file as depicted here

Hm... You are right. I didn't it.
Now it's OK. I've added the environment and remove get("#__cy_root") and it's working.
Thank you.
I think that param of the environment must be required if a user uses @cypress/react

@chdg61 I am glad that it worked. Thanks again for digging deep into it.
@DaveHarlow I invested in your attached codebase and figured out the root information is missing. Let's add and retry the tests. Feel free to open this ticket if the issue still persists.


"clrscr" API 2.12 reset value of "SetSolidFlag"

I assumed that if I SetSolidFlag(1) on the beginning of my program I always draw solid rectangle but after clrscr I need set this flag again.
example code: https://github.com/tebe6502/Mad-Pascal/blob/master/samples/neo6502/demoeffects/kefrens.pas

Clearing the screen should initialise everything to a default state

I don't agree because we have:
procedure NeoSetDefaults(acol,xcol,solid,size,flip:byte);

Sets colour for upcoming drawing operations.
parameters:
acol (byte) - value that will be ANDED with current colour
xcol (byte) - value that will be XORED with current colour
solid (byte) - solid flag (0=empty, 1=solid)
size (byte) - dimension (for text)
flip (byte) - flip flag for tiles (0=none, 1=horizontal, 2=vertical, 3=both)

clear screen should clean only screen, but you're the Boss ;)

Well, perhaps, yes. You could make a case for it being just that or a generic reset of the graphics system. Problem with it is is I don't really want to make potentially breaking changes unless it's necessary. There's several things I would probably change if it was "just me".


[Feature] Focus the Symbols Outline panel

My proposal is to update the SymbolsOutlineOpen command so that it focuses on the Symbols Outline panel currently attached to the buffer if it is already open.
Or, add a new SymbolsOutlineFocus command which does the same thing.

Hi, for the time being (where simrat39 is not very active) I'm maintaining a fork where I've implemented this feature and merged some other PRs -- see the focus_on_open setting in readme.
Also do note on the fork status in the readme, feel free to try it if you really want this feature but proceed with caution :)


Improve compiler diagnostics for when a sender & receiver won't connect

I think stdexec can absolutely have good diagnostics, but we're a long way from that. I've done a bit of that with the receiver_of concept, which gives good diagnostics when it fails. (It tells you which completion signature the receiver lacks a handler for. See here.)
I'm thinking it should be possible to retrofit this sort of type-based error propagation into, say, get_completion_signatures and make_completion_signatures, so that users get a sensible diagnostic when a sender and receiver don't connect. And then change the routines like sync_wait to surface the error information when the requirements aren't satisfied.

Duplicate of #569 ?


Minor code refactoring to use destructuring

What kind of change does this PR introduce?
Minor code refactor

Did you add tests for your changes?
Not needed

Does this PR introduce a breaking change?
No

What needs to be documented once your changes are merged?
None

Thanks


When save journal entry it ask gpg key and related stuff

Latest version from melpa at 25 feb ask me choice or enter gpg key when perform save - I don't need encryption and don't use it in org-journal.
Please disable all this stuff by default. Thanks.
Forced to install previous version - elpa/org-journal-20190121.909. This version works as expected.

I don't see this on my computer. Can you tell me when exactly this happens?
Also, can you make sure that you do not have org-journal-enable-encryption enabled?

Here is my stuff:
;; with my setting
(use-package org
  :config
  (provide 'org-habit)

  ;;; http://orgmode.org/manual/org_002dcrypt.html
  (require 'org-crypt)
  (org-crypt-use-before-save-magic)
  (setq org-tags-exclude-from-inheritance (quote ("crypt")))

  (setq org-crypt-key nil)
  ;; GPG key to use for encryption
  ;; Either the Key ID or set to nil to use symmetric encryption.

  (setq auto-save-default nil)
       ;; Auto-saving does not cooperate with org-crypt.el: so you need
       ;; to turn it off if you plan to use org-crypt.el quite often.
       ;; Otherwise, you'll get an (annoying) message each time you
       ;; start Org.

Of course try it to disable but has no any effect

I have the same problem. org-journal-encrypt-journal is nil, org-journal-enable-encryption is nil, but when I open a new entry with M-x org-journal-new-entry it creates a gpg file instead of the regular file, and then asks about gpg keys.
I think the problem is that org-journal-get-entry-path adds ".gpg" to the file path if the file doesn't exist already. And that means for any new day, it will add ".gpg", which triggers the encryption system.

It is indeed that function. To test, I removed the ".gpg". It works when ".gpg" isn't on the filename.
(defun my/org-journal-encrypt-workaround (result)
  (s-replace ".gpg" "" result))
(advice-add 'org-journal-get-entry-path :filter-return #'my/org-journal-encrypt-workaround)

Sorry guys! This is may fault. b0f3d32 is the culprit. Creating a PR. A new version of org-journal will be available within the next 24 hours through MELPA.

Thank you for finding this error, @integerslab, thank you for finding the offending function @amitp, and thank you for quickly fixing it, @cslux!


[WIP] Chapters

          1 Warning

:warning:
PR is classed as Work in Progress

  Generated by :no_entry_sign: danger

Os testes foram concluídos com sucesso @barbosa ?


format single-digit cents properly

@ajb will close #13
Do we also want to format this on the server? I.e. we should probably also convert "3" to "03" instead of "30" on the server, too, otherwise "3" would still get interpreted as "30" if the user has javascript disabled.

You also need to run grunt && grunt dist. (You must know this... otherwise you wouldn't see your changes anywhere?)
And see if you can add a test, too.

Not sure what you mean by formatting on the server, but FWIW, if a user has JavaScript disabled, they won't be able use any of our apps.

When I run grunt && grunt dist, I get this error when trying to load the page:

I have to discard changes to vender.js to get it to work. Maybe my dev environment for formrenderer-base isn't quite set up properly? Spent a while trying to get it to work. I pushed what I get after running grunt && grunt dist.

Not sure what you mean by formatting on the server

Just that if the user somehow manages to get "3" in the cents field without this JS formatter converting it to "03", we'll interpret it incorrectly as "30 cents" (cf. the original issue: dobtco/screendoor-v2#1183). But if we're fine relying on the client to format this properly, no worries.

I think you need to bower install before running any grunt tasks.
Yes, you're right about the way that the server interprets the value. I'll re-open https://github.com/dobtco/screendoor-v2/issues/1183.

That was it, thanks! Was doing npm install but didn't consider bower :| -- guess I'm getting to comfy in the rails environment, and need to read up a bit on backbone etc.

looks like jquery is getting bumped, which is why the diff is weird (vendor.js). do i need to separate this out, or is it good to merge?

Nope, this is fine. I'll review later today.


Include SVG icon source files in repo

I was looking for a few of these logos in SVG format. I could pull them out of the SVG font file. Being that these logos all come from other companies, I can't see any issue with including the source SVG files here. So many benefits, no downside. =)

+1

While I know this isn't really what you meant - all the svg vector data is in the payment-webfont.svg file. You just need to know which glyph you need (these are in the CSS file - ex: American Express is 'e607').
Open the webfont.svg file in your text editor of choice. Run a search for the glyph code from the css file, and you'll see a node that starts with <glyph.... Find the attribute of that node labeled d. Pro-tip, each line of that file is a new glyph. Helps with finding the ends of each individual glyph.
Create a new file called whatever-payment-method.svg and start with the following
<svg height="200px width="200px"><path d="" /></svg>

Copy+Paste the value from the webfont.svg into your new file for the d value. Then you can open that file in illustrator (or whatever) and make sure the art boards work. Repeat as needed. GL!

While I know this isn't really what you meant - all the svg vector data is in the payment-webfont.svg file. You just need to know which glyph you need (these are in the CSS file - ex: American Express is 'e607').
Open the webfont.svg file in your text editor of choice. Run a search for the glyph code from the css file, and you'll see a node that starts with <glyph.... Find the attribute of that node labeled d. Pro-tip, each line of that file is a new glyph. Helps with finding the ends of each individual glyph.
Create a new file called whatever-payment-method.svg and start with the following
<svg height="200px width="200px"><path d="" /></svg>

Copy+Paste the value from the webfont.svg into your new file for the d value. Then you can open that file in illustrator (or whatever) and make sure the art boards work. Repeat as needed. GL!

 He should upload the svg. The companies aren't his anyway...  But thanks for the workaround even I won't go this road.

@tarsonis123 I setup a different payment icon repository that has seperate icons - FreshVine/Payment-Methods-SVG


Remove outdated encryption system

There is an outdated encryption system that uses raw AES, there is no need for this. It's bloated and slows the API down.

Completed in PR #66


consider adding NotificationUtil

There are very few utils available for notifications of android why don't we add it in this library ?

BarUtils has setNotificationBarVisibility

There are very few utils available for notifications of android why don't we add it in this library ?

NotificationUtils(version 1.26.0)

哥, 要不要考虑增加一个跳转系统界面, 打开通知权限的功能.


When building from code transparency does not work

Hi,
i have downloaded your binary, (last one that you built) and when i use the binary i get transparency (on wayland), it works normal.
However, when i build from source, i get always black background, even if i did not change anything in your code itself.
I was also trying to accomplish same thing in iced myself, for small program i need, and i was unable, on xOrg or mac it works with no issues, on wayland it does not.
Your super_clipboard is the only thing i saw being transparent on wayland and made in iced, and im really curios what makes it work.
Thank you in advance

Hello, thank you very much for using my reference projects, the answer is simple, the main branch uses iced_tiny_skia and it does not support transparencies, the reason why I use it is because using wgpu by default takes much more resources compared to iced_tiny_skia

I understand that , but even when using default uced settings i dont get transparency on wayland.
So i was wondering if you did something special with wgpu,or iced settings to make this work.
I did basic counter example, and on xorg and mac i get transparency with no issues and on wayland its always black. You are only person where i saw this working on Wayland.


Support Hashicorp HCL as a config format

https://github.com/spring-projects/spring-boot/issues/4974#issuecomment-173175333
https://github.com/hashicorp/hcl
see https://github.com/spring-projects/spring-boot/issues/3558
Would bring in JSON as a config format as well.

HCL is also fully JSON compatible. That is, JSON can be used as completely valid input to a system expecting HCL. This helps makes systems interoperable with other systems.

Could be useful for folks using Spring Cloud Consul and other hashicorp tools (vault, etc...).
HCL in java https://github.com/VladRassokhin/intellij-hcl

@spencergibb Hello! What do you think about adding just JSON support? When I do a little research, I found out that there not so many libraries to just serialize/deserialize HCL in Java/Kotlin. So, I think that not so much effort is needed to add JSON support rather than researching, creating, fixing libraries that support HCL. What do you think about it? We can even split this task like this:

Add support of JSON using Jackson, GSON, whatever
Search or create a library to support HCL
Migrate JSON to HCL

https://solutionshub.epam.com/blog/post/programming-language-popularity-on-github

Although it's still not on the list of the ten most popular programming languages in the open source community, Hashicorp Configuration Language (HCL) with a 56,1% increase in popularity is the fastest-growing language according to GitHub. This is mainly due to the need to automate deployment.

https://github.com/bertramdev/hcl4j


Test - Sprint-23 - First baseline (with Mutual Auth.) - Execution

Closing deprecated task.
Mutual authentication testing activities can be tracked using their own issues: dojot/dojot#100 and dojot/dojot#121


Git merge is visible in the Telegraf getting started page

URL for relevant page?
https://docs.influxdata.com/telegraf/v1.5/introduction/getting_started/
What products and version are you using?
V1.5
Where did you look before opening the issue?
The header "Creating and Editing the Configuration File" is present twice clearly from committing a file merged by GIT.  The <<< HEAD and ===== text is visible in the page

Fixed -- thanks, @arielpeltz for catching this.


Alamofire has ActivityLogger like AFNetworkActivityLogger for AFNetworking ?

Alamofire has ActivityLogger like AFNetworkActivityLogger for AFNetworking ? If not, has plan to do it ?

Put this extension in your project
extension Request {
    public func debugLog() -> Self {
       #if DEBUG
            debugPrint("API Name ::::::::::::::::::",self.request!.URL,terminator: "\n\n")
            debugPrint(self)
            debugPrint(terminator:"\n\n")
        #endif
        return self
    }
}

Please don't forget to Add -D -DEBUG flag in the Other swift Flags
i Also use this tool https://github.com/kasketis/netfox for network debugging in the App, it just has few steps and you are ready to goooo ...

We've been using this library https://github.com/andysmart/Timberjack to log the requests.

At the moment, there are no plans to build this type of feature. With that said, I just added a card to our Trello backlog to discuss this further with the ASF.
Cheers. 🍻

+1

@ruipfcosta the Timberjack is not support for SSL requests for now


Adds presubmit for eks-distro-base-windows

Issue #, if available:
Description of changes:
I suspect this will fail due to space, but want to give it a go.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


Fix API Inconsistencies

@sergiorussia I have a favor to ask.  I want you to break our API. 😄
As SansORM has evolved over time, some minor inconsistencies have crept in; due to expendiency as well as lack of clarity about the separation of concerns (I'm guilty on both counts).
Because master already contains breaking changes (the removal of deprecated methods), the next release needs to go out as v3.x.x.  So, now is the perfect time to make unnecessary work for myself ... er ... the perfect time to move things around.
Background
As originally conceived, OrmElf was to contain methods that deal in the currency of "objects" (/classes), but know nothing of where Connection, Statement, or ResultSet objects come from.  For example:
public static <T> T resultSetToObject(ResultSet resultSet, T target) throws SQLException

public static <T> List<T> listFromClause(Connection connection, Class<T> clazz, String clause, Object... args) throws SQLException
...

Whereas SqlClosureElf knows how to acquire connections (using SqlClosure), and in addition to "object" convenience methods, might also contain pure SQL convenience methods.
Inconsistencies
Unfortunately, some pure SQL functionality has crept into OrmElf, and I would like to see it moved to SqlClosureElf.  The ones I have identified are these:
public static String getInClausePlaceholders(final String...items)

public static ResultSet executeQuery(Connection connection, String sql, Object... args) throws SQLException

public static int executeUpdate(Connection connection, String sql, Object... args) throws SQLException

public static Number numberFromSql(Connection connection, String sql, Object... args) throws SQLException

Do you feel like refactoring those?

@brettwooldridge sure, why not. we can also:

add OrmElf::list as a simple case for listFromClause(..., clause="")
drop deprecated execute
expose few more private helper methods (can't remember all of them, but remember that there are useful ones)
drop JTA requirement (see SQLite-based tests, this is the simplified solution from our project, but it would be better be entirely optional) and provide optional dependencies for JPA annotation

but before that i ask you to publish the final(?) build in 2.x series, i want it now :smile:

@sergiorussia v2.8 published to Sonatype.  Should be available immediately from that repo, or in a few hours from Central once it syncs.

@brettwooldridge thanks. i think i could start refactoring pretty soon. questions:

what do you think about suggestions mentioned above?
how we can get this organized? same regular flow as for previous PRs or what?

btw i suggest you to disable merges in this repo, leaving only squash (see "Merge button" section in repo options) - merges makes repo history a mess unless all work in forks are made in branches

@sergiorussia I have comments, but they will have to wait until tomorrow ... bedtime here in Tokyo and I need to send my daughter off to bed. 😴

btw, you said "master already contains breaking changes" - it's not, deprecated method is still there, it is just not used anymore. just sayin

Again some background...
Background
Dating back to our use of Hibernate, we used JTA (Bitronix).  Our use of Bitronix continued after our switch to SansOrm.  Bitronix includes it's own connection pool implementation.
In 2015, we switched to HikariCP for pooling, and removed the dependency on Bitronix.  However, the behavior that JTA provides was still desirable.  To then end, we created a "faux" (fake) JTA implementation.
Specifically, what does JTA offer that is desirable?  Primarily, thread-associated Connections.
For example:
void methodOne() {
   SqlClosureElf.sqlExecute(conn -> {
      // SQL / SansOrm interactions
      ...
      methodTwo();
   });
}

void methodTwo() {
   SqlClosureElf.sqlExecute(conn -> {
      // SQL / SansOrm interactions
   });
}

In this case, the presence of a JTA ensures that the SqlClosure in methodTwo() is given the same Connection instance as that given to methodOne().
This ensures that methodTwo() runs within the same transaction as methodOne().  No matter how deep the calls go, for example, if methodTwo() calls methodThree(), that method too will be involved in the same transaction.
The end result is not only the transaction encapsulation, but also a signifcant reduction of Connection instances required from the pool.  And finally, and further, it serves to eliminate deadlocks in the database that a single-thread alone can get entangled in.
On this last point, assuming no JTA, if methodOne() acquires a Connection and performs SQL DELETES, and methodTwo() acquires a different Connection (while the transaction from methodOne() is still open), then a SQL SELECT could deadlock.  The opposite is also true.  If methodOne() initiates a SQL SELECT with a cursor that locks a table, then methodTwo() executing a DELETE (or INSERT) on a separate Connection (transaction), then a deadlock will occur.
A JTA avoids all of these issues.
What I propose is that our currently private stub-JTA be folded into SansOrm as the default JTA, which can naturally be overridden with a real JTA like Bitronix or Atomicos without change to SansOrm.

yeah, it would be great. at least to make nested calls respect previously opened tx. the reason i suggested to make JTA optional is for cases like SQLite, when you can only have pool with max size == 1 (if you do writes, and you 99% do) - in this case Hikari with max pool size of 1 will resolve multithreading issues like deadlocks etc. but in general yeah, default JTA impl will be a big plus.
i'd suggest to make a branch for 3.x, then you add your JTA impl there, then i refactor. thoughts?

@sergiorussia Sounds good.  In addition to that, I am willing to make you a Contributor to the project, if you are interested.  As a courtesy, initially, I would still like pull requests.  After review and sign-off you will be able to commit (squash) the change directly.
This is not out of distrust, your work has been excellent so far, but more out of protection.  As you saw with the last change regarding the zero-based generated IDs, we (my company) may have made assumptions about behavior that are not apparent in the code and we just want to avoid breakage.

@sergiorussia Branch v3 has been created.

i'm used to make changes via PRs, that's ok. i'll make changes in a separate branches, then PRs to v3 etc.

@brettwooldridge any ETA for that JTA impl to get into v3?
PS: my migrating from Hibernate we finally won that connection leak (issue 923 in HikariCP) :+1:

Already committed a few days ago.

@brettwooldridge shouldn't "Closes" comment close the issue? or the only way to close an issue is manually?

@sergiorussia It should.  Maybe it is confused by multiple closes?

Any ETA for that JTA impl to get into v3?

@sergiorussia It's there, bro.  What's missing?

dunno. let's close it by ourselves then

ah, the thing is that v3 is NOT the default branch (which is master)

@brettwooldridge , i've looked at things that SansOrm API lacks for us - did not find any outstanding. we could maybe add more features etc but there's no need for them yet. so i suggest to merge v3 into master and release the build.

@sergiorussia Luckily, the number of user's is not so great that a mis-step would cause any real pain. 😁 Additionally, the v3.x revision bump implies breaking changes.  I'll cut the release.

@sergiorussia Published to the sonatype repository.  Available now, there, or from the central repository in a couple of hours, after replication.

@brettwooldridge um, something gone wrong. check out http://repo1.maven.org/maven2/com/zaxxer/sansorm/3.0/, lib jar misses "transaction" package, while sources jar has it

@sergiorussia v3.1 has been published.

just found that those methods are implemented by raising SystemException :)

also found that even if i set conn.setAutoCommit(false), then tx rollback does not rollbacks anything - everything is committed too early


Error: EPERM: operation not permitted, unlink on npm install

Describe the bug
I'm getting the following error when running npm install:
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\projects\my-project\node_modules\.staging\typescript-dbc2289d\lib\typescriptServices.js'
npm ERR!  { [Error: EPERM: operation not permitted, unlink 'C:\projects\my-project\node_modules\.staging\typescript-dbc2289d\lib\typescriptServices.js']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, unlink 'C:\projects\my-project\node_modules\.staging\typescript-dbc2289d\lib\typescriptServices.js'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'unlink',
npm ERR!      path:
npm ERR!       'C:\\projects\\my-project\\node_modules\\.staging\\typescript-dbc2289d\\lib\\typescriptServices.js' },
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, unlink \'C:\\projects\\my-project\\node_modules\\.staging\\typescript-dbc2289d\\lib\\typescriptServices.js\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path:
npm ERR!    'C:\\projects\\my-project\\node_modules\\.staging\\typescript-dbc2289d\\lib\\typescriptServices.js',
npm ERR!   parent: 'my-project' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:

My .npmrc:
cafile=C:\Users\xxx\ca.pem
@xxx:registry=https://my-domain:4873/
@yyy:registry=https://my-domain:4873/
package-lock=false
//my-domain:4873/:_authToken="some-token-string"

I'm running Verdaccio 3.11.6 through official Docker image using below configuration file:
Sometimes "npm login" solves it for a moment (as described in other similar issues) but later on it comes back. Tried all other possibilities found here on on stackoverflow.
To Reproduce
Steps to reproduce the behavior:

Set everything as described above.
Run npm install.
See error

Expected behavior
Packages installed correctly.
Docker (please complete the following information):

Docker verdaccio tag: latest
Docker Version 17.05.0-ce

Configuration File (cat ~/.config/verdaccio/config.yaml)
http_proxy: http://xxx:yyy@my-domain:8080/
https_proxy: http://xxx:yyy@my-domain:8080/
no_proxy: localhost,<IP_ADDRESS>,my-domain

https:
  key: /verdaccio/conf/my-domain.key
  cert: /verdaccio/conf/my-domain.crt
  ca: /verdaccio/conf/my-domain.csr

auth:
  htpasswd:
    file: /verdaccio/conf/htpasswd
    # Maximum amount of users allowed to register, defaults to "+infinity".
    # You can set this to -1 to disable registration.
#    max_users: -1

# a list of other known repositories we can talk to
uplinks:
  npmjs:
    url: https://registry.npmjs.org/
    cache: false
packages:
  '@xxx/*':
    # scoped packages
    access: $all
    publish: $authenticated
  '@*/*':
    # scoped packages
    access: $all
    publish: $authenticated
    proxy: npmjs

  '**':
    # allow all users (including non-authenticated users) to read and
    # publish all packages
    #
    # you can specify usernames/groupnames (depending on your auth plugin)
    # and three keywords: "$all", "$anonymous", "$authenticated"
    access: $all

    # allow all known users to publish packages
    # (anyone can register by default, remember?)
    # publish: $authenticated

    # if package is not available locally, proxy requests to 'npmjs' registry
    proxy: npmjs

# log settings
logs:
  - {type: stdout, format: pretty, level: http}
  - {type: file, path: verdaccio.log, level: info}
middlewares:
  audit:
    enabled: true

max_body_size: 200mb

Debugging output  -  How to use it with docker?

$ NODE_DEBUG=request verdaccio display request calls (verdaccio <--> uplinks)
$ DEBUG=express:* verdaccio enable extreme verdaccio debug mode (verdaccio api)
$ npm -ddd prints:
$ npm config get registry prints:

hi @zentoaku, this seems not related with Verdaccio, the error npm ERR! syscall unlink is a client tool error. I'd rather ask to the npm community for help.

NPM doesn't have such issues. Only when Verdaccio is brought into equation I'm experiencing those. Also as I've wrote the solution with "npm login", which clearly affects something in Verdaccio flow, solves it sometimes.

Then I'd suggest you dive more into it, more debugging in the client side and server side log to evaluate whether might be the issue. Also try with other tools as yarn or pnpm to discard is a npm issue also helps.

fyi: did a quick check using yarn and installation went fine. Need to make couple more tests to make sure how the tool affects the flow.

i met this very often.
it is anoy.
Update npm to latest does not help. and there is no file ocuupy.

restarting my computer solved it, i think an npm process is still runing and blocking access to node_modules folder.

It could be simply due to the reason you had opened node_modules in file explorer.

How did you do it?

@handyzhang in my case my VPN blocked sharing C:\ with Docker, when turned off VPN it worked fine.

vpn off，but....no use.
because some plugins are in the private library Verdaccio，so i will switched 'Verdaccio url'。
Plug-ins that do not load “Verdaccio url” and npm registry to “tao bao”or“npm”,this is right.
but if you switch to “Verdaccio url” from the beginning registry switched,this will “operation not permitted”.
now,Load NPM first and Ver again is no problem。
but I don't think that's going to solve the fundamental problem.

Not using Verdaccio, sorry. The other thing it could be antivirus with its security policies.

New finding regarding that issue:
If I disable https in Verdaccio and simplify the .npmrc the issue is gone. By simplifying the .npmrc I mean:
OLD:
registry=https://my-verdaccio:4873/
cafile=C:\some-path\My-Custom-CA.pem
@xxx:registry=https://my-verdaccio:4873/

NEW:
registry=https://registry.npmjs.org/
@xxx:registry=http://my-verdaccio:4873/

In general this can happen if something else has open handles on the affected files. For example antivirus.
Verdaccio itself does not touch your local node_modules directory.
Can you provide a full reproducible testcase with the needed setup as repository (config example, Node and npm version, logfile without private details)?

@DanielRuf It may take me some time to prepare proper test case but I will try my best (overloaded with work). I think the hardest thing will be to describe the configuration for development machines. It's enterprise setup, centrally managed so I don't know all the details. Can do a lot but there are some limitations. What I will try to provide at least is a couple more details in addition to what is in original description. Which logfile you have in mind?

Hi @zentoaku,
normally npm creates an error log when such things happen. There is also a verbose and silly logging level.

I am facing the same issue. I hope formatting PC and installing everything from scratch can be helpful.

This error is somewhat cryptic and for me it was occurring when a process was actively running. Closing running processes or perhaps just rebooting the machine should resolve this issue.

Had this exact issue when using Verdaccio, though I think it would have happened with any private registry. I removed the .npmrc file from my home directory.
I was then able to globally install all the packages I needed. After such, I added the .npmrc back.

I had the same problem and tried a lot of different things. This solved my problem:
1 - Uninstall NodeJs
2 - Delete folders 'npm' and 'npm-cache' from AppData/Roaming
3 - Deactivate firewall and all antivirus (including Windows Defender)
4 - Reboot the system
5 - Open command prompt as administrator and execute 'npm install'

Sometimes opened IDE or Editor  is the problem of failing installation,
if you have opened VSCode while installing via npm then try closing the VSCode or any other IDE and try to run the npm command again, it worked in my case.

In my case it was been blocked by my computer's firewall, so I turned it off and it solved my problem.


Can't Access CDN Links

Summary
Hey, guys, i need a help. i have an application with eas build and when i want to update application with eas update, it seems that the expo-assets uri's change to 'https://classic-assets.eascdn.net/' from 'local uri'. but i have some assets that i cant access to this cdn provider.
Access Denied asset example: example 1
Accessible asset example: example 2
Why is this happening? did someone encounter with that issue? Thank you have a good day
What platform(s) does this occur on?
Android
SDK Version
47
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.0.1
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.4 - ~/.nvm/versions/node/v14.17.4/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v14.17.4/bin/yarn
npm: 6.14.14 - ~/.nvm/versions/node/v14.17.4/bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmPackages:
expo: ^47.0.0 => 47.0.9
react: 18.1.0 => 18.1.0
react-dom: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-web: ~0.18.7 => 0.18.10
npmGlobalPackages:
eas-cli: 3.0.0
expo-cli: 6.0.5
Expo Workflow: managed
Minimal reproducible example
Reproduce:
1- create an app with some assets and get build with eas build
2- send an update to a branch -does not matter which one-, open app and get the eas update
3- you should see the uri of assets' changed to cdn provider link.
4- and some cdn links are not accesible. some examples;
example 1

Apologies for all the confusion! Here is an explanation of what is happening behind the scenes, and what you should be doing in each of the scenarios.
EAS Update
For assets with EAS Update, the expo-updates module ensures they are on device before the application logic is run. Either the asset was originally embedded or it was downloaded from our CDN. For example, in your app, if you've declared an asset like this: require("./assets/puppy.jpg"), it should already resolve to the asset on device. Therefore, the remote Asset.uri field should not be required and if you need to reference a path, you should use Asset.localUri instead.
Classic Updates (Legacy)
In our legacy classic updates service, it was possible to run application logic without downloading all the assets first. Because of this, we exposed the remote uri to give users the option of downloading it explicitly.
I've updated the docs for the Asset.uri field here to clarify things. We plan to support Classic Updates behavior up until SDK 49. From SDK 50 onwards, uri should no longer be needed for the reasons mentioned above.  @donmezemre @edwinckc @tniezurawski

Closing due to inactivity. If there is still a problem, please open up another issue in the eas-cli repository.

I had a similar issue. The images in the assets did not show up when I eas-updated my application.
I followed the following example in the official document.
import { Image } from "expo-image";
const [assets, error] = useAssets([require('path/to/asset.jpg'), require('path/to/other.png')]);

return assets ? <Image source={assets[0]} /> : null;

Interestingly, the returned Asset objects had both uri and localUri attributes, and uri was the legacy URL, as @quinlanj mentioned. And the legacy URLs weren't accessible, as @ide mentioned. I think the Image component uses uri instead of localUri, therefore, the images do not show up.
When I changed the code to use localUri, the images showed up.
import { Image } from "expo-image";
const [assets, error] = useAssets([require('path/to/asset.jpg'), require('path/to/other.png')]);

return assets ? <Image source={assets[0].localUri} /> : null;

I'm unsure if this is a bug, but many would be thankful if this information is mentioned in the Asset document. Many people would be confused about this behavior.

I had a similar issue. The images in the assets did not show up when I eas-updated my application. I followed the following example in the official document.
import { Image } from "expo-image";
const [assets, error] = useAssets([require('path/to/asset.jpg'), require('path/to/other.png')]);

return assets ? <Image source={assets[0]} /> : null;

Interestingly, the returned Asset objects had both uri and localUri attributes, and uri was the legacy URL, as @quinlanj mentioned. And the legacy URLs weren't accessible, as @ide mentioned. I think the Image component uses uri instead of localUri, therefore, the images do not show up. When I changed the code to use localUri, the images showed up.
import { Image } from "expo-image";
const [assets, error] = useAssets([require('path/to/asset.jpg'), require('path/to/other.png')]);

return assets ? <Image source={assets[0].localUri} /> : null;

I'm unsure if this is a bug, but many would be thankful if this information is mentioned in the Asset document. Many people would be confused about this behavior.

Thank you @KeunwooPark I was experiencing local image assets not being found in release builds after installing expo-updates and have spend a day or two trying any solution I could find thinking it was package version issues or similar but really I just needed to add .localUri to the image reference and all images started working in release builds again. thanks again, saved a lot of frustration.


Enable http to https redirection per frontend

What version of Traefik are you using (traefik version)?
1.2.1
What is your environment & configuration (arguments, toml...)?
Using docker stack deploy, traefik started with command:
command: [
      "traefik",
        "--docker",
        "--docker.swarmmode",
        "--docker.domain=sw.test.org",
        "--docker.watch",
        "--entryPoints=Name:http Address::80 Redirect.EntryPoint:https",
        "--entryPoints=Name:https Address::443 TLS:/run/secrets/domain.crt,/run/secrets/domain.key",
        "--defaultentrypoints=http,https",
        "--web",
        "--web.address=:8080"
      ]

What did you do?
Is it possible to disable/enable the http to https redirection per service?
e.g:
service 1 (with http to https):

frontend rule: Host:service1.sw.test.org
entrypoints: http, https

service 2 (http only, is it possible to disable the http to https redirection here?)

frontend rule: Host:service2.sw.test.org
entrypoints: http

I'll close the issue due to inactivity but feel free to re-open if needed.

Please reopen, this is still missing.

Hey @Yajo,
please have a look at #2133 as this would bring in the functionality :)


Engine

🦙 MegaLinter status: ❌ ERROR

Descriptor
Linter
Files
Fixed
Errors
Elapsed time

✅ CPP
clang-format
34
9
0
0.14s

❌ CPP
cpplint
34

68
0.79s

See detailed report in MegaLinter reports
MegaLinter is graciously provided by