Unable to mirror from registry.redhat.io

Version
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.2.0-alpha.1-59-gc1cd759", GitCommit:"c1cd759", GitTreeState:"clean", BuildDate:"2022-07-27T19:05:42Z", GoVersion:"go1.17.10", Compiler:"gc", Platform:"linux/amd64"}

What happened?
Unable to mirror from registry.redhat.io likely due to the change from V2 Schema 1 to V2 Schema 2.
Error:
error: unable to retrieve source image registry.redhat.io/amq7/amq-broker-rhel8 manifest sha256:ca9ee88c28373525732d18f87331b350dc3babf8c7291c9477435439f7a53f0e: unsupported: V2 schema 1 manifest digests are no longer supported for image pulls. Use the equivalent V2 schema 2 manifest digest instead. For more information see https://access.redhat.com/articles/6138332

What did you expect to happen?
Expected operators configure in image-set to be mirrored locally. With no errors.
How to reproduce it (as minimally and precisely as possible)?
./bin/oc-mirror --config imageset-config.yaml file://~/oc-mirror

apiVersion: mirror.openshift.io/v1alpha2
kind: ImageSetConfiguration
archiveSize: 1
storageConfig:
  local:
    path: /home/cmason/tmp/oc-mirror
mirror:
  operators:
    - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.9
      full: true
      packages:
        - name: amq-broker-rhel8
          channels:
            - name: 7.x
            - name: 7.10.x
        - name: fuse-console
          channels:
            - name: 7.10.x
            - name: 7.11.x
            - name: 7.9.x

References
Knowledgebase entry on change in schema. https://access.redhat.com/articles/6138332

Please inform the affected operator publisher to update their catalog in accordance with the access article that you have referenced here.

In this case isn't the affected operator publisher redhat, in which case, how do we get that going?


How to discover the operating system

Is there a way to discover the operating system with your library?
Thanks

Not currently with this library. We'd need to have a look at the TTL values on the packets replies from each device, I'll have a look to see if this is possible.


Redis vs StrictRedis in get_redis_connection

I use rq==0.5.0, redis==2.10.3.
USE_REDIS_CACHE option is used for RQ connections.
If I add a new job with dependency and depends_on job hasn't finished yet then RQ tries to add the new job to a deferred set. It uses Redis connection where zadd parameters are reversed and I get this error:
redis.exceptions.ResponseError: value is not a valid float

These errors are gone if Redis is replaced with StrictRedis here
(https://github.com/ui/django-rq/blob/master/django_rq/queues.py#L79-L81).
Will this change lead to regression or any bugs?
Can it be applied?

Hmm, I haven't seen this PR https://github.com/ui/django-rq/pull/92.

Strange, differences between Redis and StrictRedis should be taken care of by resolve_connection which gets called when Queue object is instantiated here.
Can you provide a failing test case to illustrate the problem?

@selwin there was a mistake in my first comment. These errors were gone after I switched from django-redis-cache to django-redis. And connection type (in django_rq/queues.py) doesn't change anything.

@selwin here you can find a test project. After runnig ./manage.py test you will get the error.

Close this issue because this is not a bug in django-rq.
See https://github.com/nvie/rq/issues/498.


JSON Schema export

It would be nice to be able to export the whole JSON schema via the Schema server for internal usage.
Some other nice features would be adding a switch to tell the server how deep you want it to go when exporting some of the circular nested fields

I was just looking into this. I think this is documented in the api docs here https://schema.ocsf.io/doc/index.html#/Schema%20Export/SchemaWeb_SchemaController_export_schema. an example would be https://schema.ocsf.io/export/schema?extenions=linux,win. What I'm currently on sure of is how the profiles affect the schema exported. When I apply profiles they seem to get smaller.

Ah that is good to know. Thanks @rmouritzen-splunk!


Setting build matrix to match NEP29 schedule

See here for schedule: https://numpy.org/neps/nep-0029-deprecation_policy.html
Status

[ ] Ready to go

@jchodera if you're okay with adopting Python 3.7, 3.8, and 3.9 as supported versions only to conform with NEP29, ready to merge!

Thanks, @dotsdl!
We should probably standardize this across our projects. I wonder if the best way to do that is to propose adopting this standard for the MolSSI Cookiecutter and then harmonizing our build matrices across projects in the lab to stay in sync with the cookiecutter.
Tagging in @mikemhenry too.

I've used NEP29 in other projects and I like it.
RE:

We should probably standardize this across our projects.

I agree, it will make maintenance much easier.
I'll start a slack thread so we can identify which projects we care about and start to get them more in sync.


Fixing create entry button

Create entry button on home page doesn't work. Fixing with suitable ui-sref state

Can you merge it? ;-)

Sure thing! Thanks.


Can we have a function "invalid_duration"?

In analogy with the function "invalid_date", can we have a function "invalid_duration", checking whether the value is a valid ISO-8601 duration (the "P-format")?
We can probably do this by regular expressions, but I think this can better be implemented at the Python level, for reason of consistency (different people may use different regular expressions), and the regular expressions for "duration" are rather complex.

@JozefAerts would there only be one rule that is using this? In that case it's better to create a regular expression. In case that there are multiple rules that would using this, a function can be created
Can you give an example of an invalid duration because there are a lot of possibilities of correct durations? Negative durations for --DUR is already checked

@nickdedonder This operator would be helpful for several USDM rules too.


odo watch always dismisses debug mode

/kind bug
What versions of software are you using?
Operating System:
MacOS
Output of odo version:
built from source.
odo v1.2.3 (33a73e351)
How did you run odo exactly?
I am using https://github.com/gorkem/odo-devfile/tree/master/python-example to do python debugging
odo create
odo push --debug
## At this point, application is running and I can attach my debugger
odo watch

Modify requirements.py and observe the following output
❯ odo watch
Waiting for something to change in ...../odo-devfile/python-example
File ...../odo-devfile/python-example/requirements.txt changed
Pushing files...

Validation
 ✓  Validating the devfile [51740ns]

Creating Kubernetes resources for component python-example
 ✓  Waiting for component to start [12s]

Applying URL changes
 ✓  URL python-example-8000 successfully deleted
 ✓  URL python-example-8000: http://python-example-8000-XXXXXX.com created

Syncing to component python-example
 ✓  Syncing files to the component [382ms]

Executing devfile commands for component python-example
 ✓  Executing py-build command "pip install --user -r requirements.txt" [17s]
 ✓  Executing py-run command "python /projects/app.py" [2s] <----------------------------
Waiting for something to change in ..../odo-devfile/python-example

Notice that on the marked line odo is reverting the debug command to run command as a result of a change when I am doing a watch. I expect odo to preserve my last choice which is debug in this case.

I don’t think we have a odo watch —debug command
We should consider adding that as a feature

Watch seems to have a very simplistic implementation, it needs to become smarter.

It needs to become aware of the conditions that can make ComponentAdapter.Push to redeploy. Like modification of devfile and the debug flag so that it does a full resync.
In case of flags like --debug and an existing earlier push it should restore them when calling the ComponentAdapter. It is unexpected for me for watch command to modify my deployment especially since I had it working with the pushcommand earlier. watch should recognize an existing deployment when exists and start watching for file changes without doing any extra steps.

/priority high

@kadel do you think we need this for odo v2?

I think the odo watch command can check for a running pod and use the same command used while push occurred. But I also want to consider a case where a user might want to run the debug command while doing watch? or can that be handled by the more general --command=<command-name> flag?

and use the same command used while push occurred

I am not sure if we can get the info without saving it somewhere. This also might confuse users.

But I also want to consider a case where a user might want to run the debug command while doing watch?

For debugging to work with watch, we also need port forwarding to be on.

We can ask the user to start port forwarding when watch was triggered with --debug flag
OR
We can start it (if not already running) and keep it running in the background during watch.

I think the odo watch command can check for a running pod

Yes we can check if the pod is currently running or not. If not running, we trigger normal push.
If the pod is running, we can check the list of changed files.

If the list includes the devfile or the env.yaml, we trigger normal push. This is take care of URLs, Env Vars etc added during the watch session.
Else we trigger a different version of push. This version will simply push the changed files, build and run/debug.

and use the same command used while push occurred

I am not sure if we can get the info without saving it somewhere. This also might confuse users.

We can save this information to env.yaml.
When odo push --debug is executed runMode: debug will be added to
env.yaml
When odo push is exectued runMode: run will be set in env.yaml
odo watch than can check the information from env.yaml to determine the correct mode.
This should be OK as odo push is the only way to switch between normal run a debug.

We can ask the user to start port forwarding when watch was triggered with --debug flag

I would go with this option.

* We can ask the user to start port forwarding when watch was triggered with `--debug` flag

So far I was not fan of --debug for watch but watch command is a blocking command and users always end up starting a new shell to do the debug. If --debug can initiate the port forwarding, the flag makes more sense.

If --debug can initiate the port forwarding, the flag makes more sense.

But then we will have to add a flag or find a way to get the user desired local-port.

When odo push is exectued runMode: run will be set in env.yaml

Let's just start with detecting the runMode after starting watch. Till we figure out the approach for local-port, we can simply show a info message, asking the user to start port-forwarding in a separate terminal. We can later start a port forwarding during watch too.

When odo push --debug is executed runMode: debug will be added to
env.yaml

RunMode will be saved in the env.yaml only after a successful push.


kandra: Fix cron specification, to run once, not every minute from 7-8.

Good catch, merged, thanks @alexmv!


test: make portable to LLP64 targets

Int is not usable for LLP64 targets, use an explicit Int32 when
bridging an ObjC enumeration.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please test


Middleware parameter

How can I make vue-router middleware to accept a parameter? For example, just like how we add parameter to laravel middleware. e.g:
export default {
  middleware: 'role:client|admin',

  // ...
}

Hi @cretueusebiu , in your callMiddleware function, how can i add additional parameters for route middlewares? Here's a part of your code
if (typeof middleware === 'function') {
    middleware(to, from, _next)
  } else if (routeMiddleware[middleware]) {
    routeMiddleware[middleware](to, from, _next)
  } else {
    throw Error(`Undefined middleware [${middleware}]`)
  }

Thanks for creating this repository. It's awesome!
I needed the above middleware parameter. Here's my code if anyone needs it.
router/index.js
function callMiddleware (middlewares, to, from, next) {
	const stack = middlewares.reverse()

	const _next = (...args) => {
		// Stop if "_next" was called with an argument or the stack is empty.
		if (args.length > 0 || stack.length === 0) {
			if (args.length > 0) {
				router.app.$loading.finish()
			}

			return next(...args)
		}

		const middleware = stack.pop().split(':')
		const middleware_name = middleware.shift()
		const middleware_params = middleware.length ? middleware.shift().split('|') : null

		if (typeof middleware_name === 'function') {
			middleware_name(to, from, _next, middleware_params)
		} else if (routeMiddleware[middleware_name]) {
			routeMiddleware[middleware_name](to, from, _next, middleware_params)
		} else {
			throw Error(`Undefined middleware [${middleware}]`)
		}
	}

	_next()
}

