React 18 ContextMenu render - error use createRoot instead

I migrated the Obsidian plugin to React 18.
I changed ReactDOM.render to createRoot - that works ok. I am getting this error when I open the context menu. Interestingly the same error is not thrown on excalidraw.com. Any idea where I should look for the root cause? Or should the ContextMenu render be migrated to createRoot?

https://github.com/excalidraw/excalidraw/blob/2d800feeeb408603f1b8536fd2adafe20f9c397a/src/components/ContextMenu.tsx#L135-L145

ok. so it is not showing on Excalidraw.com because it is a production build... This function should be upgraded to React 18

yep there are few other places as well eg tests where this warning is shown. But since the app we still want to keep it compatible with React 17 hence we can't remove it from the editor. Though I will fix it in the test.

We don't need to use React.render even in v17.

We don't need to use React.render even in v17.

You are right!. Will need some rewrite. Will fix.


fix PHP 8.0 build

AS 8.0 is still supported according to package.xml

Second commit avoid to include arginfo.h twice (and have all static data defined twice)


System.MissingMethodException: Method not found: 'Void NBitcoin.BitcoinStream.ReadWrite(!!0 ByRef)'

[2022-01-11 09:52:33.8559] [E] [zec] Error during UpdateJob System.MissingMethodException: Method not found: 'Void NBitcoin.BitcoinStream.ReadWrite(!!0 ByRef)'.
at NBitcoin.Zcash.ZcashTransaction.ReadWrite(BitcoinStream stream)
at Miningcore.Blockchain.Equihash.EquihashJob.BuildCoinbase() in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 175
at Miningcore.Blockchain.Equihash.EquihashJob.Init(EquihashBlockTemplate blockTemplate, String jobId, PoolConfig poolConfig, ClusterConfig clusterConfig, IMasterClock clock, IDestination poolAddressDestination, Network network, Equih$
at Miningcore.Blockchain.Equihash.EquihashJobManager.UpdateJob(CancellationToken ct, Boolean forceUpdate, String via, String json) in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 132    at NBitco$
at Miningcore.Blockchain.Equihash.EquihashJob.BuildCoinbase() in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 175
at Miningcore.Blockchain.Equihash.EquihashJob.Init(EquihashBlockTemplate blockTemplate, String jobId, PoolConfig poolConfig, ClusterConfig clusterConfig, IMasterClock clock, IDestination poolAddressDestination, Network network, Equih$
at Miningcore.Blockchain.Equihash.EquihashJobManager.UpdateJob(CancellationToken ct, Boolean forceUpdate, String via, String json) in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 132

You upgraded to new version of NBitcoin recently, right?

Yes. right

Then somewhere you're still using the old version of NBitcoin without knowing it.

Maybe you didn't update it in all projects of the solution?

I'm using it.
https://github.com/LykkeCity/NBitcoin.Zcash


Cannot extract i18n from library since angular 18

Command
extract-i18n
Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
17
Description
I have a multi-project workspace with 2 applications and 1 library, which uses all i18n. In angular 17 I could simply execute ng extract-i18n  and all translations from all applications and the library were extracted in one single file.
After updating to version 18  and executing ng extract-i18n the following message appears:

Error: Cannot determine project for command.
This is a multi-project workspace and more than one project supports this command. Run "ng extract-i18n [project]" to execute the command for a specific project or change the current working directory to a project directory.
Available projects are:

application1
application2

So I have to extract the translations from each single application and the library isn't supported anymore?
Minimal Reproduction
ng extract-i18n
Exception or Error

Your Environment
Angular CLI: 18.2.12
Node: 18.20.2
Package Manager: yarn 3.6.1
OS: win32 x64

Angular: 18.2.13
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1802.12
@angular-devkit/build-angular      18.2.12
@angular-devkit/core               18.2.12
@angular-devkit/schematics         18.2.12
@angular/cdk                       18.2.14
@angular/cli                       18.2.12
@angular/material                  18.2.14
@angular/material-moment-adapter   18.2.14
@schematics/angular                18.2.12
ng-packagr                         18.2.1
rxjs                               7.8.1
typescript                         5.4.5
zone.js                            0.15.0

Anything else relevant?
No response

Yes, i use a path mapping
"paths": {
      "@libs": [
        "./dist/libs"
      ]
}

But no I follow the tip in #17140 and added "extract-i18n" in the architects section of my lib. But I get the following message by now:

Tried to extract from libs with 'projectType' library, which is not supported. The 'extract-i18n' builder can only extract from applications.

So translating libraries isn't supported at all?

I18n extraction from multiple projects at once, and from libraries were never supported.
I am not entirely sure how this worked in your case, but maybe you were using a non official builder or TypeScript path mappings?
See: #17140

Yes, i use a path mapping
"paths": {
      "@libs": [
        "./dist/libs"
      ]
}

But no I follow the tip in #17140 and added "extract-i18n" in the architects section of my lib. But I get the following message by now:

Tried to extract from libs with 'projectType' library, which is not supported. The 'extract-i18n' builder can only extract from applications.

So translating libraries isn't supported at all?


Daily sentiment poll

I want to add a daily sentiment poll - something simple, like "How was your day?" with emoji button voting - for those using the Slack integration. I need help figuring out the proper design, though. Do I associate the poll results with a board, since the bot only really works today if there's a board associated? Do I associate by team? What should the data model look like?
@timduan, @richnewcomb: Looking to you two, in particular, for input here.

First attempt implemented as part of Walmart Labs - Reston 2017 Hackathon! Fixes & enhancements should be added as new issues.


Context Window vs Output Tokens on gpt-4-turbo-preview

Hi and thank you for this fantastic interface! 😻 🦀
The new preview OpenAPI models like gpt-4-turbo-preview seem to have a large context window (128,000 tokens) but a rather small output token limit (4096 tokens)

I may be misunderstanding how  this works, but it seems to me that aichat is not allowing these newer models the full context window, and instead limiting what we send to the output token limit.
For example in my config I have:
clients:
  - type: openai
    models:
      - name: gpt-4
        max_tokens: 8192
      - name: gpt-4-turbo-preview
        max_tokens: 128000

...but starting a session with aichat --model openai:gpt-4-turbo-preview --session new gives me a session with 4,096 max tokens, and errors out once that limit is reached.
Is this is a bug or am I just misunderstanding how it works?

You have two errors.

The openai client does not have the models fields, and its complete configuration is as follows

  - type: openai
    api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    api_base: https://api.openai.com/v1               # Optional field
    organization_id: org-xxxxxxxxxxxxxxxxxxxxxxxx     # Optional field

Use .info session to check the session through openai:gpt-4-turbo-preview, here is the result

new) .info session                                                                                0
model               openai:gpt-4-turbo-preview
max_tokens          128000

the actual measurement can also exceed 4096,  what makes you think it can't be exceeded?

Fantastic thank you this works great on v0.13!
My other mistake was that I was still using v0.12 (from nixpkgs) which didn't seem to recognize the new model without an explicit config.


Performance issues

I've tried to use BlueSocket in MongoKitten which is a swift driver for MongoDB.
After replacing Vapor Socket by BlueSocket, I ran some performance tests. The results showed an important difference between the two implementations on MacOS and a huge one on Linux.
To run the test you can clone this repo. Master branch uses the Vapor Socket and bluesocket branch uses the BlueSocket.
The bluesocket code is all  in the Socket.swift file. Maybe I did something wrong in my implementation ?
Tests Results
All Tests are done in Release mode.
Here the results from performance tests on Linux :
Linux 16.04 - 4.4.0-59-generic
Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz - 32GiB
Swift version 3.0.2 (swift-3.0.2-RELEASE)
BlueSocket

Max : 5.32257395982742
Min : 3.25634396076202
Average : 3.61253277897835
Median : 3.46378147602081
Execution Time :<PHONE_NUMBER>07961
Rounds : 100

VaporSocket

Max : 0.695515990257263
Min : 0.433806002140045
Average : 0.532387097477913
Median : 0.514575988054276
Execution Time : 53.2749119997025
Rounds : 100

And on MacOS:
Darwin Kernel Version 16.4.0
Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-8<IP_ADDRESS>)
swift build -c release
.build/release/SwiftPerformance

Max : 0.963047981262207
Min : 0.830860018730164
Average : 0.873546527028084
Median : 0.872366487979889
Execution Time : 87.3994210362434
Rounds : 100

