text:
Fix enabledContentGestureInteraction with selectable

When enabledContentGestureInteraction is true, you can not select components in a ScrollView, there are workarounds for this (which causes loss of SOME functionality). But will there ever be a fix internally?

If anyone can guide me on how to fix this I would try to make a pull request.
This issue seems to only persist on android and I need this fixed to release my app.

Same here. TouchableOpacity from 'react-native-gesture-handler' works on android, but not on ios. ToucahbleOpacity from 'react-native' works on ios but not on android..

Seems like if you hold the screenon Android it works.

@karimcambridge yes, holding the screen is the only way that I can scroll on android.
I have been trying a lot of things but for some reason I cant place enabledContentGestureInteraction={true} on android. It makes everything not touchable/scrollable on the Flatlist that I have on my renderContent

Hey @Xadinsx, @SocialBrothersDEV actually gave us the key.
I literally just fixed it. So I was using onPress from List.Item in react-native-paper but what I do now is use Platform.select outside of my react function and select the native-native TouchableOpacity if ios, else if android select the gesture-handler one!
It works great on android and I am waiting on my tester to tell me the result of iOS.

import React, { useState } from 'react';
import { Platform, StyleSheet, TouchableOpacity as TouchableOpacityNative } from 'react-native';
import { List } from 'react-native-paper';
import { TouchableOpacity as TouchableOpacityGesture } from 'react-native-gesture-handler';

const
	TouchableComponent = Platform.select({ // workaround for reanimated-bottom-sheet
        ios: TouchableOpacityNative,
        android: TouchableOpacityGesture,
	});
;

const LocationItem = props => {
	return (
		<TouchableComponent
			onPress={onLocationSelected}
		>
			<List.Item
				style={styles.listItem}
			/>
		</TouchableComponent>
	);
};

Thank you @SocialBrothersDEV! Just some minor information like that can solve a persons' horrors.


text:
Add a wireguard role

We use Wireguard in the testbed and have a custom playbook for it there. It makes sense to insert this as a Wireguard role after removing the Tailscale role.
https://github.com/osism/testbed/blob/main/environments/custom/playbook-wireguard.yml

@ra-rau Please take over.

source: gharchive/issue

repo: osism/ansible-collection-services

license_type: permissive

license_source: github-api


text:
Mopro CLI

This is an umbrella issue for Mopro CLI.
Problem

We want to make it easy for people to get started with Mopro
Developers want to work in their own repo
We want to minimize cognitive overhead and have one interface point, not a series of ad hoc scripts

Details

Create a mopro CLI as the main way of interacting with mopro.
As opposed to ad hoc scripts and instructions; should feel similar to something like Foundry
init to initialize a project without having to work inside the mopro monorepo

Should create a new project with example code to run circuit on platforms
Options possible: --platform ios,android,pwa,desktop --language circom  (not all have to be implemented)
Very rough start here with Clap

prepare to install dependencies

basically prepare.sh script - can shell out

build to build all necessary dependencies

Options: --plaform ios,android,(react-native),(pwa)

update to update bindings
test to run tests
More options might be added; basically a minimal surface area that makes mopro users productive quickly

Initial work started here https://github.com/oskarth/mopro/tree/main/mopro-cli
Acceptance criteria

Mopro CLI is the main way of interfacing with Mopro, not ad hoc scripts
Developers can create a project outside of their repo and work there
It is in an MVP stage where it can be used end-to-end

MVP https://github.com/oskarth/mopro/issues/78
iOS support https://github.com/oskarth/mopro/issues/92
Enhancements https://github.com/oskarth/mopro/issues/93

Done

repo: oskarth/mopro


text:
Fix error when editing measurement progress values

Fix error when editing integer measurement progress values.

Denne trenger en retenk...

source: gharchive/pull-request

repo: oslokommune/okr-tracker

license: MIT


text:
Unable to enter Create & Manage

Hi I am constantly getting a message:
"Please sign out and sign back in to regenerate a fresh home project"
will trying to go into Create & Manage. My OSM username is: cienrique
I was able to open it first time to create some invisible test challenge and now it's like that.
Regards,
Tomasz

I'm going to close this, but feel free to reopen with additional details if it continues to be an issue for you.


text:
fix: Trade Pair Pools Page

What is the purpose of the change
This PR fixes the infinite loop when opening trade pair in the individual pools page

utack

repo: osmosis-labs/osmosis-frontend


text:
[v10] Expedited Proposals

Background
In addition to variable vote times based on proposal type that is getting added to v9, we would like to add an expedited option for all proposals in the event of emergency situations.
Suggested Design
A majority of this work has already by completed by @p0mvn in #240
Acceptance Criteria

[ ] Go through review process of #240
[ ] Review comments from commonwealth on this feature
[ ] Put up a text proposal to ensure community agrees on adding this feature
[ ] Include in v10 upgrade

We need to discuss on the timeline we want to put up a text proposal for this since the feature itself is getting close to merge.

The only remaining item for this is manually / e2e testing. I am going to create a separate issue for this

repo: osmosis-labs/osmosis


text:
lint(md): consider enforcing asterisk rule in our markdown files

Background
There is a desire to have the asterisk being used for bullet points. We should configure our markdown CI linter to be aware of this rule.
Acceptance Criteria

The rule is applied to our markdown linter
The CI passes for all files with the new rule

Originally posted by @p0mvn in https://github.com/osmosis-labs/osmosis/pull/1983#discussion_r915944653

Closing in favor of cref #2287
In general, I think lints like this are larger time sucks than wins.


text:
Fix GRPC IncentivizedPools query

Incentivized pools are not limited to only pools of the lockable durations known by pool-incentives.

I think we should consider renaming this query & its general compatibility with the new external incentives query.


text:
About accuracy of determined coordinates

Hello.
I have a question about accuracy of determined coordinates by reciever, if it recieves a signal from gps-sdr-sim. By accuracy, I mean the deviation from coordinates which determined during the generation of the signal. I can't check it myself with a real reciever and transmitter now, but i have my matlab model of a gnss reciever. I approved the model by recordings of a real signal almost a year ago and there was not a big error (not bigger than 5-10 meters). But now when I generate a signal and send it to my model, an error of about 30-40 meters appears. I can not once again approve my model right now, but I need to find out why, because it is very important for my undergraduate work. What is the coordinate error you have when using real receivers?

gps-sdr-sim + hackrf + NEO-M8T

Accuracy-GNSS
quadrifilar backfire helix antenna + NEO-M8T

Thanks for the answer. I saw that you used the 2.619 MHz sample rate in the experiment, right?
I am trying to use a GNSS-SDR receiver with a sampling frequency of 12.276 MHz and only now the error is ~ 0.1-1 m, but the height error is almost 10 meters. In the anti-drone window, I saw that the height of the receiver is 4643.5, and in the signal 4657.8, right?

I used 2.619 MHz in the old version,
latest version has several fixes :

residual error from

to

sample rate UP  to 12 MHz

e.t.s.

height  4643.5 --> 4657.8 it is
https://d3i71xaburhd42.cloudfront.net/334560ae5bfd9a538b65cfc8bfcc2a8e45518003/6-Figure5-1.png

authors: IvanKor hash-hash

repo: osqzss/gps-sdr-sim

license: mit

license_source: bigquery


text:
Change id field of Request to string and modify TaskPlanner to use internal ids instead

Modifies request to use string based id instead of size_t. Node generates its own custom ids for any requests that are added to it, for use by the TaskPlanner, instead of relying on the request's id field.

@mrushyendra  can we resolve the new conflicts on this branch?

authors: Yadunund mrushyendra


text:
Support sdf specification  description.

Original report (archived issue) by Nate Koenig (Bitbucket: Nathan Koenig).

The  tags in the SDF specification files should support child  tags.

I'm not sure exactly what this issue means. The //world/include element now has tags documented here:

https://github.com/osrf/sdformat/blob/sdformat9_9.2.0/sdf/1.7/world.sdf#L24-L39

Is that enough to close this issue?

authors: osrf-migration scpeters

repo: osrf/sdformat


text:
Contributor Issue assignee Graph

Things to note during review:

opendatahub-io is a good view of this graph (or any repo(s) that consistently do assignments)
We should consider before turning this query into a materialized view if we want to join on the contributors table to have the login info available off the bat for viewing on a local/private instance
the conversation on pages will definitely move the location of the graph. This location is temporary until we have a good home for it. I have a few visualizations that are close to done and once those are in lets discuss new page break downs
Ctrb_id on the hover is on the side. Currently thats the only way I can see how to do it with the cntb_id not being static (spent multiple hours yesterday trying to figure it out)

@JamesKunstle lmk what you think, ill wait to do any changes on these two until we come to a consensus

@cdolfi Here's a unified response to your responses:
I've become aware of the subtlety of this visualization that I wasn't aware of last night, even looking at the processing steps: this shows new assignment events per contributor per bin, rather than number of issues contributor is assigned to per bin. Is that correct?
If that's the case, then I'd suggest a corresponding title like "Issue Assignment Events" or something - the subtlety has to be squashed because the analysis being done is more interesting than a naive count of something like "In march, Cali had 4 issues assigned to her, and in April those issues were still assigned, so the count is still 4."
I'd also suggest an Info along the lines of:
"Visualizes the number of times an issue was assigned to a contributor, per contributor, per time-bin."
This would clarify that what's being counted isn't the number of issues assigned to each contributor but rather the direct action of an issue being assigned. To me, that isn't immediately obvious when looking at the data without further context."
It's a comms problem way more than an analysis problem, and as always, we're trying to pack all the context into like, 4 words and 20 words for title and info, respectively haha.

@JamesKunstle So this visualization actually does show all issues that are currently assigned to them during that time interval. With the processing steps, it first takes out all the issues created after the time interval and closed before had, therefore only leaving the issues currently open during that time interval (and that has ever been assigned to them in the first place but.. ill get to this later in this comment).  Then it filters out the assignments or unassignments that occurred after the time interval.  Then counts the assignments and unassignments to get the delta even if they were assigned before that time interval.
This comment though did point out to me that I have not taken into account the issues that have never been assigned. This doesnt impact this visualization, but it greatly impacts the other one. Im going to change the query to work for both cases, so this has been extremely important logic for me revisit

@JamesKunstle Updated the query. With the left join (which is necessary to get all the issue values), the query is much slower which makes sense. Once we are locked in on this query and the pr equivalent ill get a materialized view made of it

@cdolfi I need to spend a bit more time with your PR now that I've read your latest comments- I don't think I intuited the nuance of the data initially. Will have all PR reviews for these four PRs in by end of my work day (will certainly be available at the start of your workday tomorrow.)

@JamesKunstle For some reason it is not letting me comment directly on your last one so Ill put it here. The count will never be negative because it is counting all assignments and un assignments up until the end date.
Lines 314-320 take out the issue assignments on issues that where opened after the end date, and the issues closed before the start date. This leaves the df_in_range to only be the issue assignments on issues that are open during the time interval.