middleware/role.js (example)
import store from '~/store'

export default (to, from, next, roles) => {
	if(roles && Array.isArray(roles)){
		for (var i = 0; i < roles.length; i++){
			if (store.getters['auth/hasRole'](roles[i])) {
				next()
			}
		}
	}

	next('/404')
}

Thanks! I'll make some changes and add it in the next release.

How to set
export default {
  middleware: ['auth', 'admin']

To use 2 Middleware

I noticed this hadn't been incorporated into the project yet, so I raised the PR above to help ease the process.

Added https://github.com/cretueusebiu/laravel-vue-spa/commit/07baf5b09ceb1a851deb670e2b3c3551a96118c9


Can't install with either NPX or Yarn

I followed installation guide with both NPX & Yarn, however both fail.
Yarn (3.3.1) installation using yarn create r3f-app next my-app fails to create project and returns this error:
Error: create-r3f-app tried to access semver, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: semver
Required by: create-r3f-app@npm:1.5.8 (via /Users/viktor.jensen-torp/.yarn/berry/cache/create-r3f-app-npm-1.5.8-293b86f139-8.zip/node_modules/create-r3f-app/lib/utils/)

Require stack:
- /Users/viktor.jensen-torp/.yarn/berry/cache/create-r3f-app-npm-1.5.8-293b86f139-8.zip/node_modules/create-r3f-app/lib/utils/check-for-update.js
- /Users/viktor.jensen-torp/.yarn/berry/cache/create-r3f-app-npm-1.5.8-293b86f139-8.zip/node_modules/create-r3f-app/lib/index.js
- /Users/viktor.jensen-torp/.yarn/berry/cache/create-r3f-app-npm-1.5.8-293b86f139-8.zip/node_modules/create-r3f-app/bin/create-r3f-app
    at require$$0.Module._resolveFilename (/private/var/folders/0r/m9b8svds5vz681mdr_9jc_4c0000gn/T/xfs-f1e65f39/dlx-44598/.pnp.cjs:12458:13)
    at require$$0.Module._load (/private/var/folders/0r/m9b8svds5vz681mdr_9jc_4c0000gn/T/xfs-f1e65f39/dlx-44598/.pnp.cjs:12308:42)
    at Module.require (node:internal/modules/cjs/loader:1021:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/Users/viktor.jensen-torp/.yarn/berry/cache/create-r3f-app-npm-1.5.8-293b86f139-8.zip/node_modules/create-r3f-app/lib/utils/check-for-update.js:4:16)
    at Module._compile (node:internal/modules/cjs/loader:1119:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at require$$0.Module._extensions..js (/private/var/folders/0r/m9b8svds5vz681mdr_9jc_4c0000gn/T/xfs-f1e65f39/dlx-44598/.pnp.cjs:12502:33)
    at Module.load (node:internal/modules/cjs/loader:997:32)
    at require$$0.Module._load (/private/var/folders/0r/m9b8svds5vz681mdr_9jc_4c0000gn/T/xfs-f1e65f39/dlx-44598/.pnp.cjs:12339:14)

Node.js v18.9.0

NPX (9.2.0) installation using npx create-r3f-app next my-app also fails to create project, and returns the text:
  —— New update available, run the following yarn create r3f-app <next> my-app <tailwind|styled>? -ts

And then quits without errors

Am able to install with NPX using older node version (16.17.0), however getting this issue #89 when trying to npm install


Set up routes for match-making microservice

Set up routes using REST Api.
** Post method is used in finding a match.
** Delete method is used in canceling a match.

Done with match-making/routes.js.


Show global registry as an option in adding registry credential page

If global registry enabled, users don't have to input the registry address manually in adding registry credential page.

Can we make this more generic to be able to somehow indicate that if an app is a registry, we can have that show up as a registry?

Created another issue for generic registry app  https://github.com/rancher/rancher/issues/20346

Version: Master (v2.3) (6/7/19)
When Global Registry is enabled you'll now see an option to use the local registry (it shows your hostname) as a radio button upon when you go to the "Registries" page at the project level.
The core functionality is working as expected (has been validated via UI Global Registry test plan).
Testing in this area will continue as I work to finalize executing test cases in the test plan; but basic functionality is validated and working as expected.


Fixing player name on display

Changes:
1- 2 more variables geting elements by ID for player name source.
2- Changing logic on player name select in trocaPlayer()

Happy new year and continue focusing in your objectives!!!


Many_till combinator seems to end up in an endless loop

I wrote a naivish S-expression parser. I had a problem with the many_till combinator.
Here's the code: https://gist.github.com/anonymous/8a6fe19ab4e418eefad383455ae87a33 -- notice lines 56-60 where I would have wanted instead to do
many_till(parse_svalue, eof)

, but that just ended up in an endless loop with the simple "(a)" input. It's as if many_till did not notice that none of the three <|> -separated parsers matched. Is this a bug in chomp or am I misusing / missing something?

I suspect it is take_while in parse_value which is the culprit. take_while can match zero tokens which means that if nothing alphanumeric is encountered in your case it will yield an empty string as match. This causes many_till (and other combinators) to loop endlessly since they will keep matching 0 tokens and the input will never be empty. Try with a take_while1 instead which will require at lest one matching token.

I have improved and fixed the parser for S-expressions above: https://gist.github.com/m4rw3r/2f850c5f6895d1c5562adf84a94e48f2  I made the following changes:

Removed parse_empty_inner_list since it was just a specializaion
Replaced string with token, the latter is more efficient since no string-slice needs to be iterated
Changed parse_svalue to take care of leading whitespace
Use take_while1 to make sure parse_value actually reads at least one character into value. Previously take_while was used which can consume 0 tokens if none match, resulting in loops.
parse_svalue attempts parse_value first since it is a terminating token, makes it easier to make sure loops are not endless
Use the many combinator since parse_sexpr is nested, using many_till(..., eof) would not be nestable since "((foo))" would not parse since an <EOF> would be expected before the last ). To make use of the parse_sexpr parser and make sure it parses the whole slice, chain them using the then (<<) operator: parse!{i; parse_sexpr << eof}


In quickstart, app is not a valid project name (collision)

https://github.com/LoopPerfect/buckaroo/pull/349


Percentile estimator

What type of PR is this?
Feature
What this PR does / why we need it:
Add Percentile estimator
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/LGTM


How to map child subtask of JIRA in ADO

Hello,
I have task with Sub-Task in JIRA, I want same relationship to be continued in ADO. Attached is the image for the same.
Added below configuration in config-basic.json under type-map
{
"source": "Sub-task",
"target": "Task"
}
Please suggest, What needs to be added in link-map to make this work as currently sub-task is created as task in ADO but no relationship is created.
"link-map": {
"link": [
{
"source": "Epic",
"target": "System.LinkTypes.Hierarchy-Reverse"
},
{
"source": "Parent",
"target": "System.LinkTypes.Hierarchy-Reverse"
},
{
"source": "Relates",
"target": "System.LinkTypes.Related"
},
{
"source": "Duplicate",
"target": "System.LinkTypes.Duplicate-Forward"
}
]
},

You possibly need to add a mapping for the Child link type, but not 100% sure here. Since you have already mapped the parent link type, this scenario should already be taken care of.
{
"source": "Child",
"target": "System.LinkTypes.Hierarchy-Forward"
},

Potentially related to https://github.com/solidify/jira-azuredevops-migrator/issues/495

Thanks, I already added this but outcome JSON is not the correct one, I mean generating that relationship in ADO.
I did some changes after generating outcome JSON and found some manual fix, will test it with more cases and share updated JSON with you, so that you can fix the code and that manual work is not needed


Updating to 0.24.2 causes error "there is no argument named faucet_port"

When I update to the latest version 0.24.2 I'm getting the following error:
avm install 0.24.2
   Compiling anchor-cli v0.24.2 (/Users/eikebartels/.cargo/git/checkouts/anchor-bf03d42499b9267c/0b4c7b0/cli)
error: there is no argument named `rpc_port`
    --> cli/src/lib.rs:2211:40
     |
2211 |             "Your configured rpc port: {rpc_port} is already in use"
     |                                        ^^^^^^^^^^

error: there is no argument named `faucet_port`
    --> cli/src/lib.rs:2221:43
     |
2221 |             "Your configured faucet port: {faucet_port} is already in use"
     |                                           ^^^^^^^^^^^^^

error: could not compile `anchor-cli` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `anchor-cli v0.24.2 (https://github.com/project-serum/anchor?tag=v0.24.2#0b4c7b0c)`, intermediate artifacts can be found at `/var/folders/q6/jyzjb9cn7hlb9j8dv1z08wdr0000gn/T/cargo-installfd99si`

Caused by:
  build failed
Error: Failed to install 0.24.2, is it a valid version?

This is a new format string syntax in Rust >= 1.58.0 so updating Rust will fix it for you.

Thanks @tomlinton upgrading Rust solved the issue 💫


Investigate Unused Schemas

There are a few schemas that are unused, but still generated. This is likely due to an issue in the code generator. More investigation is necessary.
Examples:
GitHub.Alert.AutoDismissedAt
GitHub.SecurityAdvisoryEcosystems

Resolved in the generator.


Show time that track starts

Would be useful to know at what time a track starts, so i can quickly scrub to that point

Hey @WickyNilliams. Thanks for the request.
It's been requested before in #6 and I said I probably wouldn't be looking into adding that feature as I just wanted to restore the previous behaviour.
I'll leave this issue open for now to see if it's more widely requested.
If it is then I'll look into implementing it.

+1 for show time track starts

There's another request for this by Zygintas Bernotavičius in the Chrome webstore.
Maybe I should look at this. I'll need to check the data is there first, but I can't see this being a problem.

@adlawson When I looked at this, the time information was missing in the data returned from mixcloud.

The plugin was really helphul for me. I have made simple excel for my self witch generates cue list pasting track list. Than burn audio CD using cue with imgburn and enjoy my self listening favourite mixes with ability to jump throug tracks without anoying looong forwarding/rewinding. So track position would save lots of time analysing mix for proper track position and manual time entry in cue.

Those fortunate car owners with digital audio format (mp3, flac, etc) players may use cuesplitter to automaticaly cut mixes into separate tracks and enjoy track skipping.

so, not possible?

No I think it is possible. I've already started looking at it but I have other obligations. If you like you're welcome to submit changes, otherwise it'll have to wait until I have some free time to finish it up.
I'll post here when I have an ETA

Can you give me a nudge? Link to tutorials, how to build/test your plugin? It is completely unknown teritory for me :)

While inspecting code I see that there are track starting possitions in secs:
However I do not know how to put it in use :( I have been able set up pc to build your extension, but I understanding js is beyond my abilities :)

there are track start times in source

there are track start times in source <div ng-init="tracklistShown=false;audioLength=7285;sectionStartTimes=[0, 516, 825, 1281, 1653, 1971, 2283, 2553, 2907, 3264, 3612, 3990, 4530, 4923, 5244, 5541, 5895, 6213, 6522, 6819]">

