"Oops, something went wrong," and Powershell told me to put it here...

Parameter name: left
Actual value was 212.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.WriteBufferLines(CHAR_INFO[] buffer, Int32& top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender()
at Microsoft.PowerShell.PSConsoleReadLine.CancelLine(Nullable1 key, Object arg)    at Microsoft.PowerShell.PSConsoleReadLine.CopyOrCancelLine(Nullable1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignor
eIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Basically I pressed Ctrl+c because I thought something was running (it wasn't) and Powershell got confused and barfed this up.  Really don't know what happened.  Maybe has something to do with me having just changed the horizontal buffer size...

Resizing the console causes a variety of problems, I'm resolving this as a dupe of #292


Running UNETR independant on MONAI

Is it possible to run UNETR without monai library? how would this be done if any hints can be given that would be helpful!

Hi @salman-moh , UNETR is a part of work of MONAI team, we would not recommend to do so. But for development purpose, you could pull the MONAI library and use/import networks scripts locally, then make changes, training with those changes accordingly.
https://github.com/Project-MONAI/MONAI/tree/dev/monai/networks
Copy and import "from networks import UNETR"


Forumla for converting WGS84 alt to EGM96 alt in README is incorrect

Submitted a pull request.

@matthiaszimmermann to add on to this:
We have been doing some testing of our OpenAthena Core and OpenAthena Android software which implements this library.
We discovered recently that our vertical datum conversion based on the equation in the README.md was causing altitude at several ground control points to be off by exactly twice the geoid offset whenever a conversion was applied. Changing the sign (from a + to - or vice versa) resolved these issues and produced the correct converted altitude.
We can provide additional testing steps and results if desired to confirm this fix.
Greatly appreciate this library of yours, it's been essential for our OpenAthena project. Hopefully this fix may allow others to benefit similarly from this library.
Related to:
https://github.com/matthiaszimmermann/EGM96/pull/2
https://github.com/Theta-Limited/OpenAthenaAndroid/issues/180

More info on how we discovered this error and tested to validate our solution.  First, the formula for converting between EGM96 and WGS84 is documented here:  https://vdatum.noaa.gov/docs/datums.html
We then took a series of WGS84 readings from an RTK GPS unit of fixed light poles in an empty parking lot.  We compared their reported WGS84 altitude against Google Earth which reports in MSL.  In each case, the Google reported altitude was off roughly by the EGM96 offset from the WGS84 altitude.  And the formula for conversion was roughly:
wgs84alt = MSLalt + N

thanks so much for your contribution. feels like ages ago when i've done this ;) hope to find time to check/merge your pr in the near future

@mkrupczak3 wanted me to provide a little bit more documentation as to how we validated our proposed formula fix.  Attached is a drone image of a local parking lot

To that end, we then used Google Earth to look up the AMSL altitude of each light pole and calculate, using both incorrect and corrected formulas, the WGS84 altitude.  We then compared that with the altitude we measured using a RTK GPS receiver.  In all cases, the wgs84 altitude derived from the corrected formula was within 1-2 meters of that reported by Google Earth.  Attached also is the csv of the measurements.
SmyrnaTeat01_lightposts.csv


refactor(rpc): migrate signPsbt methods

This PR migrates over all the methods used in the extension for signPsbt. Everything we had in here was from Btckit and some properties had since changed.

@kyranjamie this should presumably undergo design review before release?

Is there a relevant issue to link?


Add FactorJS

Adding FactorJS under SSR frameworks.

@Scrum all set !

@Scrum can you explain to me what's happening here? Can't find any issues

@arpowers Your commit consists of adding an empty line, most likely when resolving the conflict you lost the addition of a nice package

@Scrum I can see Factor on the repo, so I think this got pulled in twice? Anyway, this can be closed.


Improve the new arrival cards design

As of now the cards look simple, there is no animation on hover, and not even the cursor is a pointer at hover, I want to fix these and make cards look more modern, please assign this to me under hacktoberfest label

Sure, go ahead! 🤩

I want to Contribute in this Project for Hacktoberfest, If you Have any Issue then you can suggest me. I want to give my best

Sure, go ahead! 🤩

great then

@KiranAminPanjwani  can I take up this task


MAJ vars for jdk 8

I update vars for Oracle jdk 8
But also, I have seen that jdk 7 don't work because Oracle pass the jdk 7 in older version (the link changes)  I tried to fix it but no success for now
So for now all the role don't work with Java 7.

In case anyone else is waiting on the CI to sort out, here's an example workaround for the playbook to override the role variables:
- name: "Setup an Oracle Java 8 linux host on RHEL."
  hosts: java8
  become: true

  roles:
  - role: ChristopherDavenport.universal-java
    java_type: Oracle
    java_version: 8
    __java_oracle_rpm: java8u131
    __java_oracle_download: http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
    __java_oracle_download_checksum: md5:9024d13ec651d07de450d465f14065a6

Ok, I'll merge this for 8 since 7 is broken anyways. Very upsetting. I'll go looking for a new url I guess.


[Request] Accept request from same network.

Hello, can you add option feature to accept incoming dns request from same network (<IP_ADDRESS>) like previous version?
Thank you for your hardwork.

+1


Prefer downloading pre-built wasm-bindgen binaries

r? @alexcrichton

Finally got CI and all that working -- phew! Thanks for review @alexcrichton :)

🎉


✨ Add external Attribute-Based Access Control manager (ABAC) - Oso

Using an ABAC helps to easily manage access to resources in the API, this without the needs of delegate this complex task to a Database scheme. This approach simplifies the access control for resources. More information about this model can be found here.
This feature is inspired in this post.

Oso was declined as solution and Casbin was implemented instead.


Align project structure with other server implementations

Fixes spring-cloud/spring-cloud-dataflow-admin-cloudfoundry#41

Trouble with spring-cloud-dataflow-deployer-cloudfoundry/pom.xml. You kept resource include for admin.yml and banner.txt while admin.yml was moved into server package and banner.txt` is nowhere to be found.
admin.yml is packaged with server but resource definition has been defined in pom files order to enable filtering. This is causing admin.yml in server jar to have:
info:
  app:
    name: "@project.artifactId@"
    description: "@project.description@"
    version: "@project.version@"

I don't understand making spring-cloud-dataflow-deployer-cloudfoundry-1.0.0.BUILD-SNAPSHOT.jar as an executable boot jar in spring-cloud-dataflow-deployer-cloudfoundry/pom.xml because then admin.yml from spring-cloud-dataflow-server-cloudfoundry-1.0.0.BUILD-SNAPSHOT.jar is not present.
	<properties>
		<start-class>org.springframework.cloud.dataflow.admin.AdminApplication</start-class>
		<spring-cloud-dataflow.version>1.0.0.BUILD-SNAPSHOT</spring-cloud-dataflow.version>
	</properties>

also version should be ${spring-cloud-dataflow.version} and not hardcoded if for some reason we keep this.

You defined dependencies in spring-cloud-dataflow-server-cloudfoundry/pom.xml without versions assuming those would get picked out from parent pom's dependencyManagement. This is not good because, afaik, maven's release plugin or any other way to prepare all reactor pom's versions for a release only touches <dependencies> sections and everything under <dependencyManagement> would be kept unmodified.
Meaning if not manually modified during a release process, release would then use snapshots for server build.

I removed the version handling from the parent pom

The doc needs to be updated with this change along with the sub-project names.

Squashed, rebased and merged as 59df42602ab46153d8a52590f08fa05acb897aeb along with the doc updates d6dc1a53be656cfc2ce802d669f6cfe768fea269. will issue a PR on removing s-c-d-server-core from starter project's dependencies.

Also, verified the changes with the stream deployment on CF environment using Data Flow Server.


Feature idea: hook directory

Using hooks with letsencrypt.sh is a really useful thing!
In a more complex scenario, one starts to have multiple hooks (deploying challenge to the web server, depoloying certs, restarting server…). Handling this in one big script can become confusing or even unmaintainable.
Idea: Run multiple scripts in a directory (like with the config directory). In fact my current main hook script has a call to "run-parts" in it to run the scripts in a directory. But maybe this wants to be integrated?
I am unsure, on how this relates to the hook-chain feature and how this works out for checking that a hook is available to deploy dns-01 challenges. This should be discussed, if there is interest in including this feature.

I don't think it's worth the trouble, whoever needs this can easily build a simple wrapper using run-parts or whatever is available. If you want you can create a wiki-page for an example script, but having it as part of the main script... na..

Well, why do you have a conf.d then? The admin could have written the 'for i in conf.d/*.conf; do source "$i"; done' into the main conf also?

The conf.d was mainly for package maintainers who ship a default config which can be changed in conf.d files. Yea it wasn't really necessary, but removing it now would also be bad, but I want to avoid adding more things that aren't necessary.

Just to add my tuppence worth: I'm using a cloudflare hook for dns-01 verification, but also need to restart my nginx server once it's successful. I don't want to pollute the cloudflare hook with this because I have many machines and not all of them run an nginx instance, but all of them use cloudflare for verification. Having a directory of hooks would make this a lot easier!
(Or just the ability to have multiple hooks, is this possible?)

I made a wiki page showing how to use multiple hooks

I'm not a packager but I am a sysadmin using config management, which is basically the same thing, and I think this is a good idea. I can't isolate my daemons that use SSL from each other if I'm using dehydrated without this. It's okay to manually do something with run-parts or just paste together all your hooks into one script like in the wiki, but the manual labour becomes unmaintainable past two or three servers.
I'm working on a package at https://github.com/kousu/dehydrated-hooks to standardized how to interact with hooks! So far it's installable on Debian. I haven't given it a workout yet but, if you're interested, give it a shot and give me some feedback.
:duck:

I've come up with an argument against: the whole design of letsencrypt assumes that there are wide windows of time involved, so maybe it's better to just use cron for everything you might do with deploy-cert. Certs are supposed to be renewed 30 days in advance, maybe 29 or 28 days if something glitches out, which means it's no problem if your daemons use the old certs for a while. For example, put
# /etc/cron.d/nginx
30 2 * * * systemctl reload nginx

# /etc/cron.d/lockdown-keyfile
# opensmtpd refuses to use a cert that's not 0400 root:root; but other apps like radicale *require* 0440 root:ssl-cert
30 2 * * * cp /var/lib/dehydrated/certs/privkey.pem /var/lib/dehydrated/certs/privkey.locked.pem && chmod 400 /var/lib/dehydrated/certs/privkey.locked.pem

Plus, this is more fiable because a failure in one hook can't (or at least is a lot less likely to) wreck the others -- and if it does, it will just try again in 24 hours.
I guess this isn't such an issue with deploy-challenge and clean-challenge; but I can't think of a use case where you need multiple hooks for those. Maybe if you want to use HTTP-01 for some domains and DNS-01 for others? But...why?
What I do think would be useful would be separating the 3 kinds of hooks into separate files so they can be managed orthogonally, and I've done that in https://github.com/kousu/dehydrated-hooks.

I've given my package a workout. It works: https://github.com/kousu/dehydrated-hooks/releases/tag/1.0.0. But I still think you should probably just use cron.


Modal closed after select emoji

I want to select multi emoji in one time, but modal is closed after select an emoji
How can I select multiple without closing?

@mateki0 can you take a look on this?

Hi @lamlengend98 , there's separate props for this - https://thewidlarzgroup.github.io/rn-emoji-keyboard/docs/api/modal#allowmultipleselections
And here is the example in the code
https://github.com/TheWidlarzGroup/rn-emoji-keyboard/blob/master/example/src/SelectedEmojis/SelectedEmojis.tsx

Exactly like @mateki0, allowMultipleSelections prop is what you're looking for. I'm closing this issue as it has been resolved, but feel free to reopen if you have any additional questions


Release Google.Cloud.Connectors.V1 version 1.0.0-beta01

Changes in this release:
Initial release.

Created release for Google.Cloud.Connectors.V1-1.0.0-beta01


Can't get led_blinker to run

Hi Pavel,
I am glad to see that you ported your building system to the Eclypse-z7, I really like it.
However, I have problems to get the led_blinker to run:
I tried the img you provide for downloading and also the img i build myself (after updating line 6 in alpine.sh to tools_tar=apk-tools-static-2.10.8-r0.apk, since the old one was not available anymore)
Both times nothing happens to the RGB leds after writing the bit file to the FPGA.
With my limited experience I am already out of ideas how to debug this issue further.
I hope you can provide me a solution or with further debugging instructions/ideas.
BR
Alex

My mistake, I didn't connect the ADC board but your example takes the clock from the ADC board. After changing the clock input etc. it is working.


corrected .sync exception message

Good catch!  Thanks!

@ryanstout  you didn't merge this request. Is there any issue with PR?

Sorry, just hit the wrong button.   Thanks!


added link to github template

Changes
added link to a github template
Testing
n/a
Docs
n/a

You’ve submitted a GitHub repo to our news section, and this isn’t news or a blogpost. If you write a blogpost explaining what this template is, how to use it, and how it’s different from the existing Snowpack starter apps, we’d be happy to include that in the News section instead 🙂

@drwpow I actually wrote a tiny article: https://dev.to/johnb8005/get-started-with-snowpack-react-and-typescript-in-1-min-5af2

@drwpow I actually wrote a tiny article: https://dev.to/johnb8005/get-started-with-snowpack-react-and-typescript-in-1-min-5af2

That’s a good start, but it’s still missing a lot of explanation, reasoning, and the other things mentioned. The article linked only has a few sentences basically saying “this repo exists;“ I still don’t understand how to get set up, why it exists, what problem it solves, etc. (again, because create-snowpack-app exists, so you can already get started with Snowpack + React in < 1 min).

Please click on the other links here, and try and match the other blog posts’ format (especially other ones on dev.to): https://www.snowpack.dev/news


Error: Unable to pub upgrade flutter tool. Retrying in five seconds...

ubuntu 17.04

I have the same problem.
This what I see after  run pub --trace upgrade --verbosity=error --no-packages-dir
| package:pub/src/source.dart 165                           BoundSource.getVersions
| package:pub/src/solver/version_solver.dart 231            SolverCache.getVersions.<fn>
| dart:async                                                runZoned
| package:pub/src/http.dart 228                             withDependencyType
| package:pub/src/solver/version_solver.dart 230            SolverCache.getVersions
| package:pub/src/solver/unselected_package_queue.dart 121  UnselectedPackageQueue._getNumVersions
| package:pub/src/solver/unselected_package_queue.dart 50   UnselectedPackageQueue.add
| package:pub/src/solver/version_selection.dart 68          VersionSelection.select.<fn>
| dart:async                                                _completeOnAsyncReturn
| package:pub/src/solver/version_selection.dart 70          VersionSelection.select.<fn>
| dart:async                                                _completeOnAsyncReturn
| package:pub/src/solver/unselected_package_queue.dart 54   UnselectedPackageQueue.add
| dart:async                                                _completeOnAsyncReturn
| package:pub/src/solver/unselected_package_queue.dart 128  UnselectedPackageQueue._getNumVersions
| dart:async                                                _Completer.completeError
| package:pub/src/solver/version_solver.dart 254            SolverCache.getVersions
| dart:async                                                _Completer.completeError
| package:pub/src/source/hosted.dart 153                    BoundHostedSource.doGetVersions
| dart:async                                                _Completer.completeError
| package:http/src/base_client.dart 172                     BaseClient._sendUnstreamed
| dart:async                                                _Completer.completeError
| package:http_throttle/http_throttle.dart 51               ThrottleClient.send
| dart:async                                                _Completer.completeError
| package:pub/src/http.dart 127                             _PubHttpClient.send
| dart:async                                                _Completer.completeError
| package:http/src/io_client.dart 66                        IOClient.send
| ===== asynchronous gap ===========================
| dart:async                                                _Completer.completeError
| package:pub/src/source/hosted.dart 153                    BoundHostedSource.doGetVersions
| ===== asynchronous gap ===========================
| dart:async                                                _asyncErrorWrapperHelper
| package:pub/src/source/hosted.dart 129                    BoundHostedSource.doGetVersions
| package:pub/src/source.dart 165                           BoundSource.getVersions
| package:pub/src/solver/version_solver.dart 231            SolverCache.getVersions.<fn>
| dart:async                                                runZoned
| package:pub/src/http.dart 228                             withDependencyType
| package:pub/src/solver/version_solver.dart 230            SolverCache.getVersions
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:pub/src/solver/version_solver.dart 204            SolverCache.getVersions
| package:pub/src/solver/unselected_package_queue.dart 121  UnselectedPackageQueue._getNumVersions
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:pub/src/solver/unselected_package_queue.dart 115  UnselectedPackageQueue._getNumVersions
| package:pub/src/solver/unselected_package_queue.dart 50   UnselectedPackageQueue.add
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:pub/src/solver/unselected_package_queue.dart 44   UnselectedPackageQueue.add
| package:pub/src/solver/version_selection.dart 68          VersionSelection.select.<fn>
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:pub/src/solver/version_selection.dart 61          VersionSelection.select.<fn>
| dart:async                                                _completeOnAsyncReturn
| package:pub/src/solver/version_selection.dart 70          VersionSelection.select.<fn>
| dart:async                                                _completeOnAsyncReturn
| package:pub/src/solver/unselected_package_queue.dart 54   UnselectedPackageQueue.add
| dart:async                                                _completeOnAsyncReturn
| package:pub/src/solver/unselected_package_queue.dart 128  UnselectedPackageQueue._getNumVersions
| dart:async                                                _Completer.completeError
| package:pub/src/solver/version_solver.dart 254            SolverCache.getVersions
| dart:async                                                _Completer.completeError
| package:pub/src/source/hosted.dart 153                    BoundHostedSource.doGetVersions
| dart:async                                                _Completer.completeError
| package:http/src/base_client.dart 172                     BaseClient._sendUnstreamed
| dart:async                                                _Completer.completeError
| package:http_throttle/http_throttle.dart 51               ThrottleClient.send
| dart:async                                                _Completer.completeError
| package:pub/src/http.dart 127                             _PubHttpClient.send
| dart:async                                                _Completer.completeError
| package:http/src/io_client.dart 66                        IOClient.send
| ===== asynchronous gap ===========================
| dart:async                                                Future.forEach
| package:pub/src/solver/version_selection.dart 61          VersionSelection.select
| ===== asynchronous gap ===========================
| dart:async                                                _asyncThenWrapperHelper
| package:pub/src/solver/version_selection.dart 53          VersionSelection.select
| package:pub/src/solver/backtracking_solver.dart 172       BacktrackingSolver.solve
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:pub/src/solver/backtracking_solver.dart 158       BacktrackingSolver.solve
| package:pub/src/solver/version_solver.dart 42             resolveVersions.<fn>
| package:pub/src/log.dart 409                              progress
| package:pub/src/solver/version_solver.dart 40             resolveVersions
| package:pub/src/entrypoint.dart 193                       Entrypoint.acquireDependencies
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:pub/src/entrypoint.dart 192                       Entrypoint.acquireDependencies
| package:pub/src/command/upgrade.dart 41                   UpgradeCommand.run
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:pub/src/command/upgrade.dart 40                   UpgradeCommand.run
| package:args/command_runner.dart 194                      CommandRunner.runCommand
| ===== asynchronous gap ===========================
| dart:async                                                new Future.microtask
| package:args/command_runner.dart 142                      CommandRunner.runCommand
| package:pub/src/command_runner.dart 168                   PubCommandRunner.runCommand.<fn>
| dart:async                                                new Future.sync
| package:pub/src/utils.dart 102                            captureErrors.<fn>
| package:stack_trace                                       Chain.capture
| package:pub/src/utils.dart 117                            captureErrors
| package:pub/src/command_runner.dart 168                   PubCommandRunner.runCommand

see this https://github.com/dart-lang/pub/issues/1648

@lifengzhai : Is lantern the problem? How to solve, concrete


Bugfix - Conditions can contain regex strings

Example:
condition: all of them and not file_name matches /CA.dll/
See: https://yara.readthedocs.io/en/v3.5.0/writingrules.html#external-variables

Having similar issues in matching which results in TypeError: unknown text at '<some regex>' ; token of type 'REXSTRING' when conditions directly contain regexes.
Any chance of this PR being approved?


[FR] disable the "must be on BOM" restriction

Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find a similar feature request

Problem statement
i'm using inventree to track servers and components in it.
it's a bit inconvenient to edit the BOM to include all possible components, like all 14 different drive types.
Suggested solution
would be nice to have an option to disable the "must be on BOM" restriction
Describe alternatives you've considered
we're currently just adding every possible component to the bom
Examples of other systems
a DCIM or asset managment could do it i guess, but those don't really work well for when you build things yourself
Do you want to develop this?

[ ] I want to develop this.

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

@aep implementation incoming in https://github.com/inventree/InvenTree/pull/6719

Thank you @SchrodingersGat for contributing to close this issue! ⭐
The rewards from this issue, totalling $50, has been shared with you.
What now?

Create a Polar account
See incoming rewards & setup Stripe to receive them
Get payouts as backers finalize their payments

If you already have a Polar account setup, you don't need to do anything.


Hono / Pothos scopes integration error

Hi, I'm integrating Hono (edge web server) and Pothos together and came up against an error when starting to use scopes. This is how I set my SchemaBuilder up:
interface Root<T> {
  Context: T
}

export interface BuilderContext {
  ctx: Context
}

const builder = new SchemaBuilder<
  Root<BuilderContext> &
  {
    Scalars: {
      Date: {
        Input: Date
        Output: Date
      }
    }
  } &
  {
    AuthScopes: {
      public: boolean
    }
  }
>({
  plugins: [ScopeAuthPlugin, SimpleObjectsPlugin],
  authScopes: async (context) => ({
    public: false, // Just for testing initially
  }),
  scopeAuthOptions: {
    authorizeOnSubscribe: true
  }
})

// Other mutations and queries added elsewhere and work without authScopes
builder.queryType({})
builder.mutationType({})

export const schema = builder.toSchema({})

And this is how it integrates with Hono:
const rootResolver: RootResolver = (ctx?: Context) => {
  return { ctx }
}

app.use(
  '/whgraphql',
  graphqlServer({
    schema, // imported from previous declaration
    rootResolver
  })
)

If I include authScopes in the mutation declaration, I get the error: Invalid value used as weak map key when I attempt to run the mutation. If I remove authScopes, then the error goes away. Any ideas?
builder.mutationField('register', (t) =>
  t.field({
    type: RegisterResponse,
    args: {
      input: t.arg({
        type: RegisterRequest,
        required: true
      })
    },
    authScopes: { public: true },
    resolve: async (root, args) => {
      let ctx = (root as { ctx: Context<Environment, string, {}>}).ctx
      console.log("Made it!", JSON.stringify(root), args)
      const config = getConfig(ctx.env)
      const db = getDBClient(config.database)
      let userId = nanoid()
      try {
        await db.insertInto('user').values({
          id: userId,
          name: args.input.name,
          email: args.input.email,
          username: args.input.username,
          password: args.input.password,
          country: args.input.country,
          location: args.input.location,
          timezone: args.input.timezone,
          avatarUrl: args.input.avatarUrl,
          language: args.input.language,
        }).executeTakeFirstOrThrow()
      } catch (e: unknown) {
        handleDbErrors(e, () => {
          throw new ApiError(httpStatus.BAD_REQUEST, 'User already exists')
        })
      }
      const user = await db.selectFrom('user').selectAll().where('user.id', '=', userId).executeTakeFirst()
      return user
    }
  })
)

You need to ensure that your server creates a context object for each request.  I suspect that this isn't currently set up

Thanks for the pointer. Will look into it further.

We can close this now - I've moved on to using the Yoga server


Adding elkington support for ZC, CC, UA, PC, SD messages.

Adding elkington support for ZC, CC, UA, PC, SD messages.

Thanks for the PR. I'll look at this today. Glad to meet another Elk'er.

Great. Many thanks writing the library in the first place. It greatly
helped me in my project.
thanks,
=m
On Sun, Jan 18, 2015 at 6:27 AM, kevinohara80<EMAIL_ADDRESS>wrote:

Thanks for the PR. I'll look at this today. Glad to meet another Elk'er.
—
Reply to this email directly or view it on GitHub
https://github.com/kevinohara80/elkington/pull/4#issuecomment-70410126.

Released in 0.1.0. Thanks again.


Update to latest seL4 kernel.

Minor changes to compile with seL4 kernel.

This library has been combined with other libraries in https://github.com/seL4/seL4_libs, as a result this it is frozen at the current tip.

Right, so I'm guessing I need to change the .repo file to pull in the combined one?

Yes, that would be awesome.
All tools repos are in seL4_tools
All libsel4.* libs are in seL4_libs
And the rest are in util_libs
-----Original Message-----
From: "Xi Ma Chen"<EMAIL_ADDRESS>Sent: 8/03/2016 11:27 AM
To: "seL4/libsel4utils"<EMAIL_ADDRESS>Cc: "Anna Lyons"<EMAIL_ADDRESS>Subject: Re: [libsel4utils] Update to latest seL4 kernel. (#4)
Right, so I'm guessing I need to change the .repo file to pull in the combined one?
—
Reply to this email directly or view it on GitHub.


[cmake] Remove custom FindPostgreSQL.cmake module

Since version 2.8.8, CMake maintains fully-featured module to find PostgreSQL components.

https://cmake.org/cmake/help/v3.0/module/FindPostgreSQL.html

Dropped


unparsable data present in cassandra.

Hi,
Relating to bug (https://github.com/thinkaurelius/titan/issues/1013) we have found following findings.

Even on repairing cassandra cluster bug persists.
On further investigation we found that, for a particular vertex (with titan id : 291494040 and cassandra row key id: 22bfb130 in edgestore), the data present in cassandra is unparsable by titan.  For your reference following data are present.

0x0000000022bfb130 |                                       0x010b |               0x0b0002000000
0x0000000022bfb130 |                                         0x0b | 0x0b00020000000d210b696db280
0x0000000022bfb130 | 0x0b00010000000200a00b000200000006210b696db6 |   0x50e2b8f5d90000000c00010c
0x0000000022bfb130 |                                         0x28 |               0x021c7c1d9280
0x0000000022bfb130 |                                         0x34 | 0x021c7c1d9680000000003ae9ce
0x0000000022bfb130 | 0x368a110a000313d48a50e2b8f5d90000000c00010c |               0x001540a7fe7f
0x0000000022bfb130 |                                         0x40 |               0xc975eeb85076
Of which only following keys are valid.
0x0000000022bfb130 |                                         0x28 |               0x021c7c1d9280
0x0000000022bfb130 |                                         0x34 | 0x021c7c1d9680000000003ae9ce
Would it mean that titan has wrongly written that data or this corruption happened in cassandra?
Now we are going to rectify this data manually through thirft API (basically we are going to delete the wrong column name from cassandra edgestore). Is this the right approach or you suggest something else to do in this case?
Can you suggest any reason that might lead to corruption of data?

@mishraawake I have only seen this data corruption occur in two contexts:

Part of the schema information was lost. This would explain why some of the entries can no longer be read since the needed schema information cannot be found
Cassandra was operated sub-quorum or in a split-brain scenario for a while before the cluster subsets where merged back together and invalid data was merged into the edgestore.

First point is looking more likely  but if we look at the key name "0x010b", Following sequence of call happens IDHandler. readEdgeType() -> VariableLong.readPositiveWithPrefix() -> VariableLong.readUnsigned(). The last call fails. After looking at code it seems that, its not referring for schema to parse that data at all. It fails because , I think, this key name is not valid for titan (0.4.2) .

Though there are some exception coming which point to the loss of schema also.

We never merged cassandra data ever since we went live. So, its not manual merged. I don't know if merged would have happened automatically.

Are you saying that this call VariableLong.readUnsigned() is throwing an exception when reading data? Do you have the entire stack trace? Sorry, just saw your comment now.

We get following stack trace.
We also have some instances where vertex index have been screwed for some vertex..
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.til.mytimes.titan.mytimes.AnnotationProcessor.executeMethod(AnnotationProcessor.java:111)
at com.til.mytimes.titan.mytimes.RequestProcessor.handleRequest(RequestProcessor.java:18)
at com.til.mytimes.titan.netty.MyTimesServerHandler.messageReceived(MyTimesServerHandler.java:89)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:74)
at io.netty.channel.DefaultChannelHandlerInvoker$6.run(DefaultChannelHandlerInvoker.java:143)
at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:57)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:794)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.esotericsoftware.kryo.KryoException: Buffer too small: capacity: 2, required: 8
at com.esotericsoftware.kryo.io.Input.require(Input.java:152)
at com.esotericsoftware.kryo.io.Input.readLong(Input.java:650)
at com.thinkaurelius.titan.graphdb.database.serialize.kryo.InputScanBuffer.getLong(InputScanBuffer.java:40)
at com.thinkaurelius.titan.graphdb.database.serialize.attribute.LongSerializer.read(LongSerializer.java:13)
at com.thinkaurelius.titan.graphdb.database.serialize.attribute.LongSerializer.read(LongSerializer.java:7)
at com.thinkaurelius.titan.graphdb.database.serialize.kryo.KryoAttributeSerializerAdapter.read(KryoAttributeSerializerAdapter.java:21)
at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:626)
at com.thinkaurelius.titan.graphdb.database.serialize.kryo.KryoSerializer.readObjectNotNull(KryoSerializer.java:118)
at com.thinkaurelius.titan.graphdb.database.EdgeSerializer.parseRelation(EdgeSerializer.java:211)
at com.thinkaurelius.titan.graphdb.database.EdgeSerializer.readRelation(EdgeSerializer.java:119)
at com.thinkaurelius.titan.graphdb.database.EdgeSerializer.readRelation(EdgeSerializer.java:59)
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx$4$3.apply(StandardTitanTx.java:780)
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx$4$3.apply(StandardTitanTx.java:777)
at com.google.common.collect.Iterators$8.transform(Iterators.java:860)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at com.thinkaurelius.titan.graphdb.query.LimitAdjustingIterator.next(LimitAdjustingIterator.java:55)
at com.thinkaurelius.titan.graphdb.query.QueryProcessor$MergeSortIterator.nextInternal(QueryProcessor.java:285)
at com.thinkaurelius.titan.graphdb.query.QueryProcessor$MergeSortIterator.(QueryProcessor.java:260)
at com.thinkaurelius.titan.graphdb.query.QueryProcessor.getUnwrappedIterator(QueryProcessor.java:115)
at com.thinkaurelius.titan.graphdb.query.QueryProcessor.access$000(QueryProcessor.java:25)
at com.thinkaurelius.titan.graphdb.query.QueryProcessor$OuterIterator.(QueryProcessor.java:60)
at com.thinkaurelius.titan.graphdb.query.QueryProcessor.iterator(QueryProcessor.java:46)
at com.til.mytimes.titan.mytimes.FeedGeneratorUtils.getVertexesId(FeedGeneratorUtils.java:182)
at com.til.mytimes.titan.mytimes.TitanReadService.getUsersFollowersFollowee(TitanReadService.java:433)
... 12 more

Is there any progress on this issue? We have experienced same problem on following titan version as well.
titan version :           0.5.3
cassandra version : 2.1.6


Sanitaiton & Clean Up.

Some comment sanitation and code clean up for your good repo!

@aman00323 or @Naman2706  Any updates on this ?

@pratikbin Looks good can anyone test this locally @Naman2706, @pratikbin, @vyas-shyam

Following up to get this one closed out.

@DiscoRiver GitHub facing some issue in CI approvals, so I'll lint and scan code in local and will merge if everything goes fine

@DiscoRiver Thank you for contribution. Hope it help(s|d) you.

May the source be with you


How to add system prompt with openAI conversational API?

How can you set the system prompt for the conversational API? Is it possible?

The prompting experience at the moment is limited to the PromptTemplate interface. We'd have to create a particular node for the ChatPromptTemplate which is definitely in the roadmap.
Ideally, we would build the HumanMessage, AIMessage, and SystemMessage but I'm not sure that would be a good experience. We'll think this through and add it ASAP.


Geolocator Documentation - wiki page

Give an overview of how the geolocator.py file works in a wiki page

the wiki page "geolocator.py" has been written


[NETBEANS-1175] move websvccommon cluster

[NETBEANS-1175] Move websvccommon cluster
Synced the repo with upstream to make sure everything is up to date
duplicate the repo folder and renamed to
“incubator-netbeans-1175-move-websvccommon-cluster”
then created new branch for the work and checked out
git branch netbeans-1175-move-websvccommon-cluster
git checkout netbeans-1175-move-websvccommon-cluster

listed out the modules to be moved
ant print-selected-modules -Dnb.clusters.list=nb.cluster.websvccommon
modules=
websvc.jaxwsmodelapi,
websvc.saas.api,
websvc.saas.codegen,
websvc.saas.kit,
websvc.saas.ui
created directory for the cluster
mkdir websvccommon

then moved the modules
git mv websvc.jaxwsmodelapi websvccommon/
git mv websvc.saas.api websvccommon/
git mv websvc.saas.codegen websvccommon/
git mv websvc.saas.kit websvccommon/
git mv websvc.saas.ui websvccommon/

commit 1
[NETBEANS-1175] Move websvccommon cluster - task 1
moving the modules to websvccommon folder

performed find & replace
../nbbuild
with
../../nbbuild
commit 2
[NETBEANS-1175] Move websvccommon cluster - task 2
replace
../nbbuild
with
../../nbbuild

and
<project basedir="." default="build" name="
with
<project basedir="." default="build" name="websvccommon/
commit 3
[NETBEANS-1175] Move websvccommon cluster - task 3
replace
<project basedir="." default="build" name="
with
<project basedir="." default="build" name="websvccommon/

Update references to the moved modules in rat-exclusions.txt
commit 4
[NETBEANS-1175] Move websvccommon cluster - task 4
Update references to the moved modules in rat-exclusions.txt

performed ant on root folder
BUILD SUCCESSFUL
Total time: 8 minutes 35 seconds
then  ant clean build in each module of the cluster
BUILD SUCCESSFUL
was the output for all.
ant tryme on root
opened the IDE successfully
tried creating a simple java application
prompted to enable java se
prompted to install nb-javac
restarted itself for the installation of nb-javac
created “Hello Apache Netbeans!” app
executed successfully.
did not notice any problem.
Hope everything is fine.

Additional
output  for
 ant build test-platform rat verify-libs-and-licenses build-nbms generate-uc-catalog build-source-zips

BUILD SUCCESSFUL
Total time: 72 minutes 49 seconds

Looks great, thanks for being so thorough, merging this.


Suggestion: generate -runbundles in archetype

The bndrun files generated by the archetype have -runrequires populated but not -runbundles. This forces the user to do a resolve before the project can build cleanly.
Why not prepopulate -runbundles in the initial archetype output? We already know exactly what it will be at this stage. Then the user can immediately build and run.

Why not prepopulate -runbundles in the initial archetype output?

What would we populate it with? In the majority of cases the bundle in -runrequires will have dependencies and we don't know what they are.

The bundle will not have any dependencies immediately after generation from the archetype. Even if the user starts adding basic "hello world" code to the bundle, they will not need to worry about dependencies until later on.
The output of resolving immediately after generation of the project is:
-runbundles: \
        org.apache.felix.scr;version='[2.1.0,2.1.1)',\
        ${project.groupId}.${project.artifactId};version='[1.0.0,1.0.1)'

I can see that this is reasonable for the project archetype, but the application archetype could be run very late in the process and pointed at an existing bundle with many dependencies.

Then maybe we just do this for the project archetype. If the app archetype is used late in the process then the user will have learned about resolving at that point. But for the project archetype I think it's a win to remove steps in the way of "Hello world".

Isn't it better to say nothing and force a resolve rather than appear to have resolved but get errors when attempting to run?

I don't think there's a difference. The build will fail at the resolve stage, whether -runbundles is empty or non-empty-with-incorrect-content.

Okay good point. Then I propose to leave -runbundles empty for the app archetype but populate it for the project template.

Sounds good - will you make a PR?


Normalize syntax highlighting

Added syntax highlighting improvements for various languages:
Vim Changes
There was too much orange as it was being used for vimFuncName, which is used at the invocation of a builtin vim function. Based on the @cocopon guidance in his design guide, orange should be used sparingly, such as when defining a function, which usesvimFunction.
Here is a screenshot showing the new changes:

For reference, here is the screenshot before the changes:

JS Changes
There was inconsistent use of orange in js. Orange was used for the actual word function instead of the name of a function or method being defined. Class names at definition site were not highlighted in cyan like other languages. Variable definitions are now highlighted, so one can quickly scan code to see where the introduction of a variable occurs (local variables, function parameters, destructuring). Added support for template strings as well.
Here are the new changes:

For reference, here is the screenshot before the changes:

After seeing your suggestion, I'm rethinking about whole highlighting rules... please give me some time.

After seeing your suggestion and pull request, re-thought whole highlightings and found some new implicit rules:

Use less colors, avoid much colors
I think that it is desirable to apply normal color to class names, variable names, etc. (because they accounts for many of the entire codes)
Orange colors will be applied to title-like element
(e.g. section titles in markdown, name of functions or method definitions in JavaScript, etc.)


Add ability have default values/selections

I would love if we could set default values/selections. For example:

New window checked by default
External URL selected as the link type by default, or any of the other available types other than the current internal link

This should already be possible using the normal initialValue property on the field:
defineField({
  name: 'link',
  type: 'link',
  initialValue: {
    type: 'external',
    url: 'https://google.com/search',
    blank: true,
    parameters: '?q=sanity'
  }
})

Please feel free to re-open this if that doesn't work for you.


BasicExternalCluster-based tests hang if server fails to start

Tests derived from AbstractHarnessEntry don't exhibit this behavior so the problem is likely related to the different way in which the client interacts with the harness (since it is just a "pseudo-client", in these cases).

The problem we are running into is that galvan assumes it is the thread coordinating the test so, once it starts up all the child processes, it calls waitForFinish() on the StateManager.  Calling this will detect the failure in the case of the server failing to start up.  This is why tests based on AbstractHarnessEntry don't have this problem:  the client is a different process so the harness is free to do this wait and bring down all the child processes when something goes wrong.
In the case of tests based on BasicExternalCluster, the client is running within the thread which would usually be blocked in waitForFinish() so nobody can observe the failure and bring down the test.  Meanwhile, the thread running the test is blocked in the connection, waiting for the server to return.

While it is possible to spin up a sort of "shepherding thread" within BasicExternalCluster, it has no good way of triggering the failure, since it isn't the thread running as the test entry-point (it can System.exit but that is a heavier operation than would be ideal).
I suspect that a reasonable, but somewhat inelegant, approach to this might be to actually run the test logic in a different thread so that the test entry-point thread can wait for the test to complete, in a way similar to how AbstractHarnessEntry does.
The up-shot of this approach is that it would allow for testing of concurrent multi-client scenarios, with the clients still running in-process, making for easier debugging of the client-side of the application.

After talking to @cljohnso, it sounds like the ideal direction is to handle these single-client cases as their own beast, not folding them into a broader multi-client (multi-threaded) solution.  The reasoning being that this lets us more directly leverage the simplicity of JUnit and means that writing tests stays relatively simple, in the common-case.
To that end, I will look into how this shepherding thread could be used to trigger a sort of error-state interruption on the test thread so that it can fail out in the thread running the test.


Cannot find protocol declaration for 'PHPickerViewControllerDelegate' [🐛]

Description
I am trying to run an application that has ImagePicker, but when trying to run the application, the application does not compile and give an error in ImagePicker. The error is:
Cannot find protocol declaration for 'PHPickerViewControllerDelegate'
Can anybody help me ?
Additional Information

Image Picker version: 3.6.0;
React Native version: 0.61.2;
Platform: iOS;
Development Operating System: MacOS;
Dev tools: xCode 11;

The same issue!

@ruanblima getting the same issue.. Any updates?

Please update to xcode 12, phpicker requires it. If you can't for now, then you have to stick with 3.5.0


about crash problem in SuperPoint::build()

crash problem in SuperPoint::build()
Hello!
I try to configure this project, and run into some error, hope for suggestion!
I am PhD student from Shanghai Jiao Tong University.
my envs is
because I have not configure the cuda-11.6, but I update TensorRT to TensorRT-<IP_ADDRESS>

cuda-10.2
TensorRT-<IP_ADDRESS>
cuDNN: v8.2.0

And I can build the project done successfully
CMakeLists.txt
my modify the CMakeLists.txt as following:
cmake_minimum_required(VERSION 3.5)
project(superpointglue)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_BUILD_TYPE "release")
add_definitions(-w)

set(ENABLE_BACKWARD true)
if(ENABLE_BACKWARD)
    add_definitions(-D USE_BACKWARD)
endif()

add_subdirectory(${PROJECT_SOURCE_DIR}/3rdparty/tensorrtbuffer)

set(TENSORRT_ROOT $ENV{HOME}/3rdParty/TensorRT-<IP_ADDRESS>)
SET(CUDA_TOOLKIT_ROOT_DIR "/usr/local/cuda")
set(Torch_DIR "$ENV{HOME}/3rdParty/libtorch/share/cmake/Torch") # zph desktop
# find_package(OpenCV 4.2 REQUIRED) # origin
find_package(OpenCV 3.4.10 REQUIRED) # wzy
find_package(Eigen3 REQUIRED)
find_package(Torch REQUIRED) # wzy
find_package(CUDA REQUIRED)
find_package(yaml-cpp REQUIRED)

include_directories(
  ${PROJECT_SOURCE_DIR}
  ${PROJECT_SOURCE_DIR}/include
  ${OpenCV_INCLUDE_DIRS}
  ${EIGEN3_INCLUDE_DIRS}
  ${CUDA_INCLUDE_DIRS}
  ${YAML_CPP_INCLUDE_DIR}
  ${TORCH_INCLUDE_DIRS} # wzy
  ${TENSORRT_ROOT}/include # wzy
)

add_library(${PROJECT_NAME}_lib SHARED
  src/super_point.cpp
  src/super_glue.cpp
)

target_link_libraries(${PROJECT_NAME}_lib
  nvinfer
  nvonnxparser
  ${OpenCV_LIBRARIES}
  ${CUDA_LIBRARIES}
  yaml-cpp
  tensorrtbuffer
#  ${TENSORRT_ROOT}/lib # wzy
#  ${TORCH_LIBRARIES} # wzy
)

add_executable(${PROJECT_NAME}_image inference_image.cpp)
add_executable(${PROJECT_NAME}_sequence inference_sequence.cpp)

target_link_libraries(${PROJECT_NAME}_image ${PROJECT_NAME}_lib)
target_link_libraries(${PROJECT_NAME}_sequence  ${PROJECT_NAME}_lib)

if (ENABLE_BACKWARD)
    target_link_libraries(${PROJECT_NAME}_image dw)
endif()

I configure this and get the following
-- Found CUDA: /usr/local/cuda-10.2 (found version "10.2")
-- Found CUDA: /usr/local/cuda (found suitable exact version "10.2")
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.2
-- Found cuDNN: v8.2.0  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- /usr/local/cuda/lib64/libnvrtc.so shorthash is 08c4863f
-- Autodetected CUDA architecture(s):  7.5
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
-- Configuring done
-- Generating done

Problem reproduce
problem 1
run ./superpointglue_image  ../config/config.yaml ../weights/ ${PWD}/../image/image0.png ${PWD}/../image/image1.png
get the following bug
Config file is ../config/config.yaml
First image size: 320x240
Second image size: 320x240
Building inference engine......
SuperPoint and SuperGlue inference engine build success.
---------------------------------------------------------
[SuperPoint::infer]
Stack trace (most recent call last):
#4    Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#3    Object "./superpointglue_image", at 0x5631db9fecd9, in
#2    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fd36e921c86, in __libc_start_main
#1    Object "./superpointglue_image", at 0x5631db9fe8b8, in
#0    Object "/home/zph/projects/SuperPoint-SuperGlue-TensorRT/build/libsuperpointglue_lib.so", at 0x7fd372a505ce, in SuperPoint::infer(cv::Mat const&, Eigen::Matrix<double, 259, -1, 0, 259, -1>&)
Segmentation fault (Signal sent by the kernel [(nil)])
[1]    26575 segmentation fault (core dumped)  ./superpointglue_image ../config/config.yaml ../weights/

problem 2
when I delete the .engine and try to set 640*480 image in config and rerun
./superpointglue_image  ../config/config.yaml ../weights/ ${PWD}/../image/image0.png ${PWD}/../image/image1.png
I get following bug
First image size: 640x480
Second image size: 640x480
Building inference engine......
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Stack trace (most recent call last):
#12   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#11   Object "./superpointglue_image", at 0x56016a9fecd9, in
#10   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f85ea947c86, in __libc_start_main
#9    Object "./superpointglue_image", at 0x56016a9fe763, in
#8    Object "/home/zph/projects/SuperPoint-SuperGlue-TensorRT/build/libsuperpointglue_lib.so", at 0x7f85eea7393b, in SuperPoint::build()
#7    Object "/home/zph/projects/SuperPoint-SuperGlue-TensorRT/build/libsuperpointglue_lib.so", at 0x7f85eea73421, in SuperPoint::deserialize_engine()
#6    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f85eafc22db, in operator new(unsigned long)
#5    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f85eafc1d53, in __cxa_throw
#4    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f85eafc1b20, in std::terminate()
#3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f85eafc1ae5, in
#2    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f85eafbb956, in
#1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f85ea9667f0, in abort
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f85ea964e87, in gsignal
Aborted (Signal sent by tkill() 27576 1000)
[1]    27576 abort (core dumped)  ./superpointglue_image ../config/config_new.yaml ../weights/

Try on Docker
I try the docker command, and get:
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: requirement error: unsatisfied condition: cuda>=11.6, please update your driver to a newer version, or use an earlier cuda container: unknown.
ERRO[0000] error waiting for container:

Question

First question is cuda-11.6 is not includeed in docker image?
Second quesion is cuda-11.6 is a really prerequisite condition?

@myboyhood Hi, thank you for your interest in my project.
For the first question, the docker image already has a cuda environment, but you need to make sure that the Nvidia driver on the host matches the cuda version in docker. unsatisfied condition: cuda>=11.6, please update your driver to a newer version seems to remind you to update the Nvidia driver on the host.
For the second question, since I only verified on tensorrt <IP_ADDRESS>, you only need to install cuda versions that match tensorrt <IP_ADDRESS>, and version matching information is available on the Nvidia website.

Thank you for the suggestion.
Now I update my env to yours

cuda-11.6
TensorRT-<IP_ADDRESS>
cudnn-8.4.0

I add some std::cout && std::endl to terminal output to see why the code will stuck on this step.
./superpointglue_image  ../config/config.yaml ../weights/ ${PWD}/../image/image0.png ${PWD}/../image/image1.png

Config file is ../config/config.yaml
First image size: 320x240
Second image size: 320x240
Building inference engine......
[SuperPoint::build] start
SuperPoint::deserialize_engine() start
SuperPoint::deserialize_engine() file.is_open()
SuperPoint::deserialize_engine() file.close()
SuperPoint::deserialize_engine() createInferRuntime complete
SuperPoint::deserialize_engine() engine_ generated
SuperPoint::deserialize_engine() engine_ not nullptr
[SuperGlue::build] start
SuperGlue::deserialize_engine() start
SuperGlue::deserialize_engine() file.is_open()
SuperGlue::deserialize_engine() file.close()
SuperGlue::deserialize_engine() createInferRuntime complete
SuperGlue::deserialize_engine() engine_ generated, size = 65573559

nothing can be output more. I don't know why?
Is there anythig wrong with libtorch ? or the engine file itself ?
(I use the weight in this project, not change it.)

I find the engine genrated in SuperGlue is nullptr, so it gets stuck.
./superpointglue_image  ../config/config.yaml ../weights/ ${PWD}/../image/image0.png ${PWD}/../image/image1.png

Config file is ../config/config.yaml
First image size: 320x240
Second image size: 320x240
Building inference engine......
[SuperPoint::build] start
SuperPoint::deserialize_engine() start
SuperPoint::deserialize_engine() file.is_open()
SuperPoint::deserialize_engine() file.close()
SuperPoint::deserialize_engine() createInferRuntime complete
SuperPoint::deserialize_engine() engine_ generated
SuperPoint::deserialize_engine() engine_ not nullptr
SuperPoint engine build success.
[SuperGlue::build] start
SuperGlue::deserialize_engine() start
SuperGlue::deserialize_engine() file.is_open()
SuperGlue::deserialize_engine() file.close()
SuperGlue::deserialize_engine() createInferRuntime complete
SuperGlue::deserialize_engine() engine_ generated, size = 65573559
SuperGlue::deserialize_engine() engine_ == nullptr

I also solo test SupePoint program to extract feature successfully, get the following:
First image size: 320x240
Second image size: 320x240
Building inference engine......
[SuperPoint::build] start
SuperPoint::deserialize_engine() start
SuperPoint::deserialize_engine() file.is_open()
SuperPoint::deserialize_engine() file.close()
SuperPoint::deserialize_engine() createInferRuntime complete
SuperPoint::deserialize_engine() engine_ generated
SuperPoint::deserialize_engine() engine_ not nullptr
SuperPoint engine build success.
Skip superglue engine build
SuperPoint and SuperGlue test in 10 times.
---------------------------------------------------------
---------------------------------------------------------
First image feature points number: 250
First image infer cost 4 MS
Second image feature points number: 254
Second image infer cost 4 MS
---------------------------------------------------------
First image feature points number: 250
First image infer cost 4 MS
Second image feature points number: 254
Second image infer cost 4 MS

I do not know what I should do with superglue engine.. Hoping for suggestion

I test another computer
env is

cuda-10.2
TensorRT-<IP_ADDRESS>

result
I find both superpoint and superglue engine could be build. but when superpoint infer, exactly when engine_->createExecutionContext() it will throw a error.
./superpointglue_image  ../config/config.yaml ../weights/ ${PWD}/../image/image0.png ${PWD}/../image/image1.png
Config file is ../config/config.yaml
First image size: 320x240
Second image size: 320x240
Building inference engine......
[SuperPoint::build] start
SuperPoint::deserialize_engine() start
SuperPoint::deserialize_engine() file.is_open()
SuperPoint::deserialize_engine() file.close()
SuperPoint::deserialize_engine() createInferRuntime complete
SuperPoint::deserialize_engine() engine_ generated
SuperPoint::deserialize_engine() engine_ not nullptr
SuperPoint engine build success.
[SuperGlue::build] start
SuperGlue::deserialize_engine() start
SuperGlue::deserialize_engine() file.is_open()
SuperGlue::deserialize_engine() file.close()
SuperGlue::deserialize_engine() createInferRuntime complete
SuperGlue::deserialize_engine() engine_ generated, size = 65573559
SuperGlue::deserialize_engine() engine_ not nullptr
[SuperGlue::build] deserialize_engine() complete
SuperPoint and SuperGlue inference engine build success.
SuperPoint and SuperGlue test in 10 times.
---------------------------------------------------------
[SuperPoint::infer] before engine_->createExecutionContext()
Stack trace (most recent call last):
#4    Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#3    Object "./superpointglue_image", at 0x5630980bae69, in
#2    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fc6acb45c86, in __libc_start_main
#1    Object "./superpointglue_image", at 0x5630980ba873, in
#0    Object "/home/zph/projects/SuperPoint-SuperGlue-TensorRT-CIUS/build/libsuperpointglue_lib.so", at 0x7fc6b0e9bbd0, in SuperPoint::infer(cv::Mat const&, Eigen::Matrix<double, 259, -1, 0, 259, -1>&)
Segmentation fault (Signal sent by the kernel [(nil)])
[1]    10644 segmentation fault (core dumped)  ./superpointglue_image ../config/config.yaml ../weights/

question
now I am confused
1. computer 1 performance
   - cuda-10.2，TensorRT-<IP_ADDRESS>
   - can build both superpoint and superglue engine，
   - But in `superpoint infer` function `engine_->createExecutionContext()` throw a error

2. computer 2 performance
   - cuda-11.6，TensorRT-<IP_ADDRESS>
   - can build superpoint, also can infer 320*240 image extact 250 points with 4ms。
   - but build superglue engine give error，specifically `engine == nullptr`

Thanks !
Yes， When I change to Nvidia NX board with Jetpack 5.1 (cuda-11-4 TensorRT8.5 OpenCV4.5).
And I delete the origin superpoint_v1_sim_int32.engine and superglue_indoor_sim_int32.engine. So that the code will generate two new engine file.
Now I can run the superpoint with 14ms and superglue with 38ms.
The question
On a new platfom, should I  delete the origin engine and generate a new one from onnx file? I guess this new engine will not cause error. that is the key.

@myboyhood I'm glad you've fixed the problem, and yes, if you switch to a new platform, you'd better start generating new engine files.

But the onnx file should be generic.

Thank you very much

@yuefanhao
Hello！ in the config.yaml, I do not know if I change the max_keypoints and keypoint_threshold in superpoint.
Qusetion1 : Do I need to generate a new .engine ?
As well as, in the config.yaml if I change the image_width and image_height from 320x240 to 640x480,
Question2 : do I need to generate a new .engine ?
Question3 : A larger image resolution will lead a better SuperGlue match ?
I find if I just change the parameter in the config.yaml, the old engine could work, but I do not know this way is right or not.

@myboyhood Hi, I am sorry that I have been busy recently and have no time to focus on the problem list. In fact, the model supports dynamically sized image inputs. Changing the image size or the maximum number of feature points can be done without regenerating the engine. Larger resolution images might lead to better features and matches? I'm not sure about that. I haven't tried that.

@yuefanhao Thank you very much! I find larger resolution images would not increase the inferring time. And other performances seem also the same. I will use the 640x480 now.

Hello, I have the same problem, how did you solve  problem  1？Thank you！

@Zxhhhjry  you can try to delete all the *.engine file, then you computer platform will generate a new engine file, which can work well.

@Zxhhhjry you can try to delete all the *.engine file, then you computer platform will generate a new engine file, which can work well.

I will have a try, thx!


Nginx pagespeed modsecurity

Hello
I tried everything but I do not know how to solve that.
I'm using ubuntu 16
I installed nginx from the official repo, but then I realized that for PageSpeed I have to use a different version:
https://modpagespeed.com/doc/build_ngx_pagespeed_from_source
Now I would like to also install ModSecurity, but I can not figure out how.
ModSecurity and PageSpeed have their own version of nginx to compile
Is there a way to install on ubuntu16 nginx with PageSpeed and ModSecurity?

You basically just need to do the preparation steps for both, and then
pass in two
--add-module=
arguments to nginx's configure script, with paths to both modules.
On Thu, Feb 16, 2017 at 5:06 PM, ubuntutest<EMAIL_ADDRESS>wrote:

Hello
I tried everything but I do not know how to solve that.
I'm using ubuntu 16
I installed nginx from the official repo, but then I realized that for
PageSpeed I have to use a different version:
https://modpagespeed.com/doc/build_ngx_pagespeed_from_source
Now I would like to also install ModSecurity, but I can not figure out how.
ModSecurity and PageSpeed have their own version of nginx to compile
Is there a way to install on ubuntu16 nginx with PageSpeed and ModSecurity?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Could you be more detailed?
I compile with the same link that I find here?
https://modpagespeed.com/doc/build_ngx_pagespeed_from_source
I have to download ModSecurity and place it in the correct folder, then when compiling i do --add_module ModSecurity ?

When you run the script linked on that page, eventually you will get:
About to build nginx.  Do you have any additional ./configure
arguments you would like to set?  For example, if you would like
to build nginx with https support give --with-http_ssl_module
If you don't have any, just press enter.

This is where you can pass in something like --add-module=/path/to/modsecurity-version/nginx/modsecurity

I'm getting the following error, i'm trying to compile it with https support and naxsi too
./configure: error: invalid option "--add_module=/root/naxsi-master"
Error: Failure running './configure --add-module=/root/ngx_pagespeed-latest-stable --with-http_ssl_module --add_module=/root/naxsi-master', exiting.

I think you need --add-module instead of --add_module


Add dependabot check for MSI custom action

Add dependabot for MSI custom action projects. The package system in this case is NuGet.

https://github.com/signalfx/splunk-otel-collector/blob/main/.github/workflows/scripts/gendependabot.sh will need to be updated for nuget.


Fix ema

I was trying to implement MACD, but EMA wasn't working fine. I had to rewrite it and now it works. It's worth if we can have test values on real data for EMA.

Coverage decreased (-0.02%) to 98.0% when pulling 3bcdf16efcf409841bd5f5873cd8171d5893df2b on fix-ema into 747b91a6c6f355cd93ece9a8320e5bf56ed889a6 on master.


operators [CI] hive-operator

Abhinav and Devan are no longer on the team
I misspelled Joel's handle in #139 / 84b753e :(

/merge possible

/merge possible


Add link to tcmu-runner manpage from tcmu-runner.service

Caught by lintian (Debian static .deb checker).


Action filter development: issue with self.action_mask_spec

Hi :),
I'm currently developing an action filter for your models. I’ve successfully implemented and tested the filter, and it works well. However, I encountered an issue with the self.action_mask_spec variable. Specifically, I noticed that self.action_mask_spec remains None in the following lines:

Line 103
Line 125

even though in my MLP's forward method, I handle the action_mask as follows:
...
tensordict.set(self.out_key, res)

actions_mask = # computation
tensordict['agents'].set('action_mask', actions_mask)

return tensordict

Am I missing any necessary configuration steps here?

Have you implemented the function to provide the action mask spec in the task? action_mask_spec is a TensorSpec (not a bool) and tells benchmarl the shape of your actin mask https://benchmarl.readthedocs.io/en/latest/generated/benchmarl.environments.Task.html#benchmarl.environments.Task.action_mask_spec

if you are modifying an existing vmas taks you can
def get_action_mask_spec(env):
   # return your spec

VmasTask. action_mask_spec = get_action_mask_spec

No, I haven't done it :/
I believed action_mask_spec could have only one shape, linked to the algorithm's action space; I am wrong.

if you are modifying an existing vmas taks you can
def get_action_mask_spec(env):
   # return your spec

VmasTask. action_mask_spec = get_action_mask_spec

I believe I am not modifying vmas tasks; what do you mean?

Have you implemented the function to provide the action mask spec in the task? action_mask_spec is a TensorSpec (not a bool) and tells benchmarl the shape of your actin mask https://benchmarl.readthedocs.io/en/latest/generated/benchmarl.environments.Task.html#benchmarl.environments.Task.action_mask_spec

No, I haven't done it :/ I believed action_mask_spec could have only one shape, linked to the algorithm's action space; I am wrong.

So let me maybe give more context.
The Task class (which is also an enum), defines the spec that will be needed for the task.
A Spec is a torchrl objects that tells what to expects in tensordicts.
One of such methods (linked above) is for defining the spec of the action mask. This is normalli a spec containing one entry with key (group,"action_mask") and value a BinarySpec that has the shape (n_agents,n_actions_in_task).
So the shape of the action mask spec is usually the same of the action spec (n_actions in the task) and has nothing to do with the algorithm.
In your case, if you want to create a mask in the model and not in the env, you still need to provide the action spec in the Task class by implementing this function https://benchmarl.readthedocs.io/en/latest/generated/benchmarl.environments.Task.html#benchmarl.environments.Task.action_mask_spec
It will be sufficient to look at the action spec when creating (this will be different for different tasks) and then in your model you can do exaclty like you are already doing

Thank you for this.
I struggle on undestanding where the new code has to be inserted, my fault :/
I defined the function like this:
def get_action_mask_spec(env: EnvBase) -> CompositeSpec:

    num_envs = ...
    num_agents = ...
    num_actions = ...

    action_mask_spec = BinaryDiscreteTensorSpec(
        n=2,  # binary: 0 or 1 for each action (not available vs available)
        shape=(num_envs, num_agents, num_actions)
    )

    # Create the CompositeSpec with the key ("group", "action_mask")
    composite_spec = CompositeSpec({
        ("group", "action_mask"): action_mask_spec
    })

    return composite_spec

Is it correct? Where this function has to be called? For example in benchmarl/run.py and/or examples/running/run_experiment.py
Thank you.


Create Generic Dataset

This PR pushes the initial work done by @debermudez and me to create a generic dataset class. As a proof of concept, we have added it to work here for the file input case for the chat endpoint.
The target feature branch will contain all of the code changes to support generic dataset class as the new approach. This branch sets up the initial class with this one working pathway, so that the remaining work can be parallelized.
The testing will be broken until all of the pathways are fixed and any relevant tests are updated.
Input command:
genai-perf profile   -m HuggingFaceH4/zephyr-7b-beta   --service-kind openai   --endpoint-type chat   --synthetic-input-tokens-mean 200   --synthetic-input-tokens-stddev 0   --output-tokens-mean 100   --output-tokens-stddev 0   --streaming   --tokenizer HuggingFaceH4/zephyr-7b-beta --input-file rankings_jsonl/queries.jsonl

After talking to @debermudez, I'm going to merge this. We wanted early feedback on the direction, so Brian's review was really helpful. I moved us over to dataclasses for the generic dataset, which looks much cleaner. We'll integrate the other feedback in future PRs.
We should hopefully have a feature branch PR once the retrievers and converters are updated to use the new dataclasses to simplify the code.


Invalid content /en/programming-languages/plutus/getting-started/

Where does the issue occur?
https://developers.cardano.org/en/programming-languages/plutus/getting-started/
Describe the issue
The link with text "Writing a basic Plutus app in the Plutus Playground" leads to 404 error
Expected changes
Link should lead to tutorial
Additional context
N/A

This is a duplicate


addWithDependencies configuration not working in groovy gradle files

Describe the bug
Cannot use kover addWithDependencies config for in groovy  gradle files.
default is keyword in groovy lang and below code is not compiling in buid.gradle groovy files
kover {
    default {
        addWithDependencies("debug")
    }
}

Feature was developed in this commit -> https://github.com/Kotlin/kotlinx-kover/commit/8e3298c68ca852f4e88b2d1929da1e116c9aecba
Errors
Not applicable
Expected behavior
API should be usable on both groovy and kotlin gradle files
Reproducer
A link to your project, if it is open source. Otherwise, please try to reproduce the problem on a small project.
If this is not feasible, give an example of the code on which the problem manifests itself.
Reports
Not applicable
Environment

Kover Gradle Plugin version: 0.7.0
Gradle version: 7.6
Kotlin project type: Kotlin/Android
Coverage Toolset (if customized in build script): Kover
Other context important for this bug: [e.g. OS version]

Hi,
in 0.7.0 this function is called mergeWith, please refer actual DSL description.

Name addWithDependencies  turned out to be too long and not the most obvious

ok mergeWith works fine :)
But there is a bug in documentation as example for merge with is used with kover extension
kover {
     defaults {
         mergeWith("buildVariant")
     }

but it is actually part of KoverReportExtension

Thanks, fixed )


Proper directory names in project's ReadMe file

Would you consider update Running local Blueprint version for development section in your doc and provide full path and correct folder names?
First two steps gives me same error
C:\Users\user\AppData\Roaming\npm\node_modules\generator-jhipster-vuejs>npm link
npm ERR! Link target resolves to the same directory as link source: C:\Users\user\AppData\Roaming\npm\node_modules\generator-jhipster-vuejs

Also would be nice to outline absolutely required steps. (no 'if'-s or 'optional' scenarios )

There are no absolute paths necessary, may be you are having issues since you are using it in windows. And from your error it looks like you are doing npm link from the C:\Users\user\AppData\Roaming\npm\node_modules\generator-jhipster-vuejs folder which is wrong.
Anyway i'll try to make it bit more cleaner


Custom eV/Å force units in the GUI.

One can set custom force units in using the top right units button.
https://nomad-lab.eu/prod/v1/staging/gui/search/calculations
The most commonly used force units are however electronvolts/Angstrom eV/Å and are not present. Currently the best option is "Atomic unit of force" which is actually in Hatree/Bohr radius, the conversion to eV/Å should be straightforward.
Some magic constants: http://greif.geo.berkeley.edu/~driver/conversions.html
Maybe a new definition in nomad/units/default_en.txt is all that is needed.
Also figure out how to make it default, Newtons are nice but completely meaningless at the atomic scale...

@jfrodlova if you need a quick git intro just let me know.


AWS v16.2.0 release with the latest Flatcar.

aws and aws-china tests are green

cncf tests green


Could not load "Swashbuckle.AspNetCore.SwaggerGen"

Hi,
I added a Xunit project for my integration tests and now I m not able to generate the services.ts file with nswag studio.
This is the error :

System.IO.FileNotFoundException: Could not load file or assembly 'Swashbuckle.AspNetCore.SwaggerGen, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=d84d99fb0135530a' or one of its dependencies. The system cannot find the file specified.
File name: 'Swashbuckle.AspNetCore.SwaggerGen, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=d84d99fb0135530a'
Server stack trace:
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at NSwag.SwaggerGeneration.WebApi.WebApiToSwaggerGenerator.GetControllerClasses(Assembly assembly)
at System.Linq.Enumerable.d__162.MoveNext()    at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.OrderedEnumerable1.<GetEnumerator>d__1.MoveNext()    at System.Linq.Buffer1..ctor(IEnumerable1 source)    at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at NSwag.SwaggerGeneration.WebApi.WebApiAssemblyToSwaggerGenerator.WebApiAssemblyLoader.GetControllerClasses(String[] assemblyPaths, IEnumerable1 referencePaths)    at NSwag.SwaggerGeneration.WebApi.WebApiAssemblyToSwaggerGenerator.GetControllerClasses()    at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NSwagStudio.ViewModels.SwaggerGenerators.WebApiToSwaggerGeneratorViewModel.<b__29_0>d.MoveNext() in C:\projects\nswag\src\NSwagStudio\ViewModels\SwaggerGenerators\WebApiToSwaggerGeneratorViewModel.cs:line 127
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MyToolkit.Mvvm.ViewModelBase.<>c__DisplayClass14_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MyToolkit.Mvvm.ViewModelBase.d__12`1.MoveNext()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

I installed the nugget package: "Swashbuckle.AspNetCore.SwaggerGen" in all my project.
Do you know how to resolve this problem?

Clean, Clean, Clean, and rebuilt, it s now working again.

Bug came back ... The clean, clean, clean clean, rebuilt solution didnt work anymore ...

Please ensure that the dll Swashbuckle.AspNetCore.SwaggerGen is in you output directory, otherwise try to reference this dll as the first assembly in the assemblies setting

Still a problem?

Please retest with the latest version of NSwag and use a .NET Core runtime..

Seems to be ok :)


Fix memcpyToSymbol example

mempcpyToSymbol example was failing to compile, see https://github.com/ROCm/ROCm/issues/3079
Adding another 0 in the parameters of hipLaunchKernelGGL(Get, dim3(1,1,1), dim3(LEN,1,1), 0, 0, Ad); resolves this
or
Removing hipLaunchParm lp from __global__ void Get(hipLaunchParm lp, int *Ad)
This PR is based on the latter.

Tested, approved and merging in.
@harkgill-amd it will be published on Friday.


Create multiple database interfaces for the ingestor

Outline
Because the DataAccess interface has gotten fairly large, I've decided to break it up into (at least two) separate interfaces (currently just one for reading and one for writing).
Here's a reference link
Design
type Database struct {
    Integrations IntegrationInterface
    PullsIssues  PullsIssuesInterface
}

db.Open()
database := Database{
    Integrations: &IntegrationImpl{DB: &db},
    PullsIssues:  &PullsIssuesImpl{DB: &db},
}

integrations := database.Integrations.ReadIntegrations(repoID)
issues := database.PullsIssues.ReadIssues(repoID)

TODOs

[ ] outline possible structures of the "sub" interfaces and place results into this TODO list
[ ] rename various methods/functions

[ ] unify terminology in the database methods

		### Pull request completion results
		- **estimated day(s)**: %!s(int=10)
		- **actual day(s)**:    %!g(int=5)

Pull request completion results
		- **estimated day(s)**: %!s(int=10)
		- **actual day(s)**:    %!g(int=5)

Pull request completion results
	- **estimated day(s)**: %!s(int=10)
	- **actual day(s)**:    %!g(int=5)

Pull request completion results
	- **estimated day(s)**: %!s(int=10)
	- **actual day(s)**:    %!g(int=5)

Pull request completion results
	- **estimated day(s)**: 10
	- **actual day(s)**:    5

	### Pull request completion results
	- **estimated day(s)**: 10
	- **actual day(s)**:    5

### Pull request completion results
- **estimated day(s)**: 10
- **actual day(s)**:    5

Pull request completion results

estimated day(s): 10
actual day(s):    5

Completion results

estimated day(s): 10
actual day(s):    5

Completion results

estimated day(s):	10
actual day(s):	5

Completion results

estimated day(s):	10
actual day(s):		5

Completion results

estimated day(s): 10
actual day(s): 5

Completion results

Estimated day(s): 10
Actual day(s): 5

Completion results

Estimated day(s): 10
Actual day(s): 5


Manage Cellpose 3.0 transition

Cellpose 3.0 was just released, see https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>9780v1
We need to manage the transition and make sure our tasks keep working. At first look, it should be mostly backwards compatible. Unfortunately, their repo currently says:

There are some Cellpose API changes from v2.0 which will be documented soon.

So we'll have to either pin it for now or test ourselves. I'll have a look at this in https://github.com/fractal-analytics-platform/fractal-tasks-core/pull/650

So we'll have to either pin it for now

It is already pinned, since the requirement is ~2.2 and

If you specify a major, minor, and patch version or only a major and minor version, only patch-level changes are allowed.
(https://python-poetry.org/docs/dependency-specification/#tilde-requirements)

Side-comment: In my view, caret and tilde requirements specifications do not add anything and are always confusing. I'd rather switch to always using explicit "greater/lower than" bounds.
Meanwhile, I've opened #657 to see how the CI goes with V3.

Given that the available model selection was changed quite drastically
Old model list:
['cyto', 'nuclei', 'tissuenet', 'livecell', 'cyto2', 'general', 'CP', 'CPx', 'TN1', 'TN2', 'TN3', 'LC1', 'LC2', 'LC3', 'LC4']
New model list:
['cyto3', 'nuclei', 'cyto2_cp3', 'tissuenet_cp3', 'livecell_cp3', 'yeast_PhC_cp3', 'yeast_BF_cp3', 'bact_phase_cp3', 'bact_fluor_cp3', 'deepbacs_cp3', 'cyto2']
This is a switch we probably want to take quite carefully. I think we'll best stay with the pinned version for now and evaluate the new models in a separate PR.
And wait until the API changes are documented. See for example the current error coming from an API change:
TypeError: CellposeModel.eval() got an unexpected keyword argument 'net_avg'

=> some arguments seem to be deprecated.


Some suggested changes for ya based on my experience with apollo

Loved your writeup, and thought you might appreciate some feedback. I figured the easiest way would be to do a pull request.
Feel free to use it as is, ignore it, or adjust as necessary.
Hope you find some of it useful!

This is great. Thanks Alex! Hitting the merge now.
Only one question - what does "apollo's cache is flat" really mean?


td_client_id produces weird null values

I found the following null values (\00, shown as ^@) appended to td_client_id values:
 xxxxxxxxx-d7c4-4ce7-f6ad-b67e3cebf9fe^@^@^@^@
 xxxxxxxxx-d7c4-4ce7-f6ad-b67e3cebf9fe^@^@^@^@^@
 ...

Well, given the source code has the comment: // Maybe look into a more legit solution later ... I'm going to assume it's not real compatible across various browsers and that it really wasn't a high priority to someone here.
I might suggest: https://github.com/makeable/uuid-v4.js ...or perhaps a time-UUID package.


fix: remove URLs from content before checking for banned words

Fixes Issue

closes #783
Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

@eddiejaoude


feat(assets): delete assets submodule

To Reviewers

[ ] Skipping review is not a problem (style, chore ONLY)
[x] Not that difficult

Type of Change

[x] New feature
[ ] Bug fixes
[ ] Feature improvement

[ ] These changes require a usage change

[ ] Others (performance improvement, refactoring, CI/CD, etc.)

Checklist

[ ] Updated Storybook documents for component
[ ] Wrote test codes for composable, utils and etc.
[ ] Tested with console(if usages are changed)

Description

delete assets submodule

:tada: This PR is included in version 2.0.0-beta.67 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ResolveFully does not resolve MapSchema

When using ParserOption.resilveFully(true) and the response schema is a map (or uses a schema that contains a map), the references are not fully resolved and left as $ref
Example:
openapi: 3.0.0
servers:
  - url: 'http://localhost:8080/sample'
info:
  description: A simple API to learn how to write OpenAPI Specification
  version: 1.0.1
  title: Simple API
paths:
  /sample:
    get:
      tags:
        - Sample
      operationId: getSample
      responses:
        '200':
          description: Sample
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MyModelMap'
components:
  schemas:
    MyModel:
      type: object
      properties:
        name:
          type: string
    MyModelMap:
      type: object
      additionalProperties:
        $ref: "#/components/schemas/MyModel"

When this code is run against this schema:
ParseOptions options = new ParseOptions();
options.setResolveFully(true);
OpenAPI openAPI = new OpenAPIV3Parser().readLocation("openapi.yaml", null, options).getOpenAPI();
String yaml = Yaml.pretty(openAPI);

Results in this output:
openapi: 3.0.0
info:
  title: Simple API
  description: A simple API to learn how to write OpenAPI Specification
  version: 1.0.1
servers:
- url: http://localhost:8080/sample
paths:
  /sample:
    get:
      tags:
      - Sample
      operationId: getSample
      responses:
        200:
          description: Sample
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/MyModel'
components:
  schemas:
    MyModel:
      type: object
      properties:
        name:
          type: string
    MyModelMap:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/MyModel'

I have created this PR with the fix and corresponding test:
https://github.com/swagger-api/swagger-parser/pull/1124

thanks for this fix. Closing the issue with the merge of #1124


Endpoints visible locally but not when deployed on azure

I have some strange issue, when adding the references, and some basic attributes to the function to see if that will work, everything is OK locally, but when deployed on Azure Function app there are no endpoints:
[FunctionName("InProgress")]
[OpenApiOperation(operationId: "inProgress", tags: new[] { "Events In Progress" }, Summary = "Gets the name", Description = "Get the events that are processing at the moment.", Visibility = OpenApiVisibilityType.Important)]
[OpenApiSecurity("function_key", SecuritySchemeType.ApiKey, Name = "code", In = OpenApiSecurityLocationType.Query)]
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(string), Summary = "The response", Description = "This returns the response")]
public async Task<IActionResult> InProgress([HttpTrigger(AuthorizationLevel.Function, "GET", Route = "monitoring/events/in-progress")] HttpRequest req, CancellationToken cancellationToken)