VaporSocket

Max : 0.877934038639069
Min : 0.666562974452972
Average : 0.719885479807854
Median : 0.714864492416382
Execution Time : 72.033077955246
Rounds : 100

Try running the same tests after changing the BlueSocket readBufferSize variable from the default, Socket.DEFAULT_READ_BUFFER_SIZE which is 4096, to 65507, the size that Vapor uses for it's internal buffer.  This can be done simply as illustrated below:
let mySocket = Socket.create()
mySocket.readBufferSize = 65507

You'll want to change the buffer size prior to using the socket.  The default read buffer size for BlueSocket defaults to a relatively small size but can be configured on a per application basis unlike Vapor where it's a let constant.  This allows it to be tuned to suit the needs of the application.  I probably should add documentation regarding this.

Thanks @billabt. I check that.

After adding socket.readBufferSize = 65507, I've pretty much the same result. No improvements.

That's interesting. When I ran it here, I saw numbers slightly better than Vapor on Linux (about 5% better) and an almost a 20% improvement on macOS.

@lgaches: Maybe it has to do with how you set up the database...  Can you post exactly how you set up the db so that I can follow the exact same steps you did?  Thanks.

I tried on my mac and found pretty much the same results as @lgaches
Darwin Kernel Version 16.0.0
Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-8<IP_ADDRESS>)
VaporSocket
Max : 1.69017899036407
Min : 0.931960999965668
Average : 1.07207236051559
Median : 1.0662505030632
Execution Time :<PHONE_NUMBER>33524
Rounds : 100
BlueSocket (readbuffersize set to 65507)
Max : 1.85664600133896
Min : 1.13858097791672
Average : 1.25306052803993
Median : 1.22975048422813
Execution Time :<PHONE_NUMBER>81094
Rounds : 100

I had something not quite set up right here so I started over. 🤔  I was actually getting an error underneath the covers but it wasn't bubbling up.  So my initial results were skewed, it wasn't doing what is was supposed to. (That's what I get for working on Saturday 😃.)  I seem to have it working now and one thing I did notice was that in order for me to get your test program to run here, I had to comment out the socket.close() in your version of MongoSocket otherwise, I got the following:
13:01:55 [Fatal] The MongoKitten background loop encountered an error and has stopped: Error code: -9982(0x-26FE), Bad file descriptor    [Main:Convenience.swift:fatal] org.openkitten.mongokitten
13:01:55 [Fatal] Please file a report on https://github.com/openkitten/mongokitten    [Main:Convenience.swift:fatal] org.openkitten.mongokitten

This error was a result of attempting to read a socket that was closed.  Upon further investigation, I found a minor bug in Socket that was causing this behavior.  I'll check in the fix for it.
In the meantime, I'm going to look more deeply for the performance issues you've raised.

The more I dig deeper into this the more I'm inclined to believe that the overall performance issue appears to be as a result of MongoKitten having been originally designed to use Vapor sockets.  This is evidenced by the usage of [UInt8] arrays for socket I/O.  When you converted it to use BlueSocket, you ended up doing a lot of conversions between [UInt8] and Data since BlueSocket primarily uses Data for socket I/O.  These conversions turn out to be very expensive. To prove this (primarily to myself 😃), I made changes to Connection.swift, MongoTCP.swif and Socket.swift to test my theory.  Sure enough the performance numbers improved.  Quite dramatically on Linux I might add.
Here are the changes:
Connection.swift
Added at the top of class Connection under host.
	var incomingBuffer = [UInt8]()

Then down a bit...
    private func receive(bufferSize: Int = 1024) throws {
        // TODO: Respect bufferSize
	try client.receive(into: &incomingBuffer)  <------ Added this line.
        buffer.data += incomingBuffer

        while buffer.data.count >= 36 {
            let length = Int(buffer.data[0...3].makeInt32())

            guard length <= buffer.data.count else {
                // Ignore: Wait for more data
                return
            }

            let responseData = buffer.data[0..<length]*
            let responseId = buffer.data[8...11].makeInt32()
            let reply = try Message.makeReply(from: responseData)

            if let closure = waitingForResponses[responseId] {
                closure(reply)
                waitingForResponses[responseId] = nil
            } else {

            }

            buffer.data.removeSubrange(0..<length)
        }
    }

In MongTCP.swift:
Changed the receive function in the protocol MongoTCP to this:
    /// Receives any available data from the socket
	func receive( into buffer: inout [UInt8]) throws

Finally, in Socket.swift:
public final class MongoSocket: MongoTCP {

    private let socket: Socket

    private var sslEnabled = false

	private var data: Data = Data(capacity: 2048) <---- Added this

    public init(address hostname: String, port: UInt16, options: [String: Any]) throws {

        self.sslEnabled = options["sslEnabled"] as? Bool ?? false
        socket = try Socket.create() // tcp socket
	socket.readBufferSize = 1024  <---- Added this, reducing the read buffer size
        if sslEnabled {
            let invalidCertificateAllowed = options["invalidCertificateAllowed"] as? Bool ?? false
            let sslConfig = SSLService.Configuration(withCACertificateFilePath: nil, usingCertificateFile: nil, withKeyFile: nil, usingSelfSignedCerts: invalidCertificateAllowed, cipherSuite: nil)
            socket.delegate = try SSLService(usingConfiguration: sslConfig)
        }
        try socket.connect(to: hostname, port: Int32(port))
    }

    /// Sends the data to the other side of the connection
    public func send(data binary: [UInt8]) throws {
        try socket.write(from: UnsafeRawPointer(binary), bufSize: binary.count)
    }

    /// Receives any available data from the socket  <---- Rewrote this function.
    public func receive( into buffer: inout [UInt8]) throws {
		self.data.count = 0
		buffer.removeAll()
                 _ = try socket.read(into: &self.data)
		return buffer.append(contentsOf: self.data)
    }

    /// `true` when connected, `false` otherwise
    public var isConnected: Bool {
        return socket.isConnected
    }

    /// Closes the connection
    public func close() throws {
        socket.close()
    }
}

This yields the following results on macOS (Darwin Kernel 16.5.0) with BlueSocket:
Max : 0.850748980045319
Min : 0.716965990066528
Average : 0.78427298784256
Median : 0.816421482563019
Execution Time : 79.76615700721741
Rounds : 100

And on Linux (Ubuntu 16.04, VMware Fusion VM with 4 cores and 32 GB), we get this:
Max : 0.98575201034546
Min : 0.710196018218994
Average : 0.875569160580635
Median : 0.915718995332718
Execution Time : 87.611633002758
Rounds : 100

As you can see this represents significant improvement with just these changes.  And, except for the fix I put in to the Socket.close() method to clear the isConnected flag a bit earlier and the removal of a print statement, there were no other significant changes to BlueSocket.  You could go even further in the changes to MongoKitten changing the data types used to interface better with BlueSocket and I'm sure that you'd eventually achieve parity or even better performance than when using the Vapor.
Feel free to ask any questions on the changes I made and why I made them.  Thanks for raising this issue, it made for a very interesting day and a couple of good bug fixes and cleanups.  Thanks again.

Thanks @billabt for all your investigations and I'm really sorry for your saturday. I'll check that and try to improve MongoKitten code to handle well BlueSocket.


ISC Kea DHCP Unaffected

Submission Template
Please provide the following information.

Vendor Name:  Internet Systems Consortium
Product Name: Kea DHCP
Version(s) affected: all
Status: Please choose from one of the following: Not Affected
Update Available: Yes or No (If Yes, please provide link to information)
Notes: no JAVA code
References: https://www.isc.org/blogs/2021-log4j/
Last Updated: December 17, 2021

This product has been added to the repository. Thank you.


fixing powershell script formatting

"```" needs to be on a new line for formatting to work.

Hi @SeanFeldman, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, AZPRBOT;

@sethmanheim - Could you review this update from @SeanFeldman in the public repo? Note, there's a merge conflict, so it's possible you might have fixed this already.

@tysonn @SeanFeldman already fixed a while ago.


[main] Update community files

Cron -knative-prow-robot
/cc knative-sandbox/client-writers
/assign knative-sandbox/client-writers
Produced by: knative-sandbox/knobots/actions/update-community
Details:

@rhuss can we merge this pls? :)


721 download assets subset