I have added some stuff for my self, if you find anything usefull I'll share the code: https://chrome.google.com/webstore/detail/mixcloud-tracklist-downlo/lglkomjmpemepahcicfhkpbcmfncpefi/related


Cannot access com.giorgiofellipe.datecsprinter.Printer.ConnectionListener

Heelo guys:
The problems is when trying to connect the printer.
This is my code section:
window.DatecsPrinter.connect(this.printerAddress, onSuccess => {
  resolve(`connect.onSuccess: ${onSuccess}`);

    window.DatecsPrinter.printText(this.data, 'ISO-8859-1', succe => {
      resolve(`printText.succe: ${succe}`);
    }, err => {
      reject(`Err printText: ${err}`);
    });

}, onError => {
  reject(`Err connect: ${onError}`);
});

The error message is: "Cannot access com.giorgiofellipe.datecsprinter.Printer.ConnectionListener"
The error is on DatecsSDKWrapper, in the line 370:
**mPrinter.setConnectionListener(new Printer.ConnectionListener() {**
          @Override
          public void onDisconnect() {
              sendStatusUpdate(false);
          }
      });

I'm using:
Ionic 6.17.1 with capacitor
The plugin is "cordova-plugin-datecs-printer": "^0.10.0",
Android Studio 2020.3.1 Patch 3
Gradle: 7.0.3
Android SDK (API Level): 30,29,28, 19
NOTE:  the printer is a Bixolon SPP-R210
Any idea or suggestion to follow ??

Hi
Are u solve it


Allow clippy::ref_option_ref

The following code:
#![warn(clippy::pedantic)]

pin_project_lite::pin_project! {
    struct X<'a> {
        inner: Option<&'a mut i32>,
    }
}

Generates a warning when run using Clippy:
warning: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
 --> src/lib.rs:3:1
  |
3 | / pin_project_lite::pin_project! {
4 | |     struct X<'a> {
5 | |         inner: Option<&'a mut i32>,
6 | |     }
7 | | }
  | |_^
  |
note: the lint level is defined here
 --> src/lib.rs:1:9
  |
1 | #![warn(clippy::pedantic)]
  |         ^^^^^^^^^^^^^^^^
  = note: `#[warn(clippy::ref_option_ref)]` implied by `#[warn(clippy::pedantic)]`
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
  = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

It would be very appreciated if this could be avoided.

Thanks for the report! Published 0.2.2 which fixes this issue.

Thanks for the report! Published 0.2.2 which fixes this issue.


How to install Audiowaveform

Issue Type

Bug Report / Support Request

Your Environment
Vagrant 2.2.9

Your OS

Windows (version 10)

Full console output
Audiowaveform is not currently installed. Audiowaveform is used to pre-render waveform files for the Audiofield Wavesurfer module. See the Audiowaveform installation instructions: https://github.com/bbc/audiowaveform
Summary
I have the audiofield module and need to enable the Wavesurfer library. How does one install Audiowaveform on DrupalVM? Does the config.yml file need to be updated? If so, how?
Thank you.

@jsidigital - If there's an apt package for it, you could add it to extra_packages: https://github.com/geerlingguy/drupal-vm/blob/master/default.config.yml#L234
Otherwise if it requires source compilation, or something like that, you could install it via a post provision hook: http://docs.drupalvm.com/en/latest/extending/scripts/

@jsidigital - If there's an apt package for it, you could add it to extra_packages: https://github.com/geerlingguy/drupal-vm/blob/master/default.config.yml#L234
Otherwise if it requires source compilation, or something like that, you could install it via a post provision hook: http://docs.drupalvm.com/en/latest/extending/scripts/


Add GSoC contributor's guide

This PR separates out part of the original README to make a new GSOC Contributor's Guide page.
We'll put all rules and getting started materials in this page.
The README still needs quite a bit of work, since the "What are ocean sonar systems? " seems out of place.

Yay! Thanks @lsetiawan for fixing the millions of typos I made, and @emiliom for adding the link and catching another batch of typos!
I'll merge this now so we can tweak all of these further.


init.js:327 [esri.core.Accessor] Accessor#set Assigning an instance of 'FlareClusterLayer' which is not a subclass of 'esri.Graphic'

What is the reason for this?

Hi @YangZhenFang, sorry mate, not really enough detail in your issue to comment on fully.
Is the error occurring in your own version of the layer?
From the sounds of it you're trying to assign an instance of FlareClusterLayer to a graphic object, which obviously won't work as it's a layer not a graphic.
Are you using v3.x or v4.x?
Do you have an example page where this occurring?

Thank you reply to me,@nickcam， i was the first to use arcgis, the version is 4.5, there are many do not understand,

Hi, sorry still can't really see what the issue is. Do you have a live example somewhere (jsfiddle, plunker) where it can be demonstrated?
As your coordinate fields are named Lat and Lng you'll need to set these properties in the constructor options when instantiating a FlareClusterLayer.
var fcl = new FlareClusterLayer({
   xPropertyName: "Lng",
   yPropertyName: "Lat"
});

sorry to bother you
http://jsfiddle.net/Hide_Ekko/ma1r1a8g/
in 672-773

now no error,but not show the mapView

Hi mate, I can't see anything wrong in the jsfiddle...but it doesn't run. Do you have a sample that runs that is displaying the error?


Drop a newline using typehead

I see the different in .twitter-typeahead style in the demo vs latest version.
using display:inline-block with drop a newline like image below.
Tested on both chrome , firefox on Mac

Changed to use display:inline kills this error but the suggestion display on the wrong position for the first tag (the second one is ok!)

I meet the same problem,

the  element  when changing display:inline-block  --> inline, the problem disappeared.


Should Owned Mosaic Table show Symbol mosaic?

The logged user is not the owner of Symbol, but still, the wallet is showing Symbols and mosaics with balances owned by other accounts.

I think we should remove the non-owned mosaics. For balances, you have the dashboard.  If the wallet is showing not owned mosaic, I reckon we should change the title then.
This issue is related to https://github.com/nemfoundation/symbol-desktop-wallet/issues/259 , some mosaics may not be shown.
My PR only shows the custom mosaics the logged account created.
https://github.com/nemfoundation/symbol-desktop-wallet/pull/177
I can change it if you want to be different.

opened a thread in Slack
https://nem2.slack.com/archives/CME5PV744/p1587251927025600

https://drive.google.com/file/d/1M3FfLeFmUi8UvxkXWpw6EoUuFyoHB4sa/preview

as discussed during sprint call:

The owned mosaics list should be renamed Mosaics list

After 177 pr, master branch shows owned mosaic (including when the balance is 0) and mosaics from other users (when the balance is > 0). I think just the title rename will do the trick

This is fixed in master already


Use vertex index instead of duplicating vertex on each face

This change allows geometry.computeVertexNormals() to average face normals for each vector, rendering the SoftBody smoothly.
From this:

To this:

Thanks!


How i can use ".pbf" link from Open Infrastructure Map

I like to use Vector Tiles format from  Open Infrastructure Map, like "https://openinframap.org/tiles/{z}/{x}/{y}.pbf".
But i have no ideia how to do this on node red function.
https://openinframap.org/about.html

Right now you can't - Looking at their website they seem to provide data in TileJson format. Worldmap doesn't handle that yet - happy to look at a PR if you feel up to it, as there is a plugin for leaflet that could be useful - https://github.com/kartena/leaflet-tilejson.
Or I may get some time of the holiday season to have a look.

I'm not very knowledgeable, would be grateful if you could help me, I'm in no hurry.
Anyway I will research on how to do it.

Actually this may be a more relevant library - https://gitlab.com/jkuebart/Leaflet.VectorTileLayer/ as it may take the pbf format directly

How i can use in node-red-contrib-web-worldmap ? in function node?

You can't directly - it will have to be built into the node.


Run cargo fmt on repo

I think we should be using cargo fmt to standardize the way the source code looks with the rest of the Rust ecosystem. It will help others contribute easily since many people have auto format on for Rust code anyways, and manually formatting code seems kind of a waste of time to me.
The below code is generated just by running cargo fmt on the repo

Hey looks like you posted this right when I was commenting on your other PR.
Unfortunately I really think rustfmt makes a lot of the code in extrasafe harder to read than it could otherwise, so I'm not using it in this repo.
If you'd like I can point out places where this is happening - and I just saw your comment in the other PR. Thanks again.

Hmm, this is true, but I wonder if there is a way to perhaps carve out exceptions for cargo fmt to not touch certain areas of the code that would otherwise be worse off after auto formatting

I think it would be worth exploring areas of the code that are worse off and tag them using rustfmt::skip

I have other things I want to do right now - switching to seccompiler and adding landlock support - so it really isn't on the top of my priorities because it doesn't bother me that there are some places that could be formatted slightly better.
I don't think it's worth adding #[rustfmt::skip] all over the place over some newlines - that also makes it harder to read.
The point of code formatters is (or should be) readability. If the code formatter makes things harder to read it's not doing a good job.

Understandable, I'll close this PR then. Thanks a lot!


[ASAN LeakSanitizer: detected memory leaks] when testing test_options.vim

Steps to reproduce

in src/Makefile, disable the the GUI and window-x CONF_OPT_GUI = --disable-gui and CONF_OPT_X = --without-x
then specify the ASAN for the compilation:

CFLAGS = -g3 -fsanitize=address -fno-common -fno-omit-frame-pointer -fPIC
LDFLAGS = -g3 -fsanitize=address -fno-common -fno-omit-frame-pointer -fPIC

compile with make reconfig
after compilation, go to src/testdir and trigger the ASAN LeakSanitizer by testing for test_options.vim:

# at src/testdir
$ VIMRUNTIME=../../runtime  ../vim -f  -u unix.vim -U NONE --noplugin --not-a-term -S runtest.vim test_options.vim --cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C LANG=C LANGUAGE=C awk '/Executing Test_/{match($0, "Executing Test_[^\\)]*\\)"); print substr($0, RSTART, RLENGTH) "\r"; fflush()}'

Expected behaviour
Expected no memory leak, instead get ASAN memory leak error:
# for test_options.vim
=================================================================
==138337==ERROR: LeakSanitizer: detected memory leaks

Version of Vim
8.2.4407
Environment
OS: Linux Mint 20.3 (Una)
Terminal: xfce4-terminal 0.8.10
$TERM: xterm-256color
Shell: /bin/bash
Logs and stack traces
=================================================================
==138408==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 560 byte(s) in 2 object(s) allocated from:
    #0 0x4993e2 in calloc (src/vim+0x4993e2)
    #1 0x7f5d582a9db7 in _nc_setupterm (/lib/x86_64-linux-gnu/libtinfo.so.6+0x13db7)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x485614 in strdup (src/vim+0x485614)
    #1 0x7f5d582b14f7 in _nc_trim_sgr0 (/lib/x86_64-linux-gnu/libtinfo.so.6+0x1b4f7)