lines 258-261: Takes all issue events that are "unassigned" and open during the time interval. Then cuts off any unassignments that have happened after the end date. Then NOTE: it does not cut off the assignments that happened before the time interval

lines 258-261: Takes all issue events that are "unassigned" and open during the time interval. Then cuts off any unassignments that have happened after the end date. NOTE: it does not cut off the assignments that happened before the time interval

It can be though of as a counter. For each assignment there is one more assigned to the contributor, and then for each un-assignment there is one less, so subtracting those two values gives you the number of assignments in that time interval. And this is only including assignments to that specific contributor (line 311).

@JamesKunstle ready for review based on comments

@JamesKunstle For some reason it is not letting me comment directly on your last one so Ill put it here. The count will never be negative because it is counting all assignments and un assignments up until the end date.
Lines 314-320 take out the issue assignments on issues that where opened after the end date, and the issues closed before the start date. This leaves the df_in_range to only be the issue assignments on issues that are open during the time interval.

lines 258-261: Takes all issue events that are "unassigned" and open during the time interval. Then cuts off any unassignments that have happened after the end date. Then NOTE: it does not cut off the assignments that happened before the time interval
lines 258-261: Takes all issue events that are "unassigned" and open during the time interval. Then cuts off any unassignments that have happened after the end date. NOTE: it does not cut off the assignments that happened before the time interval

It can be though of as a counter. For each assignment there is one more assigned to the contributor, and then for each un-assignment there is one less, so subtracting those two values gives you the number of assignments in that time interval. And this is only including assignments to that specific contributor (line 311).
@cdolfi

What happens if an issue, which is open across two time-windows, is assigned to a contributor in the first window and unassigned in the next window?
e.g. For January, issue 1 is opened and assigned to contrib 'A', then in Febuary it's unassigned to 'A' but isn't assigned to anyone else. It also isn't closed in Feb. Wouldn't this lead to a negative count for contributor 'A'? They'd have a single 'unassignment' event for Febuary.
Admittedly, this is a corner case, and perhaps I'm missing something obvious in the data or analysis, but it seems like this is possible.
--
Once this nuance is solved, I want to turn attention back to the Info section, but I want to understand the above situation from your perspective first. I fear that I might come across as too picky with the 'Info' section on some visualizations, but that's only because I'm frequently frustrated with other people's descriptions in similar settings and want our to be very clearly better.

@JamesKunstle For some reason it is not letting me comment directly on your last one so Ill put it here. The count will never be negative because it is counting all assignments and un assignments up until the end date.
Lines 314-320 take out the issue assignments on issues that where opened after the end date, and the issues closed before the start date. This leaves the df_in_range to only be the issue assignments on issues that are open during the time interval.

lines 258-261: Takes all issue events that are "unassigned" and open during the time interval. Then cuts off any unassignments that have happened after the end date. Then NOTE: it does not cut off the assignments that happened before the time interval

^ see note

lines 258-261: Takes all issue events that are "unassigned" and open during the time interval. Then cuts off any unassignments that have happened after the end date. NOTE: it does not cut off the assignments that happened before the time interval

^ see note

It can be though of as a counter. For each assignment there is one more assigned to the contributor, and then for each un-assignment there is one less, so subtracting those two values gives you the number of assignments in that time interval. And this is only including assignments to that specific contributor (line 311).
@cdolfi

What happens if an issue, which is open across two time-windows, is assigned to a contributor in the first window and unassigned in the next window?
e.g. For January, issue 1 is opened and assigned to contrib 'A', then in Febuary it's unassigned to 'A' but isn't assigned to anyone else. It also isn't closed in Feb. Wouldn't this lead to a negative count for contributor 'A'? They'd have a single 'unassignment' event for Febuary.

No, see above. Let me know if you want to hop on a call if it would be easier for me to explain the logic verbally

Admittedly, this is a corner case, and perhaps I'm missing something obvious in the data or analysis, but it seems like this is possible.
-- Once this nuance is solved, I want to turn attention back to the Info section, but I want to understand the above situation from your perspective first. I fear that I might come across as too picky with the 'Info' section on some visualizations, but that's only because I'm frequently frustrated with other people's descriptions in similar settings and want our to be very clearly better.

@cdolfi I read your note and the code thoroughly- I'm okay hopping on a call later but please read my side carefully too, because I'm confused where we're not connecting here.

Here's how the code reads in plain english:
Line 330: "Consider only issue assignment events for a specified contributor"
Line 333: "Only consider issues that were created before the end-date"
Line 336: "Only consider issues that were closed after the start date, or those that haven't ever been closed"
Line 339->341: "Get rows in df_in_range where the event that occurred was 'unassignment' and the action took place before the end-date"
Line 344->346: "Get rows in df_in_range where the event that occurred was 'assignment' and the action took place before the end-date"

With the above reading, it's feasible that a specific contributor could be assigned an issue in time bucket 1, have a df_assigned.shape[0] - df_unassign.shape[0] of exactly 1 for that bucket, and then in bucket 2 which follows bucket 1, be unassigned exactly one issue (that same issue) and have a df_assigned.shape[0] - df_unassign.shape[0] of exactly -1.
Within the same bucket it's obvious that an (assignment+unassignment) pair would contribute to a sum of 0, but I'm saying that it's possible for the value to be negative.

Another example:
In Bin 1, a contributor is assigned 50 issues.(Assignments-Unassignments) is 50 for that bin. Those issues obviously exist within the time range, and are never closed.
In Bin 6, which is 5 bins later than Bin 1, that contributor has done no work, so those 50 issues are unassigned from them. (Assignments - Unassignments) is -50 for that bin.

IMO this is a feature, not a bug, because seeing negative assignments for some bin is interesting in itself.

@cdolfi Okay take-two:
I understand now- the missing piece was not catching the detail "...does not cut off the assignments that happened before the time interval"
I see now that for each successive time-bin, unassignments are matching previously counted assignments, and new assignments without paired unassignments increase the count for that bin.

authors: JamesKunstle cdolfi


text:
update description field in .github/settings.yml

@dlorenc, @rhaning
We will be using the description listed in the .github/settings.yml for each project to create a summary list for the OpenSSF website getting started page and an upcoming press release. Please edit the description field to include a short (1-2 sentence) description. Due Date - Thursday 10/8/2020
See example here:
https://github.com/ossf/gb-planning-committee/blob/master/.github/settings.yml

It is unclear to me that the source of the https://openssf.org/community/openssf-working-groups/ page is the .github/settings.yml file. Most projects that do have a settings.yml file have not been updated in 2 years. Unless there is a process that can keep this information current, seems unwise to capture it here. Recommend we close this with no action.

repo: ossf/wg-securing-critical-projects


text:
Fix digest usage

In some places we started doing .digest().digest() which drops the algorithm. Some basic unit tests
would have caught this - I added one. We also need an "upgrade from previous" test.
Trying to fix this revealed a bunch more places where we had String and not Digest.
Fixing those gets us type safety and points out the problem areas.  Since we're breaking API as this will be the real first 0.15 release,

Drop unnecessary ManifestLayerState wrappering
Fix the manifest digest members of various structs to be a Digest

.digest().digest()

In other words this one should be a big red flag in code - it's never right to just ignore the algorithm. What's the most common though is a pattern like:

Assert that the algorithm is sha256
If so return that digest and use it in a place that wants "plain" sha256 without the algorithm prefix

We could look at adding a helper for that.

Obligatory acknowledgement that the bootc build test is failing because we need to do the CI dance to get both updated in-tandem.

authors: cgwalters jeckersb

repo: ostreedev/ostree-rs-ext


text:
Bug on the [TRIGGER] Implementation of the sample .yaml

When seeing the samples on my lora training, I noticed a person on one of the images had [TRIGGER] with letters written on their shirt.
This means that the trigger is not being properly replaced by the trigger worked and rpomped for sample as is.

you need to enable and define the trigger word in order for this to work properly.
Uncomment that setting like in my example

so if the trigger word is not commented out (enabled in the script), is it simply not needed when using that Lora in comfyui?

Yes, it will only replace [trigger] if there is a trigger_word defined, otherwise it is processed as the plain text [trigger]

I did face this issue today in some images and I had trigger_word not commented out. Only happened twice, so I wonder if there is a bug in some cases 🤔

authors: Dawgmastah WarAnakin ignacio-amaya-rovio jaretburkett xdfin99

repo: ostris/ai-toolkit


text:
Error: file '@rules_python//python:pip.bzl' does not contain symbol 'pip_install'

Moved rules_proto and com_google_protobuf at the very beginning and getting:
» yarn bazel build --incompatible_strict_action_env //proto/oswee/modules/v1:modules_go_library
yarn run v1.22.11
$ yarn run bazelisk build --incompatible_strict_action_env //proto/oswee/modules/v1:modules_go_library
$ /home/dzintars/code/github.com/dzintars/prime/node_modules/.bin/bazelisk build --incompatible_strict_action_env //proto/oswee/modules/v1:modules_go_library
INFO: Invocation ID: 812ff17f-d312-418b-a0de-803cfdcbda13
ERROR: Traceback (most recent call last):
        File "/home/dzintars/.cache/bazel/_bazel_dzintars/9d2bbefc3ec5d528aec11b4c4ea11d3f/external/io_bazel_rules_docker/repositories/py_repositories.bzl", line 22, column 40, in <toplevel>
                load("@rules_python//python:pip.bzl", "pip_install")
Error: file '@rules_python//python:pip.bzl' does not contain symbol 'pip_install'
ERROR: error loading package '': in /home/dzintars/.cache/bazel/_bazel_dzintars/9d2bbefc3ec5d528aec11b4c4ea11d3f/external/io_bazel_rules_docker/repositories/deps.bzl: Extension file 'repositories/py_repositories.bzl' has errors
INFO: Elapsed time: 1.170s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Not sure how, but it went away.
In general i was moving @com_google_protobuf upper in the workspace deps and removing rules_proto.
I was trying to solve #152

Ok. I am getting this error as soon as i am loading rules_proto and com_google_protobuf before io_bazel_rules_docker. Not sure how they interact.

https://github.com/bazelbuild/rules_python/issues/437

repo: oswee/prime


text:
SideCar black screen on my iPad Pro 2020 12.9

Configuration

HaC Mini version : 2.7
OSX version : 10.15.4
NUC model : NUC8i7HNK
Boot SSD model and protocol: Samsung SSD 970 EVO Plus 1TB
Second SSD model and protocol: INTEL SSD PEKKW 512G8
First DIMM model: DDR4-2666 16GB
Second DIMM model (if installed):
Display port(s) used :HDMI
Display resolution(s) :4K

config.docx

I just updated the latest vision of Hac-Mini, the SideCar finally works now!
Really appreciated!!


text:
feat: Documentation for Manual Flat Config Setup