if a regex expression is passed in the parameter "asset" in the download only the assets matching this expression are downloaded (only working if the provider API returns individual assets and not a zip file); implemented for the http and aws download plugins (is s3rest plugin still used after removal of mundi?)

Please filter assets keys instead of title or href

done


perlPackages.CryptX: Fix evaluation

CryptX has been declared twice which breaks evaluation on hydra.
This was introduced in 3d3dec9acf6d1edb7e5b4810cb2a918515bfd617.
cc @edolstra

https://github.com/NixOS/nixpkgs/commit/f9d166350d90cfa82bf0ab5d58226793d6d717ee


Why my training stuck at the beginning

The model was very fluid when I used the test images you provided. But when I used my own images for training, after typing 'python train.py' the model give me no response, nothing but flashing cursor. How did that happen? And how can I fix that?

I haven't seen this issue before.
Could you please give me more information about how to reproduce this issue? For example, your environment, what steps you did, your data information, which line in train.py where the program is stuck, etc.

I replaced the default pictures you provide for test into my own pictures. I didn't change any code. I notice the default image size was 256256 in the code so I transform my own images into 256256. Then I followed the commands in 'readme'. Then when I use train.py there was no response as usual, even I waited a long time.

Is it possible that I want to train with CT pictures instead of natural pictures like your default pictures?

I had the same problem using my own 512x512 dataset.  The train start but stuck at the beginning without errors.

Maybe you should read the code again, I found that the maximum pixel of picture in it is 256256.  So maybe when we use a 512512 dataset for training it would not know what to do.......

Thank you. Do you know an CycleGan implementation working for bigger images, like 512x512 ?

I still didn't find such implementation, so I choose to convert the picture into 256*256. You may find not too much different if you don't zoom it up. Sorry for can't help you....


Window Remover Extension

Is your feature request related to a problem? Please describe.
When we work in the browser, knowingly or unknowingly we make many windows of the browser but when it comes to controlling the windows or closing them we have to do it manually and don't have any solutions
Describe the solution you'd like.
So we will create a Window Remover Extension
feature:
Remove recent window
Remove Other windows
Remove All windows
Describe alternatives you've considered.
I am a GSSOC Contributor.
Add any other context or screenshots about the feature request here.
ss:

@iamrahulmahato isn't this issue similar to the control chrome tab extension ?(#209)

@ridsuteri  Similar but it works on only tabs I am taking about the popup windows when make a lot pop up windows while working

ok go ahead

@ridsuteri the pr is made #251


feat(socket): SocketUseBefore and SocketUseAfter accept multiple mdlwrs

Closes: #299

:tada: This PR is included in version 5.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Attach mode with PID as an option for in-app persistence

Currently the DynamoRIO attach feature w/ WinAFL requires WinAFL to be passed module that will be searched for among all processes. This makes sense when the process will be restarted as the PID will be different, but for a case where the application is not restarted, a single PID would work.
Does it make sense to add the ability to use a PID for DynamoRIO attach mode, and then utilize in-app persistence so the process ID remains the same? The use case for this would be network fuzzing a service application where the function of interest is reached as a result of sending packets.

I think it might make sense in some scenarios, but with a caveat that the target process is going to need to survive the entire fuzzing session. Meaning, if you find a bug and need to restart the target for that reason, or if there is a memory leak in the target and it dies after x iterations, the entire fuzzing session would also need to be shut down. The current attach implementation IIRC assumes there is some mechanism (external to winafl itself) to restart the target process if such a scenario occurs.

The use case I'm thinking of is for fuzzing more mature applications where simply finding a single crash would be valuable.

Sounds good! There are a few other things I ran into that could be changed such as the OpenProcess call failing in the attach case after the named pipe connection is created because even if winafl is run from an elevated command prompt it doesn't seem to enable the privilege needed. Once I get my final use case working (I've had to make a few tweaks to the dynamoRIO side as well) I'll be in a good position to contribute when I have time outside of work.

Sounds good, thanks!


TypeError: undefined is not an object

Trying to show ad, ads are shown, but an exception is thrown during the show
[TypeError: undefined is not an object (evaluating '_reactNativeApplovinMax.default.showInterstitial(_env.APP_LOVIN_PAGE).catch')]
This exeption...

You are incorrectly chaining showInterstitial(). Hence you see the error.


complete 2CXM + Patlak model testing

check all fitting methods tested

test Patlak, 2CUM and 2CXM with delay

Done


Update Laravel to 8.0

We should update Laravel according to these instructions: https://laravel.com/docs/8.x/upgrade
We should wait to L8 release date, 08.09.20, because there'll be probably some additional changes in guide linked above.

It cannot be updated until Nova will be bumped:
  Problem 1
    - Conclusion: don't install laravel/framework v8.0.0
    - laravel/nova v3.8.4 requires illuminate/support ^7.0 (...)

@mateuszchodor, please check if I added intl correctly. It was required by new Nova.


Alert "TargetDown" ?

We see the Alert "TargetDown" firing with severity "warning".
Unfortunately, the message from the definition is missing in the slack notification, so I can't quite understand what the alert is telling me.
Is it possible to have the message in Slack?

It will be fixed here: https://github.com/prometheus-operator/kube-prometheus/pull/1093

It got merged!


Result disparity Golang vs Docker

Hey everyone, happy christmas!
Describe the bug
I was testing the pre-commit configuration and found different results when running with:
language: docker_image
and
language: docker_image
To Reproduce
.pre-commit-config.yaml for Docker file
  - repo: https://github.com/zricethezav/gitleaks
    rev: v8.15.2
    hooks:
      - id: gitleaks-docker
        name: Detect hardcoded secrets
        description: Detect hardcoded secrets using Gitleaks
        entry: zricethezav/gitleaks protect --verbose --redact --staged --source=.
        language: docker_image

.pre-commit-config.yaml for Go
  - repo: https://github.com/zricethezav/gitleaks
    rev: v8.15.2
    hooks:
      - id: gitleaks
        name: Detect hardcoded secrets
        description: Detect hardcoded secrets using Gitleaks
        entry: gitleaks protect --verbose --redact --staged --source=.
        language: golang

Expected behavior
For testing purposes I added a file with following content to a commit
{"api_key": "XXXXX", "username": "test", "password": "test"}
Screenshots
Results when run with Docker Image

Results when run with Go

Basic Info (please complete the following information):

OS: ProductName: macOS ProductVersion:12.6 BuildVersion:	21G115
Gitleaks Version: 5.12.0 and zricethezav/gitleaks:latest

cc @zricethezav

Results when run with Docker Image

Is there any additional output for this case? e.g. Does it say how many commits were scanned?

Hi @weineran it was with the same commit the test.
I think I found the issue, with docker the --source=. crashes since the path . is too small.
The docker cannot mount, therefore does not run and sends the exit code "Passed".
My fix to use docker as pre-commit hook was docker run -v "$RepoPath:/path" zricethezav/gitleaks:latest protect --source="/path" --verbose --redact --staged

Thanks for the update @mozo95. Do you consider this issue resolved? If so, can you close it?

Yes, although it is a dirty fix due to the constraint from docker


Trouble with migrations when upgrading from version 3.1.1 to 3.2

I just upgraded django-photologue from version 3.1.1 to version 3.2.  When I run a migrate now, I get the following error message:
django.db.utils.ProgrammingError: (1146, "Table 'mysite.photologue_gallery_sites' doesn't exist")
I have multiple servers that use django-photologue, and I am getting this error everywhere.
Any advice on how I'd fix this?
Thanks,
Jonathan Morgan

Hi,
Could you please tell me:

What version of Python you are using.
What version of Django you are using.
What database you are using.
And what version of django-sortedm2m is installed.

Thanks,
Richard

I have the problem on two separate systems: one is Cent OS 6, up to date, the other is Ubuntu 15.04.
Python version: 2.7.9
Django version: 1.8.2
Database: MySQL 5.1.73 (Cent OS 6) and MariaDB 10.0.17 (ubuntu) - each system has the same behavior.
django-sortedm2m version: 0.10.0
The table the error refers to is not present in either of the databases (photologue_gallery_sites).
If you want more information on the contents of the database (photologue tables present, or contents of the table that stores migration auditing information), let me know.  I could also just make a copy of the database available to you, if that would help.
Also, if it helps, in the past, I’m not sure the version, but before django-photologue implemented django 1.7 migrations, there were messages that I ignored that there were changes to the models in django-photologue that had not yet been turned into migrations.  I generally try to avoid changing migrations for packages I get from pip, so I just ignored those messages, was hoping it would all sort itself out once the package supported new migrations.
Thanks,
Jonathan
--
"The man with the new idea is a Crank until the idea succeeds."