I tried to comment out the OpenApiSecurity attribute and no success.
Do you have any clue why the difference ? Does it matter that the function is running in ASE ?
This is what I See on Azure:

This is what I see locally on the same project:

@kaluznyt Thanks for the issue!
Would you please let us know how to repro the issue so that we can dig in, on our end? Based on the code snippet, I don't see any issue why it's not coming up on Azure when it's deployed.

Thanks for inputs, I will try to reproduce it from scratch, however it might be specific to that project/function, will try to provide more info.
Also, some months ago I had introduced the OpenAPI e through the AlienCube package, and there everything works fine (different function, but same azure environment).
How are these related ? Is the official Microsoft package using AlienCube underneath or it's non related ? Meaning is it going to be recommended to migrate to the official one ?

@spboyer I cannot make these functions anonymous (requirements), however, the examples on the github page (https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/openapi-core.md) are always using AuthLevel of Function. I might try with anonymous just to see if the functions are visible.

I made the function anonymous and removed the open api security attribute, but it's still the same, will try with AlienCube package

I migrated to AlienCube - and everything seems ok even with the AuthLevel = Function both locally and in Azure

Not sure if I can help with debugging on what went wrong with the azure.openapi extension since I can see no logs indicating that something went wrong

It's interesting.
I just created a new Azure Functions project with Visual Studio 2019 16.10 preview 4 and deploy the function app to Azure and it works as expected. I had no changes made at all.
Could you please deploy the basic (or default) Azure Functions app to Azure, with this extension and have a look?