Description
I am having issues setting up eslint-plugin-astro with my existing configurations for TypeScript and would like to manually configure the plugin and parser (but also use the recommended ruleset) but cannot find documentation for how to include the parser or get the ruleset to include in my own configuration.
My current approach to this seems very unstable as I am using Array.find to grab the parts I need from the recommended config:
// base configs
const __dirname = new URL(".", import.meta.url).pathname.slice(0, -1);
/* ... */

// astro configs
const astroLangOpts = pluginAstro.configs.recommended.find(cfg =>
  cfg.files?.includes("**/*.astro")
).languageOptions;
const astroRules = pluginAstro.configs.recommended.find(
  // this especially seems like a really bad idea tbh:
  cfg =>
    cfg.rules &&
    !cfg.rules["prettier/prettier"] &&
    Object.keys(cfg.rules).length > 1
).rules;
// fix typescript parserOptions (languageOptions.parserOptions.parserOptions)
Object.assign(astroLangOpts.parserOptions, {
  parserOptions: { project: "tsconfig.json", tsconfigRootDir: __dirname }
});
const astroConfig = {
  files: ["**/*.astro"],
  plugins: { astro: pluginAstro },
  languageOptions: astroLangOpts,
  rules: Object.assign({}, astroRules, {
    "react/jsx-filename-extension": "off",
    "react/no-unknown-property": "off",
    "react/no-unescaped-entities": "off",
    "react/jsx-key": "off"
  })
};

I am already including **/*.astro/*.ts in my existing typescript configuration by pushing that pattern to the files array, same for js. Futhermore I'm including **/*.astro in my (p)react configuration, so I need to disable some react plugin rules as seen above.

If you don't like the config provided by this plugin, I recommend building your preferred config entirely from scratch.

If you don't like the config provided by this plugin, I recommend building your preferred config entirely from scratch.

yes I am asking for documentation to do just that

I don't understand what you mean.
The purpose of this plugin is to enable linting with ESLint for astro files. To do so, just configure the plugin and parser.

Yes I would like to do so, however there is no documentation for manually configuring the plugin and parser.

however there is no documentation for manually configuring the plugin and parser.

here it is.
https://eslint.org/docs/latest/use/configure/plugins
https://eslint.org/docs/latest/use/configure/parser

I am asking for how to import this specific plugin and parser. Please stop trolling me.

authors: Mitsunee ota-meshi

repo: ota-meshi/eslint-plugin-astro


text:
parseForESLint return type doesn't unify with @types/eslint's ParserModule

As the issue title suggests, the parseForESLint return type doesn't unify with the one in DefinitlyTyped's implementation of @types/eslint.  Specifically the message I'm seeing is this:
src/index.ts:123:24 - error TS2322: Type 'typeof import("/home/cprussin/Projects/@cprussin/node_modules/.pnpm/jsonc-eslint-parser@2.2.0/node_modules/jsonc-eslint-parser/lib/index")' is not assignable to type 'ParserModule | undefined'.
  Type 'typeof import("/home/cprussin/Projects/@cprussin/node_modules/.pnpm/jsonc-eslint-parser@2.2.0/node_modules/jsonc-eslint-parser/lib/index")' is not assignable to type '{ parseForESLint(text: string, options?: any): ESLintParseResult; }'.
    The types of 'parseForESLint(...).ast' are incompatible between these types.
      Property 'sourceType' is missing in type 'JSONProgram' but required in type 'Program'.

123     languageOptions: { parser: jsonParser },
                           ~~~~~~

  ../../node_modules/.pnpm/@types+estree@1.0.1/node_modules/@types/estree/index.d.ts:85:5
    85     sourceType: 'script' | 'module';
           ~~~~~~~~~~
    'sourceType' is declared here.

Could be some version drift between this library and the types in DefinitelyTyped, or could be some difference caused by me using the flat config format, I haven't yet investigated.  However based on the types I don't think it is, I think that this library's JSONProgram type probably should be extending the ESTree Program type (I'm no expert though so that may be nonsense).

@ota-meshi I'm happy to submit a PR for this one but as I'm no expert I'll need advice on the correct fix here.

I think the eslint type definition is wrong.  Actually eslint accepts anything other than estree.

understood, I can put a PR in over there. Thanks!

@ota-meshi do you know if the AST specification is documented anywhere?  The best I could find is https://eslint.org/docs/latest/extend/custom-parsers#ast-specification which would seem to support that it is in fact required that the AST extends the ESTree type.  Is there some other spec somewhere that says otherwise that I can use to construct a PR to fix the eslint definition?

There are no specs, but there are RFCs.
https://github.com/eslint/rfcs/tree/main/designs/2020-generic-ast-support
https://github.com/eslint/rfcs/tree/main/designs/2022-languages

authors: cprussin ota-meshi

repo: ota-meshi/jsonc-eslint-parser


text:
Objects in payload values are not parsed correctly

-> Create a payload value with an array objects like below and pass it to the OCDoResource GET request.
var test_payload = {
  Event:'Add',
  Type:'Light',
  att:{on_off: true}
};

payload = {
  type: iotivity.OCPayloadType.PAYLOAD_TYPE_REPRESENTATION,
    values: {
    }
  };
payload.values = test_payload;

-> Check the actual outcome:
"payload": {
        "type": 4,
        "values": {
            "Event": "Add",
            "Type": "Light",
            "att": {
                "type": 4
            }
        }
    }

This is still reproducible with the high-level API, so reopening.

repo: otcshare/iotivity-node


text:
seems Face Editor can't work together with ControlNet?

When I use Face Editor as the only enabled extension, it works well.
But when ControlNet is also enabled, it seems that Face Editor is not working.
Please tell how to fix this. THX!

@VenomSnake01
Thanks for the report.
I've received detailed error information in #73, so I'd like to have future conversations there.

repo: ototadana/sd-face-editor


text:
Add new file

Hi, please accept my pull request.
Klepach George, studen of  "DevOps практики и инструменты"  Период обучения 30 мая — 4 декабря

Здравствуйте!) Репозитории для вас уже добавлены, сейчас перевышлю ссылки на апрув доступа =)

authors: gekl mrgreyves


text:
feat: add .Values.persistentVolume.volumeName

Summary of changes:
Add .Values.persistentVolume.volumeName to pvc.yaml.
I have a usecase where I configure the PVC to use a SMB CSI/share. I'd like to be able to have the created PVC to always reference this PV, without needing to configure any extra claim templates/manifests.
Checklist:

[x] I updated the artifacthub.io/changes in Chart.yml
[x] Optional: I updated README.md

Hello @chr0n1x
Thanks for your contribution, added!

repo: otwld/ollama-helm


text:
头部子控件点击事件无效

RT，头部子控件的点击事件无法扑捉，只有点击整个头部的事件，无法定位到具体的。而且DEMO本身也是无法正常点击头部子控件的。像那个more的点击事件。

DEMO里股票那个可以扑捉到More的点击事件，可是我自己的无法实现，每次显示被点击的ID都为-1，我看源码里默认没设置view的ID和clicklisener导致的，可是这些我都设置了，还是无法扑捉，与BaseRecyclerViewAdapterHelper配合使用的。

这是我的代码
`itemDecoration = new PinnedHeaderItemDecoration.Builder(BaseHeaderAdapter.TYPE_HEADER)
.setClickIds(R.id.tv_item_camp_img_selectall_cancel, R.id.tv_item_camp_imgs_date_city).disableHeaderClick(false)
.setHeaderClickListener(headerClickAdapter).create();
    rvCampImg.addItemDecoration(itemDecoration);`

这是我的代码：
itemDecoration = new PinnedHeaderItemDecoration.Builder(BaseHeaderAdapter.TYPE_HEADER)         .setClickIds(R.id.tv_item_camp_img_selectall_cancel,R.id.tv_item_camp_imgs_date_city).disableHeaderClick(false).setHeaderClickListener(headerClickAdapter).create(); rvCampImg.addItemDecoration(itemDecoration);

能弄个demo过来我看下吗，另外我新写了个库https://github.com/oubowu/StickyItemDecoration 你可以尝试下这个

好的，我先看看你新的库，不行我再弄个DEMO，谢谢。

我已经试了你新的库了，发现一个问题，当我不滚动的时候，第一个section的头部点击无法获取，滚动一点就可以获取到了，滚回到最上面的时候就又无法点击了。我猜是最上面悬浮层虽然看不到，但拦截了点击事件，无法点击穿透。

那个demo没有设置适配器的点击事件 你可以设置下适配器item点击事件再看看

StickyItemDecoration代码已更新，测了头部点击和Item点击没有冲突