Mark Twain, from 'Following the Equator: A Journey Around the World'

On May 23, 2015, at 4:26 AM, Richard Barran<EMAIL_ADDRESS>wrote:
Hi,
Could you please tell me:
What version of Python you are using.
What version of Django you are using.
What database you are using.
And what version of django-sortedm2m is installed.
Thanks,
Richard
—
Reply to this email directly or view it on GitHub https://github.com/jdriscoll/django-photologue/issues/134#issuecomment-104864992.

A clarification - I looked at the migrations install log in one of my databases: the django-photologue migrations are in two clumps - migrations 1 through 4 (applied October of 2014), and then 5 and 6 (applied February of 2015).  I think I've seen messages about changes being missing from migrations after django-photologue added support for django 1.7+ migrations (between October and February), but I am not sure.  Sorry for the uncertainty.

Another quick note - before doing this manual compare, I tried installing in a clean project and database and running the migrations.  I got the following while it was running migration 0001:
django.db.utils.OperationalError: (1005, 'Can't create table nieonline.#sql-6da_28 (errno: 150 "Foreign key constraint is incorrectly formed")')
Tables were created, but the django_migrations table wasn't updated, so in that case, it can't even run the second migration.
I am going to try exactly what you suggested above now, will let you know how it goes.

Might be related to my tables being MyISAM rather than InnoDB:
https://groups.google.com/forum/#!msg/reviewboard/4gNGVu3Gveg/g34Uj2F5wdoJ
I'm going to try re-importing tables as InnoDB and see if that helps...

Interesting.  Switching the tables to InnoDB made the migrations work.  I pulled a recent backup, updated the "ENGINE=MyISAM" in each "CREATE TABLE" statement to read "ENGINE=InnoDB", then dropped and rebuilt database from backup, and now the migrations work as expected.  Not sure what I should do with this.  Is this something I should report as a bug somewhere?  Seems odd that MyISAM tables cause migrations to break.

Last detail - after I got the tables upgraded to InnoDB, I was able to just remove the rows for photologue from django_migrations, then backup and remove the photologue_* tables, then re-run the migrations and everything ran through just fine.  Restored information to tables and back in business.  Not sure if this is a good idea for everyone, but it worked for me.

Thanks for reporting back on the results of your investigation. I know relatively little about MySQL, so I can't add anything to what you've already discovered.
I notice that myISAM tables do not support foreign key constraints, which I find a bit strange - InnoDB tables do support FKs, so shouldn't Django projects default to using InnoDB? I don't know.
I will close this ticket now as you've fixed the issue, but it's good to have it here in the archives in case anyone else encounters the same issue.

Just for reference, the MyISAM vs. InnoDB choice is in MySQL, and it has defaulted to InnoDB since 5.5 was released (general release December, 2010).  These are pretty old databases - we started using django with this client and application in spring of 2010, django 1.2.  And, they were running on CentOS 5 originally, so I think it was running MySQL 5.0 (and it might have been CentOS 4.X before, and so an even older version of MySQL).  So, you probably wouldn't run into this problem very freq

Hi Jonathan - thanks for the clarifications.


Fix AMDGPU

Fix number in gridsize to match blocks, synchronize now works.
Add two unit tests
Fixes #63

Test this please


Improve docs about venv management

Description
There are docs about Working with virtual environments. These docs are suboptimal cause the example code results in venvs which are not created inside the project but some OS user specific directory. Often this implies need for configuring the venv location in the IDE in use, etc.
Context
The venv location should enable IDE support for venv auto-detection. The venv location should be independent of the OS in use.
Possible Implementation
Adding instructions about how to create a venv in <kedro-project-root>/.venv.
pipenv/virtualenv:
python3 -m virtualenv -p python3 .venv
pipenv install

poetry:
cd <kedro-project-root>
poetry config --local virtualenvs.in-project true
poetry install
poetry shell
poetry env info | grep Path
# will print the venv location

Possible Alternatives
?

Hi @fkromer! You're welcome to make a PR to update our documentation with these changes. The docs have moved to kedro-training. I'll close this issue now because it's changed repo.

@yetudada I'm super happy with kedro and know how it works now. From my side there is no need to update the docs :smirk:


debugging for failing trades

When trade fails its hard to understand what cause failure.
a contract should receive trade data and check why trade failed.
possibly some web3 code will receive Tx hash and get all data from this Tx for querying network

This isn't an issue.
if we want to do this task later. we will open a relevant issue.


chart.update_from_tick(tick) creates a new bar, instead of updating the same bar.

Question
I am initializing the chart by loading hourly historical data from NSE stock exchange (India). The first candle starts at 9.15 am IST. After loading the historical data I am updating the chart using tick using chart.update_from_tick(tick). What I have noticed is as follows.

After rendering the historial data and load chart for 1min, 3min, 5min, 10min, 15min and 30 min data and then updating the chart by tick is working as expected.
But when I bring data for 60min and then updating the chart to render new bar by tick creates a new bar which is not a expected behaviour.
When I load MCX's exchange historical data (which starts at 9:00 am IST) and updating by tick creates no issue.
What I mean is that suppose if I am requesting the for NSE exchange hourly data at 11.55 am then new hourly bar should start at 12.15 but in my case it is starting at 12 noon.

How can I resolve it?
Code example
No response

Hey @mtech2008,
This sounds like a data issue. To resolve, I'll need a minimal example based on examples/3_tick_data with an ohlc.csv and ticks.csv that reproduces the same issue.
Louis

import pandas as pd
from time import sleep
from lightweight_charts import Chart

if __name__ == '__main__':

    df1 = pd.read_csv('ohlc1hr.csv', parse_dates=['date'])

    # Columns: time | price
    df2 = pd.read_csv('ticks1hr.csv', parse_dates=['time'])

    chart = Chart()

    chart.set(df1)

    chart.show()

    for i, tick in df2.iterrows():
        chart.update_from_tick(tick)
        sleep(0.8)

ohlc1hr.csv
ticks1hr.csv

Thanks for the example; I understand now.
At the moment, the library calculates the interval by pulling the most common interval within the inital dataset; but this does pose an issue if you are using an offsetted timeframe, as the chart thinks the next bar should be on the hour.
I'll look into storing an 'offset' in addition to the interval, which is added to the tick's time when it is rounded.
Louis

Implemented in the latest version.
Thanks,
Louis


add python-3-pyspark-databricks-dbx

-Containerized development environment for Pyspark under fully configured Python 3 development environment (uses the same official image from this respo).
-Can run pyspark code locally or send jobs to a Databricks workspace using dbx (for this last one follows the official guide provided here)
-Comes with a set of scripts to integrate all of these functionalities directly into VS Code.

Thanks so much for your contribution, @fl3sc0b!
We are working on how to best support current and future contributions to this repo. As this poses a delay in accepting some new definitions, we want to emphasize we really appreciate your work, and we're working on how to best support community contributions in a scalable way moving forward. There are additional details in this issue: https://github.com/microsoft/vscode-dev-containers/issues/1291.

Thanks again for opening!
As mentioned above, our team has been actively focused on an updated plan for community contributions and this repo moving forward, which we've now outlined in this issue: https://github.com/microsoft/vscode-dev-containers/issues/1589. This includes moving to a couple new repos for images (https://github.com/devcontainers/images) and Features (https://github.com/devcontainers/features).
We anticipate to have a similar repo and distribution process for templates/definitions. We'll keep everyone updated (likely via another issue in this repo or comment on https://github.com/microsoft/vscode-dev-containers/issues/1589) when our new templates repo is available and the process is defined.
Please let me know if you have any questions, thank you!


[Documentation] How to use Task Avoidance Configuration and reference the output of a task

I am have a simple use case of a task that has an output directory that needs to be added to sourceSets.main.java.srcDirs.
So I create my task with a register:
def jflexTaskProvider = tasks.register(JFLEX_TASK_NAME, JFlexTask)

Note that the task is using a DirectoryProperty:
@CacheableTask
class JFlexTask extends DefaultTask {

    @OutputDirectory
    DirectoryProperty generateDir = project.objects.directoryProperty()
...

How can I reference the output of that task to use it in:
sourceSets.main.java.srcDirs += jflexTaskProvider.generateDir

(that above obviously doesn't work).
I would need a cross documentation between Lazy Configuration#Working with files,  Lazy Configuration#Working with task inputs and outputs and Task Configuration Avoidance

This is because you are using getSrcDirs() and setSrcDirs(Iterable). You should just use srcDir(Object) or srcDirs(Object...) as the documentation explains it will resolve it as Project#files(Object) would resolve.

The user forum should be used for questions like these.


KubeJS integration with Forgero

Registering Forgero as a KubeJs plugin
Signed-off-by: Sigmund Granaas<EMAIL_ADDRESS>

Closed with #130


Dark Steel Shear recipe non-existent

I see config options for dark steel shears, but it isn't available in game. dark steel, darksteel, shear, nothing in NEI.

Huh?

@Unrepentant-Atheist which version are you using?

Always the latest from Curse.

Numbers!

https://imgur.com/a/dgw1V

@Unrepentant-Atheist you need to look at the version number - the one you used was 2.2.8 - the dark steel shears are a new feature of 2.3 which is currently in beta and not yet on Curse.


My branch for adding name

I am going to add my name in the contributors list, please

Thanks and welcome @khanteymoori!


[demo][wifi_provisioning] Remove hard dependency on BLE

Description
See #2951 for additional context.
Out of interest for sharing with iot_softap_wifi_provisioning capable devices, remove AFR::ble dependency from afr_demo_module(wifi_provisioning), so boards that don't have BLE can still build wifi_provisioning module.
Checklist:

[X] I have tested my changes. No regression in existing tests.
[X] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run checks

/bot run checks

Hi


can we not generate log file if we set enabled to false in configuration file

Hi,
Currently, if I set enabled to be false in log configuration file, it will still generate a log file with empty content, can we not generate this file? Is there any solution? There is a macro ELPP_NO_DEFAULT_LOG_FILE but it doesn't work.

Define this macro using compiler option not just before header file


Book Error

Hi!
Not sure if you've seen, but building the book currently fails. From the error message, I wonder whether this is due to the _toc.yaml file.
As a guess, maybe line 11 needs a -?

Just seen that you addressed this with https://github.com/mello-y/MSc5_research_project/commit/57e055567dbd9042e84519bbf03f9bacb4efa5f7


When after login visit startpage( / ), loading long time

Description
Is it because there are too many repositories?
Gitea Version
1.21.4 ~1.22.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
2024/07/17 03:18:22 ...les/cache/context.go:134:GetContextData() [W] cache context is expired, may be misused for long-life tasks: &{map[] {{0 0} 0 0 {{} 0} {{} 0}} {13951566527469631649<PHONE_NUMBER>303 0x695ad20} false}
..
2024/07/17 03:18:22 ...les/cache/context.go:147:SetContextData() [W] cache context is expired, may be misused for long-life tasks: &{map[] {{0 0} 0 0 {{} 0} {{} 0}} {13951566527469631649<PHONE_NUMBER>303 0x695ad20} false}
2024/07/17 03:18:22 ...eb/routing/logger.go:102:func1() [I] router: completed GET / for <IP_ADDRESS>:60722, 200 OK in 35793.8ms @ web/home.go:32(web.Home)
Screenshots

Git Version
2.40.1
Operating System
centos 7
How are you running Gitea?
docker gitea
Database
SQLite

Can you post slow logs?

How many repositories do you have? What cache type are you using?

Duplicate of #31582. The loading time is unrelated to the repositories amount of right sidebar.


Simplify release qualification tests (#1205)

Actual tests had been moved to istio/istio

@hklai: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.2

prow/daily-unit-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.2

prow/daily-unit-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-unit-tests

prow/istioctl-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test istioctl-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.2

prow/daily-unit-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-unit-tests

prow/istioctl-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test istioctl-tests

prow/daily-e2e-pilot-no_auth.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-pilot-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.2

prow/daily-unit-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-unit-tests

prow/istioctl-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test istioctl-tests

prow/daily-e2e-pilot-no_auth.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-pilot-no_auth

prow/daily-e2e-simpleTests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-simpleTests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.2

prow/daily-unit-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-unit-tests

prow/istioctl-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test istioctl-tests

prow/daily-e2e-pilot-no_auth.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-pilot-no_auth

prow/daily-e2e-simpleTests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-simpleTests

prow/daily-e2e-bookinfoTests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-bookinfoTests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-perf-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-upgrade-tests-1.0.2

prow/daily-unit-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-unit-tests

prow/istioctl-tests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test istioctl-tests

prow/daily-e2e-pilot-no_auth.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-pilot-no_auth

prow/daily-e2e-simpleTests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-simpleTests

prow/daily-e2e-bookinfoTests.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-bookinfoTests

prow/daily-e2e-dashboard.sh
77771b7e204a6678dc70a6258d61ecef5bbd9f59
link
/test daily-e2e-dashboard

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test daily-upgrade-tests-1.0.1


execution reverted: Sender is not an account

I can't seem to figure out why I'm getting this error for a TX I'm sending with boa-zksync.
(Pdb) with boa.env.prank(master_minter):
...     usdc.configureMinter(my_address, STARTING_USDC_BALANCE)
...
00:07:47  INFO Unable to estimate gas for the request with our suggested gas limit of 104010000. The transaction is most likely unexecutable. Breakdown of estimation:
00:07:47  INFO  Estimated transaction body gas cost: 80000000
00:07:47  INFO  Gas for pubdata: 0
00:07:47  INFO  Overhead: 10000
00:07:47  INFO execution reverted: Sender is not an account
*** boa.contracts.base_evm_contract.BoaError: <exception str() failed>

boa.env.eoa the the exact same as it is when this command works on ETH mainnet. So I'm not sure what it's doing differently here.

Got it, its becasue this is a smart contract wallet and ZKsync would need it to have been deployed as an account.


Add size snapshot rollup plugin

This diff adds size snapshot plugin for rollup which on every build
writes snapshot of umd with actual, minified and gzipped sizes. This
allows to track changes in size on every commit.
Also this diff combines development and production rollup configs in one
multiconfig to run node with rollup only once.

Removed lockfile

While this doesn't hurt, I also don't have strong feeling in favor of it.
Anyone want to make a case for or against this?

There is a case I didn't mentioned. size-snapshot is able to track treeshakability of rollup and webpack for esm bundles. I think this is useful since there are two ways of using this library, with named exports (import { map } from 'ramda') and path imports (import map from 'ramda/map'). Sometimes this both ways are used in the same project and this affect bundle size. So I'm gonna propose the solution with size snapshot plugin.


Fixes for SPS (non-instanced) rendering

Hey! Thank you for making this, I was able to downgrade the project to unity 2019 and get it working within 2019.4.31f1 (and within VRC itself).
But I found a bug (with a help of a friend who tested for me), where it wouldn't render in VR, only in desktop. VRChat currently uses SPS (non-instanced) rendering for its VR view and that mode had incorrect depth sampling. For some reason it requires using SAMPLE_DEPTH_TEXTURE_PROJ instead of just SAMPLE_DEPTH_TEXTURE, so I adjusted code to do that and it fixes the issue.
Here's how the depth issues looked
https://user-images.githubusercontent.com/3798928/194698581-1722c5ad-9b1c-40f7-a3a4-20c2c0d1a52e.mp4
You can see how the depth values were only visible at the edges in these weird triangle bits. Not sure what unity macros are doing there, but using the _PROJ variant made it work in both SPS and SPS-I!
Also, just wanted to add an extra note here, you can make unity enable depth pass without using AO (in case of VRC where you do not have access to adjusting Main Cam properties). All you need is a directional light with shadows enabled hitting some random empty layer - and unity will enable the depth pass for you. E.g.

Oh whoops! Nice catch, I actually had a version for a VRChat project that had this fix as well, but whoops look like I forgot to include it in this version that I was pushing out publically on GitHub. Thanks for the catch! I'll go ahead and merge it, nicely done!


improve ci names

Codecov Report
Base: 83.51% // Head: 83.25% // Decreases project coverage by -0.27% :warning:

Coverage data is based on head (c90153e) compared to base (b639a3c).
Patch coverage: 85.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
- Coverage   83.51%   83.25%   -0.27%
==========================================
  Files          49       49
  Lines        1280     1278       -2
  Branches      181      185       +4
==========================================
- Hits         1069     1064       -5
  Misses        154      154
- Partials       57       60       +3

Impacted Files
Coverage Δ

failgood/jvm/src/failgood/ObjectContextProvider.kt
90.90% <85.00%> (-9.10%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


BackendConfig

What would you like to be added:
BackendConfig
Why is this needed:
Currently impossible to see the BackendConfig with LENS
Environment you are Lens application on:

Kubernetes distribution: GKE
Desktop OS: ubuntu

sorry it's a custom resource of GKE.


Cleanup tooltips

Some sprucing up of the tooltips:

[x] phase out jQuery in tooltip.js — we'll soon be able to remove 87KiB from our JavaScript bundle!
[x] change styles to more closely match Diane's designs

Peeking now!


start-gateway-config.sh  not using DIAGNOSTICS_JSON_URL

start-gateway-config.sh  is using the hardcoded string http://diagnostics/json instead of DIAGNOSTICS_JSON_URL

Iirc diagnostics json url is only assigned in the python part of the library so don't thing is available at this stage of startup.
I might be wrong however, as it's been a while since I've dug into this area

Yeah it's set here but only for the python library...https://github.com/NebraLtd/hm-config/blob/a198b83776998a75044a0dfd88086971017575e2/gatewayconfig/main.py#L21


Deprecate brew cask update.

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[x] Have you successfully run brew tests with your changes locally?

In addition to deprecating brew cask update I also added a new option to odeprecated which allows us to specify a date after which a given method will be disabled.

Closes https://github.com/caskroom/homebrew-cask/issues/26921.

Also needs to be removed from the man page and brew cask help.

Just noticed that we do in fact have an easy way to hide the update command from help.


Add Navigator.doNotTrack to browser externs

Which is the correct default externs file to add Navigator.doNotTrack?

externs/browser/gecko_dom.js  as used for Navigator.sendBeacon?

Additional information:

W3C: Tracking Preference Expression: JS DOM
MDN: Web API: Navigator.doNotTrack
MDN: Web API: Navigator.doNotTrack browser compatibility: 'Before version 17, Edge implemented window.doNotTrack.'
Microsoft: IE 9: document.navigator.msDoNotTrack

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack#browser_compatibility
Since there is a big warning about it being deprecated and likely already gone in modern browsers, the answer is "nowhere".
If you need it yourself, the thing to do is create an externs file (@externs annotation in the @fileoverview comment) that defines it and use it just for your project.

@brad4d Thank you for looking into this.
The usage statistic on Caniuse says that ~78 % of global users use a browser that has Navigator.doNotTrack implemented.

@rr-it Thanks for pointing out the percentage statistic.
Please see https://en.wikipedia.org/wiki/Do_Not_Track
I'm particularly looking at the "Adoption" section.
We apparently didn't need it in the default externs before now.
Regardless of whether this is still supported by a majority of browsers, it is clearly on its way out and is of minimal use, so there really doesn't seem to be any good reason to add it now.


How to get the address until I have provisioned Ase?

Get the addresses that will be used for all outbound traffic from your App Service Environment to the internet. If you're routing the traffic on premises, these addresses are your NATs or gateway IPs. If you want to route the App Service Environment outbound traffic through an NVA, the egress address is the public IP of the NVA.

@shahanur please provide us with the document you are referring to so we can better assist.

@shahanur Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.


Make the call signatures and events across amm implementations consistent.

I would like to make these consistent across our pools and impls. This is for separate refactoring sweep tho.
Originally posted by @jak-pan in https://github.com/galacticcouncil/Basilisk-node/pull/463#discussion_r887850304

Related Math issue


pip install failing on M1 OSX Big Sur 11.6

I'm on python 3.8.13 on M1 OSX BigSur,
when i run
pip install --no-binary :all: secp256k1
the following error occurs
pip install secp256k1
Collecting secp256k1
  Using cached secp256k1-0.14.0.tar.gz (2.4 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [53 lines of output]
      0.29.2
      WARNING: The wheel package is not available.
        error: subprocess-exited-with-error

        × python setup.py bdist_wheel did not run successfully.
        │ exit code: 1
        ╰─> [10 lines of output]
            WARNING: The wheel package is not available.
            WARNING: The wheel package is not available.
            WARNING: The wheel package is not available.
            WARNING: The wheel package is not available.
            usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
               or: setup.py --help [cmd1 cmd2 ...]
               or: setup.py --help-commands
               or: setup.py cmd --help

            error: invalid command 'bdist_wheel'
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for pytest-runner
      ERROR: Failed to build one or more wheels
      Traceback (most recent call last):
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/setuptools/installer.py", line 75, in fetch_build_egg
          subprocess.check_call(cmd)
        File "/Users/bitcarrot/.pyenv/versions/3.8.13/lib/python3.8/subprocess.py", line 364, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/Users/bitcarrot/lngifts/lnbits-legend/env/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/y5/5_y1mtqd4jl_x3yk_5pnm4jr0000gn/T/tmpeiqe9a44', '--quiet', 'pytest-runner==2.6.2']' returned non-zero exit status 1.

      The above exception was the direct cause of the following exception:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/y5/5_y1mtqd4jl_x3yk_5pnm4jr0000gn/T/pip-install-b2sdfb1b/secp256k1_e343ec56f32d450ca60c1c4f91c5c705/setup.py", line 265, in <module>
          setup(
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/setuptools/__init__.py", line 152, in setup
          _install_setup_requires(attrs)
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 766, in resolve
          dist = best[req.key] = env.best_match(
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1051, in best_match
          return self.obtain(req, installer)
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1063, in obtain
          return installer(requirement)
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/setuptools/dist.py", line 780, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "/Users/bitcarrot/lngifts/lnbits-legend/env/lib/python3.8/site-packages/setuptools/installer.py", line 77, in fetch_build_egg
          raise DistutilsError(str(e)) from e
      distutils.errors.DistutilsError: Command '['/Users/bitcarrot/lngifts/lnbits-legend/env/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/y5/5_y1mtqd4jl_x3yk_5pnm4jr0000gn/T/tmpeiqe9a44', '--quiet', 'pytest-runner==2.6.2']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

This should help:
pip install wheel
python setup.py bdist_wheel

This should help:
pip install wheel

yup that fixed it for now


PA for Singularity continues firing even if computer controls are removed

self explanatory, likely a bug since the PA won't start without it being in a specific position, so it makes no sense that it continues firing after the console is removed from that specific position

(ironically singularity loosed almost immediately after i took this picture lol)

Could not repro trying:

unanchor the computer
delete the computer
teleport the computer
deconstruct the computer

I'm assuming its been fixed in one of the many PA fix PRs.
Feel free to reopen if it happens again!


Comments addressed, @kwxm please rereview.

I think it was fine before, but thanks for the updates anyway.

Error messages look much better now, I believe, thanks for the comments!


Add project links to Introduction page

Issue/Feature Description:
List of projects and links should be present in the Infroduction page.
Why this issue to fixed / feature is needed(give scenarios or use cases):
Add the projects and links in the SODA Ecosystem
How to reproduce, in case of a bug:
NA
Other Notes /  Environment Information: (Please give the env information, log link or any useful information for this issue)
NA

Fixed in PR https://github.com/sodafoundation/documentation/pull/90


Late entry / entries links not working

The link highlighted doesn't work for either of the linked entries for this individual

@DeniseColbert to test on beta.

Not working on beta.

https://beta.freebmd.org.uk/6151fa0a9c5d6164f04f1d40/entry-information/220087264/janet-henry-birth-hampshire-southampton-v6b-psee-j-60?locale=en
(Janet Henry; birth; Southampton; 1958-1960)

@DeniseColbert to test on beta.

Working as expected. Thanks Vino :)


Making SwinjectStoryboard inheritance friendly

This is an enhancement request
In case of inheriting from SwinjectStoryboard There should be overridable method which accepts Container.Controller and ResolverType as parameters, so subclass could check for controller protocol conformance and alter resolve process.
use case:
protocol ViewModeleledView: NSObjectProtocol {
    associatedtype ViewModel
    var viewModel: ViewModel! {get set}
}
private protocol ViewModelResolvableView {
    func resolve(resolver: ResolverType)
}
private extension ViewModeleledView: ViewModelResolvableView  {
    func resolve(resolver: ResolverType) {
        viewModel = resolver. resolve(ViewModel.self)
   }
}
class AltStoryboard: SwinjectStoryboard {
    override func resolve(controller: Container.Controller, with resolver: ResolverType) {
        if let controller = controller as? ViewModelResolvableView {
            controller. resolve(resolver)
        } else {
            super. resolve(controller, with: resolver)
        }
    }
}

With this I can omit registration of ViewModeleledViews in container

Hi @VladimirBorodko. Thank you for the request, but I think the usage of resolve is irregular because not a container but a controller invokes resolve. I think the API of SwinjectStoryboard is easier for most of users to understand without the resolve method with Controller and ResolverType.
SwinjectStoryboard is just an extension to Swinject. In your case, you can create your own SwinjectStoryboard-like class inheriting _SwinjectStoryboardBase or from scratch. The implementation is not so difficult if you see the code of SwinjectStoryboard😃
Anyway, thank you for your idea. It is a good finding for me to see how a user uses Swinject and SwinjectStoryboard👍


CMake Error: Could NOT find PythonInterp: Found unsuitable version "1.4", but required   is at least "2.7"

following along with the Turtlebot 3 ROS install guide, I'm getting an error while trying to install Kinetic
http://emanual.robotis.com/docs/en/platform/turtlebot3/pc_setup/
$ sudo apt-get update
$ sudo apt-get upgrade
$ wget https://raw.githubusercontent.com/ROBOTIS-GIT/robotis_tools/master/install_ros_kinetic.sh && chmod 755 ./install_ros_kinetic.sh && bash ./install_ros_kinetic.sh
Following the last line it errors with:
Source space: /home/tim/catkin_ws/src
Build space: /home/tim/catkin_ws/build
Devel space: /home/tim/catkin_ws/devel
Install space: /home/tim/catkin_ws/install

Running command: "cmake /home/tim/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/tim/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/tim/catkin_ws/install -G Unix Makefiles" in "/home/tim/catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/tim/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find PythonInterp: Found unsuitable version "1.4", but required
is at least "2.7" (found /home/tim/catkin_ws/build/3)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindPythonInterp.cmake:163 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/opt/ros/kinetic/share/catkin/cmake/python.cmake:5 (find_package)
/opt/ros/kinetic/share/catkin/cmake/all.cmake:147 (include)
/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:52 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/tim/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/tim/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
[Set the ROS evironment]
[Complete!!!]

all of my environment variables seem reasonable:
XDG_VTNR=7
XDG_SESSION_ID=c3
CLUTTER_IM_MODULE=xim
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/tim
GPG_AGENT_INFO=/home/tim/.gnupg/S.gpg-agent:0:1
SHELL=/bin/bash
TERM=xterm-256color
VTE_VERSION=4205
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/opt/ros/kinetic/share
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
ROS_MASTER_URI=http://localhost:11311
WINDOWID=67108874
OLDPWD=/home/tim
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1855
GNOME_KEYRING_CONTROL=
ROS_VERSION=1
GTK_MODULES=gail:atk-bridge:unity-gtk-module
USER=tim
LD_LIBRARY_PATH=/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:
QT_ACCESSIBILITY=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
PATH=/opt/ros/kinetic/bin:/home/tim/bin:/home/tim/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
DESKTOP_SESSION=ubuntu
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
XDG_SESSION_TYPE=x11
PWD=/home/tim/catkin_ws
JOB=gnome-session
XMODIFIERS=@im=ibus
ROS_HOSTNAME=localhost
GNOME_KEYRING_PID=
LANG=en_US.UTF-8
GDM_LANG=en_US
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
IM_CONFIG_PHASE=1
COMPIZ_CONFIG_PROFILE=ubuntu
ROSLISP_PACKAGE_DIRECTORIES=
GDMSESSION=ubuntu
SESSIONTYPE=gnome-session
GTK2_MODULES=overlay-scrollbar
HOME=/home/tim
XDG_SEAT=seat0
SHLVL=1
ROS_DISTRO=kinetic
LANGUAGE=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
UPSTART_INSTANCE=
PYTHONPATH=/opt/ros/kinetic/lib/python2.7/dist-packages
UPSTART_EVENTS=started starting
XDG_SESSION_DESKTOP=ubuntu
LOGNAME=tim
QT4_IM_MODULE=xim
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-YcDvky8F5s
PKG_CONFIG_PATH=/opt/ros/kinetic/lib/pkgconfig:/opt/ros/kinetic/lib/x86_64-linux-gnu/pkgconfig
LESSOPEN=| /usr/bin/lesspipe %s
INSTANCE=Unity
UPSTART_JOB=unity-settings-daemon
CMAKE_PREFIX_PATH=/opt/ros/kinetic
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XDG_CURRENT_DESKTOP=Unity
GTK_IM_MODULE=ibus
LESSCLOSE=/usr/bin/lesspipe %s %s
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
XAUTHORITY=/home/tim/.Xauthority
_=/usr/bin/env
and my PATH is:
/opt/ros/kinetic/bin:/home/tim/anaconda3/bin:/home/tim/bin:/home/tim/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
also tried removing the anaconda3 section for fun in case that was confusing something, no luck.
Am I doing something wrong or is this a cmake issue of some kind?

I am not sure if you have seen the ROS support guidelines but we kindly ask to raise questions like this on answers.ros.org instead.
The rational for asking all kind of questions in a single place is:

There are many more people reading questions there so your chances on getting an answer and in a timely manner are much higher.
In the future other users will search there for similar problems and can find your question and the potential answers.
The issue tracker in this repo is used to track bugs, feature requests, etc. But your question is not such an action item.

Therefore I will close this ticket here for now. If you have asked your question on answers.ros.org please feel free to add a link to the question to this ticket so that future readers can find the related question.

The reason I put it here was because we had exhausted all other avenues as far as searching goes and it seemed to be a catkin specific issue.  I'll certainly check out posting future ROS-related issuse on the ros answers thread, thank you.
That said, on a hunch we deleted the catkin_ws folder and all of it's contents and reran everything from wget on and that seems to have remedied the problem.  Must of been some kind of corruption in the catkin_ws folder?


draw.io replicates the shape on the other side when drag an arrow line from it

create rectangle shape
click on the shape and drag the arrow line out of it
when release the arrow pointed to one side, it replicates the shape what was created on the origin side

this is very annoying that i have delete the shape everytime to use only arrow.
attached an image in which only box and arrow to be expected but i am getting another box on the right side by default.

Uncheck Extras, Copy on Connect:


Is there anyway to integrate swagger with restify?

Hi! I have a simple server built with restify, but I'd like to integrate swagger with it to keep it better documented and maintainable. I've seen that there are a few projects that claim doing this. Is it doable? If it is, how can I do that? I've read your specs some time ago and I know that things must be really different. I'd really appreciate if someone can point me the right direction.
Thanks!

You've probably figured this out by now, but this is completely possible. I am doing it currently with an API I am working on. If you use the CLI project starter, it gives you an option to generate an app using the swagger restify middleware.
$ npm install -g swagger
$ swagger project create demo
# Select restify when prompted

You can also accomplish this yourself by adding the middleware
npm install -S swagger-restify-mw

Then, you can set it up like this (this is exactly the app.js currently generated by project creator):
'use strict';

var SwaggerRestify = require('swagger-restify-mw');
var restify = require('restify');
var app = restify.createServer();

module.exports = app; // for testing

var config = {
  appRoot: __dirname // required config
};

SwaggerRestify.create(config, function(err, swaggerRestify) {
  if (err) { throw err; }

  swaggerRestify.register(app);

  var port = process.env.PORT || 10010;
  app.listen(port);

  if (swaggerRestify.runner.swagger.paths['/hello']) {
    console.log('try this:\ncurl http://<IP_ADDRESS>:' + port + '/hello?name=Scott');
  }
});

Thanks Kevin,
I tried with prebuild Restify api's and Joi validation. But I am not able to get it working when the field is required and of different type(String, number and Boolean).
Is it possible to have a sample example which can help us?
Thanks in advance...

Hi, @kburdett I tried but not be able to show documentation and browser shows only like a string. Please help me how to integrate swagger with node application.

same thing here


Attachment feature with OpenAi compatible model don't recognize capabilities

I added custom gpt-4o azure model through extra-openai-models.yaml and Api proxy config is
- model_id: 4o-azure
  model_name: azure-gpt4o
  api_base: "http://<IP_ADDRESS>:4000/"
  api_key_name: azure-gpt4o

then command returns
"describe this image" \
      -a IMG_20240908_161441.jpg
Error: This model does not support attachments, but some were provided

Is there option to extra models that indicate model supports attachments or any other function?

This is the same issue as:

#602


SavedModel load sees different input tensor shape than exists in the model

An attempt to load a SavedModel-formatted ResNet50 model - which was converted from a Keras HDF5 file -  fails because TRTIS v1.8.0 running from the NGC-provided Docker image, is seeing a different shape for the input tensor than is specified in the config.pbtxt, which is based on what's shown by the saved_model_cli probe of the model, as well as the original Keras model information.
The saved_model_cli command shows the model's input tensor shape as [-1, -1, -1, 3] as you can see here:
MetaGraphDef with tag-set: 'serve' contains the following SignatureDefs:

signature_def['serving_default']:
  The given SavedModel SignatureDef contains the following input(s):
    inputs['resnet50_input:0'] tensor_info:
        dtype: DT_FLOAT
        shape: (-1, -1, -1, 3)
        name: resnet50_input:0
  The given SavedModel SignatureDef contains the following output(s):
    outputs['dense_2/Softmax:0'] tensor_info:
        dtype: DT_FLOAT
        shape: (-1, 5)
        name: dense_2/Softmax:0
  Method name is: tensorflow/serving/predict

I set up the config.pbtxt accordingly:
input [
  {
    name: "resnet50_input:0"
    data_type: TYPE_FP32
    dims: [ -1, -1, -1, 3 ]
  }
]

However, when TRTIS attempts to load this model, it gets the wrong shape for the input tensor, namely [ -1, 3 ], and sees this as a conflict with what's specified in the config.pbtxt:

model_repository_manager.cc:810] failed to load 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle' version 1: Invalid argument: unable to load model 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle', tensor 'resnet50_input:0' shape expected by framework [-1,3] doesn't match model configuration shape [-1,-1,-1,3]

Curiously, when I set the config.pbtxt to use the input dimensions that the above error shows, I get the same kind of error:

model_repository_manager.cc:810] failed to load 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle' version 1: Invalid argument: unable to load model 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle', tensor 'resnet50_input:0' shape expected by framework [-1,3] doesn't match model configuration shape [-1,3]

The logical inconsistency in this error message is what prompted me to open an issue.
When I move the config.pbtxt file out of the way, and run with strict-model-config turned off, it is able to generate a config and load the model successfully, and shows the proper dimensions in the api/status call:
      max_batch_size: 1
      input {
        name: "resnet50_input:0"
        data_type: TYPE_FP32
        dims: -1
        dims: -1
        dims: 3
      }

However, as described by this passage in the documentation:

Generated Model Configuration
Some TensorFlow SavedModel models do not require a model configuration file. The models must specify all inputs and outputs as fixed-size tensors (with an optional initial batch dimension) for the model configuration to be generated automatically.

Predictably, an attempt to use this model comes back with the error "variable-size dimension in model input not supported" and so the model can't be used.
I'd appreciate any suggestions, and would be happy to provide whatever information I'm able.

If you can provide the saved-model and initial config.pbtxt you used we should be able to replicate (you can just tar up your initial model repository directory and that will have everything we need). I think there is a combination of poor error messages and perhaps some out-dated documentation. You should be able to use this model in TRTIS even though it has variable-sized dimensions.

Thanks! The model is proprietary and export controlled and so can't be provided without a lot of red tape in both of our companies, but my colleague is working on creating a simple variable-dimension reproducer using the same process he used for the problem model (i.e., an export from a Keras .h5 file), and once we confirm that it's behaving the same way we'll send it along. I expect he'll have that ready soon.
In the meantime, do you expect that there be any point in upgrading to the 1.9.0 TRTIS release to see if the behavior differs?

I had a few minutes to spare so I pulled the 1.9.0 TRTIS container and get the same error, as one would expect. Here is the config.pbtxt which I used to get around the expected-vs-config error:
name: "resnet50_weights_tf_dim_ordering_tf_kernels"
platform: "tensorflow_savedmodel"
max_batch_size: 128
instance_group [
{
count: 1
kind: KIND_GPU
}
]
My colleague prepared a non-proprietary ResNet50 model, built with Keras and exported to SavedModel in the same manner as the original model, we get the same error when submitting an inference request via image_client.py, "variable-size dimension in model input not supported."
The tarball containing the model's repo directory is 110MB, which can't be attached in GitHub, how should I deliver it to you?

Can you put it on google drive or some other public storage that we could download from?

I've e-mailed you a Google Drive link. Thanks!

Thanks for the repro. Unfortunately I think you hit a couple of issues. The first is the confusing "shape expected by framework [-1,3] ..." when the framework doesn't expect that shape at all. This is due to a bug in printing the framework expected shape (fixed with #977). I'm also going to improve the error message so you will see:
...model 'resnet50_weights_tf_dim_ordering_tf_kernels', tensor 'input_image': the model expects 4 dimensions (shape [-1,-1,-1,3]) but the model configuration specifies 2 dimensions (shape [-1,3])

For other cases where the max_batch_size > 0 we will change the message to be:
...model 'resnet50_weights_tf_dim_ordering_tf_kernels', tensor 'input_image': the model expects 4 dimensions (shape [-1,-1,-1,3]) but the model configuration specifies 5 dimensions (an initial batch dimension for max_batch_size > 0 plus the explicit tensor shape for a full shape [-1,-1,-1,-1,3])
Hopefully these messages will be more clear in identifying any shape issues. We will also update the documentation issue you found.

The error you are getting from image_client.py is because your model allows variable size images and so image_client doesn't know how to resize your input image. We have an open ticket to add an argument to image-client to allow you to explicitly give a size for this case (or perhaps we could just use the image in its native size), but for now this is not supported. So to use image_client you need to change the model config to have an exact size for the input tensor (no need to change the actual model... it is ok for the model to accept variable-size and the model configuration to specific an exact size).

The issue we run into when we specify the dimensions of the input tensor without changing the model is this:

509191 model_repository_manager.cc:832] failed to load 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle' version 1: Invalid argument: unable to load model 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle', tensor 'resnet50_input:0' shape expected by framework [-1,3] doesn't match model configuration shape [-1,494,648,3]

So that's related to #977 it would appear, so perhaps the problem is that I'm specifying a batch dimension in the config.pbtxt when I shouldn't? Yep, that appears to be it:

510471 model_repository_manager.cc:832] failed to load 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle' version 1: Invalid argument: unable to load model 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle', tensor 'dense_2/Softmax:0' shape expected by framework [5] doesn't match model configuration shape [-1,5]

And fixing the config.pbtxt to omit the batch size dimension...

511047 model_repository_manager.cc:829] successfully loaded 'TR46_ResNet50_FFS_300ep0.6train_5classes_noshuffle' version 1

Perhaps a bit of additional documentation tweaks in TensorRT could be done to help those of us who are comparatively new to this world. Since the Inference Server entails some firewall and service-maintenance elements, I'm coming at this from an IT department perspective and thus had a somewhat limited understanding of the nuances of batch sizes and tensor dimensions.
Since saved_model_cli showed "shape: (-1, -1, -1, 3)" I thought that was what should go in the config.pbtxt. Guidance in the TRTIS docs on how to determine the input and output tensor names and dimensions of a model, and clarification that the config.pbtxt can specify fixed dimensions even if the model has dynamic dimensions, would have reduced the slope of my learning curve.
Thanks again!


no alert shown on destroy failed

when a destroy request fails, we are immediately clearing the "in-progress" alert and refreshing the table. No error is displayed to customer. This is very confusing for the user.
We must add a closable alert in case of failure.
we must "destroy" also work similar to "purge". This is more stable.

I'll take this


⚠ SkipTheCommericals has degraded performance

In 9beb485, SkipTheCommericals ($STC) experienced degraded performance:

HTTP code: 200
Response time: 1747 ms

Resolved: SkipTheCommericals performance has improved in 8fd30b6.


Markdown support in notes

Feature description:
Markdown should be supported in notes
Any ideas on how to implement it?
Use a library

can u please assign this to me