Indirect leak of 7988 byte(s) in 6 object(s) allocated from:
    #0 0x499589 in realloc (src/vim+0x499589)
    #1 0x7f5d582a72c7 in _nc_doalloc (/lib/x86_64-linux-gnu/libtinfo.so.6+0x112c7)

Indirect leak of 7584 byte(s) in 2 object(s) allocated from:
    #0 0x49926d in malloc (src/vim+0x49926d)
    #1 0x7f5d582a51af  (/lib/x86_64-linux-gnu/libtinfo.so.6+0xf1af)

Indirect leak of 3042 byte(s) in 2 object(s) allocated from:
    #0 0x49926d in malloc (src/vim+0x49926d)
    #1 0x7f5d582afe82 in _nc_read_termtype (/lib/x86_64-linux-gnu/libtinfo.so.6+0x19e82)

Indirect leak of 1510 byte(s) in 2 object(s) allocated from:
    #0 0x49926d in malloc (src/vim+0x49926d)
    #1 0x7f5d582b080b in _nc_read_termtype (/lib/x86_64-linux-gnu/libtinfo.so.6+0x1a80b)

Indirect leak of 992 byte(s) in 2 object(s) allocated from:
    #0 0x4993e2 in calloc (src/vim+0x4993e2)
    #1 0x7f5d582b078b in _nc_read_termtype (/lib/x86_64-linux-gnu/libtinfo.so.6+0x1a78b)

Indirect leak of 992 byte(s) in 2 object(s) allocated from:
    #0 0x49926d in malloc (src/vim+0x49926d)
    #1 0x7f5d582a52d9  (/lib/x86_64-linux-gnu/libtinfo.so.6+0xf2d9)

Indirect leak of 156 byte(s) in 2 object(s) allocated from:
    #0 0x49926d in malloc (src/vim+0x49926d)
    #1 0x7f5d582a51ff  (/lib/x86_64-linux-gnu/libtinfo.so.6+0xf1ff)

Indirect leak of 92 byte(s) in 2 object(s) allocated from:
    #0 0x49926d in malloc (src/vim+0x49926d)
    #1 0x7f5d582a518e  (/lib/x86_64-linux-gnu/libtinfo.so.6+0xf18e)

Indirect leak of 21 byte(s) in 2 object(s) allocated from:
    #0 0x485614 in strdup (src/vim+0x485614)
    #1 0x7f5d582a9e4f in _nc_setupterm (/lib/x86_64-linux-gnu/libtinfo.so.6+0x13e4f)

SUMMARY: AddressSanitizer: 22945 byte(s) leaked in 25 allocation(s).

Those leaks do come not from Vim, but some other libraries. In the CI, libtinfo is ignored when detecting leaks

i see. Thank you for the information!


Cloudflare changes

I found your project from crates.io. Cloudflare changed a lot over the last 10 months. So I modified the code to reflect those changes. But it is still not working. Will you be willing to look into it? My changes are complementary to your codebase. So it is basically the same as before.

Thank you, but I'm little busy these day. Could update the parse-thing from https://github.com/Anorov/cloudflare-scrape?

No problem. My modifications are based on my observations on Chrome DevTools. I didn't go through cloudflare-scrape's code before. On a quick glance, the parsing part seems fine. Maybe I missed some headers. I will look into it. Thanks.

I have fixed it. You can publish the current commit to crates.io after testing it.
Now that it is working, is it okay if I refactor the codebase?

Looks good to me. Thank you.


Can not navigate without {type:"reset"} - App is freezing

Version
version: 4.0.6
"@react-native-community/async-storage": "^1.4.2",
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-elements": "^1.1.0",
"react-native-facebook-account-kit": "^1.1.0",
"react-native-fbsdk": "^0.8.0",
"react-native-iap": "^2.5.5",
"react-native-router-flux": "^4.0.6",
"react-native-vector-icons": "^6.5.0"

Expected behaviour
When I use Actions.pageB() in pageA, it should navigate without freezing.
Actual behaviour
Currently I have two pages. Initial page is pageA, second page is pageB.
When I try to navigate from pageA to pageB with Actions.pageB() in <Button onPress={() => Actions.pageB()} title="Go to page B" />
It should go to pageB scene. But when i press to button app is freezing.
pageB is empty component and only it rendering
<View><Text>This is page B</Text></View>
.
When I console.log("page b loaded"), it returns page b loaded. So in background Scene is loading but, app does not show rendered page when i press button.
--
Currently I solve this issue with Actions.pageB({type:"reset"}).
But If use type:"reset", Router stack cleaning. So I can not use navbar back buttons.
What is the problem here?
Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

Create a button and two page. Go to pageB from pageA with Actions.pageB()
When debugged, pageB is loaded.
App freezing

My router is;
<Router>
            <Scene key="root">
                <Scene key="pageA" component={pageA} title="Page A" initial />
                <Scene key="pageB" component={pageB} title="Page B" />
            </Scene>
</Router>

ActionConst.RESET will block back button, it only use splash screen. check again import component.

I solved problem. See this page: https://stackoverflow.com/questions/56752564/app-freezes-on-ios-when-navigate-to-another-screen-react-navigation


Enable Logging of request size

Solves #3
Besides implementing the request-size feature, I've also installed the orchestra/testbench package as a dev dependency in order to allow for unit testing the features.

If possible, please label the PR with hacktoberfest-accepted so that it counts towards hacktoberfest.


Update by multi-thread

Hi all,
I came across a weird issue while updating a table by multi threads.
Each thread fetches data from web service and create/update it into the table - callBatchTasks is used.
if 2 or 3 threads update rows (around 50), no problem. if 14 threads update total 200 rows simultaneously, sometimes, in a random way, some rows are deleted. I found there is no delete api explicitly.
db before
1 a
2 b
3 c
4 d
5 f
db after
1 a
2 b
5 f
the createOrUpdate api returns successful for all 5 rows but where are 2 rows?
I'm not sure if I miss something or this is a bug? Thanks in advance.
Thanks,
Daniel

Sorry for the delay.  Can you write a junit test that reproduces this?  We are getting ready to [finally] push 4.49 and I'd like to make sure this isn't an issue.

Ok, I understand this now and it makes sense.  Multiple threads cannot use the callBatchTasks(...) at the same time because there is a single database connection and the transactions are getting screwed up.  I just added the following to the javadocs:
NOTE: Depending on your underlying database implementation and whether or not you are working with a single database connection, you may need to synchronize around calls to this method otherwise the database transactions that are used may clash when called simultaneously from multiple threads. You may also need to synchronize other calls to transactions and dao.setAutoCommit(...).

Related to https://github.com/j256/ormlite-android/issues/34


The comments in building-a-new-site-wordpress-and-gatsby.md don't work in JSX

Hello 👋  really cool project you have going here.
There were some problems with the comments in the JSX sections in:

docs/tutorials/building-a-new-site-wordpress-and-gatsby.md

I went ahead and made a PR with the fixes for it. #125
Basically, the comments were regular JS comments // comment   and not JSX comments {/* comment */}.
But they occurred while inside of a render.
Don't worry we all do it every once in a while 😅

Merged the PR, thanks again! Really appreciate your help


Updated docs with more clarity on setup instructions

Detailing changes:

Added Gitter Badge
Contextualized Readme into partitioning into small groups headed by Headings. Earlier the README felt like a long page, right now it feels like small snippets. We humans have a short patience loop that get's fed as soon as we see a new snippets.
Build Instructions are more simplified:

Earlier user didn't knew beforehand that he/she had 2 choices. We tend to follow the first instruction we come across.
Added Docker sample commands.

Added some failsafe instructions if in case dev astray from the conventional path.

To view it visually: https://github.com/prastut/swellrt/blob/install-docs-fix/README.md

LGTM, I wonder if the "First steps" section is too detailed to be in that place. I might be better to move it to wiki? What do you think?
Thanks for this PR

I agree with you. 2 things that can be moved into separate wiki are the First Steps and Contributing.
The quickstart is good for Logging and creating and getting objects should be there. Rest can be moved to a new.md file.
I felt the contributing section can be moved to a Contributing.md file since I feel it's too detailed to be on the main readme. In my opinion the first readme is only for setting context for the developer.
Also I had one for feedback + doubt.
If the user is installing the docker versions then these guys are silently running in the background. Running the commands mentioned like:
<script>

  swellrt.onReady( (service) => {
    window.service = service;
   });

</script>

&
service.login({
      id : swellrt.Service.ANONYMOUS_USER_ID,
      password : ""
    })
    .then(profile => {  ...  });

Would provide no feedback to the user since he/she doesn't know how to see logs if they are not familiar with docker containers or are not using Mac and have Kinematic to show these logs. The user is confused whether these commands worked or not. So a simple console.log commands would show that these guys are working.
Also I am getting a bug, service is not getting defined for me.

First steps section -> It is already put in the GH Wiki, so we can just replace it from README with a link.
Contributing -> +1 to move to other .md file. Also I would keep a copy in GH Wiki.
This is a list of steps I guess we must clarify to the users when they are using Docker:
Check if installation/server run was ok:

If user runs magical script that will bring up all docker stuff -> which message to show to confirm all is ok?
If user follows manual docker steps, which commands and outputs are needed to confirm all is ok?

Now, docs suggest to visit http://localhost:9898 to check if server is running ok.
If you have doubts with code examples you can check out examples in here
Can you provide me more info about that possible bug?

Ouch! sorry, I forgot we already have a docker compose set up that ease the docker's installation very much:
https://github.com/P2Pvalue/swellrt/tree/master/scripts/docker-compose
I guess the script can be part of "installer" that users can download as zip, containing the files in that folder (docker-compose) plus the script. This last one, can check if docker and docker-compose are installed...
What do you think?

@pablojan I think the docker-compose simplifies most of everything that we intended for simplification. The body is done, I need to work onto attaching the head and the legs to formalize the script.
The format I propose is:

First it should check whether the user has installed docker and docker-compose. If they have, proceed further.
If they have docker, then we can check if the mongo image is already downloaded by the user to reduce redundancy. I think this step would be covered in docker.yml as well.

The script should and only be confined to an easy install script, because if we dive into configuration (a lot of if's and else) then it goes out of the scope of what we started. For more technical people, they can refer to the docker installation steps.

If you have doubts with code examples you can check out examples in here
Can you provide me more info about that possible bug?

Aah, I was following the docs as a noob user just to test the API out. The example told me that service and mostly everything should go inside SwellRT's handler which should be obvious to any experienced developers, but not to people starting out. Let the basics of SwellRT be crystal clear (which is mostly spoonfeeding the developer until he/she knows the environment). People don't like getting stuck right in the start.

First steps section -> It is already put in the GH Wiki, so we can just replace it from README with a link.
Contributing -> +1 to move to other .md file. Also I would keep a copy in GH Wiki.

Onto this.

I guess we should open a new PR for the installer script. Your proposal looks good to me. Regarding download of docker compose script and folder, we could put a file with a list of paths to download or we can just put each files's URL in the script. -> please, go ahead
To move contributions sections to new file -> go ahead
Attaching the fiirst steps example with inline documentation -> go ahead

https://github.com/prastut/swellrt/blob/install-docs-fix/README.md
https://github.com/prastut/swellrt/blob/install-docs-fix/CONTRIBUTING.MD

@pablojan LGTM as soon as we can. Will squash commits once I get the green flag ;)