不是的，真的有问题，你的代码里有屏蔽，我注释掉就可以了。你的代码如下：
public StickyHeadContainer(Context context, AttributeSet attrs, int defStyleAttr) {         super(context, attrs, defStyleAttr); //        setOnClickListener(new OnClickListener() { //            @Override //            public void onClick(View v) { //                // TODO: 2017/1/9 屏蔽点击事件 //            } //        });     }

这个肯定要屏蔽掉的 因为如果你不屏蔽的话 你后面遮住的item设置了点击事件 你去点击粘性头部的时候就会响应后面的item了

我把你这个屏蔽部分注释掉后没有影响到后面item的点击，即使头部和后面Item重叠在一点也不会影响后面的点击。

我用过直播吧这个APP就是我点击他的粘性头部 他结果响应了后面的item跳转了 个人感觉不太合理 你觉得呢

它响应了后面的item跳转其实就是点击穿透问题，直接在头部的点击事件里返回true就可以防止穿透了，不向下传递。

设置点击事件也能防止穿透而且更加方便

嗯

authors: funfang oubowu

repo: oubowu/PinnedSectionItemDecoration


text:
Fix configuration inconsistency in app &  Kubernetes depoyment in '_run/single'

We did some investigation and found a few things

Once the akashd pod is running the container is up but you can't get to it, you just get a 502 Bad gateway response
The akash application is listening on tcp://localhost:26657 not on the wildcard address
Tendermint is creating a default config.toml file since we aren't providing one in the container
Even specifying the command line flag for the TCP port for RPC doesn't seem to override it, this should be fixed since command line switches should always win.

We need to make our configuration consistent & document how we're doing it as well as recommended methods.

Here's the result of my investigation on this so far

I played with setting environmental variables like AKASH_RPC_LADDR on my local machine and they don't do anything that I can see with. I think we may have to call viper.SetEnvKeyReplacer to get it to replace the dot character with underscores when checking the environmental variables for configuration
There appears to be a bug in cosmos SDK when loading the configuration for tendermint, explained below

In cmd /akash/cmd/root.go we install a PersistenPreRunE function into cobra which gets executed and calls server.InterceptConfigsPreRunHandler which is expected from the cosmos SDK. That function is defined in this file
https://github.com/cosmos/cosmos-sdk/blob/9856327d95eba4c3ae2d15d26a76ad3ac17b20b8/server/util.go#L57
That function calls a private function called interceptConfigs which has the following section
	rootDir := rootViper.GetString(flags.FlagHome)
	configPath := filepath.Join(rootDir, "config")
	configFile := filepath.Join(configPath, "config.toml")

	conf := tmcfg.DefaultConfig()

	if _, err := os.Stat(configFile); os.IsNotExist(err) {
		tmcfg.EnsureRoot(rootDir)

		if err = conf.ValidateBasic(); err != nil {
			return nil, fmt.Errorf("error in config file: %v", err)
		}

		conf.RPC.PprofListenAddress = "localhost:6060"
		conf.P2P.RecvRate = 5120000
		conf.P2P.SendRate = 5120000
		conf.Consensus.TimeoutCommit = 5 * time.Second
		tmcfg.WriteConfigFile(configFile, conf)
	} else {
		rootViper.SetConfigType("toml")
		rootViper.SetConfigName("config")
		rootViper.AddConfigPath(configPath)
		if err := rootViper.ReadInConfig(); err != nil {
			return nil, fmt.Errorf("failed to read in app.toml: %w", err)
		}

		if err := rootViper.Unmarshal(conf); err != nil {
			return nil, err
		}
	}

Note that rootViper is created in InterceptConfigsPreRunHandler, passed into this function and does not leave that scope.
In the code above if config.toml cannot be loaded it is created from defaults. This file does not exist presently in container when started in kubernetes. If the file does exist, the file is parsed by called rootViper.ReadInConfig and then rootViper.Unmarshal(confg) is called to update the tendermint configuration with whatever is in rootViper.
rootViper contains the entirety of the configuration set on the command line due to the fact that the flags are bound to it in InterceptConfigsPreRunHandler. So although this section of code appears to read and load a configuration file, it actually picks up the command line flags. However, if config.toml did not exist then the call to rootViper.Unmarshal never happens. This means the command line flags are never used to update the tendermint configuration.
I was able to confirm this by adding to our kubernetes startup script touch /home/config/config.toml to create an empty file before running akash. When I did that and set the command line flag I was able to get the process to listen on 0.0.0.0::22657.  I could then access the process over HTTP using the Ingress declared in Kubernetes.
So to me this is a bug in Cosmos we need to fix or a bug in our usage of Cosmos.

I did a local checkout of cosmos SDK and moved the call to rootViper.Unmarshal to being after the if / else loop. After that change, things work as expected with respect to command line switches taking priority over the configuration file.
Still doing further investigation on why env. vars. don't work

As a test I shoved in this
 rootViper.SetEnvPrefix("AKASH")
  rootViper.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
  rootViper.AutomaticEnv()

And the env vars work as expected now. So this one situation with rootViper is causing both issues.

Was this fixed in #862 ?

It looks like the fix for this was reverted in https://github.com/ovrclk/akash/commit/dd86936e7473d52e3f2681ddcf43907af80f0f95 because we are no longer using the fork I made of Cosmos

repo: ovrclk/akash


text:
Update README.md

prettier

Michael is working on https://linear.app/habits-together/issue/HAB-93/prettier-github-action which will run it automatically so this isn't really necessary

repo: owengretzinger/habits-together


text:
Suggestion to change Rule Properties type definition

I'm attempting to use this library to build out a code scan in github. Based on this definition
https://docs.github.com/en/code-security/secure-coding/integrating-with-code-scanning/sarif-support-for-code-scanning#reportingdescriptor-object
ReportingDescriptor in github == Rule here.
I believe that we should change Properties from a map[string]string to simply Properities
https://github.com/owenrumney/go-sarif/blob/73511fbe9a4ff2dde7a51d8e25985ad9a331fb57/sarif/tool.go#L31
Which would match what Run has setup today.
https://github.com/owenrumney/go-sarif/blob/73511fbe9a4ff2dde7a51d8e25985ad9a331fb57/sarif/run.go#L20
Also would be nice to have a corresponding AttachPropertyBag method on this struct like we do here on Run.
https://github.com/owenrumney/go-sarif/blob/73511fbe9a4ff2dde7a51d8e25985ad9a331fb57/sarif/run.go#L75-L77
Let me know your thoughts. I'm happy to PR that change in.

Hey @zendern  - thanks for this - I've done it as a quick fix for now. I need to spend some time working out how ReportingDescriptor/Rule/Notification all intertwine and handle deprecated Ids as per the Sarif spec
Also, my documentation is lacking, now that I know there are a few people using  (or trying to use) this I'll tidy that too!

@owenrumney awesome thank you. 🥇 🥇 I'll give it a go later today but those changes look to be what I would need.

authors: owenrumney zendern

repo: owenrumney/go-sarif

license: Unlicense


text:
Fix docker-compose ocis_keycloak example

docker-compose doesn't like bare boolean values in the environment
section. From the compose-file docs:
Any boolean values (true, false, yes, no) need to be enclosed in quotes to
ensure they are not converted to True or False by the YML parser.
Types of changes

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

Thanks, my observations is also that docker-compose v2 is more picky than v1. But that also sounds reasonable because of the switch from Python to Go...

Actually I am still on 1.28.x (so python) :slightly_smiling_face:

repo: owncloud/ocis


text:
Wrong IRC Link in Contact

On the site https://owncloud.org/contact/ the two links to the development IRC Channel links to
#owncloud-devel

and not
#owncloud-dev

as it linked in the main channel and is not the channel which is currently used.

Thanks, fix is in https://github.com/owncloud/owncloud.org/pull/833

authors: RealRancor Serverfrog


text:
Original nvim/init.vim - ubuntu 14.04

Hello,
Can you please share the 14.04 version of your init.vim file?
I am attempting to follow your guide here: link
But I am having issues with neovim.
Here is my current init.vim:
"start dein Scripts-----------------------------
if &compatible
  set nocompatible               " Be iMproved
endif

" Required:
set runtimepath+=/home/ubuntu/.random/repos/github.com/Shougo/dein.vim

" Required:
if dein#load_state('/home/ubuntu/.random')
  call dein#begin('/home/ubuntu/.random')

  " Let dein manage dein
  " Required:
  call dein#add('/home/ubuntu/.random/repos/github.com/Shougo/dein.vim')

  " Add or remove your plugins here:
  call dein#add('Shougo/neosnippet.vim')
  call dein#add('Shougo/neosnippet-snippets')

  " You can specify revision/branch/tag.
  call dein#add('Shougo/vimshell', { 'rev': '3787e5' })

  call dein#add('Shougo/deoplete.nvim')

  call deoplete#enable()

  Required:
  call dein#end()
  call dein#save_state()
endif

" Required:
filetype plugin indent on
syntax enable

" If you want to install not installed plugins on startup.
if dein#check_install()
  call dein#install()
endif

"End dein Scripts-------------------------

g:python3_host_prog = '/home/ubuntu/py36venv/bin/python'

I am unable to get auto-complete, as it gives errors like:
[deoplete] deoplete failed to load: Vim(call):E117: Unknown function: _deoplete. Try the :UpdateRemotePlugins command and restart Neovim. See also :CheckHealth.
Error detected while processing /home/ubuntu/.config/nvim/init.vim:
line   29:
E492: Not an editor command:  Required:
Pattern not found: python3_host_prog = '/home/ubuntu/py36venv/bin/python'

Hey @Kentoseth  thanks for reading the guide :)
I haven't tested out your script but I can spot 2 errors in there:

Missing the comment statement before Required

  call deoplete#enable()

  Required:
  call dein#end()
  call dein#save_state()
endif

Should be
  call deoplete#enable()

  " Required:
  call dein#end()
  call dein#save_state()
endif

Missing let before setting a variable

g:python3_host_prog = '/home/ubuntu/py36venv/bin/python'

should be
let g:python3_host_prog = '/home/ubuntu/py36venv/bin/python'

Thank you so much for the quick reply and for spotting the errors. I no longer get the errors above (so it looks good). However, I'd like to clarify the following 4 lines:
call dein#add('Shougo/deoplete.nvim')
call deoplete#enable()

autocmd FileType python nnoremap <leader>y :0,$!yapf<Cr>
autocmd CompleteDone * pclose " To close preview window of deoplete automagically

I currently have the first 2 lines in my init.vim (see above).
Are the last 2 lines required also?
If yes, where should I put these 2 lines?

Just following up on this.
Thanks,

Sorry for the late response, have been busy!
autocmd FileType python nnoremap <leader>y :0,$!yapf<Cr>

This line is not necessary. It is related to something else (a reformatter).
autocmd CompleteDone * pclose " To close preview window of deoplete automagically

This line is optional. You can use it to automatically close the autocomplete box which is opened. But I think this is the default now. Not sure.
Cheers!

authors: Kentoseth oxalorg

repo: oxalorg/dotfiles


text:
feat(ls):support eslint config with lsp

Closed #1815
Very basically support configuration, could improve in the future since our config is still under experimental.

config
{
  "rules": {
    "no-console": [
      "error",
      {
        "allow": [
          "info"
        ]
      }
    ]
  }
}

Sorry, I will reopen this pr after resolving the conflicts.

repo: oxc-project/oxc


text:
fix(ast)!: add missing ChainExpression from TSNonNullExpression

closes #7375

foo?.bar!
foo?.[bar]!

TSNonNullExpression was not wrapped inside ChainExpression.

#7377  👈 (View in Graphite)
main

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


text:
Oxigraph servers hangs with FILTER function in sparql

Hi,
We deployed an oxigraph server and it appears the server hangs until it crashes when we use a FILTER function in the sparql query.
When the predicate is set to true, it returns the data as expected :
When there is something to evaluate, it hangs
When ran from the client we get error at 18:3: expected <unreported> in the Response.
Those queries return the expected data when run against a fuseki server.
Do you have an idea how to troubleshoot this issue ?
Thanks a lot for your work !

Hi! Thank you for trying Oxigraph!
The error always happens after 50s + some milliseconds. Are you using a reverse proxy with a timeout?
It's also strange that the query with the filter is way slower than the query without. There might be a bug behind it. Is there anything on the stdout or stderr output of the oxigraph_server process?

Hi, I am working with @YoelisA about this experimentation.
I looked at the logs and nothing is logged when the timeout occurs.
We are deploying this oxigraph server thought a k8s cluster, then the Ingress is used as a reverse proxy. We can extend the timeout limitation, but the problem is mainly understanding why the second query is this long.
Thank you for your answer :)
And many thanks for your work on Oxigraph, this is such a nice Sparql Endpoint. Really promising and easy to deploy.

Definitively, :) I can share an RDF dump of the dataset if it is easier for you.
The explain feature is a so interesting to debug SPARQL queries and see what take long time. For now, we just remove triples until the answer response time is acceptable.

Thank you! I have be able to 700Mo of data directly from the SPARQL endpoint. I hope it's going to be enough to see the bottleneck.
The query plans looks quite similar and nothing obvious to me gets out of them. I'm going to profile the queries and see if I find something with it.