Also, some months ago I had introduced the OpenAPI e through the AlienCube package, and there everything works fine (different function, but same azure environment).
How are these related ? Is the official Microsoft package using AlienCube underneath or it's non related ? Meaning is it going to be recommended to migrate to the official one ?

This is a successor of the Aliencube package, which will be archived soon.

I'm having the same issue as well, locally it works perfect with all endpoints appearing.  Deploying to Azure, I see the 'No operations defined in spec!' message.
I'm noticing that the 'paths' node of swagger.json is empty on Azure, but has full details on my local machine.

@brandonjpetersen Make sure that all four endpoints starting with Render- are only shown in your local machine, not on Azure because they are encapsulated.
Unfortunately, I can't reproduce this issue. Have you tried the sample app in this repo and seen the same symptom?

To troubleshoot:
Started a new project in Visual Studio Version 16.9.4.

From the VS Project template chose the 'Azure Functions' template
Selected 'Azure Functions v3 (.Net Core)' and then chose 'Http trigger with OpenAPI'
Set the Authorization Level to 'Anonymous'

With the initial template code, deployed through Azure Dev Ops to a Azure Function App.  Everything worked perfectly, the Swagger Doc generated correctly for the basic 'Function1' HTTP Trigger.
Then I made the adjustment to add 'Dependency Injection' and 'Entity Framework Core' to the solution.  I added a Startup.cs file and the following Nuget packages:

Microsoft.Azure.Functions.Extensions (1.1.0)
Microsoft.EntityFrameworkCore (3.1.15)
Microsoft.EntityFrameworkCore.Design (3.1.15)
Microsoft.EntityFrameworkCore.SqlServer (3.1.15)

The Azure Dev Ops deployment executed without any errors, but the Swagger Docs no longer generated.  I'm now testing to see which part caused the issue.

@brandonjpetersen - be sure to use Visual Studio 16.10 now available.

Thanks everything is working now after recreating it with VS 16.10.  I also had to downgrade EF Core to 3.1.13.

I have the same issue, using Azure Functions core 3.1 project, with references to EF Core 3.1.14. Works fine locally, but empty when deployed to Azure.
Previously I was using v 0.5.1-preview of this package which worked, I'll downgrade to that for now.

I can confirm this issue with no endpoints (Message: No operations defined in spec!) if deployed to azure but working fine locally.
Package version 0.7.2-preview.
Now i followed the advice of rockgecko-development to downgrade the package to 0.5.1 and it worked like a charm not only locall but after deployment to azure as well.

Only seems to be an issue deploying to azure via a pipeline. Manually publishing direct to azure seems to work fine. Changing to 0.5.1. resolved the pipelines problem for me.

I'm facing this issue on 0.8.1-preview.