New COLMAP dataset does not work

I have the following problem when running a new created dataset using colmap.
When using gsplat with this new dataset it does not reconstruct the scene, it just do random things(see attached images),
but when using gsplat with an old dataset generated from the same images it works fine.
This are the images
I have seen this message when running the training, that the scales differ to much:
NEW dataset
[Parser] 906 images, taken by 1 cameras.
Warning: COLMAP Camera is not PINHOLE. Images have distortion.
Scene scale:<PHONE_NUMBER>204004
Model initialized. Number of GS: 377767

OLD dataset
[Parser] 906 images, taken by 1 cameras.
Warning: COLMAP Camera is not PINHOLE. Images have distortion.
Scene scale: 2.092517541618542
Model initialized. Number of GS: 376437

I can provide any details necessary, i tried many things but not any seems to give me a clue about what is happening, the cameras.txt of this new dataset are different, but even when setting the new one to the old cameras.txt the problem continues.

I should say that in the colmap GUI the two datasets look identically, so seems correct


2.0: UI- Similar named clusters interact

Summary of Issue:
WHen creating a cluster that has a name similar to an existing cluster, the provisioning screen for the new cluster is shared with the similarly named cluster if the similarly cluster had any failed tasks during spin up.
Steps to Reproduce:

Create a cluster named eldridge-do and when complete, create a cluster named eldridge-do1

Expected Results:
The cluster named eldridge-do1 provisioning screen only shows tasks for that cluster.
Actual Results:
The provisioning screen shows the current cluster and also shows the nodes and master from the similarly named cluster.
Dev Info: (fill out and add links to log files)

go version: 1.10
SG latest commit hash or release tag: dddedff38267d34e16763fde1955ca4dec1cc5d7
Number of Masters and Nodes: Any
cloud provider: DO

@stgleb
Clusters should receive unique id's during provisioning.

Fixed With: https://github.com/supergiant/supergiant/pull/847


Unable to upload images larger than ~1.5MB or view existing uploaded images

Describe the Bug
When I try to upload an image which is larger than 1.5MB to a page by drag-n-drop I get the following error "An error occurred uploading the image". But I can confirm the images are actually uploaded, by checking /app/www/public/uploads/images/gallery/... and the images are also accessible by navigating to it from the browser http://bookstsackurl/uploads/images/gallery/...

In addition when I open the image menu non of the existing images are shown.

I somehow believe these two issues are related since I believe both happened at the same time.
This was working fine until now and suddenly stopped working without any changes from our end.
Steps to Reproduce
Open an existing page
drag an image larger than ~1.5MB from your computer onto the page, or open the image menu from the toolbar.
Expected Behaviour
Images should be uploaded and we should be able to see the previously uploaded images.
Screenshots or Additional Context
I checked the /app/www/storage/logs/laravel.log for errors and only got some older errors which I confirmed don't reoccur when I attempt to upload anything.
2023-06-14 14:00:03] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 528384 bytes) {"userId":6,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 528384 bytes) at /app/www/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:137)
[stacktrace]
#0 {main}

/var/log/nginx/error.log is empty.
I confirmed the images permissions are fine

I can also confirm I was able in the past to upload even larger images (see screenshot of 7MB images)

Browser Details
No response
Exact BookStack Version
Our production version of bookstack is still v22.09.1 but I updated the container to v23.05.2 and still get the same issue.
PHP Version
No response
Hosting Environment
linuxserver/bookstack docker on virtualized (Hyper-V) ubuntu 20.04.3 LTS.  Container storage is EXT4.
version: "2"
services:
  bookstack:
    image: linuxserver/bookstack:v23.05.2-ls85
    container_name: bookstack-staging-6-14-23
    environment:
      # container rights
      - PUID=1000
      - PGID=1000

      - APP_URL=<snip>

      # DB settings
      - DB_HOST=bookstack_db-staging-6-14-23
      - DB_USER=<snip>
      - DB_PASS=<snip>
      - DB_DATABASE=<snip>

      # Mail settings
      <snip>

    volumes:
      - /srv/backup/2023-06-14_30039/data:/config
    ports:
      - 61011:80
    restart: unless-stopped
    depends_on:
      - bookstack_db-staging-6-14-23
  bookstack_db-staging:
    image: mariadb:10.9.4-jammy
    container_name: bookstack_db-staging-6-14-23
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=<snip>
      - TZ=America/New_York
      - MYSQL_DATABASE=<snip>
      - MYSQL_USER=<snip>
      - MYSQL_PASSWORD=<snip>
    volumes:
      - /srv/backup/2023-06-14_30039/db:/config
      - /srv/backup/2023-06-14_30039/db-init:/docker-entrypoint-initdb.d
    restart: unless-stopped

Thanks @ssddanbrown that fixed it.
I'm assuming this isn't the default because most people don't hit this limit. Is there a reason our instance did hit it?


invalid literal for int() with base 10: '

I hooked up the library to a test table in BQ. Then synced it using the sync-schemas endpoint. I was able to verify that the connection was established correctly and logs were returned as well. Now without adding any context, i sent a request to generate sql - "Give me all records from X table" and ran into this error.

Hi, thanks for you comment. We will try to identify the issue but it would be helpful if you share the logs to see where it is failing. Thanks

Hi, can you check that in your env file this var is not empty DH_ENGINE_TIMEOUT?  if so it sets a space as the value so when this int(os.getenv('DH_ENGINE_TIMEOUT'), 150) is executed it raises the error. To fix it you can set a number in your .env file for example:
DH_ENGINE_TIMEOUT = 150 or delete it and it would take the default value. Once you fix the .env file don't forget to rebuild your docker container so it can take the envvar changes
docker-compose up --build
Please, let me know if it worked

I got this error myself, the confusion is that the docs do not tell you that you have to specify DH_ENGINE_TIMEOUT and UPPER_LIMIT_QUERY_RETURN_ROWS, and the comment implies that they default, but if you do not specify them you get this error. I think there is either a bug fix needed to set blank values to default or the example env file needs to be updated to include the values explicitly.

Actually there are more potential solutions, the docs being updated to say they need to be filled in would also be sufficient.

Thanks for your feedback, we will work to improve the documentation and fix that it fails when the env var is not set


Is there a reason to allow max length as 90 in resource group definition name

I look into Azure Blueprint module (ResourceGroupDefinition class) and not sure why it allows max length 90 only.
"virtualMachineResourceGroup": {
    "name": "[concat(parameters('ags_projectCode'), '-', parameters('ags_projectStage'), '-vm', '-rg')]",
    "location": "[parameters('ags_resourceGroupLocation')]",
    "metadata": {
        "displayName": "Virtual Machine resource group"
    }
}

It should of allowed longer to satisfy complex naming convention. To fix the above issue I had to cut the total string length of name 's value. Replacing params with prefix ags by g as follows passed the validation
"virtualMachineResourceGroup": {
    "name": "[concat(parameters('g_projectCode'), '-', parameters('g_projectStage'), '-vm', '-rg')]",
    "location": "[parameters('ags_resourceGroupLocation')]",
    "metadata": {
        "displayName": "Virtual Machine resource group"
    }
}

Thanks for bringing this up. We are aware of this issue, but it has only come up one other time, so it is not high in our priority list for our backlog. I will pass this on to the rest of the time and see if we can squeeze it in.

Getting hit by this same issue. The errors comes because, we want to control how naming of the resource groups are generated.
Considering creating the Resource Groups with an ARM template as well.

There is no plan to resolve this issue.


no_log parameter is not part of redhat subscription module.

https://github.com/ansible-lockdown/RHEL8-CIS/blob/22329b3442ebe28f92605f27ca361b9207178b98/tasks/section_1/cis_1.2.x.yml#L9

no_log has been outdented to fix this.


User searches for a user S63

Self-reviewed tests making sure they pass and cover my written lines completely.

@MohammedAnsary In the user controller the new documentation should be added on the new methods not under the last documentation


feat: add WithFiles to Directory and Container

Fixes: #6475
The issue mentioned only Directory, but I also added it to Container, not sure that was a good idea. Also, this is my first contribution so I might be missing a few things.
With regards to the sdk changelog, it seems like that is something I should do after creating the PR? go through every sdk and run it?
Also a question: in Directory WithFiles, I wasn't sure whether or not I should have re-used WithFile, some feedback on that would be great :)

With regards to the sdk changelog, it seems like that is something I should do after creating the PR? go through every sdk and run it?

Since this is a core change you only run changie in the root of the repo, not the sdks.

Also a question: in Directory WithFiles, I wasn't sure whether or not I should have re-used WithFile, some feedback on that would be great :)

Yeah, I was wondering why you didn't 🙂

refactored and added the changeset :)

Thanks for the contribution @tomasmota! :tada: Sorry for the nitpicky-comments, only just got round to reviewing this :cry:

The more thorough the review the more I learn, so nitpick away! I'll rename and add the TODO :)

Thanks @tomasmota!


Rancher API Audit log documentation is misleading

SURE-6569

The documentation: https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-api-audit-log#audit-log-levels is misleading because it only includes "Response Metadata" only on log level 3.
Currently, they have log level 1 in their cluster. With this log level setting, they can already see a lot of response metadata, like response code, headers, timestamps. They would consider them as the "Response Metadata".
I don't think that return code or headers are actually the metadata. Timestamps though according to Kuberneters API convention are considered to be metadata:
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
Can you please comment on this and eventually adjust the page accordingly?

@prachidamle , Any insights on this issue please?


Not enough arguments in call to client.cmdable.Ping

Running docker-compose Yields error:
sudo docker-compose -f docker/docker-compose.yml up

Building stream-consumer
Step 1/12 : FROM golang:1.14-alpine
 ---> 3289bf11c284
Step 2/12 : WORKDIR /go/src/github.com/ava-labs/ortelius
 ---> Using cache
 ---> 4bd53078b885
Step 3/12 : RUN apk add git
 ---> Using cache
 ---> 6560f4274925
Step 4/12 : COPY . .
 ---> Using cache
 ---> ae70d19018f4
Step 5/12 : RUN go get ./cmds/...
 ---> Running in 8c72d7b6d846
# github.com/ava-labs/ortelius/services
services/connections.go:69:23: not enough arguments in call to client.cmdable.Ping
	have ()
	want (context.Context)
ERROR: Service 'stream-consumer' failed to build: The command '/bin/sh -c go get ./cmds/...' returned a non-zero code: 2

Running ava 0.5.1

Seems like redis recently made backward incompatible API changes: https://github.com/go-redis/redis/issues/1333
May be solved by #17