Hardly readable Oxigraph query plans
With filter:
Limit { child: HashDeduplicate { child: Project { child: ForLoopJoin { left: ForLoopJoin { left: ForLoopJoin { left: ForLoopJoin { left: QuadPattern { subject: Variable(2), predicate: Constant(NamedNode { iri_id: StrHash { hash: 278574393550247760948885083940562274005 } }), object: Constant(NamedNode { iri_id: StrHash { hash: 317113104573179185288571040651333758362 } }), graph_name: Constant(DefaultGraph) }, right: QuadPattern { subject: Variable(2), predicate: Constant(NamedNode { iri_id: StrHash { hash: 333397388894407012687794434809570484906 } }), object: Variable(4), graph_name: Constant(DefaultGraph) } }, right: QuadPattern { subject: Variable(1), predicate: Constant(NamedNode { iri_id: StrHash { hash: 81786258954639867309623847018166951672 } }), object: Variable(2), graph_name: Constant(DefaultGraph) } }, right: QuadPattern { subject: Variable(3), predicate: Constant(NamedNode { iri_id: StrHash { hash: 239061072387302322250451682252249895395 } }), object: Variable(1), graph_name: Constant(DefaultGraph) } }, right: Filter { child: QuadPattern { subject: Variable(3), predicate: Constant(NamedNode { iri_id: StrHash { hash: 136075188754995423988762900777789846626 } }), object: Variable(0), graph_name: Constant(DefaultGraph) }, expression: Equal(Variable(0), Constant(DateLiteral(Date { timestamp: Timestamp { value: Decimal { value: 53763004800000000000000000000 }, timezone_offset: None } }))) } }, mapping: [(0, 0), (1, 1), (2, 2), (3, 3), (4, 4)] } }, count: 10 }

Without filter:
Limit { child: HashDeduplicate { child: Project { child: ForLoopJoin { left: ForLoopJoin { left: ForLoopJoin { left: ForLoopJoin { left: Filter { child: QuadPattern { subject: Variable(2), predicate: Constant(NamedNode { iri_id: StrHash { hash: 278574393550247760948885083940562274005 } }), object: Constant(NamedNode { iri_id: StrHash { hash: 317113104573179185288571040651333758362 } }), graph_name: Constant(DefaultGraph) }, expression: Constant(BooleanLiteral(true)) }, right: QuadPattern { subject: Variable(2), predicate: Constant(NamedNode { iri_id: StrHash { hash: 333397388894407012687794434809570484906 } }), object: Variable(4), graph_name: Constant(DefaultGraph) } }, right: QuadPattern { subject: Variable(1), predicate: Constant(NamedNode { iri_id: StrHash { hash: 81786258954639867309623847018166951672 } }), object: Variable(2), graph_name: Constant(DefaultGraph) } }, right: QuadPattern { subject: Variable(3), predicate: Constant(NamedNode { iri_id: StrHash { hash: 239061072387302322250451682252249895395 } }), object: Variable(1), graph_name: Constant(DefaultGraph) } }, right: QuadPattern { subject: Variable(3), predicate: Constant(NamedNode { iri_id: StrHash { hash: 136075188754995423988762900777789846626 } }), object: Variable(0), graph_name: Constant(DefaultGraph) } }, mapping: [(0, 0), (1, 1), (2, 2), (3, 3), (4, 4)] } }, count: 10 }

Hi! I use Clion built-in profiling tool. But it is not easy to read because of the Vulcano-style entanglement of "next" method. Having runtime reports added to the query explanation tool might be very nice to add (yet an other feature to add...).
I am in vacation until August 1st so I might not have time to look more carefully at this issue until then, sorry.

Just pinging this issue a bit..   I don't get a hang but FILTER doesn't seem to work in the following
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <https://schema.org/>

SELECT (COUNT(?type) as ?count) ?type
WHERE {
    graph ?g {
        ?s rdf:type ?type
        FILTER (?type IN
                (schema:ResearchProject, schema:Project, schema:Organization, schema:Dataset, schema:CreativeWork, schema:Person, schema:Map, schema:Course, schema:CourseInstance, schema:Event, schema:Vehicle)
        )
    }
}
GROUP BY ?type
ORDER BY DESC(?count)

but if the FILTER is removed I can get the counts for all types.

@fils Hi! Thank you for trying Oxigraph and sorry for that! When you state it does not work you mean that the query never finishes?

@Tpt LOL..  that was a bad issue post by me wasn't it..
Let me try again..    This is being done with nquads files loaded.  In fact, if you are curious they are public and the URLs for them can be found at this page in the "distributions" section.
If I do
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <https://schema.org/>

SELECT (COUNT(?type) as ?count) ?type
WHERE {
    graph ?g {
        ?s rdf:type ?type
    }
}
GROUP BY ?type
ORDER BY DESC(?count)

I get what I expect.    All the counts return fine..    it is big, will put at the bottom
however,
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <https://schema.org/>

SELECT (COUNT(?type) as ?count) ?type
WHERE {
    graph ?g {
        ?s rdf:type ?type
        FILTER (?type IN
                (schema:ResearchProject, schema:Project, schema:Organization, schema:Dataset, schema:CreativeWork, schema:Person, schema:Map, schema:Course, schema:CourseInstance, schema:Event, schema:Vehicle)
        )
    }
}
GROUP BY ?type
ORDER BY DESC(?count)

gives a raw return of
{
  "head": {
    "vars": [
      "count",
      "type"
    ]
  },
  "results": {
    "bindings": []
  }
}

The query without the filter returns
{
  "head": {
    "vars": [
      "count",
      "type"
    ]
  },
  "results": {
    "bindings": [
      {
        "count": {
          "type": "literal",
          "value": "15688",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/DataDownload"
        }
      },
      {
        "count": {
          "type": "literal",
          "value": "11522",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/DataCatalog"
        }
      },
      {
        "count": {
          "type": "literal",
          "value": "11522",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/ContactPoint"
        }
      },
      {
        "count": {
          "type": "literal",
          "value": "11522",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/Dataset"
        }
      },
      {
        "count": {
          "type": "literal",
          "value": "11500",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/Organization"
        }
      },
      {
        "count": {
          "type": "literal",
          "value": "385",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/Thing"
        }
      },
      {
        "count": {
          "type": "literal",
          "value": "233",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/GeoShape"
        }
      },
      {
        "count": {
          "type": "literal",
          "value": "233",
          "datatype": "http://www.w3.org/2001/XMLSchema#integer"
        },
        "type": {
          "type": "uri",
          "value": "http://schema.org/Place"
        }
      }
    ]
  }
}

@fils  I believe it's because you have PREFIX schema: <https://schema.org/> in your query but use PREFIX schema: <https://schema.org/> (without s) in the data.

OK..  I just noticed that!   but wait.  I was rather certain my files loaded with https not http.   Let me check that.

just as a note..  using
 ./oxigraph_server_v0.3.14_x86_64_linux_gnu  serve -l data

Can that be explained?

I believe it's because you use PUT and not POST in the  curl commands. The PUT verb replaces the database content with the request payload and so, discards the already existing content. If the last file you PUT does not contains any https://schema.org/ URL it's not surprising that no results are returned by the query

authors: Murloc6 Tpt YoelisA fils

repo: oxigraph/oxigraph


text:
Oxigraph is now in Debian testing

Hi,
Not a bug at all, just abusing this interface to share that Oxigraph packaged officially as part of Debian has how stabilized enough to have entered Debian "testing".
For a developer view on packaging health, see the Debian tracker page.
For a user-facing listing of the package, see the Debian Package page.

This is amazing! Thank you so much for all this packaging work!

authors: Tpt jonassmedegaard


text:
使用感觉挺好，有3点反馈

1.机翻有点问题，比如Adam Eivy’s dotfiles are focused on Automation (no manual install/config)翻译不了，把/删掉就可以翻译了。2.选词翻译时，如果我看的时间稍微长一些，取消选中单词时翻译框还在，我需要再在旁白位置点几下翻译框才消失，俗称卡顿，这一点有点烦。3.划词翻译太详细了，一眼看不到汉译，希望能有个开关，在简易翻译和详细翻译间切换。

感谢反馈！

1.机翻有点问题，比如Adam Eivy’s dotfiles are focused on Automation (no manual install/config)翻译不了，把/删掉就可以翻译了。

我猜做一些转义应该能解决这个问题。

2.选词翻译时，如果我看的时间稍微长一些，取消选中单词时翻译框还在，我需要再在旁白位置点几下翻译框才消失，俗称卡顿，这一点有点烦

从描述上看确实像是性能问题，但可能比较难复现。

3.划词翻译太详细了，一眼看不到汉译，希望能有个开关，在简易翻译和详细翻译间切换。

collins里面还是以英文为主。但我想需求是合理的。

第二个问题我也经常遇到, 作者能添加一个关闭按钮解决这个问题吗

repo: oyyd/youdao-collins-chrome-extension


text:
Cannot resolve dependencies

$ cabal-dev install
Resolving dependencies...
cabal: cannot configure pastie-0.2. It requires snap-extension-mongodb >=0.3.3
There is no available version of snap-extension-mongodb that satisfies >=0.3.3

snap-extension-mongodb is now deprecated.  In Snap 0.6 we replaced the concept of extensions with a new, much improved, concept called snaplets.  See the mongoDB snaplet listed here: http://snapframework.com/snaplets

authors: mightybyte qzchenwl

repo: ozataman/snap-extension-mongodb


text:
As a user I want to requery previous datasets

Approach will be to add ability in datahistory to do this

Steps used to test:
Go to Data History icon on Menu Bar
Choose Requery button for previous queries and also previous uploaded data files.
RESULTS - The query tool should pop up on map with coordinates populated. Previous uploaded data files does not populate coordinates.
EXPECTED RESULTS -The query tool should pop up on map with coordinates populated. Previously uploaded data that displays in Data History should display the Requery button as grayed out since there is no bounding box associated.

Passed on local branch.

Added re-run button to the detailed view and added dataSource as a param to dynamically change the dataSource when the query tool opens. Thought about adding tooltips to the all the buttons but we can discuss later and create another ticket if agreed. Everything else looks good to me.

authors: jlfoster2 jrdrgz tdressel

repo: ozone-development/meridian


text:
android.content.res.Resources$NotFoundException: Resource ID #0x0