It's resolved, and @vincentbitter 's contribution has been merged to the main repo (not yet published).
Would you please try the new change on your end and let us know?


KeyError: 'allow_cors' in latest HASSIO Installation Version 2021.12.1

Since the last update from Home Assistant to Version 2021.12.0 (1) the addon WebRTC is not working anymore and runs into an issue, see log:
Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: webrtc (documentation, issues)
First occurred: 2:30:31 PM (1 occurrences)
Last logged: 2:30:31 PM
Error during setup of component webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'

Duplicate of https://github.com/AlexxIT/WebRTC/issues/156


Create a Dockerfile

This patch includes a Dockerfile for the example described in README.md.
By using this, a user can try our project without environment setup.

I am thinking of modifying this commit to make a container for each replica node (peer process).  Having multiple process in a single container is not good practice.

@Naoya-Horiguchi @sergefdrv Thanks for your many suggestions. I have update the code as well as the document. I the latest commit, I deleted sample/docker/README.md and move the contents to an new section "Quick Start" of README.md at the root with revising based on your comments.

@Naoya-Horiguchi I understand your concern. In the last commit, I tried avoiding the duplication of the config files by creating consensus.yaml dynamically; rewriting by sed based on the original sample/config/consensus.yaml.

One concern is that you generate copies of YAML files for docker, which might be a burden from maintenance viewpoint (imagine that if we add some new config parameters, then we might have to update two places). I think that we can use viper's function to override configs from files with environment variables, and my brief check showed that keys in peer.yaml can be overridden by environment variable PEER_KEYS. Unfortunately, peers in consensus.yaml is loaded separately from peer.yaml so we need change application code to override it with environment variable. So I don't think this should be done in this PR.