The build still fails after #17. Same error on services/avm_index/redis.go
# github.com/ava-labs/ortelius/services/avm_index
services/avm_index/redis.go:44:20: not enough arguments in call to pipe.Set
	have (string, []byte, number)
	want (context.Context, string, interface {}, time.Duration)
services/avm_index/redis.go:48:21: not enough arguments in call to pipe.Incr
	have (string)
	want (context.Context, string)
services/avm_index/redis.go:52:22: cannot use recentTxsKey (type string) as type context.Context in argument to pipe.LPush:
	string does not implement context.Context (missing Deadline method)
services/avm_index/redis.go:56:22: not enough arguments in call to pipe.LTrim
	have (string, number, number)
	want (context.Context, string, int64, int64)
services/avm_index/redis.go:60:21: not enough arguments in call to pipe.Exec
	have ()
	want (context.Context)
services/avm_index/redis.go:66:21: not enough arguments in call to r.client.cmdable.Get
	have (string)
	want (context.Context, string)
services/avm_index/redis.go:75:21: not enough arguments in call to r.client.cmdable.Get
	have (string)
	want (context.Context, string)
services/avm_index/redis.go:84:24: not enough arguments in call to r.client.cmdable.LRange
	have (string, number, int64)
	want (context.Context, string, int64, int64)
ERROR: Service 'stream-consumer' failed to build: The command '/bin/sh -c go get ./cmds/...' returned a non-zero code: 2

Passing client.Context() as first parameter leads to a successful build:
Step 5/12 : RUN go get ./cmds/...
 ---> Using cache
 ---> 25bcc524fba4