I suggest replacing this line:
eventPaint.setColor(getContext().getResources().getColor(e.getColor()));
with
eventPaint.setColor(ContextCompat.getColor(getContext(), e.getColor()));
Can you fix it?
E/AndroidRuntime: FATAL EXCEPTION: main
                  android.content.res.Resources$NotFoundException: Resource ID #0x0
                      at android.content.res.Resources.getValue(Resources.java:1233)
                      at android.content.res.Resources.getColor(Resources.java:887)
                      at com.p_v.flexiblecalendar.view.CircularEventCellView.setEvents(CircularEventCellView.java:109)
                      at com.p_v.flexiblecalendar.FlexibleCalendarGridAdapter.drawDateCell(FlexibleCalendarGridAdapter.java:144)
                      at com.p_v.flexiblecalendar.FlexibleCalendarGridAdapter.getView(FlexibleCalendarGridAdapter.java:133)
                      at android.widget.AbsListView.obtainView(AbsListView.java:2344)
                      at android.widget.GridView.makeAndAddView(GridView.java:1433)
                      at android.widget.GridView.makeRow(GridView.java:361)
                      at android.widget.GridView.fillDown(GridView.java:302)
                      at android.widget.GridView.fillFromTop(GridView.java:437)
                      at android.widget.GridView.layoutChildren(GridView.java:1276)
                      at android.widget.AbsListView.onLayout(AbsListView.java:2148)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                      at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1695)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                      at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                      at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:122)
                      at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
                      at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1192)
                      at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:814)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1187)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
                      at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                      at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
                      at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                      at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                      at android.view.View.layout(View.java:15596)
                      at android.view.ViewGroup.layout(ViewGroup.java:4966)
                      at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
                    at android.widget.FrameLayout.onLa

Fixed. One of my CursorLoader would sometime loader faster then the other one and create a color id with 0x0. My bad.

I am having same issue, When I am trying to set color resource as event color.

repo: p-v/FlexibleCalendar


text:
Failed validating 'oneOf'

Hello,
I don't understand the following validation error:
{'{$response.header.Location}': {'get': {'requestBody': {}, 'responses': {'301': {'x-scope': ['', '#/components/callbacks/moveProgress'], '$ref': '#/components/responses/MoveProgress'}, '303': {'x-scope': ['', '#/components/callbacks/moveProgress'], '$ref': '#/components/responses/MoveSuccess'}}}}} is not valid under any of the given schemas

Failed validating 'oneOf' in schema['properties']['paths']['patternProperties']['^/']['properties']['put']['properties']['callbacks']['additionalProperties']:
    {'oneOf': [{'$ref': '#/definitions/callback'},
               {'$ref': '#/definitions/reference'}]}

On instance['paths']['/users/user/{dn}']['put']['callbacks']['move-progress']:
    {'{$response.header.Location}': {'get': {'requestBody': {},
                                             'responses': {'301': {'$ref': '#/components/responses/MoveProgress',
                                                                   'x-scope': ['',
                                                                               '#/components/callbacks/moveProgress']},
                                                           '303': {'$ref': '#/components/responses/MoveSuccess',
                                                                   'x-scope': ['',
                                                                               '#/components/callbacks/moveProgress']}}}}}

The x-scope was not added by myself. I don't have any oneOf defined.
Maybe someone can point me to the error?

Adding "content": {} to requestBody helped.

That shouldn't be nessesary!? It's even weird to add a requestBody to a GET request. Or rather: because of the validator, we need to write invalid specs... doesn't feel right to me.

authors: kurt-o-sys spaceone


text:
add example to implement clone without an extern

Unfortunately, this example triggers a bug in front end. I will file an issue in p4c.
psa-example-clone-without-extern.p4(217)
control EgressDeparserImpl(packet_out packet,
        ^^^^^^^^^^^^^^^^^^
libc++abi.dylib: terminating with uncaught exception of type Util::CompilerBug: COMPILER BUG: ../ir/visitor.cpp:145
Transform called const visit function -- missing template instantiation in gen-tree-macro.h?

@hanw Given the resolution of how to attach metadata to clone, resubmit, and recirculated packets, is this example still something we want?  Or should we close this without merging?

Yes, closed.

authors: hanw jafingerhut


text:
How to read table entry counters?

I want to read the table entry byte/packet counters.
What I tried:
P4Runtime sh >>> direct_counters
ingress.table0_control.table0_counter
ingress.wcmp_control.wcmp_table_counter

P4Runtime sh >>> x = direct_counter_entry['ingress.table0_control.table0_counter']

P4Runtime sh >>> x.byte_count
Out[185]: 0

P4Runtime sh >>> for x in table_entry['ingress.table0_control.table0'].read():
            ...:     print(x.counter_data.byte_count)
            ...:
0
0
0
0
0
0

Thanks in advance!

I got it working using P4Runtime with the grpcio-tools but the code is rather convoluted:
from p4.v1 import p4runtime_pb2, p4runtime_pb2_grpc
import grpc

channel = grpc.insecure_channel('localhost:50001')

stub = p4runtime_pb2_grpc.P4RuntimeStub(channel)
request = p4runtime_pb2.GetForwardingPipelineConfigRequest(device_id=1)

result = stub.GetForwardingPipelineConfig(request)

# TODO: read table_id from result instead hard-coding it

table_id=33561568

entity = p4runtime_pb2.Entity()
table_entry = p4runtime_pb2.TableEntry(table_id=table_id)
entity.table_entry.CopyFrom(table_entry)

request = p4runtime_pb2.ReadRequest(device_id=1, entities = [entity])
for response in stub.Read(request):
    print(response)

direct_counter = p4runtime_pb2.DirectCounterEntry()
direct_counter.table_entry.CopyFrom(response.entities[0].table_entry)
entity2 = p4runtime_pb2.Entity()
entity2.direct_counter_entry.CopyFrom(direct_counter)
request = p4runtime_pb2.ReadRequest(device_id=1, entities = [entity2])

for it in stub.Read(request):
    print(it.entities[0].direct_counter_entry.data.byte_count)

Can the p4runtime-shell simplify in this case?

Ah, nevermind - I got it working using p4runtime-shell:
P4Runtime sh >>> te = table_entry["ingress.table0_control.table0"](action = "ingress.table0_control.set_egress_port")
            ...: te.priority = 1
            ...: te.match["standard_metadata.ingress_port"] = ("1")
            ...: te.action['port'] = ("2")
            ...: te.insert()
            ...:
            ...: te = table_entry["ingress.table0_control.table0"](action = "ingress.table0_control.set_egress_port")
            ...: te.priority = 1
            ...: te.match["standard_metadata.ingress_port"] = ("2")
            ...: te.action['port'] = ("1")
            ...: te.insert()
field_id: 1
ternary {
  value: "\000\001"
  mask: "\001\377"
}

param_id: 1
value: "\000\002"

field_id: 1
ternary {
  value: "\000\002"
  mask: "\001\377"
}

param_id: 1
value: "\000\001"

P4Runtime sh >>> tables
ingress.host_meter_control.host_meter_table
ingress.table0_control.table0
ingress.wcmp_control.wcmp_table

P4Runtime sh >>> for te in table_entry['ingress.table0_control.table0'].read():
            ...:     print(te)
            ...:
table_id: 33561568 ("ingress.table0_control.table0")
match {
  field_id: 1 ("standard_metadata.ingress_port")
  ternary {
    value: "\\x00\\x01"
    mask: "\\x01\\xff"
  }
}
action {
  action {
    action_id: 16822046 ("ingress.table0_control.set_egress_port")
    params {
      param_id: 1 ("None")
      value: "\\x00\\x02"
    }
  }
}
priority: 1

table_id: 33561568 ("ingress.table0_control.table0")
match {
  field_id: 1 ("standard_metadata.ingress_port")
  ternary {
    value: "\\x00\\x02"
    mask: "\\x01\\xff"
  }
}
action {
  action {
    action_id: 16822046 ("ingress.table0_control.set_egress_port")
    params {
      param_id: 1 ("None")
      value: "\\x00\\x01"
    }
  }
}
priority: 1

P4Runtime sh >>> direct_counters
ingress.table0_control.table0_counter
ingress.wcmp_control.wcmp_table_counter

P4Runtime sh >>> dce = direct_counter_entry['ingress.table0_control.table0_counter']

P4Runtime sh >>> dce.table_entry = te

P4Runtime sh >>> dce.read()
Out[7]: <p4runtime_sh.shell._EntityBase.read.<locals>._EntryIterator at 0x7f9b9de17f98>

P4Runtime sh >>> for x in dce.read():
            ...:     print(x)
            ...:
table_entry {
  table_id: 33561568 ("ingress.table0_control.table0")
  match {
    field_id: 1 ("standard_metadata.ingress_port")
    ternary {
      value: "\\x00\\x02"
      mask: "\\x01\\xff"
    }
  }
  action {
    action {
      action_id: 16822046 ("ingress.table0_control.set_egress_port")
      params {
        param_id: 1 ("None")
        value: "\\x00\\x01"
      }
    }
  }
  priority: 1
}
data {
  byte_count: 210
  packet_count: 3
}

P4Runtime sh >>>

Should this issue still be opened?

Closing since example was added

authors: antoninbas davidgengenbach jokuniew


text:
Add note about EC2 instance limits to  tutorial [DOCS]

Tutorial for manual AWS deployment here: http://docs.pachyderm.io/en/latest/deployment/amazon_web_services.html
Mentions that r4.xlarge instances should be used, but the default instance limit for at least some regions (e.g. us-west-2) for that type is currently 1, meaning you can't actually create a pachyderm cluster with that configuration (and kops also won't tell you why the nodes aren't created).
So it'd be good to add a note for users to check their EC2 instance limit and suggest viable alternatives.

Thanks for pointing this out @rschoenbeck. Adding docs label and we can make these adjustments. Always open to PRs for little stuff like this as well :)

Given that AWS limitations per region are constantly updated by AWS, it is probably best to double-check that those limits are not exceeded within your AWS Console. Closing this issue out as there's nothing to be done here.

authors: JoeyZwicker mindthevirt rschoenbeck

repo: pachyderm/pachyderm


text:
invalid mod

so multimc keeps telling me that the mod file or something is invalid.
how do i fix that?

Please can you show the error message

its on german but i can translate it

Did you follow the instructions in the readme?

yes, it didnt worked

Read it more carefully.

authors: Creeperspielt Earthcomputer

repo: pack-png-mods/seed-selector


text:
Notes need to define CONTAINER_RUNTIME

If CONTAINER_RUNTIME is undefined you will get messages like:
package-operator main $ bin/mage dev:setup
2022/09/26 15:18:45 "level"=0 "msg"="detected container-runtime" "container-runtime"="podman"
Error: initializing dev environment: getting existing kind clusters: exit status 1

This might send you off debugging in the wrong direction.
Adds a dev note to the README to alert dev users to define this env variable

Hi @bentito!
Thanks for the contribution.
Choosing the right container runtime automatically is a bit tricky and quickly confusing. :D
Especially because podman and kind do not work perfectly together yet.

authors: bentito thetechnick

repo: package-operator/package-operator


text:
Downstream release proposal does not respect requested dist-git branches

The packit conf for convert2rhel says that the dist-git branches to be used for downstream release are el6 and epel7:
- job: propose_downstream
  trigger: release
  metadata:
    dist_git_branches:
    - el6
    - epel7

Yet, after creating a new upstream release, packit has created a downstream PR only for the master dist-git branch (which is used for Fedora Rawhide): https://src.fedoraproject.org/rpms/convert2rhel/pull-request/2.

We'll have to test this on our side to see what's wrong. I was not able to find the relevant logs for this event.

authors: bocekm csomh