@Naoya-Horiguchi @sergefdrv Thanks for comments. I have updated.
Changes from the previous revision (diffs):

Fix some errors in English grammar in README.
Add docker-clean target in Makefile to delete the image.
Add User option to docker-compose.yml to run the process in the container as not root but a user who has the same UID as the current user in the host. By this, the owner of keys.yaml, which is created in the container in the directory shared with host, is now the current user in the host. So we don't need sudo for deleting the file (as described in the section Tear Down). Note that, $UID is not an environment variable but a shell variable of bash, we have to pass it to docker-compose by UID=$UID docker-compose .... I have set the default value, 1000, which is the common first UID for non-root, non-system user in Ubuntu.

Thanks for suggestions! I have updated again (diffs).


Rocket example no longer builds

You commented that the signature has to have a ContentType. RIght now that is precisely what Rocket is balking about:
#[post("/upload", data = "", format = "multipart/form-data")]
// signature requires the request to have a Content-Type
fn multipart_upload(cont_type:ContentType, data: Data) -> Result<Stream<Cursor<Vec>>, Custom> {
There must be some way to get the content type into this routed function.

error[E0107]: wrong number of type arguments: expected 1, found 2
--> src/bin/server.rs:235:91
|
235 | fn multipart_upload(cont_type:ContentType, data: Data) -> Result<Stream<Cursor<Vec>>, Custom> {
|                                                                                ^^^^^^^^^^^^^^ unexpected type argument

@ocshewar you've shadowed the Result type in your imports, that's why you're getting that error.
I'm out for the night so I'll see what needs fixing about the Rocket example tomorrow.


[Prototype] Offline: Try having PendingStateManager deal in Grouped Batches, not individual messages, to detect forked containers

Description
This is a quick and dirty prototype looking at how PendingStateManager would work if it tracked Grouped Batches, not individual messages.
We also add batchId which can be used to detect forked containers, in the case where a user allows two forks (from the serialization point) to both connect after that point.  In these cases, the container closes.
This does not cover the race condition where two forks connect and submit corresponding batches in parallel
Reviewer Guidance
I haven't yet tried running the code. I'm sure there are bugs/gaps.
Goal is to update the negative tests in stashedOps.spec.ts to prove this will work.
Hardest part of making this real will be supporting both message-based Pending State (if Grouped Batching is disabled) and Grouped Batch based Pending State.

Chatted with @kian-thompson, he had a good refinement to suggest which is decouple from Grouped Batching, and instead track "raw batches" in PSM - basically each would be an array of the individual messages (and probably elevate batchID for quick access)

Nope - See #21266 instead.

Grouped Batching is not used for blob attach batches (because they need their metadata visible to service)
Switching PSM to track batches is unnecessary - we can just add batchId to existing batch metadata which is handled throughout.

Reopening to take latest draft changes