Step 6/12 : RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /opt/orteliusd ./cmds/orteliusd/*.go
 ---> Using cache
 ---> ff2bdb53f029
Step 7/12 : FROM scratch
 --->
Step 8/12 : VOLUME /var/log/ortelius
 ---> Using cache
 ---> 5c98b86b0f65
Step 9/12 : VOLUME /var/lib/ortelius
 ---> Using cache
 ---> 76e5b4eac49e
Step 10/12 : COPY --from=0 /opt/orteliusd /opt/orteliusd
 ---> Using cache
 ---> 130f04e45ee2
Step 11/12 : COPY --from=0 /go/src/github.com/ava-labs/ortelius/docker/config.json /var/lib/ortelius/config.json
 ---> Using cache
 ---> c1b85b4dfab1
Step 12/12 : ENTRYPOINT ["/opt/orteliusd"]
 ---> Using cache
 ---> 55dd94a01b3b
Successfully built 55dd94a01b3b
Successfully tagged docker_api:latest

Updated #17

This is fixed now. Thanks for the report.


Fix crash in sp_describe_undeclared_parameters

Description
In our previous attempt of fixing sp_describe_undeclared_parameters related crash, we missed some corner cases where few variables will be left NULL if is_sp_describe_undeclared_parameters is marked as false. Then when we try to access those variables, we get seg fault. In this commit, we fix it by adding extra check on is_sp_describe_undeclared_parameters. Issues Resolved
Issues Resolved
BABEL-5068
Signed-off-by: Shameem Ahmed<EMAIL_ADDRESS>Test Scenarios Covered

Use case based -

Boundary conditions -

Arbitrary inputs -

Negative test cases -

Minor version upgrade tests -

Major version upgrade tests -

Performance tests -

Tooling impact -

Client tests -

Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

63 of 74 (85.14%)  changed or added relevant lines in 1 file are covered.
5 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.009%) to 73.194%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

contrib/babelfishpg_tsql/src/procedures.c
63
74
85.14%

Files with Coverage Reduction
New Missed Lines
%

contrib/babelfishpg_tsql/src/procedures.c
5
88.33%

Totals

Change from base Build<PHONE_NUMBER>:
-0.009%

Covered Lines:
42828

Relevant Lines:
58513

💛  - Coveralls


post-provision EIP allocations not added to instance data

I believe I have found an issue with dynamically allocated and associated EIPs not being added to the compute instance description endpoint. The standalone script below provisions an instance and eip, associates the resources, and looks for the missing network interface.
I have also found that if the vpc subnet is not explicitly declared in the create_instances configuration dictionary, this test will pass. There seems to be some differences between a "moto default vpc/subnet" and a "boto default vpc/subnet" that would explain this.
Finally, I have noticed that in the successful case, the instance description still differs from the current AWS response which provides PublicIpAddress and PublicDnsName as top level keys instead of nesting them under NetworkInterfaces.
I will continue to investigate and attempt to streamline the basic test cases, but wanted to raise this issue for comment immediately in case I am missing something.
pytest standalone.py
import pytest
import boto3
from moto import mock_ec2

# Force a singular moto backend to be shared across fixtures
mock_ec2_server = mock_ec2()
mock_ec2_server.start()

@pytest.fixture(scope='module')
def session():
    return boto3.session.Session(region_name='us-west-1')

@pytest.fixture(scope='module')
def service(session):
    return session.resource('ec2')

@pytest.fixture(scope='module')
def client(session):
    return session.client('ec2')

@pytest.fixture(scope='module')
def network(client):
    vpc_res = client.create_vpc(CidrBlock='<IP_ADDRESS>/24')
    subnet_res = client.create_subnet(
            VpcId=vpc_res['Vpc']['VpcId'], CidrBlock='<IP_ADDRESS>/24')
    return {
        'vpc' : vpc_res['Vpc']['VpcId'],
        'subnet' : subnet_res['Subnet']['SubnetId']
    }

@pytest.fixture(scope='module')
def instance(service, network):
    return service.create_instances(**{
        'InstanceType': 't2.micro',
        'ImageId': 'ami-test',
        'MinCount': 1,
        'MaxCount': 1,
        'SubnetId': network['subnet']
    })[0]

@pytest.fixture(scope='module')
def boto3_associate_ip(client, instance):
    allocation_id = client.allocate_address(Domain='vpc')['AllocationId']

    association_id = client.associate_address(
        InstanceId=instance.id,
        AllocationId=allocation_id,
        AllowReassociation=False)

    return association_id

def test_boto3_ip_association(instance, boto3_associate_ip, client):
    description = client.describe_instances(InstanceIds=[instance.id])\
        ['Reservations'][0]['Instances'][0]
    assert 'PublicIp' in description['NetworkInterfaces'][0]['Association']

See PR https://github.com/spulec/moto/issues/727 for resolution (the instance must be explicitly refreshed).


DISABLE_IPV6 and ENABLE_IL2CPP is not enough for Nintendo Switch

Attempting to use this library as it's bundled into the Unity asset "DOTSNET" now, with the intention of having multiplatform & crossplatform multiplayer. But the Nintendo Switch does not support IPv6. I've seen recommendations to use DISABLE_IPV6 and ENABLE_IL2CPP as the scripting define symbols in the Unity player settings, and I do that, but it's not enough to make things work.
From what I understand, this library still attempts to construct IPv6 connections but just doesn't give them anything to do if you're setting the above define symbols.
I added an extra check & log in the NetSocket class to confirm that IPv6 is not being actively used on the Switch:
#if DISABLE_IPV6 || (!UNITY_EDITOR && ENABLE_IL2CPP && !UNITY_2018_3_OR_NEWER) || UNITY_SWITCH
            UnityEngine.Debug.Log("Setting IPv6Support to false!");
            IPv6Support = false;

But whenever I initialize a server or client connection on Nintendo Switch, errors as below appear and no networking behaviour actually works:
LiteNet SV: starting...
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
DOTSNET.LiteNetLib.LiteNetLibTransportServerSystem:Start()
DOTSNET.NetworkServerSystem:StartServer()
DOTSNET.NetworkServerAuthoring:StartServer()
DOTSNET.NetworkServerHUD:OnGUI()

(Filename: .\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Setting IPv6Support to false!
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
LiteNetLib.NetSocket:.cctor()
LiteNetLib.NetManager:.ctor(INetEventListener, PacketLayerBase)
DOTSNET.LiteNetLib.LiteNetLibTransportServerSystem:Start()
DOTSNET.NetworkServerSystem:StartServer()
DOTSNET.NetworkServerAuthoring:StartServer()
DOTSNET.NetworkServerHUD:OnGUI()

(Filename: .\Runtime/Export/Debug/Debug.bindings.h Line: 35)

SocketException: Protocol option not supported
  at System.Net.Sockets.Socket.SetSocketOption (System.Net.Sockets.SocketOptionLevel optionLevel, System.Net.Sockets.SocketOptionName optionName, System.Int32 optionValue) [0x00000] in <00000000000000000000000000000000>:0
  at System.Net.Sockets.Socket.set_Ttl (System.Int16 value) [0x00000] in <00000000000000000000000000000000>:0
  at LiteNetLib.NetSocket.set_Ttl (System.Int16 value) [0x00000] in <00000000000000000000000000000000>:0
  at LiteNetLib.NetSocket.BindSocket (System.Net.Sockets.Socket socket, System.Net.IPEndPoint ep, System.Boolean reuseAddress, LiteNetLib.IPv6Mode ipv6Mode) [0x00000] in <00000000000000000000000000000000>:0
  at LiteNetLib.NetSocket.Bind (System.Net.IPAddress addressIPv4, System.Net.IPAddress addressIPv6, System.Int32 port, System.Boolean reuseAddress, LiteNetLib.IPv6Mode ipv6Mode) [0x00000] in <00000000000000000000000000000000>:0
  at LiteNetLib.NetManager.Start (System.Net.IPAddress addressIPv4, System.Net.IPAddress addressIPv6, System.Int32 port) [0x00000] in <00000000000000000000000000000000>:0
  at LiteNetLib.NetManager.Start (System.Int32 port) [0x00000] in <00000000000000000000000000000000>:0
  at DOTSNET.LiteNetLib.LiteNetLibTransportServerSystem.Start () [0x00000] in <00000000000000000000000000000000>:0
  at DOTSNET.NetworkServerSystem.StartServer () [0x00000] in <00000000000000000000000000000000>:0
  at DOTSNET.NetworkServerAuthoring.StartServer () [0x00000] in <00000000000000000000000000000000>:0
  at DOTSNET.NetworkServerHUD.OnGUI () [0x00000] in <00000000000000000000000000000000>:0

(Filename: currently not available on il2cpp Line: -1)

Any advice or solutions or specific things I should be ripping out to prevent IPv6 from being a thing when I use define symbols?
Library version: ["0.9indev" as bundled with the current version of DOTSNET]
Framework: [IL2CPP, Unity 2019.4.3f1, DOTSNET]
OS: [Nintendo Switch]

@AlexHolderDeveloper this is not IPv6 problem, seems that switch (or unity implementation in mono) doesn't support SetTTL method.

@AlexHolderDeveloper also ENABLE_IL2CPP added in unity3d automatically if you enabled IL2CPP

Thanks for the fast response, RevenantX!
I just made a quick dummy script to see if I could set a socket's TTL value in the Unity Editor. That worked. So I'm gonna go pester the Nintendo dev support people and see what the issue is from their end.

We've confirmed that this is not an issue with this particular library but instead with Unity and/or Unity for Nintendo Switch. Sorry for the issue, and thankyou for the suggestions on what to troubleshoot!

@AlexHolderDeveloper you can try just remove "set ttl" string from sources.

We tried that & tried using some other things too, but this has revealed some other parts of the Socket class that aren't working right on the Nintendo Switch. Sorry again for the fuss!


gnuradio3_8: remove

Description of changes
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

The qradiolink failure seems like it might relate to spdlog being in -I rather than -isystem, making the nested include fail.

I did not have time to take a closer look, but there seems to be a branch of qradiolink that is compatible with gr-3.10:
https://github.com/qradiolink/qradiolink/tree/gr_3.10

Thanks for the notification @emilazy . I won't mind wait until that PR reaches master to check again. In the meantime I resolved the merge conflicts.

OK now that staging-next is pretty baked, I included https://github.com/NixOS/nixpkgs/pull/365839 and I noticed I get different GR headers related errors. Then I switched qradiolink to the gr_3.10 branch, and I only had to add log4cpp to the buildInputs and the build succeeded (upstream is probably still relying on the old log library although GR is using spdlog nowadays).
@markuskowa if you want to test qradiolink before staging-next reaches master, you should be able to simply rebase this PR to current staging-next (but don't forget to also include https://github.com/NixOS/nixpkgs/pull/365839 ). I think this PR should be ready once staging-next reaches `master.

Tested that qradiolink builds, launches and GUI seems functional.

staging-next was merged:

#361878

Converted back to draft due to:

https://github.com/xbmc/xbmc/issues/26164

Which I hope kodi developers will solve. cc @NixOS/kodi .

Fixed kodi issue.

Thanks for the review @paparodeo :). Done.

Friendly ping @markuskowa

Thanks for tackling this!


Use custom icons instead of the material icons

Hi,
Nice plugin. I've a request. Can you make it possible to use also custom icons? That would be awesome.
Looking forward for your reply.

Hi @Wndworks, yes could do be done. But if we leave it very customizable devs will have to handle some styling by their own.
You are thinking on adding custom HTML for example? Or classes with pseudo elements like before and after to handle content by css?

Hi @hazzo,
Thanks for the fast reply.
I'm already using another FAB component, but i thought about adding custom html indeed. Like:
<i class="icon-class"></i>
In this case any icon font can be used.

Okey as soon as it's implemented I'll update this issue

Thank you!

I'm trying to implement to support custom icons. I found if vue-fab allows to customize the icons by HTML, it should handle the toggle variable for main icon.
For example:
https://github.com/PygmySlowLoris/vue-fab/blob/e7ff12df571746a6a26dc565933db683a2fb8f9b/src/FAB.vue#L48-L49
It looks like it also parse the class names in HTML and set { rotate: toggle } in class. Is there a better way to implement?

+1

+1

+1


Map/Navigate

Is there anyway for me to have google assistant open up google maps to show me a map/directions?
Asking it for directions now causes the assistant to freeze up on me :/

Not sure what would be involved to do this. The problem here is opening up the new map window, this is quite a bit of additional programming and added iframe module. We have a lot of other thing we need to fix first, so this probably will not be started for quite a while. Good idea though.
In the mean time, if you can't wait, you can try to see how to implement this in for example MMM-Voice or some of the other voice modules.

sure I'm still figuring things out myself :D downloaded a few other voice modules that has AI and trying to see what's going on in it.
off topic -->  As I'm a complete noob when it comes to programming (all I do is look at other ppl's scripts/code and figure out what does what, but have no idea how to do it on my own), what languages do you reccommend me to start with learning?

@rachnov55

what languages do you reccommend me to start with learning?

JavaScript, then Node.js (is also a form of JS) then Python.


Enable Tor

Not a part of 2.0. Please take it out

I can still see the "Enable Tor" option in dev app v1.8.5(326)

I'll have to check this in next build.

Verified this issue on dev app v1.9.0(327)


rgba background-color doesn't work

RGBA CSS doesn't work for backgrounds like...
<ReactTooltip backgroundColor="rgba(0, 0, 0, 0.5)" />

Closing all v4 issues due to V5 released.
If necessary, please open a new issue using V5, thanks!


XLA gives error about dynamic shapes in TF 2.1.0, but not in TF 1.15.2

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Linux Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: -
TensorFlow installed from (source or binary): Binary I believe, it is part of a docker image
TensorFlow version (use command below): 1.15.2 / 2.1.0
Python version: 3.6.9
Bazel version (if compiling from source): -
GCC/Compiler version (if compiling from source): -
CUDA/cuDNN version: 10.2.89 / 7.6.5
GPU model and memory: Nvidia Tesla P100 (16GB)

Describe the current behavior
For the same code (see gist here) I'm getting an error in TF2 but not in TF1 on XLA compile.
I need to migrate some code from TF1 to TF2 and want to find out what goes wrong here.
Somehow, I believe this has to do with a difference in tf.compat.v1.data.make_initializable_iterator(tf_data_batched) between TF1 and TF2 as it might give unknown shapes in TF2 but not TF1. But I'm not really sure and it won't always fail, such as for example when removing the following loss from the graph (lines 77/78 of the gist):
gaussian = tfd.MultivariateNormalDiag(tf.zeros_like(samples), tf.ones_like(samples))
loss_samples = gaussian.log_prob(samples)

Can you help me figure out what's the issue here and how to migrate this to TF2 ? Thank you!
Below is the exact error I'm getting on TF2.
XLA compilation requires that operator arguments that represent shapes or dimensions be evaluated to concrete values at compile time. This error means that a shape or dimension argument could not be evaluate
d at compile time, usually because the value of the argument depends on a parameter to the computation, on a variable, or on a stateful operation such as a random number generator.
         [[{{node gradients/gradients/MultivariateNormalDiag_1/log_prob/MultivariateNormalDiag_chain_of_MultivariateNormalDiag_shift_of_MultivariateNormalDiag_scale_matvec_linear_operator/inverse/Multivariat
eNormalDiag_scale_matvec_linear_operator/inverse/LinearOperatorDiag/solve/LinearOperatorDiag/solve/mul_grad/Sum_grad/DynamicStitch}}]]
         [[gradients/while_loop_grad/while_loop_grad]]
        This error might be occurring with the use of xla.compile. If it is not necessary that every Op be compiled with XLA, an alternative is to use auto_jit with OptimizerOptions.global_jit_level = ON_2 o
r the environment variable TF_XLA_FLAGS="tf_xla_auto_jit=2" which will attempt to use xla to compile as much of the graph as the compiler is able to.
         [[cluster]]
         [[output_0/_3]]
0 successful operations.
0 derived errors ignored.

Describe the expected behavior
No error in TF2 just like in TF1.
Standalone code to reproduce the issue
See gist: https://gist.github.com/MatthiasKohl/3100f81e71309fb02e3b69773352e2c0
Note that this requires the tensorflow_probability package! I wasn't able to make a smaller example reproducing this bug, unfortunately.

@MatthiasKohl,
While running the code with TF v2.1, I'm facing an error stating ImportError: This version of TensorFlow Probability requires TensorFlow version >= 2.2; Detected an installation of version 2.1.0. Please upgrade TensorFlow to proceed.
However, I did not face any errors while running the code with TF v2.2.0-rc4. Please find the gist of it here. Thanks!

Thank you for the pointer, I guess you used TF probability version 0.10.0-rc0/1 which is made for TF 2.2+.
Instead, I used TF probability 0.9.0 which is for TF 2.1.0.
Sorry about not stating this more clearly in the description.
I'll try with TFP 0.10 and TF 2.2 as you suggested, hopefully it'll work !

So I was able to run this using TF v2.2.0-rc3 and TFP 0.10.0-rc0 as I didn't find any container for TF v2.2.0-rc4 GPU right now.
It does work with the TF v2.2.0-rc3, too, and this has solved the issue in my larger application as well.
Thank you very much!


Is it acceptable to convert a base64 string to a Buffer on the server for the write function?

Hi, so in my Meteor/Apollo/React stack my current approach has been to upload images to the server by sending the base64 string to the server, and then storing it.
I have a canvas and hence I need to run a .toDataURL() function on it to get it as a base64 string. I'd rather not upload it from the client side that's why I'm not using the insert function (my main concern with this is, is there any danger to this? How do I protect against malicious uploads on the client side? There isn't any permission setting or anything of that sort in the function so I'm not sure if this exposes things too much).
As I'm not entirely sure how that can be done, I've sent the base64 string over and convert it into a Buffer on the server. I drop the beginning of the base64 string which is data:image/png;base64,, so I just extract everything after the first comma.
const data = image.substring(image.indexOf(',') + 1)
Images.write(Buffer.from(data, 'base64'), {
    fileName: `${user._id}_${Date.now()}.png`,
    type: 'image/png'
  }, (writeError, fileRef) => {
    if (writeError) {
      throw writeError
    } else {
      console.log(`${fileRef.name} is successfully saved to FS. _id: ${fileRef._id}`)
    }
})

Is this acceptable practice? I was curious because if it is acceptable, I was wondering why write does not accept a base64 string as an input format. Just want to make sure this isn't a hacky approach that's bypassing something important.
As a separate question, is it possible to make this call synchronous? This function lies inside a query function and I would like to return the resulting fileRef._id, but I can't do so as this function is asynchronous. Is there any way for me to "force" this to be synchronous? If not, it's fine too!
Thanks!

my main concern with this is, is there any danger to this? How do I protect against malicious uploads on the client side? There isn't any permission setting or anything of that sort in the function so I'm not sure if this exposes things too much

I've just started using Meteor and I kind of had the same questions. In core Meteor you should never use insert but use methods. That's why I was confused that this package uses insert etc. directly on the collection and claims "no need to learn new APIs".
Anyway, you can do the same checks you do in a method inside onBeforeUpload. You have access to this.userId, exactly like in a method. So much for "no need to learn new APIs".
I think the docs could make that more clear.
Regarding your other question: I don't think this is acceptable practice. A large Base64 string will lock up both the client and server. You also lose features such as upload progress. I think the correct solution is to use canvas.toBlob and create an File from it. Then use the regular insert API so it will be uploaded in chunks.

@ajaypillay It's totally fine to get canvas as base64. Just upload it via .insert as base64 string

As a separate question, is it possible to make this call synchronous? This function lies inside a query function and I would like to return the resulting fileRef._id, but I can't do so as this function is asynchronous. Is there any way for me to "force" this to be synchronous? If not, it's fine too!

Our API is event-driven, just wait for 'end' on Client and onAfterUpload on Server events and use newly inserted _id as needed

@Prinzhorn

I've just started using Meteor and I kind of had the same questions. In core Meteor you should never use insert but use methods. That's why I was confused that this package uses insert etc. directly on the collection and claims "no need to learn new APIs".

This package mimics Mongo Collection API, .insert() method just have the same name and accept arguments in the similar way.
Meteor-Files would take care of large file or base64 string and send it to the server in small chunks
Hope that helps, let me know
P.S. I'm sorry for the late reply

Closed due to silence at issue owner end.
Feel free to reopen it in case if the issue still persists on your end.


Add a minimal mode for REPL

like this below, only input box and hints are showed in the center.
This is great for its simplicity.
And you can switch between full/minimal mode very easily.

Done, looks good to me.

I'd better take a rest now.

Where is this feature? I can't find it :')

Where is this feature? I can't find it :')

see https://github.com/Ark2000/PankuConsole/blob/master/docs/developer_console.md

interactive_shell.open_launcher() Open the developer console minimized version, which only contains the input box and auto-completion.

Oh I thought there's some button somewhere. So we need to execute this from code right? Thanks!


Can you enable ECHONET lite only with official Mitsubishi AU/NZ Wifi App?

Can you enable ECHONET lite only with the official Mitsubishi AU/NZ Wifi App?
I have a MAC-577IF2-e adapter in my MSZ-AP42VGK AC, but I don't see the enable ECHONET lite option in the MELCloud iOS application. I'm in the EU.
Am I using the wrong app or does MAC-577IF2-e not support it? Where can I download the official Mitsubishi AU/NZ Wifi App if the former is the case?

This is the AU/NZ app. I have no idea if you can download or access via EU App Store.

For what’s it’s worth, I am not able to download the MELCLOUD app here in the Antipodes…

According to the NZ website, only the "568" model WiFi adapter has the feature
https://www.mitsubishi-electric.co.nz/wifi/learn_echonet.aspx
I expect too that the region you buy the unit in dictates which regional cloud service it connects to, so you wouldn't be able to onboard the adapter in the NZ cloud service even if you could get the app.

In the README.md it says it also supports MAC-578IF2-E


x/build: add a longtest+race builder

We have -race builders that run tests with the race detector enabled, and -longtest builders that run tests without -short.
However, most non-trivial races occur in concurrent code, and tests with nontrivial concurrency tend to take longer. So the tests run by the -race builders miss a lot of the actual races.
It would be nice to have at least one builder that runs the full test suite (without -short) under the race detector.

cc @golang/release

The race detector builders currently have GO_DISABLE_OUTBOUND_NETWORK=1 while longtest builders have needsGoProxy: true. These seem in conflict, and I don't have a good idea of how they'll actually resolve. I guess I can just try and see what happens?

The long tests require network so you'll want to leave the network enabled.

Got it. Also @bcmills do you want this to run for subrepos? Or are you just concerned about the main repo at the moment?
(I figure I'll just start with the main repo since I suspect there will be some surprises...)

Ideally subrepos too (especially x/sys and x/net), but the main repo is a good starting point.

I redeployed the coordinator and the builders are online! (For subrepos as well.) Hopefully the timeout scale is sufficient. We'll see soon.

I think the UI could also use some work. It's in the race section but it just says "linux" twice. I'll poke at that.

Hm, the builds seem stuck on... what I have to guess is the index/suffixarray tests. On longtest those already take 47 seconds... I wonder if it's ballooning out on longtest x race.

For comparison, image/gif longtest seems to be around 6x slower with the race detector. So, assuming that slowdown applies here as well (maybe not) 47 seconds balloons out to around 5 minutes. That seems like a lot.

Worse than that actually, 600+ seconds. The runtime tests took 700+ seconds. Unfortunately the builds are incredibly slow. :( How should we proceed? Leave the builder but start disabling tests for this configuration? Is it fine to be this slow?

Reference: https://farmer.golang.org/temporarylogs?name=linux-amd64-longtest-race&rev=d2aa787f2a925a97dad11b1acb2a065f52b097f8&st=0xc000fb7dc0

If the tests pass reliably (with an appropriate timeout scale factor), then I guess the relevant question is just how slow are they?
Given that the race detector dumps exact stack traces for any race it detects, and given that it's for a common platform and architecture (so not hard to find a local machine to run the tests on), I'd say that if the builder takes, say, twice as long as the longtest builder overall, that's probably fine. But if it's going to take, say, 10 hours per run, we probably ought to prune things back in some way.
The log you linked seems to have disappeared, but looking at the index/suffixarray tests it looks like they're running exhaustive checks over huge input spaces (2²¹ and 3¹⁴ cases, respectively). Given that those spaces have already been checked exhaustively, I wonder if those tests would be more cost-effective as fuzz tests sampling fewer elements, perhaps from an even larger space. 🤔

It's definitely not 10 hours but I don't have complete data. It does actually seem to be mostly keeping up with tip, so maybe it's fine.
Maybe let's just leave it up and we can work on improving run times more incrementally.

It does look like x/tools/go/pointer and x/benchmarks/sweet/cmd/sweet might need either some test skips or a longer timeout scale. I see consistent timeouts in those.

x/benchmarks/sweet/cmd/sweet is just one test and yeah, it should probably just be disabled for this builder.


Cant boot with ipu6

Laptop freezes just before login screen at boot time.
Steps To Reproduce
Just boot with kernel 6.12.3 or 6.11.11 on laptop Thinkpad X1 Carbon (Intel cpu 12th gen)
Expected behavior
To continue with the login screen at boot time.
Additional context
journalctl -b -1: https://gist.github.com/matejc/4b651257ebf42efb3a667ab46c2e9490
After inspecting journal, I blacklisted ipu6 kernel modules (check below in workaround section).
Workaround
Add to configuration.nix:
hardware.ipu6.enable = false;  # explicitly disable
boot.blacklistedKernelModules = [ "intel_ipu6" "intel_ipu6_isys" "intel_ipu6_isys.isys" ];  # not sure if all of them are required

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

I had the exact same issue, and disabling the module also worked for me too.
(LAPBC710)


Fix to deserializer being called twice due to resolvers

This feels like a bit of a hack, but it does work and not sure what other options there are.  Waiting to see if folks from jackson or immutables can chime in and help out here.

Found a better way to deal with this based on https://github.com/immutables/immutables/issues/461


Add/update providerConnectionInfo.getOptionsKey tests

Split options check into its own test.
Also added big warning to the original test to try and prevent issues like https://github.com/microsoft/azuredatastudio/issues/20972 from happening again

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.005%) to 41.942%

Files with Coverage Reduction
New Missed Lines
%

extensions/notebook/src/common/ports.ts
4
74.14%

Totals

Change from base Build<PHONE_NUMBER>:
0.005%

Covered Lines:
28867

Relevant Lines:
63927

💛  - Coveralls


mod name mismatch

If I  install several mod files from the same nexus page (e.g, "Hearthfire Extended")
then in Vortex, I will see "Hearthfire Extended", "Hearthfire Extended - CFTO Patch", "Hearthfire Extended - Cutting Room Floor Patch" etc.,
but in the Modwat list, I see only "Hearthfire Extended" repeated several times.
Can the mod naming in Modwat be as in Vortex?
BTW, the new sort option works great. thanks again

I'll see if I can tweak which attribute we use. This happens because internally (confusingly) Vortex has about 4 different names for any given mod. I'll try and find a more unique one to use

the issue seems solved in the new version, thanks!

Awesome! I wasn't 100% sure that would fix things so thanks for confirming 👍


Website is no longer accepting replays, please allow uploader to just upload direct to hotslogs?

Thanks for your work on this program!
Looked through the code and it seems that the hotslogs uploader part must go through your website first? Their uploader is horribly resource intensive and would love to still use your uploader program even if your website will not continue to be maintained.

This was a brief outage, uploads are restored.


Aem edit typofixes

A few typo fixes in the bookpurnong case history.

@yangdikun : I will let you review and merge this.


how to compute the edgDst and edgVct in voronoiTerm?

Because if  the voronoiTerm is commented, the path is so close to obstacles.So I want to see the effect of the voronoiTerm.

please adjust the weight value to a non-zero value (default: 0)

Because if the voronoiTerm is commented, the path is so close to obstacles.So I want to see the effect of the voronoiTerm.

in these implement, voronoiTerm is used for smoothing traj.
about your question, ref to https://github.com/teddyluo/hybrid-a-star-annotation/blob/ddbbc70360dad80dd386e801f5e2b316a4c14f76/src/smoother.cpp#L149
I wish it help you, it's calculated from dynamic voronio lib.


No logo appears with sphinx 4.1

Upgrading to sphinx version 4.1 renders the logo as text saying "logo"

Sphinx 4.1.1 will fix the issue, see https://github.com/sphinx-doc/sphinx/issues/9438

Thanks @astrojuanlu for linking that issue. Since sphinx 4.1.1 has been released a while ago, closing this issue.


Re-activate view containers if they have automatically been removed

Imagine this scenario: an extension created a view container with some views for its supported file type. The user opens such a file and activates the extension view container. Now the user switches to a file not supported by that extension (and view container). The extension hides all views and as a consequence the view container is removed by vscode.
Now the user switches back to the supported file, only to have some other (usually unrelated) view container activated. It would be nice if that automatically hidden view container in the first switch is restored, once the user switches back to a file which is supported (and which shows at least one view of that container).
That would require that each editor tab stores the last active view container that was open when the editor was active. While thinking about this it seems like it is a generally interesting idea to have an option to restore the last active view container when switching editor tabs.
Here's a screen cast of what happens when you switch tabs of supported and unsupported files:

@mike-lischke to make sure we talk about the same thing, can you please attach a screencast or annotated screenshot. Thanks!

/needsMoreIn

@kieferrm screen cast uploaded, just let me know if you need more info.

I see your request, in short, you would like VS Code to reopen the view container that was hidden automatically (because of all views getting hidden) when it is shown again, unless user switches to other view containers explicitly in between.
Instead, how about not switching or hiding your view container when any of the views are not shown?

Your first sentence summarizes it pretty well. I would not use the other approach to not hide the view container if a file (tab) is selected that doesn't belong to the specific view container.
It's good that such views are only visible when a file tab is selected for which they apply. It's only that little annoyance that I have to reselect the view container when I switch away from a supported file and back to it. In other words: vscode should strive to reselect that view container, which was active when the user switched away from the file tab and comes back. That can also be useful for general view containers as this gives a more consistent experience to the user.

I don't think the requested behaviour is trivial because, VS Code has to keep track of the gestures causing viewlet change. For eg., in this case VS Code has to open the restored viewlet only if there is no explicit switch of viewlets from users. I would also foresee unexpected results.

I believe it would already be enough to track the last active view container for each tab and restore that when the user switches to it. If that view container is hidden use a default one, but keep the original reference. This wil automatically overwritten when the user switches to a different view container.

That's what I expected. With the current inflow of requests in this repo it's rather unlikly that someone finds a specific request by accident. You have to search for a similar feature directly (which is difficult as often people have a slightly different need or formulate things a bit different) or the author has to advertise his request somehow.
Instead I speculated on you finding this idea appealing enough to implement it. If you conclude that the implementation effort outweighs the benefit then it is noth worth to keep it open any longer. I wouldn't be surprised if a similar issue comes up sooner or later again. Thanks.