repo: packit-service/packit


text:
Run mypy without --no-strict-optional

remove --no-strict-optional from pre-commit-config
run pre-commit run --all-files
fix all errors

https://mypy.readthedocs.io/en/stable/kinds_of_types.html#no-strict-optional
See also packit/ogr#696 & packit/packit-service#1433

Still would be nice to have, but very low prio.

authors: jpopelka lbarcziova

repo: packit/packit


text:
propose-update does not generate proper changelog from release tag

As discussed in issue #298, the idea was that the changelog gets generated from the upstream release tag (or the github description, etc). I think that even worked right when I tested that, but it seems to have regressed. For cockpit-ostree 179 it now just generates:
--- a/cockpit-ostree.spec
+++ b/cockpit-ostree.spec
@@ -1,12 +1,17 @@
 Name: cockpit-ostree
-Version: 178
+Version: 179
 Release: 1%{?dist}
 BuildArch: noarch
 Summary: Cockpit user interface for rpm-ostree
 License: LGPLv2+
 Requires: cockpit-bridge >= 125
 Requires: cockpit-system >= 125
-Requires: /usr/libexec/rpm-ostreed
+# On RHEL Atomic 7, the package name is different (curiously not on CentOS Atomic)
+%if 0%{?rhel} == 7
+Requires: rpm-ostree-client
+%else
+Requires: rpm-ostree
+%endif

 # Download from https://github.com/cockpit-project/cockpit-ostree/releases
 Source: cockpit-ostree-%{version}.tar.gz
@@ -27,6 +32,9 @@ find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs rm --verbose
 %{_datadir}/cockpit/*

 %changelog
+* Wed Jul 24 2019 Martin Pitt <martin@piware.de> - 179-1
+- new upstream release: 179
+
 * Fri Jul 12 2019 Martin Pitt <martin@piware.de> - 178-1
 - new upstream release: 178

(that's just the .spec change, ignoring changes to sources and .gitignore).
This is a bit sad, the changelog should include some useful information, bug refs, etc. I did 178 with an earlier packit master as well, same problem (but that was after #298 landed).
❱❱❱ git -C ~/tmp/packit/ rev-parse HEAD
efb466df8567c2050b09f6854b515250ac1dfa7a

So your expectation is to get a full-blown upstream release changelog included in the %changelog?
Could you please provide a sample entry which would make you cheerful?

Maybe I was just imagining that it worked before then? Ideally we want to copy the upstream git tag description, i. e. what can be seen on the GitHub /releases page. In this case:
 %changelog
* Wed Jul 24 2019 Martin Pitt <martin@piware.de> - 179-1
- spec: Depend on package instead of file path (rhbz#1731687)
- Add packit configuration

If packit can't or doesn't want to (for clean architecture reasons) look at the tag, would it be possible to feed that in through an option?

that makes sense to me and sounds like a pretty solid RFE

Thanks @TomasTomecek! Sorry if I considered that a regression, sometimes one sees what one wants to see :)

This is a solid RFE, let's keep this one.

I am not sure about the priority, but it looks still relevant to me.

We definitely want to provide a way for everyone to populate %changelog in the spec file with some sane default.

bump

Our plan here was to "outsource" this task to GSoC or RHOSC but afaik we did not pull it off :/
completely agree this would be really useful to have in packit by default

bump :-)

@martinpitt sorry for the stale-bot

bump

Franto, I just adding this to the upstream project and wanna discuss with you.

This looks like a great feature. I'm looking forward to test this!

authors: TomasTomecek jkonecny12 lachmanfrantisek martinpitt


text:
Image Builder improvements (take 2)

https://github.com/packit/packit/pull/1965 is bugged, I cannot push there, hence created another
Contains:

image builder: add methods for cloning
image builder: enable doing launch requests too
image builder: raise exc when cannot obtain token

TODO:

[x] Write new tests or update the old ones to cover new functionality.

the cloning is for Franta so he can share an image with Miro

[x] Update doc-strings where appropriate.

RELEASE NOTES BEGIN
No user-visible change here.
RELEASE NOTES END

merging p-s PR which should resolve the rev-dep test, let's see


text:
Docker support (5.77MB uncompressed)

Closes #600
Depending on what you want can switch from scratch to something with a few drivers installed by default for both debian and alpine bases.

Added contents of Docker file to readme instead


text:
fix: include headers on interactions requests

Checklist

[x] yarn run dist:ci passes on my machine
[x] I have followed the commit message guidelines, with messages suitable for appearing in the changelog

Description

When a request is done, for example, from axios fetcher, and it's intercepted by MSW, the final pact file doesn't include the request headers. This PR fixes this unexpected behaviour.

Thanks for the change @kikoruiz 🙌 sorry for the delay, the team was away on an off-site for the week

No problem @YOU54F, our team had also an offsite during some days last week 😉 Thank you for the merge 🙌

repo: pactflow/pact-msw-adapter


text:
chore: adding the Fabryprog bootstrap nodes to bootstrap.json

Description
Add my nodes to bootstrap list

@Fabryprog Please add only one address.

@Fabryprog Please add only one address.

done!

@Fabryprog Thanks

repo: pactus-project/pactus


text:
andThrow Parameter Clarification

Response to #539 where intention wasn't clear. Just thought I'd clear up the PHPDoc to guide others not to make the same mistakes as I.

Thank you very much!

authors: danhanly davedevelopment

repo: padraic/mockery


text:
Avoid to unwanted duplication of ENV['RACK_BASE_URI'].

Sometimes Padrino::Routing::ClassMethods#rebase_url duplicates ENV['RACK_BASE_URI'].
It happends often when Padrino::Contrib::AutoLocale is used.  This code avoids
unwanted duplication of ENV['RACK_BASE_URI'].

We should likely add a simple test. Something like the following:
diff --git a/padrino-core/test/test_routing.rb b/padrino-core/test/test_routing.rb
index 2d7c3e8e..89788a80 100644
--- a/padrino-core/test/test_routing.rb
+++ b/padrino-core/test/test_routing.rb
@@ -2413,4 +2413,14 @@ describe "Routing" do
     get '/prohibit/123?id=456'
     assert_equal '123', body
   end
+
+  describe "#rebase_url" do
+    it "should not duplicate RACK_BASE_URI conforming" do
+      mock_app
+
+      ENV["RACK_BASE_URI"] = "/shop"
+      assert_equal "/shop/products", @app.rebase_url("/shop/products")
+      ENV["RACK_BASE_URI"] = nil
+    end
+  end
 end

What do you think @ujifgc ?

I dislike this PR. Why do you feed already rebased url to this method?

Dear @ujifgc, I think when #rebase_url is called from #url method, the argument has not been yet rebased.  That argument is made by #make_path_with_params method, which does not consider ENV["RACK_BASE_URI"].  Maybe we should correct PathRouter to consider ENV["RACK_BASE_URI"].

Closing as making the method do another's job.
Willing to reopen if provided with a sample project requiring the change.
Ref: https://github.com/padrino/padrino-contrib/pull/33

authors: adam12 aprikip ujifgc

repo: padrino/padrino-framework


text:
error page after saving content with ctrl+s

Hi,
while editing a site I accidentally hit ctrl+s for saving the new written content of the page, well, it worked (so you are catching it what is nice), but after saving the page I was redirected to a non valid url and got an 404 error message.
NotFoundException in HttpKernel.php line 108: Type not found.
HttpKernel->abort('404', 'Type not found.', array()) in RouterTrait.php line 16
...

I can't reproduce this issue. Which Pagekit version are you using?

Hi, current stable release (0.10.4).
Additionally I found out, that this error appears only with firefox.

authors: Eichi MalteScharenberg

repo: pagekit/pagekit


text:
🛑 Carakas is down

In b36df42, Carakas (https://poetry.carakas.be) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Carakas is back up in 1911d95 after 460 days, 19 hours, 29 minutes.

repo: pageon/uptime


text:
Error parsing: “-webkit-text-size-adjust”

When turning on developer tools you see an error message:

Error in parsing value for “-webkit-text-size-adjust”.  Declaration dropped. style.css:1:226

I've been searching and greping code and cannot find where this variable is being set.
There is some of Apple's webkit stuff in Cayman:
-webkit-overflow-scrolling: touch;

The above appears in /_sass/jekyll-theme-cayman.scss.
Is -webkit-text-size-adjust part of Cayman Theme?

A day after posting question a new error appeared:

Unknown pseudo-class or pseudo-element “-ms-clear”.  Ruleset ignored due to bad selector. style.css:1:14488

Again grepping website doesn't find anything for ms-clear

Closing - I think issue is related to code copied from Stack Overflow into style.css and unrelated to Cayman Themes. Sorry if this was a neophyte mistake...

repo: pages-themes/cayman


text:
[#175476527] release pipeline

Same changes applied in https://github.com/pagopa/io-functions-services/pull/96.
Changes in brief

Introduce the Release stage on the pipeline which marks a release on the repository
Refactor the whole CI/CD to have

separated pipelines for code review and deploy scenarios
everything is into .devops folder now

/azp run

no healthcheck

There's no such feature in the project, yet

/azp run

repo: pagopa/io-developer-portal-backend


text:
Expand the number of hash algorithms supported

Currently the dep-server only a supports sha256 hash for both the package as well as the source of the package. I think that it would make more sense and make the server more extensible to other users if we supported more hashing algorithms.

I think that this only applies to the bom format. Closing this in favor of an rfc to update the bom format.

repo: paketo-buildpacks/dep-server


text:
Refactoring push-image.yml Github Worfklow

Summary

The summary of this PR is the same as on this one https://github.com/paketo-buildpacks/github-config/pull/900
Use Cases

Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[x] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[x] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@mhdawson Can you LGTM?

repo: paketo-community/ubi-base-stack


text:
member-ordering should also allow to order getter and setter

Feature request
Is your feature request related to a problem? Please describe.
I want to force order

public, protected, private static
public, protected, private fields
public, protected, private getter
public, protected, private setter
public, protected, private functions

Describe the solution you'd like
//...
public-instance-field
protected-instance-field
private-instance-field
public-constructor
protected-constructor
private-constructor
public-getter-setter ?
protected-getter-setter ?
private-getter-setter ?
public-instance-method
//...

@Shinigami92 the docs in https://palantir.github.io/tslint/rules/member-ordering/ list the rule as allowing pretty much any order of those configurable options. What's the closest lint configuration you were able to come up with, and what's the feature gap missing here?
In theory, this could be doable if it's not already, but TSLint is only a few days away from no longer accepting rule enhancements: #4534... so your best bet might be to start looking at typescript-eslint?

https://github.com/typescript-eslint/typescript-eslint/issues/929

🤖 Beep boop! 👉  TSLint is deprecated 👈  and you should switch to typescript-eslint! 🤖
🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋

repo: palantir/tslint


text:
Questions about exceptions when run in docker container

This issue is not want to report a bug of Flask, just want to throw it out and to see opinions about it.
Now, let me introduce the context and what I find.
We developed 2 servers base on Flask and gevent.pywsgi, and I cannot show the codes by the way, because they are company's codes.
But I can describe them in brief:

Server A and Server B, they are both the web servers
Once Server A received a http request from other subsystem(implemented by node.js), it will do some processing, and send the http request to Server B, after Server B response, server A send response back to its client.
the Server A client will send the request in parallel, 45 counts at same time for one batch by using Axios.js.
In Server A and B, we both use gevent.pywsgi and Flask to create the web server, and no limited for the pywsgi Pool
In Server A and B, we create 2 threads to run 2 pywsgi servers, one is for health check, another is for the features.

sample codes
...
# function server
function_app = Flask(__name__)
# monitor server
monitor_app = Flask(__name__)
...
port = os.environ['HEALTH_PORT']
self.monitor_server = WSGIServer(('0.0.0.0', int(port)), monitor_app)
self.monitor_server.serve_forever()
...
port = os.environ['PORT']
pool = Pool(None)
self.http_server = WSGIServer(('0.0.0.0', int(port)), function_app, spawn=pool)
self.http_server.serve_forever()
...

I also use Apache Bench to do the performance testing, like(server A listen on 5000 port):
./ab.exe -T "application/tar" -p ./0001_0008.tar -n 1000 -c 1000 http://localhost:5000/processing

The key is I find the exceptions only when I run those 2 web servers in the docker container, but when I run them in my windows local, the exception are very rarely to see. So, I don't think the issues in docker container come from codes
we also tested 2 docker container environment: one is docker for windows, another is docker in ubuntu 20.04, the findings are same.
the exceptions are 2, after first look, I know something bad happened from the flask app context.
Traceback (most recent call last):
  File "main.py", line 58, in route_process_tile
    return jsonify(extraction.run_tile_production(request.stream, deploy_env))
  File "/usr/local/lib/python3.7/site-packages/flask/json/__init__.py", line 358, in jsonify
    if current_app.config["JSONIFY_PRETTYPRINT_REGULAR"] or current_app.debug:
  File "/usr/local/lib/python3.7/site-packages/werkzeug/local.py", line 422, in __get__
    obj = instance._get_current_object()
  File "/usr/local/lib/python3.7/site-packages/werkzeug/local.py", line 544, in _get_current_object
    return self.__local()  # type: ignore
  File "/usr/local/lib/python3.7/site-packages/flask/globals.py", line 52, in _find_app
    raise RuntimeError(_app_ctx_err_msg)
RuntimeError: Working outside of application context.

This typically means that you attempted to use functionality that needed
to interface with the current application object in some way. To solve
this, set up an application context with app.app_context().  See the
documentation for more information.
ERROR:ai:Working outside of application context.

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 976, in handle_one_response
    self.run_application()
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 923, in run_application
    self.result = self.application(self.environ, self.start_response)
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2463, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2457, in wsgi_app
    ctx.auto_pop(error)
  File "/usr/local/lib/python3.7/site-packages/flask/ctx.py", line 452, in auto_pop
    self.pop(exc)
  File "/usr/local/lib/python3.7/site-packages/flask/ctx.py", line 442, in pop
    self,
AssertionError: Popped wrong request context. (<RequestContext 'http://localhost:5000/xxxx' [POST] of main> instead of <RequestContext 'http://localhost:5000/xxxx' [POST] of main>)
2021-08-02T10:37:56Z {'REMOTE_ADDR': '10.0.0.2', 'REMOTE_PORT': '36148', 'HTTP_HOST': 'localhost:5000', (hidden keys: 22)} failed with AssertionError

10.0.0.2 - - [2021-08-02 10:37:56] "POST /xxxxx HTTP/1.0" 500 161 11.801833

So, for the exceptions themself, I think we don't need to discuss, they are well known issues, and I know the reason, but I don't understand what is the difference between the docker container environment and my windows local?
In my windows local, I use miniconda to create the virtual environment from python 3.7 version, and the python interpreter also same: cpython, then what else?
Environment:

Python version: 3.7.10 (use the official docker python:3.7-slim-buster)
Flask version: 1.1.1

Please use our Discord for discussion about your own code. This tracker is for issues related to the project itself.

authors: davidism leolcao

repo: pallets/flask


text:
fix lighttpd version check in CGIRootFix

According to #266, CGIRootFix is not only for lighttpd now.
So, SERVER_SOFTWARE should not be assumed to start with 'lighttpd/', as this value can be 'Apache/x.x.x' (less than 'lighttpd/1.4.28') or 'nginx/x.x.x' (greater), for example.

@untitaker maybe that whole if statement can be removed?

:+1: on removing it. people should not use this kind of middleware unconditionally but either use a custom wsgi file applying it or add a config option to determine whether to use it or not

I don't understand what this code does.
On Sat, Jun 24, 2017 at 05:19:24PM -0700, David Lord wrote:

@untitaker maybe that whole if statement can be removed?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/pallets/werkzeug/pull/1141#issuecomment-310873808

I'm removing the entire check. It's addressing servers before Lighttpd 1.4.28, which was released in 2010. We can move on.

authors: ThiefMaster davidism saltcandy123 untitaker

repo: pallets/werkzeug


text:
A fix suggestion

What is happening?

When wallets are not connected in palomaswap.com application, while Curve is selected, when choosing chain, it gives a wallet connection warning. but there is no such warning for other Dexler.

Detailed demonstration is available in the video below.

https://www.dropbox.com/s/si681t18sg4fwi6/REC-20230521142807.mp4?dl=0

Confirmed received and assigned to @verabehr

@verabehr do we have a status on this?

@taariq moved to the Palomaboard for @wdev733 's queue

this was fixed

authors: KyErgus taariq verabehr

repo: palomachain/paloma


text:
Add better logic for H1...H6 toolbarHandlers

Currently, when someone presses one of the heading buttons, it simply prepends the line/selection with the relevant number of # characters.
This is extremely frustrating when it's already a heading and you do this expecting that it will change the existing heading to the specified level.
The following is logic I placed in some custom code to override this.
I would provide a PR, but not entirely familiar with how this project does development work (and I cannot read Chinese).
  // Regular expression used to determine existing heading.
  var headingRegExp = /^(#+)\s/;

  // Editor.md only prepends one or more # for each header handler. It doesn't
  // actually implement any logic to replace existing headers (if one decides
  // to change their minds). This is an attempt to "fix" this.
  // @todo Remove if/when this is fixed upstream.
  var heading = function (size) {
    return function () {
      var cm = this.cm;
      var cursor = cm.getCursor();
      var line = cm.getLine(cursor.line);

      // Determine the previous heading.
      var previousHeading = [].concat(line.match(headingRegExp)).filter(Boolean)[1] || '';
      var lineValue = line.replace(headingRegExp, '');

      // Retrieve the current selection value.
      var selection = cm.getSelection();

      // Determine if entire line should be replaced.
      var replaceLine = !selection || selection === lineValue;

      var heading = '#';
      for (var i = 1; i < size; i++) {
        heading += '#';
      }

      // Join the new header and value.
      var value = heading + ' ' + (replaceLine ? lineValue : selection);

      // Replace entire line.
      if (replaceLine) {
        cm.replaceRange(value, {line: cursor.line, ch: 0}, {line: cursor.line, ch: line.length});

        // Adjust cursor, taking into account any previous heading.
        if (previousHeading.length) {
          cursor.ch += heading.length - previousHeading.length;
        }

        cm.setCursor(cursor.line, cursor.ch);
      }
      // Replace selection.
      else {
        // Add newlines before and after selection.
        cm.replaceSelection('\n\n' + value + '\n\n');
        cm.setCursor(cursor.line + 2, 0);
      }
    };
  };

  // Fix existing H1...H6 toolbarHandlers.
  editormd.toolbarHandlers.h1 = heading(1);
  editormd.toolbarHandlers.h2 = heading(2);
  editormd.toolbarHandlers.h3 = heading(3);
  editormd.toolbarHandlers.h4 = heading(4);
  editormd.toolbarHandlers.h5 = heading(5);
  editormd.toolbarHandlers.h6 = heading(6);

Hey @markcarver , recently I got a time to maintain a fork version of this repository.
The author of this repository may be busy in working for almost two years, would you mind to send a PR to my fork version(https://github.com/hawtim/editor.md/tree/master)?

authors: hawtim markcarver


text:
codemirror.min.js:40 Uncaught TypeError: Cannot read property 'value' of undefined at Function.CodeMirror.fromTextArea

If there is no element with id="editormd" in DOM this error is thrown:

codemirror.min.js:40 Uncaught TypeError: Cannot read property 'value' of undefined at Function.CodeMirror.fromTextArea

<div id="editormd">
    <textarea style="display:none;">### Hello Editor.md !</textarea>
</div>

Could you please add a "check" if there is an element to bind "editor.md" on in DOM? This line https://github.com/pandao/editor.md/blob/master/src/editormd.js#L708 in editormd.js is effected.
Thank you

@linslin , do you solve this problem, I also have this trouble.

@videni yes.
We have added an DOM check on that element before initialize editormd. By using jQuery it would be like this:
    if ($('#editormd').length > 0) {
        var editor = editormd("editormd", {});
    }

@linslin , I see, thanks

authors: linslin videni


text:
BLD: ModuleNotFoundError: No module named 'sphinx' during dev setup

Following https://dev.pandas.io/docs/development/contributing.html#creating-a-python-environment-pip I ran into:
$ python -m pip install -r requirements-dev.txt
Collecting git+https://github.com/pandas-dev/pandas-sphinx-theme.git@master (from -r requirements-dev.txt (line 68))
  Cloning https://github.com/pandas-dev/pandas-sphinx-theme.git (to revision master) to /tmp/pip-req-build-zo7xt1n7
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-zo7xt1n7/setup.py", line 4, in <module>
        from pandas_sphinx_theme import __version__
      File "/tmp/pip-req-build-zo7xt1n7/pandas_sphinx_theme/__init__.py", line 8, in <module>
        import sphinx.builders.html
    ModuleNotFoundError: No module named 'sphinx'

That is, setting up requirements-dev.txt already requires sphinx. One ignorant but simple solution would be to do a python -m pip install sphinx prior to doing python -m pip install -r requirements-dev.txt. WDYT?

Probably yes, or any other way to get the version. I quickly just hardcoded the version for now: https://github.com/pandas-dev/pandas-sphinx-theme/commit/f96a46ad4f7cf34cad298f22bf3e0a8f989b8b91
That should for now solve the problem as well I think

@jgehrcke could you try again?

That project does specify sphinx as an install_requires, but it also does a top-level import of the package in setup.py.

I left a comment about your workaround here:
https://github.com/pandas-dev/pandas-sphinx-theme/commit/f96a46ad4f7cf34cad298f22bf3e0a8f989b8b91#commitcomment-35612726

authors: jgehrcke jorisvandenbossche

repo: pandas-dev/pandas-sphinx-theme